English
Language : 

M34512M2 Datasheet, PDF (41/80 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PRELIMINARY NSocothimcaene:gpTeah.riasmisetnrioct laimfiintsalasrepescuibfijceacttioton.
MITSUBISHI MICROCOMPUTERS
4512 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(4) Return signal
An external wakeup signal is used to return from the RAM back-up
mode because the oscillation is stopped. Table 19 shows the return
condition for each return source.
(5) Ports P0 and P1 control registers
• Key-on wakeup control register K0
Register K0 controls the ports P0 and P1 key-on wakeup func-
tion. Set the contents of this register through register A with the
TK0A instruction. In addition, the TAK0 instruction can be used to
transfer the contents of register K0 to register A.
• Pull-up control register PU0
Register PU0 controls the ON/OFF of the ports P0 and P1 pull-
up transistor. 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 19 Return source and return condition
Return source
Return condition
Ports P0, P1
Return by an external falling
edge input (“H”→“L”).
INT0 pin
INT1 pin
Return by an external “H” level or
“L” level input.
The EXF0 flag is not set.
Return by an external “H” level or
“L” level input.
The EXF1 flag is not set.
Remarks
Set the port using the key-on wakeup function selected with register K0 to
“H” level before going into the RAM back-up state because the port P0
shares the falling edge detection circuit with port P1.
Select the return level (“L” level or “H” level) with the bit 2 of register I1 ac-
cording to the external state before going into the RAM back-up state.
Select the return level (“L” level or “H” level) with the bit 2 of register I2 ac-
cording to the external state before going into the RAM back-up state.
Reset
(Stabilizing time a )
A
POF instruction
is executed
f(XIN) oscillation
Return input
(Stabilizing time a )
B
f(XIN) stop
(RAM back-up
mode)
Stabilizing time a : Time required to stabilize the f(XIN) oscillation is automatically generated by hardware.
Fig. 34 State transition
POF instruction
Power down flag P
SQ
Reset input
R
q Set source • • • • • • • POF instruction is executed
q Clear source • • • • • •Reset input
Fig. 35 Set source and clear source of the P flag
Software start
P = “1” Yes
?
No
Cold start
Warm start
Fig. 36 Start condition identified example using the SNZP in-
struction
41