Hi all,
Now I can enter Wait mode and wake up through CAN receive interrupt.
But after wake up the period of Time interrupt was changed !!!
Kris
Solved! Go to Solution.
Could you please add few details?
This topic is related to S12P. Correct?
By “Time interrupt” you mean RTI, TIM, API,…?
By “period of Time interrupt” you mean just first period after wake-up, or all periods after wake-up?
What you set as clock source for your time interrupt?
I can imagine case when you use PBE mode (busclock=oscclock/2) and MCU wake-up from full stop mode. In that case will be PLL enabled automatically (PLLSEL=1) and after wake-up you should wait for UPOSC flag (oscillator ready) and clears PLLSEL bit back, otherwise you will get different bus clock value.
Could you please add few details?
This topic is related to S12P. Correct?
By “Time interrupt” you mean RTI, TIM, API,…?
By “period of Time interrupt” you mean just first period after wake-up, or all periods after wake-up?
What you set as clock source for your time interrupt?
I can imagine case when you use PBE mode (busclock=oscclock/2) and MCU wake-up from full stop mode. In that case will be PLL enabled automatically (PLLSEL=1) and after wake-up you should wait for UPOSC flag (oscillator ready) and clears PLLSEL bit back, otherwise you will get different bus clock value.
Hi Radek Sestak,
I have another Question now。 When have entered Wait Mode,the watchdog is working too, so COP will reset MCU ! Can I close the watchdog before enter wait mode? how ?
There are two ways how enable COP.
Therefore we cannot simply disable COP in wait mode.
For stop mode:
The clock source for the COP is either IRCCLK or OSCCLK depending on the setting of the COPOSCSEL bit. In Stop Mode with PSTP=1 (Pseudo Stop Mode), COPOSCSEL=1 and PCE=1 the COP continues to run, else the COP counter halts in Stop Mode.
Hi Radek Sestak,
Thank you first,
You are right ,this topic is related to S12P and all periods of TIM after wake up from wait mode. Not from full stop mode.