English
Language : 

EM78P417N Datasheet, PDF (38/84 Pages) ELAN Microelectronics Corp – 8-Bit Microprocessor with OTP ROM
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
Case [c] If Comparator output status change is used to wake-up EM78P418/9N and
CMPWE bit of RE register is enabled before SLEP, WDT must be disabled by
software. Hence, the EM78P418/9N can be awaken only with Case 4.
Wake-up time is dependent on oscillator mode. Under RC mode the reset
time is 32 clocks (for oscillator stables). In High XTAL mode, reset time is
2ms and 32 clocks (for oscillator stables); and in low XTAL mode, the reset
time is 500ms.
Case [d] If AD conversion completed is used to wake-up EM78P417/8/9N and ADWE
bit of RE register is enabled before SLEP, WDT must be disabled by
software. Hence, the EM78P417/8/9N can be awaken only with Case 5. The
wake-up time is 15 TAD (ADC clock period).
If Port 6 Input Status Change Interrupt is used to wake up the EM78P417/8/9N (as in
Case b above), the following instructions must be executed before SLEP:
BC
R3, 7
MOV
A, @001110xxb
IOW
IOCE0
WDTC
MOV
R6, R6
ENI (or DISI)
MOV
A, @00000x1xb
MOV
RE
MOV
A, @00000x1xb
IOW
IOCF0
SLEP
; Select Segment 0
; Select WDT prescaler and Disable WDT
; Clear WDT and prescaler
; Read Port 6
; Enable (or disable) global interrupt
; Enable Port 6 input change wake-up bit
; Enable Port 6 input change interrupt
; Sleep
Similarly, if the Comparator Interrupt is used to wake up the EM78P418/9N (as in Case
[c] above), the following instructions must be executed before SLEP:
BC
R3, 7
MOV
A, @xxxxxx10b
IOW
IOCA0
MOV
A, @001110xxb
IOW
IOCE0
WDTC
ENI (or DISI)
MOV
A, @000001xxb
MOV
RE
MOV
A, @000001xxb
IOW
SLEP
IOCF0
; Select Segment 0
; Select an comparator and P60 act as CO
pin
; Select WDT prescaler and Disable WDT
; Clear WDT and prescaler
; Enable (or disable) global interrupt
; Enable comparator output status change
wake-up bit
; Enable comparator output status change
interrupt
; Sleep
32 •
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)