That would be interesting if that works. But I can't imagine it causing an output to go high in the middle of a shiftout command.

I've spent several hours now pouring through your code, and I can't see anything that would cause the described problem.

So I have one more question for you. Are you using a bootloader to program the chip, or a regular programmer?<br><br>