CMT2380F17
Rev0.1 | 277/347
www.cmostek.com
Bit
7
6
5
4
3
2
1
0
Name
KBPATN[7:0]
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
1
1
1
1
1
1
1
1
Bit 7~0: KBPATN.7~0: The keypad pattern, reset value is 0xFF.
KBCON
:
Keypad Control Register
SFR Page
= 0~F
SFR Address = 0xD6
Bit
7
6
5
4
3
2
1
0
Name
KBCS[1:0]
KBES
--
--
--
PATN_SEL
KBIF
R/W
R/W
R/W
R/W
W
W
W
R/W
R/W
Reset Value
0
0
0
0
0
0
0
1
Bit 7~6: KBCS1~0, KBI Filter mode control.
KBCS[1:0]
KBI input filter mode
00
禁止
01
SYSCLK x3
10
SYSCLK/6 x3
11
S0TOF x3
Bit 5: KBES, KBI Edge mode select.
0: Set KBI module to level detection mode. 1: Set KBI module to edge detection mode.
Bit 1: PATN_SEL, Pattern Matching Polarity selection.
0: The keypad input has to be not equal to user-defined keypad pattern in KBPATN to generate the
interrupt. 1: The keypad input has to be equal to the user-defined keypad pattern in KBPATN to generate the
interrupt.
Bit 0: KBIF, Keypad
Interrupt Flag. The default value of KBIF is set to “1”. 0: Must be cleared by software
by writing “0”.
1: Set when keypad input matches user defined conditions specified in KBPATN, KBMASK, and
PATN_SEL.
KBMASK
:
Keypad Interrupt Mask Register
SFR Page
= 0~F
SFR Address = 0xD7
Bit
7
6
5
4
3
2
1
0
Name
KBMASK[7:0]
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
0
0
0
0
0
0
0
0
KBMASK.7: When set, enables KBI7 input as a cause of a Keypad Interrupt.
KBMASK.6: When set, enables KBI6 input as a cause of a Keypad Interrupt.
KBMASK.5: When set, enables KBI5 input as a cause of a Keypad Interrupt.
KBMASK.4: When set, enables KBI4 input as a cause of a Keypad Interrupt.
KBMASK.3: When set, enables KBI3 input as a cause of a Keypad Interrupt.
KBMASK.2: When set, enables KBI2 input as a cause of a Keypad Interrupt.
KBMASK.1: When set, enables KBI1 input as a cause of a Keypad Interrupt.
KBMASK.0: When set, enables KBI0 input as a cause of a Keypad Interrupt.
AUXR6
:
Auxiliary Register 6
SFR Page
= 3 only
SFR Address = 0xA4
Summary of Contents for CMT2380F17
Page 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Page 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Page 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...