Epson S1C6200A Dokumentacja Strona 220

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 249
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 219
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).
Przeglądanie stron 219
1 2 ... 215 216 217 218 219 220 221 222 223 224 225 ... 248 249

Komentarze do niniejszej Instrukcji

Brak uwag