Specifications

Table Of Contents
II-68 EPSON S1C62740 TECHNICAL SOFTWARE
CHAPTER 6: PERIPHERAL CIRCUITS (Sleep)
INC X ;THIS ROUTINE RETURN
;WITH ZERO FLAG = 1
CP MX,5H ;IF NOT EQUAL THEN
;THIS ROUTINE RETURN
;WITH ZERO FLAG = 0
LD X,CHDATA ;CLEAR THE SLEEPING FLAG
LBPX MX,0
CHKSL1:
RET
;
Programming notes
(1) Because all I/O registers remain the same values, so please set
the proper values before execute "SLP" instruction.
(2) After the K10 input port or external system reset trigger to the
chip, the chip should wait, then wakeup.
(3) When the chip is sleeping, there is no noise rejector for K10
input port all low system reset.
(4) When shifting to the SLEEP status, the CPU clock must be set
to OSC1 and the OSC3 oscillation circuit must be off.
(5) Normally, the K10 interrupt is used to release the SLEEP mode.
Because of this, the following settings must be done before
shifting to the SLEEP mode.
Set the K10 input interrupt condition using the DFK10
register.
Enable the K10 input interrupt using the EIK1 register.
Set the interrupt flag to EI (interrupt enable).