I constructed a counter circuit with: 555(astable-pulse generator), cd40192-decade counter, cd4511(bcd/7-segment driver) and 1 section of a double 7-segment LED display. The problem is that the counter sometimes sits down at zero and refuse to count up and atimes it would randomly display figures that does not correspond with the original count (i.e it displays: 7, 2, 5, b and inverted b).
I used a separate LED to monitor the pulse from the 555.
cd4026
cd4033
cd40162
are all difficult to source from the local market in my resident town.
Get a 4-bit binary counter, and get a common BCD to 7-segment display decoder. Look for chips ending in 47, or 247 for the decoders.
Connect the address lines of the decoder to the correct address lines of the binary counter.
Now hook up the output of the 4th bit to either an inverter or to the RESET pin depending on whether the RESET requires an inverted signal or not. When everything works, you will see numbers 0 to 7 in order, and the process repeats.
You cannot leave any unused inputs of CMOS floating. For the 192 load and clock down high, data inputs high or low
The problem is that the counter sometimes sits down at zero and refuse to count up and atimes it would randomly display figures that does not correspond with the original count (i.e it displays: 7, 2, 5, b and inverted b).
The problem is that the counter sometimes sits down at zero and refuse to count up and atimes it would randomly display figures that does not correspond with the original count (i.e it displays: 7, 2, 5, b and inverted b).
Did you connect a bypass capacitor across the supply (ie. from Vdd to Vss) close to the counter IC?
If not, this will explain the random results. When CMOS ICs change state they cause a current pulse in the supply line. If there is no bypass caps to smooth this, it can cause odd behaviour simlar to what you have described.
A 100 nF ceramic capacitor across each counter IC should be sufficient.
Also, as FRIED said, unused inputs must be connected to Vss or Vdd.
The spike is very high according to the following website.
Quote:
====
When the output of the 555 makes a transition, there is a large current spike in the supply current, up to 300 or 400 mA for a short period.
The reason why I said that is because the 7 segment decoder takes 4 bits as input and a 4 bit binary counter can only output 4 bits. It will still show the weird characters, but at least the numbers are in order, and all the OP has to do is grab the code for the last digit (1001 or 9) and force a reset on the counter when the number is reached. a 2-input AND gate will do the trick.
... and all the OP has to do is grab the code for the last digit (1001 or 9) and force a reset on the counter when the number is reached. a 2-input AND gate will do the trick.
The reason why I said that is because the 7 segment decoder takes 4 bits as input and a 4 bit binary counter can only output 4 bits. It will still show the weird characters, but at least the numbers are in order, and all the OP has to do is grab the code for the last digit (1001 or 9) and force a reset on the counter when the number is reached. a 2-input AND gate will do the trick.
I'm puzzled. Why use a binary counter when a decade one would do without the need for an AND gate? Incidentally, the AND gate would have to detect 1010 not 1001 if you want it to reset at the tenth pulse. ie. count from 0 to 9.
Well I guess Decade counter also outputs only 4 bits
Dont you guys think this topic has gone off the course
The person who posted the topic has not replied even once so nobody exactly knows what his problem is/was?
But every body here is assuming different fault conditions which I think will be good for a newbee to read
Dont you guys think this topic has gone off the course
The person who posted the topic has not replied even once so nobody exactly knows what his problem is/was?
But every body here is assuming different fault conditions which I think will be good for a newbee to read
The counter circuit is working fine now. I used 7490 and 7448 and connect the pins as you have advised. the problem I had b/4 was that I did not connect input-B to output-A on the counter and I left some input pins unconnected.
Thanks everybody! all the suggestions were helpful.
The counter circuit is working fine now. I used 7490 and 7448 and connect the pins as you have advised. the problem I had b/4 was that I did not connect input-B to output-A on the counter and I left some input pins unconnected.
Thanks everybody! all the suggestions were helpful.
The counter circuit is working fine now. I used 7490 and 7448 and connect the pins as you have advised. the problem I had b/4 was that I did not connect input-B to output-A on the counter and I left some input pins unconnected.
Thanks everybody! all the suggestions were helpful.
Summary:
Counters work best when they are hooked-up properly.
Cmos logic works best when all its inputs are terminated.
The ordinary old 555 "bleeps" a huge supply current spike when its powerful output switches. :lol: