I have been using the 74LS161 for some tinkering, and then switched to the CD4040 because it had 3 times as many counter stages in the same package size, and I don't need preset for my purpose.
Early on I was intrigued though by how much it is different. A 74LS161 increments on the rising edge of the clock input. Whereas the CD4040 increments on the falling edge of the clock, thus effectively making the clock itself another, the "zero-th" counter stage. This is a nice feature.
However, now I have a problem where the 74LS161 was really good for: the Ripple Carry Output, it's missing with the CD4040. I need something to trigger an S-R-latch, resetting it when the counter overflows. And I do not want to now hook up 12 lines to a 12-input NOR gate cobbled together from three chips that I might need for that. If I could just have that ripple carry output, which is exactly one clock pulse wide. Is there any way I could derive that?
I'm thinking of a falling edge of the last counter stage. How do I make the falling edge trigger an SR latch? Maybe instead of the SR latch I use a single edge triggered D-flip-flop, invert the last counter stage so that have a rising edge with which I can trigger the flip flop while holding D high. Then I could use an asynchronous reset and clear which most of them have, including the 74LS74 that I have on hand.
So is that the way to go or is there any other way of deriving a ripple carry like single pulse from a 4040 counter? Or a general technique to turn a binary counter into a Johnson counter?