EM78P258N
8-Bit Microprocessor with OTP ROM
Case [d] If AD conversion is completed, it wakes-up EM78P258N and ADWE bit of RE
register is enabled before SLEP. At the same time, WDT must be disabled
by software. Hence, the EM78P258N can be awaken only with Case 4. The
wake-up time is 15 TAD (ADC clock period).
If Port 5 Input Status Change Interrupt is used to wake up the EM78P258N (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
Product Specification (V1.0) 06.16.2005
• 31
(This specification is subject to change without further notice)