EM78159NAS EMC [ELAN Microelectronics Corp], EM78159NAS Datasheet - Page 22

no-image

EM78159NAS

Manufacturer Part Number
EM78159NAS
Description
8-Bit Microcontroller with OTP ROM
Manufacturer
EMC [ELAN Microelectronics Corp]
Datasheet
EM78P159N
8-Bit Microcontrollerwith OTP ROM
18 •
(I) Wake-up
(III) Interrupt
(a) Before SLEEP
(b) After wake-up
(a) Before Port 6 pin change
(b) After Port 6 pin changed (interrupt)
1. Disable WDT
2. Read I/O Port 6 (MOV R6,R6)
3. Execute "ENI" or "DISI"
4. Enable wake-up bit (Set RE ICWE =1)
5. Execute "SLEP" instruction
→ Next instruction
1. Read I/O Port 6 (MOV R6,R6)
2. Execute "ENI" or "DISI"
3. Enable interrupt (Set IOCF0 ICIE =1)
1. IF "ENI" → Interrupt vector (008H)
2. IF "DISI" → Next instruction
4.4.1 Usage of Port 6 Input Change Wake-up/Interrupt Function
T10
T11
T17
Figure 4-4c I/O Port 6 with Input Change Interrupt/Wake-up Block Diagram
Usage of Port 6 Input Status Changed Wake-up/Interrupt
/SLEP
D
CLK
IOCE.1
P
R
C
L
Q
_
Q
(II) Wake-up and interrupt
(This specification is subject to change without further notice)
(a) Before SLEEP
(b) After wake-up
1. Disable WDT
2. Read I/O Port 6 (MOV R6,R6)
3. Execute "ENI" or "DISI"
4. Enable wake-up bit (Set RE ICWE =1)
5. Enable interrupt (Set IOCF ICIE =1)
6. Execute "SLEP" instruction
1. IF "ENI" → Interrupt vector (008H)
2. IF "DISI" → Next instruction
Product Specification (V1.0) 03.10.2006
D
CLK
RE.1
R
P
C
L
Q
Q
_
Q
Q
_
R
C
P
L
(Wake-up from SLEEP)
CLK
(Wake-up from SLEEP)
D
Next Instruction
Interrupt
ENI Instruction
DISI Instruction
Interrupt

Related parts for EM78159NAS