Can someone spare a spice model for a UC3842?

I thought one of the big manufacturers would have one. It is a common part... sigh..

Reply to
The Real Andy
Loading thread data ...

FWIW:

** From C:\\Program Files\\SIMetrix\\models\\psu.lb .subckt UC3842 Vout Osc Vp Comp Sense Vfb Ref Gnd A$U2 [U6_OUT U5_IN4] U2_OUT nand A$U3 [U2_OUT U7_OUT] U5_IN4 nand X$ARB1 R1_P Sense ARB1_OUT $$arbsourceARB1 pinnames: N1 N2 OUT .subckt $$arbsourceARB1 N1 N2 OUT B1 OUT 0 V=tanh(v(n1,n2)*1000)*2.5+2.5 .ends A$U16 U12_OUT U16_OUT DA X$U1 Vfb Ref Vp Comp Gnd R5_N $$error_amp_2 pinnames: VINN BIAS VP VOUT VN VINP A$U17 U9_OUT U17_OUT DA A$U6 U12_OUT U6_OUT inv V1 S2_P 0 5V A$U7 U15_OUT U7_OUT delay1 A$U15 ARB1_OUT U15_OUT AD A$U4 Vp U4_OUT schmitt A$U5 [U10_OUT U12_OUT U8_QP U5_IN4] U11_IN1 or A$U12 Osc U12_OUT schmitt_osc I2 R1_N Comp 10u A$U13 U11_OUT U13_OUT DA A$U10 U4_OUT U10_OUT inv A$U11 U11_IN1 U11_OUT inv_dead I1 Gnd I1_N 40m A$U18 U4_OUT U18_OUT DA *A$VCC2 VCC2_P DIG_VCC D1 Comp D1_N Diode D2 D1_N R1_N Diode D3 R1_P I1_N Diode Q2 Vp S1_N Vout 0 N1 20 R4 S1_N Gnd 1K R5 Ref R5_N 10k X$S4 Osc 0 U16_OUT 0 gen_switch : RON=250 ROFF=100Meg VON=3 VOFF=2 pinnames: P N CP CN *A$U8 VCC2_P U12_OUT U8_SET U8_SET U8_QP U8_QN Toggle *A$GND2 U8_SET DIG_GND R6 R5_N Gnd 10k A$U9 U11_IN1 U9_OUT dead Q1 Vout U17_OUT Gnd 0 N1 20 X$S2 S2_P Ref U18_OUT 0 gen_switch : RON=1 ROFF=100Meg VON=3 VOFF=2 pinnames: P N CP CN R1 R1_P R1_N 20k X$S3 Vp 0 U18_OUT 0 gen_switch : RON=1.36k ROFF=30k VON=3 VOFF=2 pinnames: P N CP CN R2 Gnd R1_P 10k .ic Osc 0 R3 I1_N Gnd 10 X$S1 Vp S1_N U13_OUT Gnd gen_switch : RON=1 ROFF=1Meg VON=3 VOFF=2 pinnames: P N CP CN .model inv d_inverter .model or d_or .model DIG_GND d_pulldown strong=true out_family="FORCE5" .model DIG_VCC d_pullup strong=true out_family="FORCE5" .model toggle d_tff .model delay1 d_buffer rise_delay=150n fall_delay=150n .model dead d_buffer rise_delay=20n fall_delay=1n .model inv_dead d_inverter rise_delay=20n fall_delay=1n .model nand d_nand .model and d_and .model Diode D(IS=1.6f CJO=0.3p M=0.3 VJ=0.75 ISR=2.6n) .model N1 NPN BF=300 TF=0.5n CJC=0.3p VAF=100 .model P1 PNP BF=150 TF=2n CJC=0.3p VAF=150 .model D1 D .model schmitt_osc adc_schmitt in_low=1 in_high=3
  • 842/4 .model schmitt adc_schmitt in_low=10 in_high=16
  • 843/5
*.model schmitt adc_schmitt in_low=7.6 in_high=8.4 .subckt gen_switch 1 2 3 4 S1 1 2 3 4 SW .model SW VSWITCH RON={ron} ROFF={roff} VON={von} VOFF={voff} .ends .model AD adc_bridge
  • in_low=2.1
  • in_high=2.2
  • rise_delay=1e-12
  • fall_delay=1e-12
  • out_family = "UNIV"
  • out_low = 0
  • out_high = 5
  • clamp_bias=0.5
  • clamp_res=10 .model DA dac_bridge
  • out_high=5
  • input_load=-31p
  • t_rise=2n
  • t_fall=2n
  • g_pullup=0.024
  • g_pulldown=0.034
  • g_hiz=1e-9
  • knee_low = 2.0
  • knee_high =2.75
  • v_smooth = 0.5
  • in_family="UNIV" .subckt $$error_amp_2 VINN BIAS VP VOUT VN VINP Q8 Q6_C Q6_C VN 0 N1 Q9 Q10_B Q6_C VN 0 N1 V1 D2_N VN 5.5 Q10 VOUT Q10_B Q10_E 0 N1 C1 C1_P Q10_B 270p D1 Q10_E VN D1 D2 VOUT D2_N D1 E1 C1_P 0 VOUT 0 1 G2 VP G2_N BIAS VN 20u Q6 Q6_C R2_P G2_N 0 P1 Q7 Q10_B R3_P G2_N 0 P1 R2 R2_P VINN 2.7k X$S1 VP VOUT BIAS 0 gen_switch : RON=30k ROFF=1G VON=3 VOFF=2 pinnames: P N CP CN R3 R3_P VINP 2.7k .subckt gen_switch 1 2 3 4 S1 1 2 3 4 SW .model SW VSWITCH RON={ron} ROFF={roff} VON={von} VOFF={voff} .ends .model N1 NPN BF=200 TF=0.15n CJC=0.3p VAF=100 .model P1 PNP BF=150 TF=5n CJC=30p VAF=150 RB=100 .model D1 D .ends .ends
** UC3843 current mode SMPS controller ** This model will only run on mixed mode versions of SIMetrix ** It will not run with any other SPICE or XSPICE products

Cheers Terry

Reply to
Terry Given

Is that for real?? I wanted to use it with LT's SwitcherCad?

I will try it anyway :)

Many Thanks

Reply to
The Real Andy

No worries mate.

I havent studied it in detail (who cares, I have mixed-mode symetrix) but I suspect the issue is the interface between the digital and analog.

Cheers Terry

Reply to
Terry Given

You could roll your own....

formatting link

DNA

Reply to
Genome

[snip]
[snip]

The only reason I can see that this couldn't run on other SPICE products is the undefined subcircuits, such as the digital ones I've quoted above.

These are obviously "built-in" functions of SIMetrix. I'd hazard a bet that standard 74HCxx parts could be dropped into those slots.

...Jim Thompson

--
|  James E.Thompson, P.E.                           |    mens     |
|  Analog Innovations, Inc.                         |     et      |
|  Analog/Mixed-Signal ASIC\'s and Discrete Systems  |    manus    |
|  Phoenix, Arizona            Voice:(480)460-2350  |             |
|  E-mail Address at Website     Fax:(480)460-2142  |  Brass Rat  |
|       http://www.analog-innovations.com           |    1962     |
             
I love to cook with wine.      Sometimes I even put it in the food.
Reply to
Jim Thompson

Thanks. I would roll my own, but I will be struggling just to make it work :)

Is Jane Horrocks really a lesbian?

Andy.

Reply to
The Real Andy

Thanks Jim. Now I have a few options!

Reply to
The Real Andy

your URL seems to non available here in garlic land . Got a partial hit through the Gugle cache though

martin

Reply to
martin griffith

LT1246 is a pin-compatible model, though there's incorrect scaling between comp and the CS comparator at last inspection.

RL

Reply to
legg

Where's " snipped-for-privacy@ieee.org"? They had developed one.

--
_____________________
Christopher R. Carlen
crobc@bogus-remove-me.sbcglobal.net
SuSE 9.1 Linux 2.6.5
Reply to
CC

Arrrrrr, you've had problems with my server before.

It might have something to do with the way I've set it up as far as permissions and groups and ownership of stuff is concerned. Basically I've locked it down to stop folks snooping for my p*rn.

You should be able to download the file but you'll get a forbidden if you try and look in the directory it's in.

DNA

Reply to
Genome

Er.. but thats the point. It wont run "as is" on other spices. If the model is converted, sure, it might be made to work on other spices.

For starters, the adc_bridge is an XSpice specific internal model, so wont run in LTSpice. In addition, it is an extended model, i.e. it has additional parameters not in standard XSpice.

Sort of, but much slower as they would have to be analogue versions. Digital stuff of XSPice is handeled by its digital engine.

Kevin Aylward B.Sc. snipped-for-privacy@anasoft.co.uk

formatting link
SuperSpice, a very affordable Mixed-Mode Windows Simulator with Schematic Capture, Waveform Display, FFT's and Filter Design.

"There are none more ignorant and useless,than they that seek answers on their knees, with their eyes closed"

Reply to
Kevin Aylward

You could have a go at making your own by drawing the schematic using functional blocks, then using the "create subckt" feature found in a few spices:-)

Its much easier to design and debug a model (.subckt) as a schematic than by hand crafting text. That's how I generated my SMPS models.

Kevin Aylward snipped-for-privacy@anasoft.co.uk

formatting link
SuperSpice, a very affordable Mixed-Mode Windows Simulator with Schematic Capture, Waveform Display, FFT's and Filter Design.

"There are none more ignorant and useless,than they that seek answers on their knees, with their eyes closed"

Reply to
Kevin Aylward

[snip]

Nope, not slower. PSpice (A/D version) has a digital engine as well.

...Jim Thompson

--
|  James E.Thompson, P.E.                           |    mens     |
|  Analog Innovations, Inc.                         |     et      |
|  Analog/Mixed-Signal ASIC\'s and Discrete Systems  |    manus    |
|  Phoenix, Arizona            Voice:(480)460-2350  |             |
|  E-mail Address at Website     Fax:(480)460-2142  |  Brass Rat  |
|       http://www.analog-innovations.com           |    1962     |
             
I love to cook with wine.      Sometimes I even put it in the food.
Reply to
Jim Thompson

Yes, but you have your own personal stuff and have learnt from the splash how to not have someone moan about the external stains.

Or you have a good excuse for your left trouser leg.

DNA

Reply to
Genome

No. I always wear black trousers ;-)

...Jim Thompson

-- | James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | |

formatting link
| 1962 | I love to cook with wine. Sometimes I even put it in the food.

Reply to
Jim Thompson

I have used LTSpice before, with great success for LT products and simple circuits. I spent some time playing with Terry's circuit and Jims comments with no success. I also played around with genome's ckt but decided for a simple person like me that it would be easier to breadboard it. So, i did the design in protel, and I started laying out the PCB, then I got bored and found a bottle of wine, a kabana and the internet.......

Sigh, i spend all day in front of computers writing things like strncpy(&hello,"world"sizeof(&hello)); and not designing circuits, so i get bored real easy. I then get remotivated for an hour or so every

2-3 days and connect a few more nets in protel. This project is for my dad who is a retired mechanical engineer, hopefully i can deliver before he passes on.
Reply to
The Real Andy

Doing a good job is like peeing your pants in a dark suit - it gives you a warm feeling, but nobody seems to notice. ;-)

Cheers! Rich

Reply to
Rich Grise

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.