EM78P259N/260N
8-Bit Microprocessor with OTP ROM
Case [c] If Comparator output status change is used to wake-up the EM78P259N/
260N and CMPWE bit of the RE register is enabled before SLEP, WDT must
be disabled by software. Hence, the EM78P259N/260N can be awakened
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 32clocks (for oscillator stables); and in low XTAL mode,
the reset time is 500ms.
Case [d] If AD conversion completed is used to wake-up the EM78P259N/260N and
ADWE bit of RE register is enabled before SLEP, WDT must be disabled by
software. Hence, the EM78P259N/260N can be awakened only with Case 5.
The wake-up time is 15 TAD (ADC clock period).
If Port 5 Input Status Change Interrupt is used to wake up the EM78P259N/260N (as in
Case [b] above), the following instructions must be executed before SLEP:
; Select Segment 0
BC
R3, 7
; Select WDT prescaler and Disable WDT
MOV
IOW
A, @00xx1110b
IOCE0
; Clear WDT and prescaler
WDTC
; Read Port 5
MOV
R5, R5
; Enable (or disable) global interrupt
ENI (or DISI)
MOV
MOV
MOV
IOW
SLEP
A, @xxxxxx1xb
RE
A, @xxxxxx1xb
IOCF0
; EnablePort 5inputchange wake-up bit
; Enable Port 5 input change interrupt
; Sleep
Similarly, if the Comparator Interrupt is used to wake up the EM78P259N/260N (as in
Case [c] above), the following instructions must be executed before SLEP:
; Select Segment 0
BC
R3, 7
; Select a comparator and P64 act as CO
MOV
A, @xxx10XXXb
pin
IOW
MOV
IOC80
A, @00x11110b
; Select WDT prescaler and Disable WDT,
and enable comparator output status
change interrupt
IOW
IOCE0
; Clear WDT and prescaler
WDTC
; Enable (or disable) global interrupt
; Enable comparator output status change
wake-up bit
ENI (or DISI)
MOV
A, @xxx0x1xxb
RE
MOV
; Sleep
SLEP
34 •
Product Specification (V1.0) 06.16.2005
(This specification is subject to change without further notice)