
Originally Posted by
George
I think many of the issues come from the Interrupt routine but asm and interrupts are well over my head. Is there any reason Byte Butcher used interrupts rather than just checking pins periodically?
He used interrupts because that is the way to do it. You need to count the number of pulses in the signal for a fixed amount of time and determine if the switch has been touched or not. This app note might help you to understand the basics of CSM
http://ww1.microchip.com/downloads/e...tes/01101a.pdf
Robert
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks