Wake-Up And Interrupt Modes Operation Summary - IBM EM78P221/2N Specification

Ibm 8-bit microcontroller product specification
Table of Contents

Advertisement

EM78P221/2N
8-Bit Microcontroller with OTP ROM
If Port 6 Input Status Change Interrupt is used to wake up the EM78P221/2N (as in
Case b above), the following instructions must be executed before SLEP:
MOV
BANK
MOV
WDTC
BANK
MOV
ENI (or DISI)
MOV
MOV
MOV
BANK
MOV
SLEP
Similarly, if the Comparator Interrupt is used to wake up the EM78P221/2N (as in Case
[c] above), the following instructions must be executed before SLEP:
MOV
BANK
MOV
MOV
MOV
WDTC
ENI (or DISI)
MOV
BANK
MOV
BANK
MOV
MOV
SLEP
6.5.1.1
All categories under Reset, Wake-up and Interrupt modes are summarized below.
Wake-up Signal
External interrupt
Port 6 pin change
TCC overflow interrupt
Comparator interrupt
WDT Time out
Low Voltage Reset
After wake up:
1. If interrupt enable → interrupt+ next instruction
2. If interrupt disable → next instruction
28 •
A, @000110xxb
1
RE, A
0
R6, R6
A, @xxx1xxxxb
RE
A, @00000x1xb
1
RF, A
A, @xxx01xxxb
1
RA, A
A, @000110xxb
RE, A
A, @00000100b
0
RE, A
1
A, @0x00000001b ; Enable Comparator 1 output status change
RE, A

Wake-up and Interrupt Modes Operation Summary

Sleep Mode
If enable ICWE bit Wake-up
+ interrupt (if interrupt enable)+ next instruction
If enable CMPWE bit Wake-up
+ interrupt (if interrupt enable) + next instruction
Reset to Normal mode
Reset to Normal mode
; Select WDT prescaler and disable WDT
; Clear WDT and prescaler
; Read Port 6
; Enable (or disable) global interrupt
; Enable Port 6 input change wake-up bit
; Enable Port 6 input change interrupt
; Sleep
; Select Comparator and P71 functions as
; general I/O pin
; Select WDT prescaler and Disable WDT
; Clear WDT and prescaler
; Enable (or disable) global interrupt
; Enable comparator output status change
; wake-up bit
; interrupt
; Sleep
x
x
Product Specification (V1.0) 10.19.2007
(This specification is subject to change without further notice)
Normal Mode
Interrupt (if interrupt enable)
or next instruction
Interrupt (if interrupt enable)
or next instruction
Interrupt (if interrupt enable)
or next instruction
Interrupt (if interrupt enable)
or next instruction
Reset to Normal mode
Reset to Normal mode

Advertisement

Table of Contents
loading

Table of Contents