
Page 23
TMP86FS64FG
2.2.4.1 STOP Mode
The STOP mode is controlled by the system control resister 1 (SYSCR1), STOP pin input and STOP5 to
STOP2. The STOP pin is used as the P20 port and INT5 pin (external interrupt input 5). The STOP mode is
entered by setting SYSCR1<STOP> to 1, and the following status is held in the STOP mode.
1. Both high-frequency and low-frequency oscillations are stopped, and all internal behaviors are
stopped.
2. The data memory, registers, and program status words and port output latches hold the status
before the STOP mode is entered.
3. The prescaler and divider of the timing generator are cleared to 0.
4. The program counter holds the address of the instruction after next to the instruction (e.g.,
[SET(SYSCR1).7]) by which the STOP mode is entered.
The STOP mode contains the level-sensitive and edge-sensitive exit modes which can be selected in
SYSCR1<RELM>. In the case of the edge-sensitive exit mode, STOP5 to STOP2 must be disabled.
Note 1: Unlike the key-on wake-up input pin, the STOP pin does not have the function to disable input. To use
the STOP mode, the STOP pin must be used to exit the STOP mode.
Note 2: During STOP period (from the start of the STOP mode to the end of warm-up period time), interrupt
latches are set to 1 due to external interrupt signal changes, and interrupts may be accepted immedi-
ately after the STOP mode is exited. Therefore, disable interrupts before entering the STOP mode.
Before enabling interrupts after the STOP mode is exited, clear unnecessary interrupt latches before-
hand.
(1) Level-sensitive exit mode (RELM = 1)
In this mode, the STOP mode is exited by setting the STOP pin to high or STOP5 to STOP2 (can be
specified to each bit in STOPCR) to low. This mode is used for capacitor back-up when the main
power supply is cut off and long tern battery back-up.
When the STOP pin input is set to high or STOP5 to STOP2 is set to low, executing an instruction
to enter the STOP mode does not enter the STOP mode, but immediately starts the exit sequence
(warm-up). When the STOP mode is entered in the level-sensitive exit mode, it is required to check
that the STOP pin input is programmed to low and the STOP5 to STOP2 pin input is programmed to
high by the following methods.
1. Testing the port condition.
2. Using the INT5 interrupt (an interrupt is generated at the falling edge of the INT5 pin input)
Example 1 :Entering the STOP mode from the NORMAL mode by testing a port P20
LD
(SYSCR1), 01010000B
: Sets the level-sensitive exit mode.
SSTOPH:
TEST
(P2PRD) . 0
: Wait state until the STOP pin input becomes low.
JRS
F, SSTOPH
DI
: IMF¨0
SET
(SYSCR1) . 7
: Enters the STOP mode.