Wow, blast from the past - I haven't seen RTL logic circuits for a long time.
1.) are you using the original RTL parts?
2.) how wide is the reset pulse?
It looks like the circuit is an asynchronous bi-quinary counter. One thing to look into is that state transitions ripple thru the counter and if the reset pulse isn't wide enough, a slow flip-flop may generate a transition after the reset which clocks the following stages.
Also, I see that the the Q/ output of the 4th stage of the counter is wire-or'ed with a gate. I don't have a data sheet for the MC791 but if memory serves it is buffered, ie. an open collector output. I believe this prevents its state from being influenced by any load but makes the MC791 slower. It also means that pullup resistors are mandatory on its outputs if they are to be active.
Don Lancaster wrote the "RTL cookbook" which is available at: www.tinaja.com%2Febooks%2Frtlcb.pdf&usg=AOvVaw2f0tqu9bClUeeO5aoEhgmf
Best o' luck
Yes, it's all original, but it's Utilogic as I said. So it's not an MC791, it's an SP380A. I didn't build it, I got it from an estate sale or something (don't quite remember).
I'm driving it with an RPi through optocouplers. It has internal pullups, and the inputs are inverted (ground is 1).
The reset pulses are normally 0.1mS (same as the count pulses). It's got to be a timing issue or something, so I'll experiment with different times. Also, I'm using sleep() so it might be a problem with the Pi not firing the reset properly for some reason.
EDIT: Yep, a reset pulse of 0.1mS has no effect on the number 1255 (or 3255 with 1255 shown on the tubes). However it works when other numbers, even higher ones, are shown on the display. It just locks up with the number 1255, and apparently 1256 as well, but not 1254 or 1257 or any other numbers ending in 5 or 6.
