
Rev. 1.10
84
March 02, 2020
Rev. 1.10
85
March 02, 2020
BS83A02L/BS83B04L
Ultra-Low Power Touch Key Flash MCU
BS83A02L/BS83B04L
Ultra-Low Power Touch Key Flash MCU
Bit 1
Unimplemented, read as “0”
Bit 0
M0SK00
: Touch key module 0 time slot 0 key scan selection
0: KEY1
1: KEY2
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.
• TKnM0TH16H/TKnM0TH16L – Touch Key Module 0 KEYn 16-bit Threshold Register
Pair (n=1~2)
Register
TKnM0TH16H
TKnM0TH16L
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
These two register pairs are used to store the touch key module 0 KEY1~KEY2 16-bit upper/lower
threshold value respectively. After the touch key module 0 KEYn scan operation is completed, the
16-bit C/F counter content, TKM016DH/TKM016DL, will be compared with the TKnM0TH16H/
TKnM0TH16L value by the hardware. When this value is less than the 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.
• TKM0KnROCH/TKM0KnROCL – Touch Key Module 0 KEYn Reference Oscillator
Capacitor Selection Register Pair (n=1~2)
Register
TKM0KnROCH
TKM0KnROCL
Bit
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
Name
—
—
—
—
—
—
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
POR
—
—
—
—
—
—
0
0
0
0
0
0
0
0
0
0
These two register pairs are used to store the touch key module 0 KEYn reference oscillator
capacitor value.
• TKM0KnCNTH/TKM0KnCNTL – Touch Key Module 0 KEYn 16-bit Counter Register
Pair (n=1~2)
Register
TKM0KnCNTH
TKM0KnCNTL
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
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
POR
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
These two register pairs are used to store the Touch key module 0 KEYn 16-bit counter contents.