KBIx_PE field descriptions
Field
Description
KBIPE
KBI Pin Enables
Each of the KBIPEn bits enable the corresponding KBI interrupt pin.
0
Pin is not enabled as KBI interrupt.
1
Pin is enabled as KBI interrupt.
11.4.3 KBIx Edge Select Register (KBIx_ES)
KBIx_ES contains the edge select control bits.
Address: 3Ch base + 3041h offset = 307Dh
Bit
7
6
5
4
3
2
1
0
Read
Write
Reset
0
0
0
0
0
0
0
0
KBIx_ES field descriptions
Field
Description
KBEDG
KBI Edge Selects
Each of the KBEDGn bits selects the falling edge/low-level or rising edge/high-level function of the
corresponding pin.
0
Falling edge/low level.
1
Rising edge/high level.
11.5 Functional Description
This on-chip peripheral module is called a keyboard interrupt module because originally
it was designed to simplify the connection and use of row-column matrices of keyboard
switches. However, these inputs are also useful as extra external interrupt inputs and as
an external means of waking the MCU from stop or wait low-power modes.
The KBI module allows up to eight pins to act as additional interrupt sources. Writing to
the KBIx_PE[KBIPEn] bits independently enables or disables each KBI pin. Each KBI
pin can be configured as edge sensitive or edge and level sensitive based on the
KBIx_SC[KBMOD] bit. Edge sensitive can be software programmed to be either falling
or rising; the level can be either low or high. The polarity of the edge or edge and level
sensitivity is selected using the KBIx_ES[KBEDGn] bits.
Chapter 11 Keyboard Interrupts (KBI)
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
NXP Semiconductors
229
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 ...