EM78P341N/342N/343N
8-Bit Microprocessor with OTP ROM
Case [c] If the Comparator output status change is used to wake-up the EM78P342N/
343N and the CMPWE bit of the RE register is enabled before SLEP, WDT
must be disabled by software. Hence, the EM78P342N/343N can be
awakened only with Case 4. Wake-up time is dependent on oscillator mode.
In RC mode the Wake-up time is 32 clocks (for stable oscillators). In High
Crystal mode, Wake-up time is 2ms and 32 clocks (for stable oscillators), and
in low Crystal mode, Wake-up time is 500ms.
Case [d] If AD conversion completed is used to wake-up the EM78P341N/342N/343N
and ADWE bit of RE register is enabled before SLEP, WDT must be disabled
by software. Hence, the EM78P341N342N/343N can be awakened only with
Case 5. The wake-up time is 15 TAD (ADC clock period).
Case[e] If Low voltage detector is used to wake-up the EM78P341N/342N/343N and
the LVDWE bit of Bank 0-RE register is enabled before SLEP, WDT must be
disabled by software.
Hence, the EM78P341N/342N/343N can be
awakened only with Case 6.
Wake-up time is dependent on oscillator mode.
If Port 5 Input Status Change Interrupt is used to wake up the EM78P341N/342N/343N
(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
; Enable Port 5 input change wake-up bit
; Enable Port 5 input change interrupt
; Sleep
Similarly, if the Comparator Interrupt is used to wake up the EM78P341N/342N/343N
(as in Case [c] above), the following instructions must be executed before SLEP:
; Select Segment 0
BC
R3, 7
; Select a comparator and P64 functions
MOV
A, @xxx10XXXb
as CO pin
IOW
MOV
IOC80
A, @00x11110b
; Select WDT prescaler and Disable WDT,
and enable comparator output status
change interrupt
IOW
WDTC
IOCE0
; Clear WDT and prescaler
; Enable (or disable) global interrupt
; Enable comparator output status change
wake-up bit
ENI (or DISI)
MOV
A, @xxx0x1xxb
RE
MOV
; Sleep
SLEP
Product Specification (V1.0) 12.01.2006
(This specification is subject to change without further notice)
• 37