How does the carry bit of the 10 second counter ever toggle if you reset it at 6? Shouldn't the combinational reset logic drive the next counter (and reset) and not the carry?
It seems to work fine, but whenever I reset the circuit all the seven-segment displays reset not to 0, but to 1.
How does the carry bit of the 10 second counter ever toggle if you reset it at 6? Shouldn't the combinational reset logic drive the next counter (and reset) and not the carry?
How does the carry bit of the 10 second counter ever toggle if you reset it at 6? Shouldn't the combinational reset logic drive the next counter (and reset) and not the carry?
Please explain exactly how you reset the circuit shown. Two of the three counters have their RESET pin grounded. The third has its RESET driven by the output of the IC6a AND-gate. As shown, the circuit can't be reset.
I can guess what you did, and I can guess what happened as a result, but guessing is a remarkably bad way to debug things.
----------
The carry-out signal falls when the counter reaches 5. It rises when the counter is reset to 0.
Chip datasheet. See Fig. 3:
http://www.ti.com/lit/ds/symlink/cd4026b.pdf
Resetting it just involved turning the power off and on again -
I see nothing in the datasheet that guarantees the counter will come up from power-off in any particular state.
I'm unclear on whether you've actually built the circuit or not, and whether you're talking about actual circuit behavior, or the behavior of a circuit simulator.
All of this is running on the simulator. I know I should set up a proper reset system, but that's sort of low down on my list of things to do and at the moment I'm just reopening the file to cause the circuit to reset.
Not very sophisticated I know, but for the sake of convenience it's what I'm doing.
I see nothing in the datasheet that guarantees the counter will come up from power-off in any particular state.
This.
I'd connect pin 15 (reset) via a small capacitor to +v, and a large-ish resistor to ground. Something like 0.1uF and 100K.
Basically this will pull reset high, then as the capacitor charges, the pin will fall to low. The IC resets on the falling-edge of a signal on 15, so this would reset it, but there would be a delay after power up.
I suspect you're getting some sort of power supply noise/bounce that's triggering everything shortly after switch on. Using a small RC circuit to delay this reset slightly will stabilise the circuit as the power will have settled by that point.
Clearly the counters must be thinking they are interfacing with fortran/Cobol/MATLAB world where arrays start at 1. Translate the gates to C and they should start at "0".
http://en.wikipedia.org/wiki/Zero-based_numbering
Seriously, this is about the level where I would consider getting rid of the individual chips and introducing a small/cheap MCU like a PIC or something similar. In practice it would probably be smaller and cheaper and far easier to extend or adjust.<- The hardware engineer in me is crying on the inside.
B