Philips P89LPC903 Light Therapy Device User Manual


 
Philips Semiconductors
User’s Manual - Preliminary -
P89LPC901/902/903
KEYPAD INTERRUPT (KBI)
2003 Dec 8 80
Figure 11-3: Keypad Pattern Register - P89LPC903
Figure 11-4: Keypad Control Register
Figure 11-5: Keypad Interrupt Mask Register (KBM) - P89LPC901
KBPATN
Address: 93h
Not bit addressable
Reset Source(s): Any reset
Reset Value: 11111111B
BIT SYMBOL FUNCTION
KBPATN.5,4,2 - Pattern bit 6, bit 4, bit 2
76543210
-
- KBPATN.5 KBPATN.4 - KBPATN.2 - -
KBCON
Address: 94h
Not bit addressable
Reset Source(s): Any reset
Reset Value: xxxxxx00B
BIT SYMBOL FUNCTION
KBCON.7-2 - Reserved
KBCON.1 PATN_SEL 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.
KBCON.0 KBIF 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".
76543210
------PATN_SEL KBIF
KBMASK
Address: 86h
Not bit addressable
Reset Source(s): Any reset
Reset Value: 00000000B
BIT SYMBOL FUNCTION
KBMASK.7:6 - Reserved.
KBMASK.5 - When set, enables P0.5 as a cause of a Keypad Interrupt.
KBMASK.4 - When set, enables P0.4 as a cause of a Keypad Interrupt.
KBMASK.3:0 - Reserved.
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’.
76543210
- - KBMASK.5 KBMASK.4 - - - -