Re: Can button be set to cause interrupt, and then it's functions changed?
Hey Curious One...
Yes, I think what you want is very do-able.
Just have your code disable the INT on that pin after the PIC wakes up.
Then have your code watch that pin for change to select a given mode.
When your 60 second timer (however you choose to implement the timer or some code in the loop you are running after the PIC is interrupted to increment a counter to keep track of time)
Then re-enable the INT before putting the PIC back to sleep.
I'm not the worlds best programmer by any stretch so my explanation above is very rough.
The real trick is to figure out how to direct your PIC (write the code instructions) to do just what you want it to do. But then that is the challenge of any code :-)
I hope this gives you some ideas.
Dwight
These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.
Bookmarks