I need a little help, I'm using a 18F2550, and I'm counting how often a switch opens/closes on PortA.5 (Maybe 4, I don't have my circuit in front of me). I'm looping in my main code counting the changes, but I'd like to use DT's interupts, seems like a good fit. I'm using them already for comm and timing. It's working great. What I'm not finding in the posts I've read so far is when I create and enable "INT_INT" how do I control what port triggers the interupt? I'm already doing A/D conversion on PortA.0-3 And have things happening on PortB, so i don't want the changing values on the other pins to trigger the interupt, just a single pin if possible?
What I have works, but I think I may miss some state changes if the switch operates too fast.
Any idea's or suggestions would be great.
Thanks,
Shane
Bookmarks