I built a hex to 7-segment decoder using AND and OR gates -- well, actually I didn't finish it, but the 'a' segment works perfectly. Then I skipped ahead and built it (not hex though) using a 74LS47 (actually used a 74LS247 so I could get the tails on the 6's and 9's). Then I added a counter using D-type flip flops (74LS74).
Now, in reading various sources, trying to figure out how to get it to count from 0-9 only, skipping the garbage bits from 0b1010-0b1111 -- I came across this informative article: https://www.electronics-tutorials.ws/counter/count_2.html
They are using J-K flip flops (and I may have missed a page where they describe a T-type or Toggle flip flop). So I guess the difference between theirs and mine, is whether it switches on the rising edge or falling edge of the clock pulse.
Anyway, I wired mine like theirs, using the NAND gate on Q3 and Q0 (0b1001, 9), but then mine is a divide by 9 counter (resets from 8 to 0), instead of a divide by 10 counter (reset from 9 to 0)
My schematic (attached ) shows attaching the NAND gate to Q3 and Q0, but my breadboard (which you'll probably never be able to discern) is actually wired to Q3 and Q1 (0b1010, 10), in order to get it to work properly.
Why is that? Is it the rising/falling edge difference? Do I need to go back and re-read about the T-type flip flop? I'm not sure I'm fully understanding the difference. My clock module (not shown), has a manual pulse setting, and when I press and hold the button, the number increments, and nothing additional happens when I let go (so I assume its being triggered on the rising edge).
Now, in reading various sources, trying to figure out how to get it to count from 0-9 only, skipping the garbage bits from 0b1010-0b1111 -- I came across this informative article: https://www.electronics-tutorials.ws/counter/count_2.html
They are using J-K flip flops (and I may have missed a page where they describe a T-type or Toggle flip flop). So I guess the difference between theirs and mine, is whether it switches on the rising edge or falling edge of the clock pulse.
Anyway, I wired mine like theirs, using the NAND gate on Q3 and Q0 (0b1001, 9), but then mine is a divide by 9 counter (resets from 8 to 0), instead of a divide by 10 counter (reset from 9 to 0)
My schematic (attached ) shows attaching the NAND gate to Q3 and Q0, but my breadboard (which you'll probably never be able to discern) is actually wired to Q3 and Q1 (0b1010, 10), in order to get it to work properly.
Why is that? Is it the rising/falling edge difference? Do I need to go back and re-read about the T-type flip flop? I'm not sure I'm fully understanding the difference. My clock module (not shown), has a manual pulse setting, and when I press and hold the button, the number increments, and nothing additional happens when I let go (so I assume its being triggered on the rising edge).