
Originally Posted by
cncmachineguy
Now its time to step up the function here. I want to move the port passing to the int. But I am having a brain fart about the timming. The pulses last for 10uS high and 10uS low. I am thinking a 5uS interupt will ensure I NEVER miss a pulse, but my mind is cloudy on this. My int will be ASM, so no PBP context saving for entry and exit. I want to do this so I can do more stuff and never worry about missing a step.
You could do an interrupt on change of state for portA,
RAC_INT -- RA Port Change
Then have your interrupt routine look to see which bit has changed state.
</pre>
http://www.scalerobotics.com
Bookmarks