IBM EM78P259N/260N Network Card User Manual


 
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
Product Specification (V1.2) 05.18.2007
33
(This specification is subject to change without further notice)
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 the 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 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:
BC R3, 7
; Select Segment 0
MOV A, @00xx1110b
; Select WDT prescaler and Disable WDT
IOW IOCE0
WDTC
; Clear WDT and prescaler
MOV R5, R5
; Read Port 5
ENI (or DISI)
; Enable (or disable) global interrupt
MOV A, @xxxxxx1xb ; Enable Port 5 input change wake-up bit
MOV RE
MOV A, @xxxxxx1xb
; Enable Port 5 input change interrupt
IOW IOCF0
SLEP
; 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:
BC R3, 7
; Select Segment 0
MOV A, @xxx10XXXb
;
S
elect a comparator and P64 act as CO
pin
IOW IOC80
MOV A, @00x11110b
; Select WDT prescaler and Disable WDT
,
and enable comparator output status
change interrupt
IOW IOCE0
WDTC
; Clear WDT and prescaler
ENI (or DISI)
; Enable (or disable) global interrupt
MOV A, @xxx0x1xxb
; Enable comparator output status
change wake-up bit
MOV RE
SLEP
; Sleep