Need help with LTspice Quantizer

AOA,Hi and greetings :)

I am relatively new to SPICE environment ( never used it except in a recent course LAB). Now, we are given a Final year Project on making and simulati ng a model of Multi-bit sigma delta ADC. Things are going quite normal unti l i found this thread

formatting link

It has a code for quantizer which is the core part of ADC (and specifically our LTspice model). The problem i am facing is that i dont know how to run that netlist in LTspice. Here is the code

John

Version 4 SHEET 1 880 680 WIRE 48 48 0 48 WIRE 112 48 48 48 WIRE 384 48 320 48 WIRE 432 48 384 48 WIRE 0 96 0 48 WIRE 112 112 112 48 WIRE 320 112 320 48 WIRE 432 128 432 48 WIRE 0 224 0 176 WIRE 112 224 112 192 WIRE 320 240 320 192 WIRE 432 240 432 208 FLAG 0 224 0 FLAG 320 240 0 FLAG 112 224 0 FLAG 432 240 0 FLAG 48 48 X FLAG 384 48 OUT SYMBOL bv 320 96 R0 WINDOW 3 36 198 Left 0 SYMATTR InstName B1 SYMATTR Value V=int(5.1*V(X))*0.2 SYMBOL voltage 0 80 R0 WINDOW 3 16 199 Left 0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName V1 SYMATTR Value SINE(0 1 1k 0 0 0 3) SYMBOL res 96 96 R0 SYMATTR InstName R1 SYMATTR Value 1k SYMBOL res 416 112 R0 SYMATTR InstName R2 SYMATTR Value 1k TEXT 144 40 Left 0 !.tran 0 .005 0 1u

I sure do save the whole code with .cir extension from text file but it is giving me an error "Multiple instance of Flag"...Having not very good knowl edge of netlists (i always preferred GUI design instead of coding..my bad). And i know i can design a quantizer in GUI but knowing how to deal with NE TLIST will make life easier (since we can utalize pre-made programs uploade d on internet by nice people)

So guys, any ideas ? Please do let me know step by step on how to make it w ork and i will be very thankful to you peeps for helping me getting my proj ect done. JazakumAllah and thank you very much !

Reply to
111619124
Loading thread data ...

( clipped )

Open the ASC file with LTSpice and click the run button. You'll get a scope window and you can use the mouse to position the scope probe.

For more instructions, Google 'ltspice tutorial'.

--

-TV
Reply to
Tauno Voipio

[snip]

On the Simulation Tools & Macros Page of my website...

... just about every help & tutorial I've been able to locate regarding LTspice. ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| San Tan Valley, 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 love to cook with wine.     Sometimes I even put it in the food.
Reply to
Jim Thompson

Hey, that's my quantizer! I answered your question in another old thread; can you see that?

John

--

John Larkin         Highland Technology, Inc 
lunatic fringe electronics 

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

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.