CD4060 model


 

I am new to LTspice, am using LTspiceXVII on Linux via Wine, works well but I have 2 problems. 1 - Ctrl+M does not give a new line on .op. 2 - I downloaded a model for CD4060 but cannot get it to work always getting an error "could not open CD4060Bg". I have also tried copying the 4060model to the circuit. What am I doing wrong? - other text file models have worked . my4066.asc uploaded

DaveA


 

1. Ctrl-Enter does what you want.

2. You failed to upload your CD4060 symbol, so we can't run your simulation. "Could not open CD4060Bg" suggests LTspice couldn't find the file - probably because it doesn't exist. Are you sure it isn't named "CD4060Bg.lib" or "CD4060Bg.sub", or even "CD4060Bg.txt"? Check in Windows Explorer for the correct name. (Hint: make sure Explorer is set up to show file extensions.)

Regards,
Tony

On 21/01/2020 16:38, Dave wrote:

I am new to LTspice, am using LTspiceXVII on Linux via Wine, works well but I have 2 problems. 1 - Ctrl+M does not give a new line on .op. 2 - I downloaded a model for CD4060 but cannot get it to work always getting an error "could not open CD4060Bg". I have also tried copying the 4060model to the circuit. What am I doing wrong? - other text file models have worked . my4066.asc uploaded


 

I have uploaded CD4060Bg.txt which I have been trying also CD4060.asy. thanks for tip on .op

Dave

On 2020/01/21 18:37, Tony Casey wrote:

1. Ctrl-Enter does what you want.

2. You failed to upload your CD4060 symbol, so we can't run your simulation. "Could not open CD4060Bg" suggests LTspice couldn't find the file - probably because it doesn't exist. Are you sure it isn't named "CD4060Bg.lib" or "CD4060Bg.sub", or even "CD4060Bg.txt"? Check in Windows Explorer for the correct name. (Hint: make sure Explorer is set up to show file extensions.)

Regards,
Tony

On 21/01/2020 16:38, Dave wrote:
I am new to LTspice, am using LTspiceXVII on Linux via Wine, works well but I have 2 problems. 1 - Ctrl+M does not give a new line on .op. 2 - I downloaded a model for CD4060 but cannot get it to work always getting an error "could not open CD4060Bg". I have also tried copying the 4060model to the circuit. What am I doing wrong? - other text file models have worked . my4066.asc uploaded


 

Hello Frank,

Alternate solver gives me the same error "could not open library file CD4060Bg"

Dave

On 2020/01/21 18:17, Frank Muenchow wrote:

Hello Dave,

the problem can be solved by switching to alternate solver in SPICE options.

You should not upload *.raw and other useless files generated during simulation, the *.asc and possibly the *.plt file are all you need. You can by the way save much disk space on your computer by selecting automatic deletion of raw files in LTspice Control panel/Operation.

Frank


 

Sorry, I erroneously replied in a wrong thread and deleted the message later. Simply ignore it and refer to the other suggestions. 


 

The CD4060Bg model is incomplete. There are missing internal sub-circuits CD40_IN_1, CD40_IN_S_1, and CD40_OUT_1X. I presume these are I/P and O/P buffers, but without them the model is useless.

The note in the CD4060Bg model file suggests it was derived from the CD4020B model, which is included in Helmut's CD4000 model library. I checked CD4000.lib and indeed those sub-circuits are included there.

I suspect the author - Geoff Western (aka Alec_t) - of the CD4060Bg file also had a .lib CD4000.lib directive in his test circuit for the CD4060Bg, so those sub-circuits were silently included.

I have copy-pasted the I/P and O/P buffers block of code from CD4000.lib into the CD4060Bg model file and it now appears to function, although I haven't checked if it works correctly. I've uploaded it as CD4060Bg.sub. I don't guarantee it is correct.

The best solution is to ask Helmut to include this device in an updated version of his CD4000 library. However, if someone asked me to do this, I'd want to carefully validate it first to make sure the performance was at least similar to the datasheet. This is not a trivial exercise.

Regards,
Tony

On 21/01/2020 18:06, Dave wrote:

I have uploaded CD4060Bg.txt which I have been trying also CD4060.asy. thanks for tip on .op


 

On Tue, Jan 21, 2020 at 08:06 AM, Dave wrote:
Ctrl+M does not give a new line on .op. 2
Helio Dave,

Have you tried CTRL-RETURN or CTR-ALT-RETURN?

Helmut


 

On Tue, Jan 21, 2020 at 08:06 AM, Dave wrote:
could not open CD4060Bg
Hello Dave,

You haven't used the full filename. You have only used ".lib CD4060bg".
Your example has immediately worked after I used the complete filename. See below.

.lib CD4060Bg.sub

Helmut


 

Hi Dave,
Can you try LTSpice on Windows OS? Just to check.
I am using it on Windows 10 and works perfectly fine.
CTRL M works when writing SPICE Directives and it does work with 3rd party Spice Models.
Good Luck,
Raymond


On Tue, Jan 21, 2020 at 9:07 AM Dave <davega@...> wrote:

I am new to LTspice, am using LTspiceXVII on Linux via Wine, works well but I have 2 problems. 1 - Ctrl+M does not give a new line on .op. 2 - I downloaded a model for CD4060 but cannot get it to work always getting an error "could not open CD4060Bg". I have also tried copying the 4060model to the circuit. What am I doing wrong? - other text file models have worked . my4066.asc uploaded

DaveA


 

Hi Tony

Many thanks, I have downloaded your file and it works fine for me.

Regards

Dave

On 2020/01/21 21:04, Tony Casey wrote:

The CD4060Bg model is incomplete. There are missing internal sub-circuits CD40_IN_1, CD40_IN_S_1, and CD40_OUT_1X. I presume these are I/P and O/P buffers, but without them the model is useless.

The note in the CD4060Bg model file suggests it was derived from the CD4020B model, which is included in Helmut's CD4000 model library. I checked CD4000.lib and indeed those sub-circuits are included there.

I suspect the author - Geoff Western (aka Alec_t) - of the CD4060Bg file also had a .lib CD4000.lib directive in his test circuit for the CD4060Bg, so those sub-circuits were silently included.

I have copy-pasted the I/P and O/P buffers block of code from CD4000.lib into the CD4060Bg model file and it now appears to function, although I haven't checked if it works correctly. I've uploaded it as CD4060Bg.sub. I don't guarantee it is correct.

The best solution is to ask Helmut to include this device in an updated version of his CD4000 library. However, if someone asked me to do this, I'd want to carefully validate it first to make sure the performance was at least similar to the datasheet. This is not a trivial exercise.

Regards,
Tony

On 21/01/2020 18:06, Dave wrote:
I have uploaded CD4060Bg.txt which I have been trying also CD4060.asy. thanks for tip on .op


 

Hello Helmut,

    That did not work, same error, but I have downloaded the file which Tony provided, also CD4060Bg.sub, and replaced mine with it. It is working fine.

Many thanks to you all for the help I have received

Regards

Dave

On 2020/01/21 22:24, Helmut Sennewald via Groups.Io wrote:

On Tue, Jan 21, 2020 at 08:06 AM, Dave wrote:
could not open CD4060Bg
Hello Dave,

You haven't used the full filename. You have only used ".lib CD4060bg".
Your example has immediately worked after I used the complete filename. See below.

.lib CD4060Bg.sub

Helmut


 

Hi Raymond, Yes Ctrl+M used to work when I had windows, but I have been told to try Ctrl+Enter and that works

Regards

Dave

On 2020/01/22 07:03, Raymond Koosha wrote:

Hi Dave,
Can you try LTSpice on Windows OS? Just to check.
I am using it on Windows 10 and works perfectly fine.
CTRL M works when writing SPICE Directives and it does work with 3rd party Spice Models.
Good Luck,
Raymond

On Tue, Jan 21, 2020 at 9:07 AM Dave <davega@...> wrote:

I am new to LTspice, am using LTspiceXVII on Linux via Wine, works well but I have 2 problems. 1 - Ctrl+M does not give a new line on .op. 2 - I downloaded a model for CD4060 but cannot get it to work always getting an error "could not open CD4060Bg". I have also tried copying the 4060model to the circuit. What am I doing wrong? - other text file models have worked . my4066.asc uploaded

DaveA


 

Hi Tony ,
 
I also want to download the CD4060 ltspice working subcircuit and Model file .Can you let me know how can i download the Library .


 

On 25/11/2024 07:47, vipin.mishra via groups.io wrote:
I also want to download the CD4060 ltspice working subcircuit and Model file .Can you let me know how can i download the Library .
The libraries you want are:

CD4000.lib - Model library, version 0.66
CD4000.zip - Symbol library, version 1.07

As an alternative to CD4000.lib, there is also CD4000_v.lib, which is a version in which the output logic level tracks the voltage on the node VCC. Therefore, you must have a named VCC net, or it won't work. The CD4000.lib doesn't require this.

Please also navigate to Files > z_yahoo > Lib > Digital CD4000, where you can find these files, but also a number of examples and instructions on how to use the CD4000 libraries.

Don't just download CD4000.lib and attempt to make your own symbol. You will probably have all kinds of issues if you try.

--
Regards,
Tony


 
Змінено

On Mon, Nov 25, 2024 at 04:02 AM, Tony Casey wrote:
As an alternative to CD4000.lib, there is also CD4000_v.lib, which is a version in which the output logic level tracks the voltage on the node VCC. Therefore, you must have a named VCC net, or it won't work. The CD4000.lib doesn't require this.
Actually, both CD4000.lib and CD4000_v.lib require a net named VCC (oops!) VDD on your schematic.  They just handle it differently.
 
If I remember correctly, the CD4060 model is not included in either library file.  It is elsewhere.
 
You can find it here:
    Files > z_yahoo > Digital CD4000 > Other CD4xxx device models > CD3050 > CD4060BTest.zip
and a newer version here:
    Files > z_groups.io > Files-sorted-by-message-number > msg_120671 > CD4060BTest.zip
and another here:
    Files > z_groups.io > Files-sorted-by-message-number > msg_117656
 
I believe it is the bottom one of these three, that is discussed in this message thread.  Start there.
 
Andy
 
 
 


 

On 25/11/2024 13:13, Andy I via groups.io wrote:
On Mon, Nov 25, 2024 at 04:02 AM, Tony Casey wrote:
As an alternative to CD4000.lib, there is also CD4000_v.lib, which is a version in which the output logic level tracks the voltage on the node VCC. Therefore, you must have a named VCC net, or it won't work. The CD4000.lib doesn't require this.
Actually, both CD4000.lib and CD4000_v.lib require a net named VCC on your schematic.  They just handle it differently.
That's not correct. No net named VCC or VDD is required. Please see CD4071_Example.zip. Only for the CD4000_v.lib is the VDD net name required.

--
Regards,
Tony


 

Please see CD4071_Example.zip.
It's missing the symbol.
 
Only for the CD4000_v.lib is the VDD net name required.
The interesting thing is that both models call the net VDD.
 
Andy
 


 

On 25/11/2024 13:13, Andy I via groups.io wrote:
If I remember correctly, the CD4060 model is not included in either library file.  It is elsewhere.
My mistake. I saw CD4050 in the device list and mis-read it. Note to self: wear correct glasses.

--
Regards,
Tony


 

On 25/11/2024 14:33, Andy I via groups.io wrote:
Please see CD4071_Example.zip.
It's missing the symbol.
CD4071_Example.zip updated.

--
Regards,
Tony