Well, there are a boatload of interrupts that can wake the processor. It uses:
all 16 key inputs (one interrupt between them). These are working properly.
- an external real time clock that is not stuffed on this board, but worked perfectly on the previous board.
- a serial port connected to a USB port for debugging. This is working properly.
- an external Bluetooth card attached to the other serial port (not stuffed on this board,but worked on the previous board.
- and several inputs that would have gone on Key inputs, but there weren't any left, so they ended up as input capture inputs and interrupts. These are all stuffed and working properly.
It does have an internal real time clock that generates an interrupt every one millisecond, but that should be disabled during sleep mode.
The board is sitting here on my bench, so I know that no external interrupts are being triggered.
I'd send you something,but I don't know if the program will do anything sensible without hardware. Besides, the program is enormous, the largest I've ever written by quite a lot.
I will make sure the internal RTC is really shutting down, and if it is, then I will write a new project that just uses the ADC
module, and see what happens.
Gary