Stop1 Mode Transition Flow - Toshiba TXZ+ TMPM4MNFYAFG Reference Manual

32-bit risc microcontroller, clock control and operation mode
Table of Contents

Advertisement

STOP1 mode transition flow

Set 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 the
interrupts that can be used to release the STOP1 mode, refer to "1.3.3.1. The release source of a Low Power
Consumption mode". Disable interrupts not used for release and interrupts that cannot be used.
1
[SIWDxEN]<WDTE>=0
2
[SIWDxCR]<WDCR[7:0]>=0xB1
3
[FCSR0]<RDYBSY> is read.
[CGWUPHCR]<WUEF> is read.
4
[CGWUPHCR]<WUCLK>=0
5
[CGWUPHCR]<WUPT[15:4]>= 0x03C
6
[CGSTBYCR]<STBY[1:0]>=01
[CGPLL0SEL]<PLL0SEL>=0
7
8
[CGPLL0SEL]<PLL0ST> is read.
9
[CGPLL0SEL]<PLL0ON>=0
10
[CGOSCCR]<IHOSC1EN>=1
11
[CGWUPHCR]<WUON>=1
12
[CGWUPHCR]<WUEF> is read.
13
[CGOSCCR]<OSCSEL>=0
[CGOSCCR]<OSCF> is read.
14
15
[CGOSCCR]<EOSCEN[1:0]>=00
16
[CGOSCCR]<IHOSC2EN> =0
[CGOSCCR]<EOSCEN[1:0]> is read.
17
[CGOSCCR]<IHOSC2F> is read.
18
19
WFI command execution
Note: When using the protected A mode of SIWDT, 1,2,16 and 18 step are not required.
Transition flow (from Normal mode)
Disable SIWDT.
Disable SIWDT.
Wait until Flash becomes the Ready state (=1).
Wait until the high speed oscillation warming-up ends(=0).
Set the warming-up clock selection to internal high speed oscillator
1(IHOSC1).
Set the high speed oscillation warming-up timer setting value to
163.4 μs(=0x03C) or more.
Low Power Consumption mode selection is set to STOP1.
Set PLL of fsys to f
Wait until PLL status of fsys becomes off state (= 0).
Stop PLL for fsys
Enable the internal high speed oscillator 1.
Start the high speed oscillation warming-up timer
Wait until an warming-up timer status flag becomes ends(=0).
Set high speed oscillation selection for f
oscillator 1 (IHOSC1)
Wait until the high speed oscillation selection status for f
becomes internal high speed oscillator1 (IHOSC1). (=0).
Selection of an external oscillator1 is set to "Unused".
The internal high speed oscillator 2 (IHOSC2) is stopped.
The register writing of above 15th is checked (=00).
Wait until the status of IHOSC2 becomes "0".
Switch to STOP1.
26 / 64
TMPM4M Group(1)
Clock Control and Operation Mode
(= PLL no USE)
OSC
to internal high speed
OSC
TXZ+ Family
OSC
2022-06-24
Rev. 1.1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cg-m4m(1)-e

Table of Contents