IBM EM78P259N/260N manual Select Segment

Models: EM78P259N/260N

1 89
Download 89 pages 38.24 Kb
Page 39
Image 39

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 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

; Clear WDT and prescaler

WDTC

R5, R5

MOV

; Read Port 5

ENI (or DISI)

A, @xxxxxx1xb

; Enable (or disable) global interrupt

MOV

; Enable Port 5 input change wake-up bit

MOV

RE

; Enable Port 5 input change interrupt

MOV

A, @xxxxxx1xb

IOW

IOCF0

; Sleep

SLEP

 

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

; Select a comparator and P64 act as CO

IOW

IOC80

pin

; Select WDT prescaler and Disable WDT,

MOV

A, @00x11110b

 

 

and enable comparator output status

IOW

IOCE0

change interrupt

; Clear WDT and prescaler

WDTC

 

ENI (or DISI)

A, @xxx0x1xxb

; Enable (or disable) global interrupt

MOV

; Enable comparator output status

MOV

RE

change wake-up bit

; Sleep

SLEP

 

Product Specification (V1.2) 05.18.2007

• 33

(This specification is subject to change without further notice)

Page 39
Image 39
IBM EM78P259N/260N manual Select Segment