I am trying to find a TTL Chip that can generate 3 bits number in sequence (8 values). I found the 74160 decade that can count from 0 to 9 ( 0000-1001). and i will be taking this value to a Digital to analog converter DAC. To my understanding, the output value from the TTL chip will increase at each clock cycle. How can i manage to stop that? i want to increment the value at each switch cycle that i hook up. so i want to freeze that count basically.
You can use a NAND gate connected to the counter outputs of the binary value you want the counter to stop. Connect the NAND gate output to the enable counter input.
You can use a NAND gate connected to the counter outputs of the binary value you want the counter to stop. Connect the NAND gate output to the enable counter input.
I am sorry, i don't see how this can work. Example, i want to stop at 0100 , this is the output of the counter. if it goes to the NAND gate it generates a 1 that can go to the enable counter input. so having a 1 or high on the enable counter input means that the counter stops?
i am trying to manage to set the count enable a low everytime it counts 1 and stops. and than it keeps going from where it left. so if it starts at 0, the count enable is low and no increment, i setup the clock enable to high and it increments to 1 and stop and than how to keep going to value 2 without reset?
I'm confused as to what you are trying to do. What is the signal that determines when the counter counts?
If it's just from a mechanical switch, then connect the switch to the counter clock input (with a proper debounce circuit). That way the counter will increment by one for each switch open/close cycle.