Hi Eric,
Got a similar problem with this code as well.Now S0 of the 2nd 4514 flashes once after the full sequence is complete and then the sequence begins again. I would have used RB0,1,2,3 but my original design had an inverter between the 2 4514's so I could select between them with one pin. Unfortunately, I forgot that when all inputs are low, S0 is high. So I removed the inverter and because I've already designed the layout and just waiting for the finished board, I opted to leave the connections on port b the same and use port a for enabling. Anyway, I figured out whats wrong. After the sequence is complete, Port B still has the last value loaded in it, so when I switch back from the 2nd 4514 to the 1st, that output is immediately high. I'll have to find a way around this. What I actually want is to have the outputs switch on in a specific sequence, not necessarily 'chase'. I just did this to test.
Txs for the help