Is there something wrong with PMOS model in the LTSpice XVII?

The Generic PMOS fet does not conduct when I tried it. When I tried a some specific fet it worked. The supply voltage is large in case the fet is lazy, but no, the problem seems to be in the model.

I wanted to play with a circuit from an old Application note. I replaced PNP power Bipolar with a fet. It did not work with plain PMOS.

Here is the circuit, if you want to know. It is AN10739 from NXP. The fet is drawn a bit untidily. I tried to reverse it, in case I had made a mistake there. (Models do not break when you connect them wrong way. :).

Version 4 SHEET 1 1032 680 WIRE 160 -272 48 -272 WIRE 304 -272 160 -272 WIRE 544 -272 304 -272 WIRE 544 -240 544 -272 WIRE 576 -160 544 -160 WIRE 304 -144 304 -272 WIRE 464 -96 368 -96 WIRE 576 -96 576 -160 WIRE 576 -96 544 -96 WIRE 720 -96 576 -96 WIRE 160 -64 160 -272 WIRE 688 -16 624 -16 WIRE 720 -16 720 -96 WIRE 800 -16 720 -16 WIRE 688 0 688 -16 WIRE 160 16 112 16 WIRE 304 16 304 -48 WIRE 304 16 256 16 WIRE 576 16 304 16 WIRE 576 80 576 16 WIRE 640 80 576 80 WIRE 800 96 800 -16 WIRE 800 96 688 96 WIRE 48 112 48 -272 WIRE 256 112 256 16 WIRE 432 112 384 112 WIRE 528 112 432 112 WIRE 528 128 528 112 WIRE 624 128 624 -16 WIRE 624 128 528 128 WIRE 112 160 112 16 WIRE 192 160 176 160 WIRE 432 160 432 112 WIRE 528 224 528 128 WIRE 608 224 528 224 WIRE 768 224 688 224 WIRE 864 224 768 224 WIRE 864 240 864 224 WIRE 256 288 256 208 WIRE 768 320 768 224 WIRE 864 352 864 304 WIRE 112 400 112 160 WIRE 384 400 384 112 WIRE 384 400 112 400 WIRE 48 448 48 192 WIRE 256 448 256 368 WIRE 256 448 48 448 WIRE 432 448 432 224 WIRE 432 448 256 448 WIRE 768 448 768 384 WIRE 768 448 432 448 WIRE 864 448 864 416 WIRE 864 448 768 448 WIRE 432 480 432 448 FLAG 432 480 0 SYMBOL voltage 48 96 R0 WINDOW 123 0 0 Left 2 WINDOW 39 0 0 Left 2 SYMATTR InstName V1 SYMATTR Value 20 SYMBOL npn 192 112 R0 SYMATTR InstName Q1 SYMBOL pnp 368 -48 R180 SYMATTR InstName Q2 SYMBOL ind 704 208 R90 WINDOW 0 5 56 VBottom 2 WINDOW 3 32 56 VTop 2 SYMATTR InstName L1

SYMBOL res 528 -256 R0 SYMATTR InstName R1 SYMATTR Value 1 SYMBOL res 560 -112 R90 WINDOW 0 0 56 VBottom 2 WINDOW 3 32 56 VTop 2 SYMATTR InstName R2 SYMATTR Value 100 SYMBOL diode 448 224 R180 WINDOW 0 24 64 Left 2 WINDOW 3 24 0 Left 2 SYMATTR InstName D1 SYMBOL diode 848 240 R0 SYMATTR InstName D2 SYMBOL diode 848 352 R0 SYMATTR InstName D3 SYMBOL res 240 272 R0 SYMATTR InstName R3 SYMATTR Value 200 SYMBOL res 144 -80 R0 SYMATTR InstName R4 SYMATTR Value 10k SYMBOL cap 752 320 R0 SYMATTR InstName C1

SYMBOL diode 112 176 R270 WINDOW 0 32 32 VTop 2 WINDOW 3 0 32 VBottom 2 SYMATTR InstName D4 SYMBOL pmos 640 0 R0 SYMATTR InstName M1 TEXT 16 456 Left 2 !.tran 0 300m 0 TEXT 736 -88 Left 2 !;op 0 300m 0

Reply to
LM
Loading thread data ...

As you say, "When I tried a some [sic erat scriptum] specific fet it worked."

You've answered your own question.

LTspice is notorious for having LTspice-specific models tweaked with special effects to make LTspice look super speedy.

I'd do two things, avoid LTspice-specific models and be sure to set solver to "Alternate".

Make that _three_ things... treat LTspice XVII with caution until it is completely debugged.

Did you try your circuit on LTspice IV?

[snip]

Complete schematic at...

Message-ID:

...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 

             I'm looking for work... see my website. 

     Thinking outside the box... producing elegant solutions.
Reply to
Jim Thompson

On closer examination of the circuit... WHERE in the world did you get that circuit ?:-)

I suspect _ideal_ diodes 'D' may actually be the problem... though it looks to be a crap circuit in general. ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 

             I'm looking for work... see my website. 

     Thinking outside the box... producing elegant solutions.
Reply to
Jim Thompson

That circuit appears to have a stable state that toasts the mosfet.

--

John Larkin         Highland Technology, Inc 
picosecond timing   precision measurement  

jlarkin att highlandtechnology dott com 
http://www.highlandtechnology.com
Reply to
John Larkin

change L to something much larger and the circuit will oscillate.

reasons are obvious if you check out the stock values on spice defaults

Jamie

Reply to
M Philbrook

When PMOS Source is at +20volts and Gate and Source are at zero, the fet should conduct. Now the circuit takes 4mA. This same happens with LTSpice IV. I have no problems with NMOS, what I can remember.

There is no problems with the simulation when I change fet with "Pick new MOSfet".

How can I see what PMOS values are?

Reply to
LM

The symbol should have a model attribute... and the model should be in one of the libraries.

BEWARE: LTspice has taken to encrypting their models, so you may not be able to tell what the parameters are.

Oooops! Loading up your schematic... that PMOS is a so-called break-out device... you need to fill in the parameters, otherwise it defaults to who-knows-what... which is why it works when you "Pick new MOSfet". ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 

             I'm looking for work... see my website. 

          Thinking outside the box... elegant solutions.
Reply to
Jim Thompson

Forget to add: Place "hand" cursor over MOSfet, right-click to set/see parameters. ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 

             I'm looking for work... see my website. 

          Thinking outside the box... elegant solutions.
Reply to
Jim Thompson

Thank you. Just that there was wery little to choose from. VDS, Rds on and Qgate. Not for instance Vthres.

I played some more with circuit and noticed there definitely is a stable non oscillating state. But I couuld make work with realistic part values.

Is there a better circuit without ICs? For 2-3 1W leds and around

12V-24V. I quess there are millions of good ICs available.
Reply to
LM

Of course not... LTspice relies on hokey LTspice-specific models to demonstrate/exaggerate how fast it is >:-}

...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 

             I'm looking for work... see my website. 

          Thinking outside the box... elegant solutions.
Reply to
Jim Thompson

How much current is needed by a "1W" LED? ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 

             I'm looking for work... see my website. 

          Thinking outside the box... elegant solutions.
Reply to
Jim Thompson

Well, I aimed for 300mA. Max is around 1A.

Reply to
LM

[snip]

Try the following. I arbitrarily picked a PMOS, and didn't spend any time optimizing, but it's something for you to experiment with.

Version 4 SHEET 1 1208 800 WIRE 112 -272 -112 -272 WIRE 256 -272 112 -272 WIRE 576 -272 256 -272 WIRE 256 -192 256 -272 WIRE 112 -176 112 -272 WIRE 576 0 576 -272 WIRE 112 16 112 -96 WIRE 368 16 112 16 WIRE 528 16 368 16 WIRE -112 112 -112 -272 WIRE 368 112 368 16 WIRE 576 224 576 96 WIRE 576 224 496 224 WIRE 608 224 576 224 WIRE 768 224 688 224 WIRE 864 224 768 224 WIRE 864 240 864 224 WIRE 496 288 496 224 WIRE 112 304 112 16 WIRE 768 320 768 224 WIRE 256 352 256 -112 WIRE 256 352 176 352 WIRE 864 352 864 304 WIRE 256 432 256 352 WIRE 368 480 368 192 WIRE 368 480 320 480 WIRE 576 480 368 480 WIRE 864 480 864 416 WIRE 864 480 656 480 WIRE 864 528 864 480 WIRE -112 656 -112 192 WIRE 112 656 112 400 WIRE 112 656 -112 656 WIRE 256 656 256 528 WIRE 256 656 112 656 WIRE 432 656 256 656 WIRE 496 656 496 352 WIRE 496 656 432 656 WIRE 768 656 768 384 WIRE 768 656 496 656 WIRE 864 656 864 608 WIRE 864 656 768 656 WIRE 432 688 432 656 FLAG 432 688 0 SYMBOL voltage -112 96 R0 WINDOW 123 0 0 Left 2 WINDOW 39 0 0 Left 2 SYMATTR InstName V1 SYMATTR Value 20 SYMBOL npn 320 432 M0 SYMATTR InstName Q1 SYMATTR Value 2N3904 SYMBOL ind 704 208 R90 WINDOW 0 5 56 VBottom 2 WINDOW 3 32 56 VTop 2 SYMATTR InstName L1

SYMBOL res 848 512 R0 SYMATTR InstName R1 SYMATTR Value 2.7 SYMBOL res 672 464 R90 WINDOW 0 0 56 VBottom 2 WINDOW 3 32 56 VTop 2 SYMATTR InstName R2 SYMATTR Value 100 SYMBOL schottky 512 352 R180 WINDOW 0 24 64 Left 2 WINDOW 3 24 0 Left 2 SYMATTR InstName D1 SYMATTR Value BAT54 SYMATTR Description Diode SYMATTR Type diode SYMBOL diode 848 240 R0 SYMATTR InstName D2 SYMBOL diode 848 352 R0 SYMATTR InstName D3 SYMBOL res 240 -208 R0 SYMATTR InstName R3 SYMATTR Value 10k SYMBOL res 96 -192 R0 SYMATTR InstName R4 SYMATTR Value 1k SYMBOL cap 752 320 R0 SYMATTR InstName C1

SYMBOL pmos 528 96 M180 SYMATTR InstName M1 SYMATTR Value RSR020P05 SYMBOL npn 176 304 M0 SYMATTR InstName Q2 SYMATTR Value 2N3904 SYMBOL res 352 96 R0 SYMATTR InstName R5 SYMATTR Value 22k TEXT -128 744 Left 2 !.tran 0 300m 0 TEXT -128 784 Left 2 !;op 0 300m 0

...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 

             I'm looking for work... see my website. 

          Thinking outside the box... elegant solutions.
Reply to
Jim Thompson

Pmos requires the gate to be negative w/r to source for conduction between source and (negative) drain.

RL

Reply to
legg

A typo. Source is at +20V. Gate and DRAIN are at zero volts. The fet should conduct.

I tried the circuit Jim Thompson sent. It worked but I noticed , when I tried to make switching frequency higher, that it will stop oscillating with certain values. Either L1 or C1 must be large. I quess these kind of supplies need a Scmitt-trigger or flip flop to switch the fet either fully conducting or fully off.

LM

Reply to
LM

It does have Schmitt action, observe base of Q1 and gate of M1.

Not quite sure why is needs large values. I suspect that the time constants get forced by the required high value of current sense resistor, so a different sensing method is in order... maybe use a comparator, even though you said no I/C's ;-) ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 

             I'm looking for work... see my website. 

          Thinking outside the box... elegant solutions.
Reply to
Jim Thompson

I'll try it. What is perhaps happening is that I'll move from discretes to ICs, whether I wanted it or not

Leif M

Reply to
LM

Thanks again. It worked(of course). I'll test some more to get some idea of when it works and when not. Leif

Reply to
LM

It's easy enough to get going,with non-default model parts, and larger L values. A PNP bipolar switch will react much more predictably with the switched-current drive. Even so, I doubt that very high frequency operation was anticipated.

RL

Reply to
legg

Thumbing thru a book, "Feedback in Analog Circuits", by long time buddy Agustin Ochoa, Xtreme Spectrum (*) & Zarlink chip projects, I found an example analyzing a switching regulator.

Ochoa suggests that it is best analyzed in a similar fashion to PLL analysis, except use duty-cycle as the loop variable.

Which led me to realize that hysterical (:-) loop control is self defeating... with regions of non-oscillation and yet no ripple reduction.

Conclusion: Clocked works best.

(*) 7,010,056 (Spread Spectrum) System and Method for Generating Ultra Wideband Pulses ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 

             I'm looking for work... see my website. 

          Thinking outside the box... elegant solutions.
Reply to
Jim Thompson

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.