2005-10-25 08:24 PM
2005-07-15 12:55 AM
I am having problems entering stop mode, or more precisely on leaving stop mode.
I am trying the following:- code running from 4Mhz oscillator MCLK 48Mhz using PLL. switch clock source to 32 khz oscillator. stop PLL turn off external 4Mhz oscillator, (controlled via I/O pin). go into stop mode turn on external oscillator. enable PLL and wait for lock switch clock source to PLL. This does not work. The data sheet is not very clear on Stop mode. It appears that the CPU goes into stop. I can see the current consumption drop. I can get the CPU to come out of stop mode, the current consumption rises, however the program does not run. It appears the core has locked up in some way. If I follow the above stop procedure, but DONT stop the 4Mhz oscillator every things works as it should. I can only assume that in STOP mode the clock gets switched back to using the external osciallator(not using CK_AF), but nowhere in the datasheet does it mention this. Can anyone help me out ? many thanks Ben.2005-07-15 02:27 AM
Hi Ben,
I confirm, you can't exit STOP mode while the external oscillator is stopped, in fact you have to reenable the external oscillator '' externaly'' before exiting the STOP mode. If this is not possible in your application, then you will have to use the LPWFI mode which have power consumption not so far from the STOP one. In fact in LPWFI you can wake up the MCU while the external oscillator is stopped. Ciao Programmer ;)2005-07-15 04:58 AM
Ok thank you.
Perhaps the Data sheet could be updated to make this a little clearer2005-07-19 02:17 AM
Hi all,
Yes you are right and the following note will be added in the next reference manual version: The external oscillator must be present in order to exit from STOP mode. With best regards, Hich ;)