Pspice Code For a Pmos

Discussion in 'Homework Help' started by Katie_EE, Apr 8, 2010.

  1. Katie_EE

    Thread Starter New Member

    Apr 8, 2010
    14
    0
    I am trying to write code for a Pmos Load in Series with a Resistive Driver.

    I am given the Vin = V(gate) = 3V and i must calculate Vout that is the node in between the Pmos and the resistor.

    Given parameters:

    Vss = 15v
    VTO = -1.5
    KP = 30E-6

    I have to use Pspice to Verify it...

    this is my Code so far:

    * Problem 5
    VSG 1 2
    VSD 1 3
    RS 3 0 5K
    VI 2 2 DC 3
    M1 1 1 3 0 M
    VDD 1 0 DC 15
    .MODEL M PMOS (VTO = -1.5 KP = 30E-6)
    .DC VSD 0 16 0.05 VSG 0 16 .5
    .PROBE
    .END

    I keep getting this error:
    ERROR -- Voltage source and/or inductor loop involving VI
    You may break the loop by adding a series resistance

    i am not sure how to fix it...

    Any suggestions on how i can fix this?
     
  2. retched

    AAC Fanatic!

    Dec 5, 2009
    5,201
    312
    I would try by adding series resistance. :)
     
    Katie_EE likes this.
  3. Katie_EE

    Thread Starter New Member

    Apr 8, 2010
    14
    0
    I realized my code was all wrong. Thank you anyways!
     
Loading...