LTSpice for CD4024

Odedrin

Joined Dec 2, 2020
5
Hi, I saw this thread when searching for the CD4024 counter. Great library!
I'm quite new to LTspice (Still a student).
I'm having trouble using the components as my LTSpice can't find the CDlogic.sub file (I added .include CDlogic.sub).
Any ideas where I can find this file or how I can get the simulation running without it?
Thanks
 

ericgibbs

Joined Jan 29, 2010
21,390
hi Ode,
Welcome to AAC,
Unzip the zip file in post #5
You should see CDlogic & CD4000.lib

Place the CDlogic in the 'sym' folder
& the
CD4000.lib in the'lib' folder.

When you create a asy file, type in the circuit .inc cd4000.lib
Use F2 to show the CD4000 contents
OK.?
E


EDIT:
Added sample asc file

AAA 835 16.14.gif
 

Attachments

Odedrin

Joined Dec 2, 2020
5
Thanks for the quick reply!
I forgot to mention, I'm using a mac with macOS (don't know if that matters).
I'm not sure I understand. When I open a new schematic it generates a .asc file, right? I added the .include cd4000.lib and I get the following error:1606927456203.png
I downloaded your example file and when I ran it gave me the following error.
1606927403773.png
I feel like there's something I'm missing, when I go to the component menu, I can see all of the CDlogic components.
Is it possible I have some LTspice files missing?
 

ericgibbs

Joined Jan 29, 2010
21,390
hi,
I dont' use MAC, post your asc file, I will run it.
E

Update:
Have you got the 74HCT lib installed.?
If not delete those two 151 symbols and try the 4024 on its own.
 
Last edited:

Odedrin

Joined Dec 2, 2020
5
I tried running your asc file without the 73HCT components (even though I have it installed), gave me the same error as in the asc file I created..
This is my asc file.
Thanks!
 

Attachments

eetech00

Joined Jun 8, 2013
4,704
hi,
Your Exp asc file runs OK in Win10. I know we have had problems with MAC and LTS.
I will Tag other LTS users, they may have a fix.

E

@eetech00
@Bordodynov
@Alec_t
If you have installed the 74HCT.lib file, the error indicates that LTspice cannot find the 74HCT.lib file.
To troubleshoot, try placing the 74HCT.lib file in the same folder as the schematic file (.asc file). That should work because LTspice will automatically look in the schematic folder.
 

Odedrin

Joined Dec 2, 2020
5
Hi @eetech00 ,
I moved the .lib file to the same folder as my .asc file but still no luck.
I'm not sure if the problem is with the .lib file after all. I keep getting the following error message:
'u1:in1:b1: Unknown circuit node: "vdd" requested in behavioral source.'
Does this maybe have something to do with the attributes in the netlist line or something?

EDIT: Ok, I renamed one of the nets "VDD" and all of a sudden the simulation started working. The counter won't count, but at least it's running :)

Thanks,
Oded
 
Last edited:

eetech00

Joined Jun 8, 2013
4,704
Hi @eetech00 ,
I moved the .lib file to the same folder as my .asc file but still no luck.
I'm not sure if the problem is with the .lib file after all. I keep getting the following error message:
'u1:in1:b1: Unknown circuit node: "vdd" requested in behavioral source.'
Does this maybe have something to do with the attributes in the netlist line or something?

EDIT: Ok, I renamed one of the nets "VDD" and all of a sudden the simulation started working. The counter won't count, but at least it's running :)

Thanks,
Oded
Yes. When using the 74HCT.lib or CD4000.lib library parts, they expect a power supply net labeled "VDD".
 

anilberg

Joined Jul 7, 2020
1
Hi @eetech00 ,
I moved the .lib file to the same folder as my .asc file but still no luck.
I'm not sure if the problem is with the .lib file after all. I keep getting the following error message:
'u1:in1:b1: Unknown circuit node: "vdd" requested in behavioral source.'
Does this maybe have something to do with the attributes in the netlist line or something?

EDIT: Ok, I renamed one of the nets "VDD" and all of a sudden the simulation started working. The counter won't count, but at least it's running :)

Thanks,
Oded
Hi I am facing with the same problem. Could you please tell me which net did you renamed?

Thanks in advance.
 

Alec_t

Joined Sep 17, 2013
15,101
Although the model doesn't have explicit power pins it needs a power supply voltage source in the schematic. The positive rail of that source needs a label vdd.
 
from LTspice sampling : A_devices have 8 connections. 5 (1-5) inputs, complement out on (6), out on (7) & common on (8), then function specifier, then optional specifications.
;.syntax:.A#...IN1..IN2..IN3..IN4..IN5..-OUT.+OUT.GND..DEVICE...extra specification... UNUSED PINS SHOULD SHUNT TO 8=GND=net0
 
Top