Okay, for some reason I can't find how to set the option register to enable wake up from pin change. I try:
/* code sample */
OPTION = 0x40
sleep();
/* end of code sample */
like other people's code and this doesn't work. The compiler complains about the 'OPTION' line with an 'Undefined identifier OPTION'. My compiler version is 3.18/IDE 3.4. That shouldn't have anything to do with this.
All I want to do is put the processor to sleep and wait for something to happen on the input pins. All my other code is pretty solid but this is life & death of the project. It can't be this hard. Do I have to do this in an inline assembly call?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum