Hi. I'm in the process of converting on of my projects from a PIC16F18323 to a PIC24FJ64GA705 and some functionality seems to have dropped out. Whereas for the PIC16F I could control the sleep period like so...
PIC24FJ Sleeping for duration controlled by software
Code (Text):
- if(armStage==INIT)
- WDTCONbits.WDTPS = 0b10000; // if we've just turned on the MOTIONMODULE, sleep for 1 minute
- else if(isAlerting)
- WDTCONbits.WDTPS = 0b01000; // try again quickly
- else
- WDTCONbits.WDTPS =...