Dear all, I have a S08PT16 microcontroller and i have try to go in stop and wake up from rtc interrupt.
But don't wake up never !
The code is :
lda #%00001101
sta SYS_SOPT1 ; Enable stop
lda #%01000000
sta RTC_SC1 ; Enable interrupt
...........
stop
I have try to wakeup from keyb interrupt and all is ok, don't work only if i try to wake-up from rtc timer !
Can help me ?
Thanks
Stefano
What is the the setting of RTC_SC2?
You may not be able to exit with an RTC interrupt depending on your clock source.
I believe 1KHz internal oscillator can get you out of STOP.
(From section 3.2.2 of PT60 Reference Manual: The LPO (≈1 kHz) for the real-time counter clock allows a wakeup from stop3 mode with no external components.)