Auto Wakeup Module (AWU)
Data Sheet
MC68HC908QF4 — Rev. 1.0
46
Auto Wakeup Module (AWU)
MOTOROLA
4.3 Functional Description
The function of the auto wakeup logic is to generate periodic wakeup requests to
bring the microcontroller unit (MCU) out of stop mode. The wakeup requests are
treated as regular keyboard interrupt requests, with the difference that instead of a
pin, the interrupt signal is generated by an internal logic.
Writing the AWUIE bit in the keyboard interrupt enable register enables or disables
the auto wakeup interrupt input (see Figure 4-2). A logic 1 applied to the
AWUIREQ input with auto wakeup interrupt request enabled, latches an auto
wakeup interrupt request.
Auto wakeup latch, AWUL, can be read directly from the bit 6 position of port A data
register (PTA). This is a read-only bit which is occupying an empty bit position on
PTA. No PTA associated registers, such as PTA6 data direction or PTA6 pullup
exist for this bit.
Entering stop mode will enable the auto wakeup generation logic. An internal RC
oscillator (exclusive for the auto wakeup feature) drives the wakeup request
generator. Once the overflow count is reached in the generator counter, a wakeup
request, AWUIREQ, is latched and sent to the KBI logic. See Figure 4-1.
Wakeup interrupt requests will only be serviced if the associated interrupt enable
bit, AWUIE, in KBIER is set. The AWU shares the keyboard interrupt vector.
Figure 4-2. Auto Wakeup Interrupt Request Generation Logic
D
R
VDD
INT RC OSC
EN
32 kHz
CLK
RST
OVERFLOW
AUTOWUGEN
SHORT
COPRS (FROM CONFIG1)
1 = DIV 29
0 = DIV 214
E
RESET
ACKK
CLEAR
RST
RESET
CLK
(CGMXCLK)
BUSCLKX4
ISTOP
AWUIREQ
CLRLOGIC
RESET
AWUL
TO PTA READ, BIT 6
Q
AWUIE
TO KBI INTERRUPT LOGIC (SEE
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.