34
MITSUBISHI MICROCOMPUTERS
4551 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER for
INFRARED REMOTE CONTROL TRANSMITTER
(5) Identification of the start condition
Warm start or cold start can be identified by examining the
state of the power down flag (P) with the SNZP instruction.
The warm start condition (timer 2 or external wakeup signal)
can be identified by examining the state of T2F flag.
Fig. 34 Set source and clear source of the P flag
G
Set source POF or POF2 instruction executed
G
Clear source
Reset input
S
R
Q
Powerdown flag P
POF instruction
or
POF2 instruction
Reset input
Software start
P = “1”
T2F = “1”
No
Yes
Yes
Return by external
wakeup signal
Return by timer 2
underflow
Cold start
No
Fig. 35
Start condition identified example using the SNZP instruction
(6) Return signal
An external wakeup signal or timer 2 interrupt request flag is
used to return from the clock operating mode.
An external wakeup signal is used to return from the RAM
back-up mode because the oscillation is stopped. Table 16
shows the return condition for each return source.
(7) Port P1 control register
G
Pull-up control register PU0
Register PU0 controls the ON/OFF of the port P1 pull-up
transistor and the ON/OFF of the key-on wakeup function.
Set the contents of this register through register A with
the TPU0A instruction. In addition, the TAPU0 instruction
can be used to transfer the contents of register PU0 to
register A.
Table 16 Return source and return condition
Return source
Ports P0, P1
E
Remarks
Port P0 shares the falling edge detection circuit with port P1. The key-on
wakeup function of port P0 is always valid. The only key-on wakeup
function of the port P1 bit of which the pull-up transistor is turned on is
valid. Set all the port using the key-on wakeup function to “H” level before
going into the power down state.
The timer 2 interrupt request flag (T2F) can be used only when system
returns from the clock operating mode (POF instruction execution).
However, if the POF and POF2 instructions are executed while the T2F =
“1”, its operation is recognized as the return condition and system returns
from the clock operating mode.
Return condition
Returns by an external falling
edge input (“H”
→
“L”).
Returns by timer 2 underflow and
setting T2F to “1.”
Timer 2 interrupt
request flag
Note: P1 pin has the pull-up transistor which can be turned on/off by software.
Table 17 Pull-up control register
Pull-up transistor OFF, no key-on wakeup
Pull-up transistor ON, key-on wakeup
Pull-up transistor OFF, no key-on wakeup
Pull-up transistor ON, key-on wakeup
Pull-up transistor OFF, no key-on wakeup
Pull-up transistor ON, key-on wakeup
Pull-up transistor OFF, no key-on wakeup
Pull-up transistor ON, key-on wakeup
Port P1
3
pull-up transistor
control bit
Port P1
2
pull-up transistor
control bit
Port P1
1
pull-up transistor
control bit
Port P1
0
pull-up transistor
control bit
Note: “R” represents read enabled, and “W” represents write enabled.
0
1
0
1
0
1
0
1
at reset : 0000
2
at power down : state retained
Pull-up control register PU0
R/W
PU0
3
PU0
2
PU0
1
PU0
0