Holy poopenstuff!
My logic took about 20us, yours took about 2.4us!
:O
I knew there was room for improvement with bit manipulation, but I didn't expect nearly a ten-fold acceleration.
EDIT: Ooops, just noticed you're jumping out with turning off LED, adjusting now.
3.9 to 4.9us, depending on where it jumps out of logic.
Still, that's 4-5 times faster than my IFs.
EDIT SOME MORE: I put my LCDOUTs back in to check on Enc1_Counter, and something funky is going on. It's looping like crazy, gonna check to see if I can figure it out.
Bookmarks