em78p131a ELAN Microelectronics Corp, em78p131a Datasheet - Page 20

no-image

em78p131a

Manufacturer Part Number
em78p131a
Description
8-bit Microcontroller With Otp Rom
Manufacturer
ELAN Microelectronics Corp
Datasheet
EM78P131A
8-Bit Microcontroller with OTP ROM
16 •
Table 1 Usage of Port 6 Input Change Wake-up/Interrupt Function
(I) Wake-up from Port 6 Input Status Change
(a) Before Sleep
(b) After Wake-up
Fig. 5-8 Block Diagram of I/O Port 6 with input change interrupt/wake-up
1. Disable WDT
2. Read I/O Port 6 (MOV R6,R6)
3. Execute "ENI" or "DISI"
4. Enable interrupt (Set IOCF.1)
5. Execute "SLEP" instruction
2. IF "DISI" → Next instruction
1. IF "ENI" → Interrupt vector (008H)
Usage of Port 6 Input Status Change Wake-up/Interrupt
(This specification is subject to change without further notice)
(II) Port 6 Input Status Change Interrupt
Product Specification (V1.2) 09.16.2009
1. Read I/O Port 6 (MOV R6,R6)
2. Execute "ENI"
3. Enable interrupt (Set IOCF.1)
4. IF Port 6 change (interrupt)
→ Interrupt vector (008H)

Related parts for em78p131a