Decoupling caps are typically 0.1uF ceramic caps place close to the poser supply pins of the logic IC parts. When the pins change states from 1 to 0 and back, the ICs draw very short spikes of current. The spikes are only a few picoSeconds long so there is very little energy in them, but they can cause glitches that make logic circuits misbehave. The decoupling caps prevent these little current spikes from affecting Vcc but providing local power storage.
Ideally you would have one cap per IC. But if you have a good PCB layout with a ground plane and low-z vcc traces, you can often get by with one cap per 3 or 4 ICs.
I'm not sure what you mean about replacing the 138 decoders with a decade counter. The two functions are not directly compatible.
Ideally you would have one cap per IC. But if you have a good PCB layout with a ground plane and low-z vcc traces, you can often get by with one cap per 3 or 4 ICs.
I'm not sure what you mean about replacing the 138 decoders with a decade counter. The two functions are not directly compatible.