Datasheet

11.1.2.1 KBI in Wait Mode
Executing the Wait instruction places the MCU into wait mode. The KBI interrupt should
be enabled (KBI_SC[KBIE] = 1), if desired, before executing the Wait instruction,
allowing the KBI to continue to operate while the MCU is in wait mode. An enabled KBI
pin (KBPEx = 1) can be used to bring the MCU out of wait mode if the KBI interrupt is
enabled (KBI_SC[KBIE] = 1).
11.1.2.2 KBI in Stop Modes
Executing the Stop instruction places the MCU into stop3 mode (when stop3 is selected),
where the KBI can operate asynchronously. If this is the desired behavior, the KBI
interrupt should be enabled (KBI_SC[KBIE] = 1) before executing the Stop instruction,
allowing the KBI to continue to operate while the MCU is in stop3 mode. An enabled
KBI pin (KBPEx = 1) can be used to bring the MCU out of stop3 mode if the KBI
interrupt is enabled (KBI_SC[KBIE] = 1).
11.1.2.3 KBI in Active Background Mode
When the MCU is in active background mode, the KBI will continue to operate normally.
11.1.3 Block Diagram
The block diagram for the keyboard interrupt module is shown below..
D Q
CK
CLR
V
DD
KBMOD
KBIE
KEYBOARD
INTERRUPT FF
KBACK
RESET
SYNCHRONIZER
KBF
STOP BYPASS
STOP
BUSCLK
KBIPEn
0
1
S
KBEDGn
KBIPE0
0
1
S
KBEDG0
KBIxP0
KBIxPn
KBIx
INTERRUPT
REQUEST
Figure 11-1. KBI block diagram
Introduction
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
280 Freescale Semiconductor, Inc.