good topic to which I recommend, I'll consider. It crossed my mind the idea of implementing a shift registers, but as I take all the 16F877, and reduce the hardware, I happened to see a way to control all software ports.
I understand that tastes often bring difficulties, lol, but in this case, is also a question of space.
regards friend