Also, with interrupt on-change, you'll want to read the port in your interrupt
handler, then clear the int-on-change flag bit before exiting the int handler.
Also, with interrupt on-change, you'll want to read the port in your interrupt
handler, then clear the int-on-change flag bit before exiting the int handler.
Darryl,
Thank you for that info. I will try it out as soon as i have a chance.
I only wish i knew how to program in assembly. i see that code and all i see is gibberish. basic and C make sense to me but not the high level languages like assembly.
regards
Don't forget about Bruce's suggestion. You'll need that too.
And that's the way it'll stay, until you break down and try it.I only wish i knew how to program in assembly. i see that code and all i see is gibberish.
The hardest part about Assembly Language, is getting past the fear of something you don't already know.
See how the changes work for you, and if there are timing problems, we can set you up with Instant Interrupts, and a couple very small ASM routines.
Once you see how easy it is, you'll slap yourself for not trying it sooner.
<br>
DT
thank you both. i got my timers working fine. i am able to use tmr0 and tmr1 in my project. even though i could not get a resultion of 65us i was able to get a good reading at 100us which i think should be good enough for what i need.
as for the ASM, your right. i do need to sit there for a day or 2 to figure out ASM and all it is is my lazyness. maybe when i really need to learn it i'll sit there and learn it. but for now im good.
thank you all for your help.
jose
Bookmarks