EM78P350N
8-Bit Microprocessor with OTP ROM
If Port 6 Input Status Change Interrupt is used to wake up the EM78P350N (as in Case
b above), the following instructions must be executed before SLEP:
; Select WDT prescaler and Disable WDT
MOV
IOW
A, @001111xxb
IOCE0
; Clear WDT and prescaler
WDTC
; Read Port 6
MOV
R6, R6
; Enable (or disable) global interrupt
ENI (or DISI)
MOV
MOV
MOV
IOW
SLEP
A, @00000x1xb
RE
A, @00000x1xb
IOCF
; EnablePort 6inputchange wake-up bit
; Enable Port 6 input change interrupt
; Sleep
Similarly, if the Comparator Interrupt is used to wake up the EM78P350N (as in Case
[c] above), the following instructions must be executed before SLEP:
; Select an comparator and P60 act as CO
MOV
A, @xxxxxx10b
pin
IOW
IOCA0
; Select WDT prescaler and Disable WDT
MOV
IOW
A, @001111xxb
IOCE0
; Clear WDT and prescaler
WDTC
; Enable (or disable) global interrupt
; Enable comparator output status change
wake-up bit
ENI (or DISI)
MOV
A, @000001xxb
MOV
MOV
RE
; Enable comparator output status change
A, @xxxx1xxxb
interrupt
IOW
IOCA
; Sleep
SLEP
52 •
Product Specification (V1.0) 09.14.2006
(This specification is subject to change without further notice)