Keypad Pattern Register - P89Lpc903; Keypad Control Register; Keypad Interrupt Mask Register (Kbm) - P89Lpc901 - Philips P89LPC902 User Manual

8-bit microcontrollers with accelerated two-clock 80c51 core 1kb 3v low-power byte-eraseable flash with 128 byte ram
Table of Contents

Advertisement

Philips Semiconductors
KEYPAD INTERRUPT (KBI)
KBPATN
Address: 93h
Not bit addressable
Reset Source(s): Any reset
Reset Value: 11111111B
BIT
SYMBOL
KBPATN.5,4,2
-
KBCON
Address: 94h
Not bit addressable
Reset Source(s): Any reset
Reset Value: xxxxxx00B
BIT
SYMBOL
KBCON.7-2
-
KBCON.1
PATN_SEL
KBCON.0
KBIF
KBMASK
Address: 86h
Not bit addressable
Reset Source(s): Any reset
Reset Value: 00000000B
BIT
SYMBOL
KBMASK.7:6
-
KBMASK.5
-
KBMASK.4
-
KBMASK.3:0
-
Note: the Keypad Interrupt must be enabled in order for the settings of the KBMASK register to be effective.
Bits positions KBMASK.7, KBMASK.6, KBMASK.3, KBMASK.2, KBMASK.1, and KBMASK.0 should always be written as
a '0'.
2003 Dec 8
7
6
-
-
FUNCTION
Pattern bit 6, bit 4, bit 2
Figure 11-3: Keypad Pattern Register - P89LPC903
7
6
-
FUNCTION
Reserved
Pattern Matching Polarity selection. When set, Port 0 has to be equal to the user-defined
Pattern in KBPATN to generate the interrupt. When clear, Port 0 has to be not equal to the
value of KBPATN register to generate the interrupt.
Keypad Interrupt Flag. Set when Port 0 matches user defined conditions specified in
KBPATN, KBMASK, and PATN_SEL. Needs to be cleared by software by writing "0".
Figure 11-4: Keypad Control Register
7
6
-
-
FUNCTION
Reserved.
When set, enables P0.5 as a cause of a Keypad Interrupt.
When set, enables P0.4 as a cause of a Keypad Interrupt.
Reserved.
Figure 11-5: Keypad Interrupt Mask Register (KBM) - P89LPC901
5
4
KBPATN.5 KBPATN.4
5
4
-
-
-
5
4
KBMASK.5 KBMASK.4
80
User's Manual - Preliminary -
P89LPC901/902/903
3
2
1
-
KBPATN.2
-
3
2
1
PATN_SEL
-
-
3
2
1
-
-
-
0
-
0
KBIF
0
-

Advertisement

Table of Contents
loading

This manual is also suitable for:

P89lpc903P89lpc901

Table of Contents