STOP AND WAIT MODES
7902 Group User’s Manual
16-4
16.2 Block description
RW
(Note)
RW
(Note)
RW
0
Bit name
Bit
Particular function select register 0 (Address 6216)
Function
At reset
R/W
STP instruction invalidity select bit
External clcok input select bit
Fix this bit to “0.”
b7 b6 b5 b4 b3 b2 b1 b0
0 : STP instruction is valid.
1 : STP instruction is invalid.
0 : Oscillation circuit is active. (Oscillator is connected.)
Watchdog timer is used at stop mode termination.
1 : Oscillation circuit is inactive. (External clock is
input.)
When the system clock select bit (bit 5 at address BC16) = “0,”
watchdog timer is not used at stop mode termination.
When the system clock select bit = “1,”
watchdog timer is used at stop mode termination.
00
0
00
0
16.2.1 Particular function select register 0
Figure 16.2.2 shows the structure of the particular function select register 0, and Figure 16.2.3 shows the
writing procedure for the particular function select register 0.
Fig. 16.2.2 Structure of particular function select register 0
Note: Writing to these bits requires the following procedure:
Write “5516” to this register. (The bit status does not change only by this writing.)
Succeedingly, write “0” or “1” to each bit.
Also, use the MOVMB (MOVM when m = 1) instruction or STAB (STA when m = 1) instruction.
If an interrupt occurs between writing of “5516” and next writing of “0” or “1,” latter writing may be ignored. When there is a
possibility that an interrupt occurs at the above timing, be sure to read this bit’s contents after writing of “0” or “1,” and verify
whether “0” or “1” has correctly been written or not.
0
1
7 to 2
(1) STP instruction invalidity select bit (bit 0)
Setting this bit to “1” invalidates the STP instruction. When using the stop mode, be sure to clear this
bit to “0.”
Writing to this bit requires the following procedure:
Write “5516” to address 6216.
Succeedingly, write “0” or “1” to this bit. (See Figure 16.2.3.)
If an interrupt occurs between writing of “5516” and next writing of “0” or “1,” latter writing may be
ignored. When there is a possibility that an interrupt occurs at the above timing, be sure to read this
bit’s contents after writing of “0” or “1,” and verify whether “0” or “1” has correctly been written or not.