Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

CD4059A Divide by N Chip HELP

Status
Not open for further replies.

Crazy Inventor

New Member
Hello to all
If any one is familiar with the CD4059A Divide by N chip (programable counter)
i would very much appreciate your help as i don't understand the manufactures data sheets, i need to divide by 1000.
If any one could help with actual pin connections to derive at this factor it would be fantastic as i have come to a halt with my latest project.
 
Also you can use a CD4040 with the outputs Q9, Q8, Q7, Q6, Q5 and Q3. All these outputs you can input them in a AND logic port. But, in this case you need to use 2 chips, on for the CD4040 and other with the logic ports.
In other words, with CD4040 you can divide a clock for any number up to 4096, but using AND ports after the 4040.

Good luck!
 
boncker said:
Also you can use a CD4040
A CD4040 is a ripple counter. Its outputs do not occur at the same time like a syncronous counter. Therefore when gated together the output of the gate has many glitches.
 
you can use a ripple counter if you are careful and compute the worst case stabilization time for the pattern you wish to use. for 1000, look at it as binary - 1111101000.

For example, the 74HC4040 at 4.5V has an interstage propagation max of 31 nS so worst case for 10 bits is 310nS. It turns out, though, for that bit pattern, the stabilization time is for only 4 bits or 124 nS. If your clock period is more than 248 nS (4 mhz or lower) then you can take the output value on the falling edge of the clock with no glitches. assuming a square wave clock. You do need to factor in reset propagation.

if you use a real CD4040, then the numbers change but unless you need >5V operation, I'd stick with the HC series.

of course, an 8 pin PIC could do this.
 
Last edited:
If you need a clock and not worried about it being exact use an inverter with a resistor across it and a cap. on the input to ground. The time is CxR and the freq. is 1/CR. If it's 6 in a chip connect them in series or parallel to the output of the oscillator if you require more power.
 
oldtimer said:
If you need a clock and not worried about it being exact use an inverter with a resistor across it and a cap. on the input to ground. The time is CxR and the freq. is 1/CR. If it's 6 in a chip connect them in series or parallel to the output of the oscillator if you require more power.
It better be Cmos and it better be Schmitt-triggers. An ordinary inverter won't oscillate with just a resistor and capacitor. A Cmos Scmitt-trigger oscillator makes a pretty good VCO when you change its supply voltage.
 
what frequency are you trying to divide, at VHF+ you will probably need a more specialised IC divider.
 
I ever used one several years ago before I started with µP :)
That project (fuel consumption of oil burner) is also with µP now :)
If you can wait until tomorrow I will post more information tomorow...
 
Cd4059a Help

Paul Obrien said:
what frequency are you trying to divide, at VHF+ you will probably need a more specialised IC divider.

Hello Paul Thank you for your help The frequency is variable 15khz to 20khz
I have been trying to display my circuit but have not worked how to put it on yet.
 
mcs51mc said:
I ever used one several years ago before I started with µP :)
That project (fuel consumption of oil burner) is also with µP now :)
If you can wait until tomorrow I will post more information tomorow...


Yes i can wait that would be great
Thank you.
 
audioguru said:
It better be Cmos and it better be Schmitt-triggers. An ordinary inverter won't oscillate with just a resistor and capacitor. A Cmos Scmitt-trigger oscillator makes a pretty good VCO when you change its supply voltage.


Try using a 4011 nand gate,I've done it many a time,I've numerous devices I've built over the years using these. If you don't want a 50/50 pulse stick a diode in series with another resistor across the other resistor and the ratio of the two will give you the ratio of the pulses. The polarity of the diode determines the period between high and low.

With a nand gate you can have two running at the same time by using both inputs instead of connecting them together.
 
oldtimer said:
Try using a 4011 nand gate.
Nope. An ordinary Cmos inverter or gate won't ocillate with a single resistor and capacitor. You must have used a 4093 Schmitt-trigger Nand gate.
 

Attachments

  • Cmos Schmitt oscillator.PNG
    Cmos Schmitt oscillator.PNG
    19.2 KB · Views: 473
Since you ask...

At power up you have to follow next procedure to setup a certain counting mode and divider into the 4059.

1) With no power to the circuit set the 16 jam inputs J1 to J16 at a correct level depending on your divider.
1a) Let say you have a divider of 5070 and want to use the divide by 4 mode.
1b) Calculate the divider to set into the counter: 5070 / 4 = 1267 remainder 2
1c) Jumper setting:
J1: remainder "1" = 0 remainder = 2
J2: remainder "2" = 1
J3: divider "1" * 10E3 = 1 thousands of divider = 1
J4: divider "2" * 10E3 = 0
J5: divider "1" * 10E0 = 1 units of divider = 7
J6: divider "2" * 10E0 = 1
J7: divider "4" * 10E0 = 1
J8: divider "8" * 10E0 = 1
J9: divider "1" * 10E1 = 0 tens of divider = 6
J10: divider "2" * 10E1 = 1
J11: divider "4" * 10E1 = 1
J12: divider "8" * 10E1 = 0
J13: divider "1" * 10E2 = 0 hundreds of divider = 2
J14: divider "2" * 10E2 = 1
J15: divider "4" * 10E2 = 0
J16: divider "8" * 10E2 = 0

2) Set all inputs Ka, Kb and Kc to a low level. Enable the "Master Preset Mode"

3) Apply power to the circuit

4) Apply at least three clock pulses on CP input

5) Set inputs Ka, Kb and Kc at a correct level according to the used "divide by" mode. For divide by 4 mode Ka low, Kb and Kc high

That sequence is implemented by the gates in the "Logic.jpg" file.
Set the 16 jumpers with no power to the circuit, then apply power.
Wire i is low for at least 3 clock pulses from wire g. After that it has a high level setting the counter in de divide by 4 mode.

IC4 makes 50Hz pulses from 24Vac after transformer. That is my counting frequency.
During normal operation I need to count only when there is 24Vdc across D3 but since I need at least 3 pulses to setup the divider I made an OR gate with D4 and D5. Set up via D5, normal operation via D4.

Need more? Ask...
 

Attachments

  • Divider-4059.jpg
    Divider-4059.jpg
    127.4 KB · Views: 980
  • Logic.jpg
    Logic.jpg
    141.1 KB · Views: 569
  • Part-List.jpg
    Part-List.jpg
    92.4 KB · Views: 562
Last edited:
Additional help with cd4059a circuit

At power up you have to follow next procedure to setup a certain counting mode and divider into the 4059...

Need more? Ask...

I'm assuming that "Crazy Inventor" is trying to create the circuit for a hydrogen generator coil circuit. I am trying to make this circuit as well. the manual i have has been very descriptive to this point. it simply states that i should connect pin 3 of my 555 timer in my electrode circuit to pin 2 of the 555 timer in my coil circuit by means of a CD4059A divide by n chip.
there is no schematic in the manual showing how to set this chip up at all. it says it needs to be set for "15 kHz - 20 kHz/1000"
i've found the datasheet on this chip, but am still none the wiser as to how to set it up in a circuit.
It looks as though you have already drawn this circuit out, but i'm not sure if you drew it with the specific settings i need. i'm not sure what Vdd or Vss (pins 24 and 12 respectively) stand for.
My electronics expertise branches only from a "basic electronics" class in high school (1993-1994) I can read a schematic- for the most part anyway :eek: - and assemble the circuit, but my ability to design... well there is very little of that going on :(
i understand what the circuit is supposed to do, but i don't know how to set up this chip.

I looked at the jpg on your response and have a good idea about how to assemble it, but i'm not 100% sure about it. which jumpers should i close?

Would you mind helping me with this? :confused:
* i'm using a 12-15 Volt supply.
* the frequency going in will be 15 - 20kHz
* The output frequency needs to be 15 - 20Hz (Divide by 1000)
* i already have the CD4059a chip

Thank you for your time :)
 
The OR gate made with diodes that feed an input of the CD4093 won't work without a pull-down resistor.
 

Attachments

  • CD4093 circuit.PNG
    CD4093 circuit.PNG
    13.8 KB · Views: 478
... which jumpers should i close?

Divide by 1000

1) With no power to the circuit set the 16 jam inputs J1 to J16 at a correct level depending on your divider.
1a) Let say you have a divider of 1000 and want to use the divide by 4 mode.
1b) Calculate the divider to set into the counter: 1000 / 4 = 250 remainder 0
1c) Jumper setting:
J1: remainder "1" = 0 remainder = 0
J2: remainder "2" = 0
J3: divider "1" * 10E3 = 0 thousands of divider = 0
J4: divider "2" * 10E3 = 0
J5: divider "1" * 10E0 = 0 units of divider = 0
J6: divider "2" * 10E0 = 0
J7: divider "4" * 10E0 = 0
J8: divider "8" * 10E0 = 0
J9: divider "1" * 10E1 = 1 tens of divider = 5
J10: divider "2" * 10E1 = 0
J11: divider "4" * 10E1 = 1
J12: divider "8" * 10E1 = 0
J13: divider "1" * 10E2 = 0 hundreds of divider = 2
J14: divider "2" * 10E2 = 1
J15: divider "4" * 10E2 = 0
J16: divider "8" * 10E2 = 0

I think that should be ok.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top