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 (KBI_PE[KBIPEn] = 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 must 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 (KBI_PE[KBIPEn] = 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..
VDD
KBMOD
KBIE
KBACK
RESET
SYNCHRONIZER
KBF
STOP BYPASS
STOP
BUSCLK
KBIPEn
0
1
S
KBEDGn
KBIPE0
0
1
S
KBEDG0
KBIx
INTERRUPT
REQUEST
D
Q
CLR
CK
KEYBOARD
INTERRUPT FF
KBIxP0
KBIxPn
Figure 11-1. KBI block diagram
Introduction
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
226
NXP Semiconductors
Summary of Contents for MC9S08PA4
Page 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Page 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Page 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Page 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Page 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Page 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Page 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Page 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Page 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Page 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Page 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Page 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...