Rev. 1.00
70
March 24, 2020
Rev. 1.00
71
March 24, 2020
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
• TKM0C2 Register
This register is used to select the desired scan key in the time slots 0~3 of the touch key module 0. It
should be noted that if any key is disabled, the touch key module 0 Reference and Key oscillators of
the corresponding time slot will not oscillate.
Bit
7
6
5
4
3
2
1
0
Name
M0SK31 M0SK30 M0SK21 M0SK20 M0SK11 M0SK10 M0SK01 M0SK00
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
1
1
1
0
0
1
0
0
Bit 7~6
M0SK31~M0SK30
: Touch key module 0 time slot 3 key scan select
00: KEY1
01: KEY2
10: KEY3
11: KEY4
These bits are used to select the desired scan key in time slot 3. The settings for these
bits are invalid when TKMOD1~TKMOD0=01 or TSC=1.
Bit 5~4
M0SK21~M0SK20
: Touch key module 0 time slot 2 key scan select
00: KEY1
01: KEY2
10: KEY3
11: KEY4
These bits are used to select the desired scan key in time slot 2. The settings for these
bits are invalid when TKMOD1~TKMOD0=01 or TSC=1.
Bit 3~2
M0SK11~M0SK10
: Touch key module 0 time slot 1 key scan select
00: KEY1
01: KEY2
10: KEY3
11: KEY4
These bits are used to select the desired scan key in time slot 1. The settings for these
bits are invalid when TKMOD1~TKMOD0=01 or TSC=1.
Bit 1~0
M0SK01~M0SK00
: Touch key module 0 time slot 0 key scan select
00: KEY1
01: KEY2
10: KEY3
11: KEY4
These bits are used to select the desired scan key in time slot 0 in the auto scan mode
or the periodic auto scan mode or used as the multiplexer for scan key select in the
manual mode.
• TKM0TH16H/TKM0TH16L – Touch Key Module 0 16-bit Threshold Register Pair
Register
TKM0TH16H
TKM0TH16L
Bit
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
Name D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
R/W
R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
This register pair is used to store the touch key module 0 16-bit upper/lower threshold value. This
register pair will be loaded with the corresponding upper/lower threshold value from the dedicated
touch key data memory automatically by the hardware before scanning the touch key. After the
touch key module 0 dedicated touch key, KEYn (n=1~4), scan operation is completed, the 16-bit C/F
counter content, TKM016DH/TKM016DL, will be compared with the TKM0TH16H/TKM0TH16L
value by the hardware. When this value is less than the lower threshold if M0KnTHS=0, or larger
than the upper threshold if M0KnTHS=1, then the M0KnTHF flag will be set high, and an interrupt
signal will be generated.