TXZ+ FamilyTMPM4M Group(1)Clock Control and Operation Mode2022-06-24Rev. 1.126 / 64STOP1 mode transition flowSet up the following procedure at switching to STOP1.Because STOP1 mode is released by an interrupt, set the interrupt before switching to STOP1 mode. For theinterrupts that can be used to release the STOP1 mode, refer to "1.3.3.1. The release source of a Low PowerConsumption mode". Disable interrupts not used for release and interrupts that cannot be used.Transition flow (from Normal mode)1 [SIWDxEN]=0 Disable SIWDT.2 [SIWDxCR]=0xB1 Disable SIWDT.3 [FCSR0] is read. Wait until Flash becomes the Ready state (=1).4 [CGWUPHCR] is read. Wait until the high speed oscillation warming-up ends(=0).5[CGWUPHCR]=0 Set the warming-up clock selection to internal high speed oscillator1(IHOSC1).[CGWUPHCR]= 0x03C Set the high speed oscillation warming-up timer setting value to163.4 μs(=0x03C) or more.6 [CGSTBYCR]=01 Low Power Consumption mode selection is set to STOP1.7 [CGPLL0SEL]=0 Set PLL of fsys to fOSC (= PLL no USE)8 [CGPLL0SEL] is read. Wait until PLL status of fsys becomes off state (= 0).9 [CGPLL0SEL]=0 Stop PLL for fsys10 [CGOSCCR]=1 Enable the internal high speed oscillator 1.11 [CGWUPHCR]=1 Start the high speed oscillation warming-up timer12 [CGWUPHCR]<WUEF> is read. Wait until an warming-up timer status flag becomes ends(=0).13 [CGOSCCR]=0 Set high speed oscillation selection for fOSC to internal high speedoscillator 1 (IHOSC1)14 [CGOSCCR] is read. Wait until the high speed oscillation selection status for fOSCbecomes internal high speed oscillator1 (IHOSC1). (=0).15 [CGOSCCR]=00 Selection of an external oscillator1 is set to "Unused".16 [CGOSCCR] =0 The internal high speed oscillator 2 (IHOSC2) is stopped.17 [CGOSCCR] is read. The register writing of above 15th is checked (=00).18 [CGOSCCR] is read. Wait until the status of IHOSC2 becomes "0".19 WFI command execution Switch to STOP1.Note: When using the protected A mode of SIWDT, 1,2,16 and 18 step are not required. PreviousNext |