Bits 3~0
I/O Pin or Touch Key Function Select
MnK4IO
M0
M1
M2
M3
M4
M5
PB3/Key 4
PB7/Key 8
PC3/Key 12
PC7/Key 16
PD3/Key 20
PD7/Key 24
0
I/O pin
1
Touch Key
MnK3IO
M0
M1
M2
M3
M4
M5
PB2/Key 3
PB6/Key 7
PC2/Key 11 PC6/Key 15 PD2/Key 19 PD6/Key 23
0
I/O pin
1
Touch Key
MnK2IO
M0
M1
M2
M3
M4
M5
PB1/Key 2
PB5/Key 6
PC1/Key 10 PC5/Key 14 PD1/Key 18 PD5/Key 22
0
I/O pin
1
Touch Key
MnK1IO
M0
M1
M2
M3
M4
M5
PB0/Key 1
PB4/Key 5
PC0/Key 9
PC4/Key 13 PD0/Key 17 PD4/Key 21
0
I/O pin
1
Touch Key
TKMnC2 Register
Bit
7
6
5
4
3
2
1
0
Name
Mn16CTON
¾
MnST
MnROEN
MnRCCLR
Mn16CTCLR
¾
MnROS
R/W
R/W
¾
R/W
R/W
R/W
R/W
¾
R/W
POR
0
¾
0
0
0
0
¾
0
Bit 7
Mn16CTON
: 16-bit C/F counter control
0: disable
1: enable
Bit 6
Reserved bit, must not be modified.
Bit 5
MnST
: Time slot counter start control
0: time slot counter stopped
0
®
1: enable time slot counter.
When this bit changes from low to high the time slot counter will be enabled and the touch sense
procedure started. When the time slot counter has completed its counting an interrupt will be
generated.
Bit 4
MnROEN
: Reference clock control
0: disable
1: enable
Bit 3
MnRCCLR
: Time slot counter clear control
0: no change
1: clear counter
This bit must be first set to 1 and then to 0.
Bit 2
Mn16CTCLR
: 16-bit C/F counter clear control
0: no change
1: clear counter
This bit must be first set to 1 and then to 0.
Bit 1
Reserved bit, must not be modified.
Bit 0
MnROS
: Time slot counter clock source
0: reference clock
1: sense key oscillator
M0: Key 4, M1: Key 8, M2: Key12, M3: Key 16, M4: Key 20, M5: Key 24
Rev. 1.50
78
April 28, 2020
BS83B08-3/B12-3/B16-3/B16G-3/C24-3
8-Bit Touch Key Flash MCU