Stop1 Mode Transition Flow - Toshiba TXZ+ Series Reference Manual

2-bit risc microcontroller
Hide thumbs Also See for TXZ+ Series:
Table of Contents

Advertisement

1.3.2.2. 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.
4
[CGWUPHCR]<WUEF> is read.
[CGWUPHCR]<WUCLK>=0
5
[CGWUPHCR]<WUPT[15:4]>= 0x03C
6
[CGSTBYCR]<STBY[1:0]>=01
7
[CGPLL0SEL]<PLL0SEL>=0
[CGPLL0SEL]<PLL0ST> is read.
8
9
[CGPLL0SEL]<PLL0ON>=0
10 [CGOSCCR]<IHOSC1EN>=1
11 [CGWUPHCR]<WUON> = 1
12 [CGWUPHCR]<WUEF> is read
13 [CGOSCCR]<OSCSEL>=0
14 [CGOSCCR]<OSCF> is read.
15 [CGOSCCR]<EOSCEN[1:0]>=00
16 [CGOSCCR]<IHOSC2EN> =0
17 [CGOSCCR]<EOSCEN[1:0]> is read.
18 [CGOSCCR]<IHOSC2F> is read.
19 WFI command execution
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 oscillator1
(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 fosc (= PLL no USE)
Wait until PLL status of fsys becomes off state (= 0).
Stop PLL for fsys
Enable the internal high speed oscillator1.
Start the high speed oscillation warming-up timer
Wait until an warming-up timer status flag becomes ends(=1).
Set the high speed oscillation selection for fosc to internal high speed
oscillator1 (IHOSC1).
Wait until the high speed oscillation selection status for fosc becomes
internal high speed oscillator1 (IHOSC1) (=0).
Selection of an external oscillator1 is set to "Unused".
The internal high speed oscillator2 (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
TMPM4K Group(2)
Clock Control and Operation Mode
TXZ+ Family
2021-06-15
Rev. 1.1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tmpm4k

Table of Contents