I am manually sequencing through the outputs of cascaded 4017's using the basic design found at the bottom of page 5 of http://www.ti.com/lit/ds/symlink/cd4017b.pdf , including the reset, making this a run-of-the-mill divide by n circuit. The catch is, n needs to be selectable from a set of values.
What is the best way to select n? My idea is to use another 4017 (or two) to cycle through the options. I'm not sure from there what the best way would be to then trigger the reset at the appropriate step. I could use AND gates between each of my selectors and their corresponding output pins in the array, and then OR these together to the reset of the first chip in the array.
That would get the job done, but it seems rather clumsy to me. What if I had 20 different values for n? That is a lot of AND gates and a huge OR.
Is there a better/more elegant way of doing this? I'd like to do it in logic if possible, so no rotary switches, and ideally no microcontroller.
What is the best way to select n? My idea is to use another 4017 (or two) to cycle through the options. I'm not sure from there what the best way would be to then trigger the reset at the appropriate step. I could use AND gates between each of my selectors and their corresponding output pins in the array, and then OR these together to the reset of the first chip in the array.
That would get the job done, but it seems rather clumsy to me. What if I had 20 different values for n? That is a lot of AND gates and a huge OR.
Is there a better/more elegant way of doing this? I'd like to do it in logic if possible, so no rotary switches, and ideally no microcontroller.