I know that. I want to reset after reach the 60 sec but it got reset at 40 sec without need R input.Your R inputs have no valid logic state.
Do not assume that an input pin with no connection is at logic LOW.
My idea is use 2 ripple counter with 4 bits. When it reach 1010 binary (10 as decimal). It will send a signal to reset the first counter and continue a second counter. Everything works fine until it reaches 40 sec. It got reset to 0 instead continue the counter.hi 123,
Welcome to AAC.
Have you created a truth table for the counting and reset sequence that you could post.?
E
What is driving the reset on the lower group of flip flops? You are showing them floating, which is going to make them very twitchy.I'm doing an alarm clock for my mid-term assignment. But I got a problem in the ripple counter. Somehow, the counter reset after the 39 and became 0 instead continue. This is my circuit.
View attachment 295739
You do not have a valid input voltage on the R inputs.I know that. I want to reset after reach the 60 sec but it got reset at 40 sec without need R input.
While I absolutely agree, I'm guessing that this is only being done in simulation and many logic simulators assume that undriven inputs are at GND (which I personally think is not wise, but they do this in the name of stacking the deck in favor of being able to simulate circuits -- though some do it because they are ultra-simplistic and every node only allows for LO or HI).You do not have a valid input voltage on the R inputs.
Connect the inputs to Vcc or GND, whichever is needed to NOT reset the flip-flops.
TS did not state if the behavior observed was on a simulator or a real circuit.While I absolutely agree, I'm guessing that this is only being done in simulation and many logic simulators assume that undriven inputs are at GND (which I personally think is not wise, but they do this in the name of stacking the deck in favor of being able to simulate circuits -- though some do it because they are ultra-simplistic and every node only allows for LO or HI).
If it is being done in sim-only, the behavior he is seeing is not due to the floating reset inputs, since the simulator almost certainly has no concept of noise on high-impedance nodes. I strongly expect that the problem is set-up/hold time violations.
I explained exactly how the stated result could come about. But let me be even more explicit.TS did not state if the behavior observed was on a simulator or a real circuit.
I am making an assumption that it was on a real circuit. I cannot find a reason for the simulator to give the stated result.
Yes, I know it would be disaster if it goes wrong. But my course only teaches me the basic so I can't use any kind of advanced circuits for assignment.You are using a lot of gated clocks -- that's a recipe for disaster unless you thoroughly vet your design to establish that those clocks are guaranteed to be glitch free over all spec'ed parameters of the devices.
Have you done that?
As for the alarm, what kind of alarm do you need?
by Aaron Carman
by Duane Benson
by Aaron Carman
by Jake Hertz