Standby Control Register (Stbc); Halt Mode; Specifying Halt Mode And Operation States In Halt Mode; Configuration Of The Standby Control Register (Stbc) - NEC PD78212 User Manual

8-bit single-chip microcomputer sub-series
Table of Contents

Advertisement

14.2 STANDBY CONTROL REGISTER (STBC)

The standby control register (STBC) is an 8-bit register which controls standby mode. The STBC register can be
both read and written. Only a specified instruction (MOV STBC, #byte), however, can be used for writing to the
register, to prevent the application system stopping unintentionally as a result of a program crash. Fig. 14-3 shows
the format of the STBC register.
When the RESET signal is input, the register is set to 0000×000B.
Fig. 14-3 Configuration of the Standby Control Register (STBC)
7
STBC
0

14.3 HALT MODE

14.3.1 Specifying HALT Mode and Operation States in HALT Mode

The system enters HALT mode when the HLT bit of the STBC register is set to 1.
The STBC register can be written only with a specified 8-bit data write instruction. When specifying HALT mode,
execute the "MOV STBC, #01H" instruction.
Caution If HALT mode is specified under the conditions for releasing HALT mode, the system does not enter HALT mode, instead executing
the next instruction or branching to the vectored interrupt service program. Clear any interrupt requests before specifying HALT
mode to ensure that the system enters HALT mode correctly.
6
5
4
3
2
×
0
0
0
0
HALT mode specification bit
STOP mode specification bit
Table 14-1 Operation States in HALT Mode
Clock oscillator
Internal system clock
CPU
I/O lines
Peripheral functions
Internal RAM
AD0-AD7
Bus lines
A8-A15
A16-A19
RD, WR output
ASTB output
Note Macro services are executed.
Chapter 14 Standby Function
1
0
STP
HLT
When this bit is set to 1, HALT mode is set.
This bit is automatically reset to 0 when HALT mode is released.
When this bit is set to 1, STOP mode is set.
This bit is automatically reset to 0 when STOP mode is released.
×: 0 or 1
Operating
Operating
Note
Stopped
Same as before HALT mode
Operating
Contents maintained
High-impedance
States maintained
Low
High
Low
14
379

Advertisement

Table of Contents
loading

Table of Contents