Rev. 1.00
68
March 24, 2020
Rev. 1.00
69
March 24, 2020
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
Bit 1~0
ASMP1~ASMP0
: Periodic auto scan mode period selection
00: 2
14
/f
LIRC
01: 2
13
/f
LIRC
10: 2
12
/f
LIRC
11: 2
11
/f
LIRC
These bits are used to determine the touch key scan period and only available when
the touch key fucntion is configured to operate in the periodic auto scan mode. The
number of touch key scan times is obtained by the WDT time-out period, t
WDT
, and the
periodic auto scan mode period, t
KEY
, using the equation, N=t
WDT
/t
KEY
.
For example, if the WDT time-out period is 2
15
/f
LIRC
by setting the WS[2:0] bits to 100,
then t
WDT
is equal to 1.024s. Therefore, the number of touch key scan times is 2/4/8/16
times in a WDT time-out cycle when the ASMP[1:0] bits are set to 00/01/10/11
respectively. It is extremely important to ensure that the periodic auto scan mode
period t
KEY
does not exceed the WDT time-out period t
WDT
in applications.
• TK16DH/TK16DL – Touch Key Function 16-bit Counter Register Pair
Register
TK16DH
TK16DL
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
This register pair is used to store the touch key function 16-bit counter value. This 16-bit counter can
be used to calibrate the reference or key oscillator frequency. When the touch key time slot counter
overflows in the manual scan mode, this 16-bit counter will be stopped and the counter content will
be unchanged. However, this 16-bit counter content will be cleared to zero at the end of the time
slot 0, slot 1 and slot 2 but kept unchanged at the end of the time slot 3 in the auto scan mode or the
periodic auto scan mode. This register pair will be cleared to zero when the TKST bit is set low.
• TKM016DH/TKM016DL – Touch Key Module 0 16-bit C/F Counter Register Pair
Register
TKM016DH
TKM016DL
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
This register pair is used to store the touch key module 0 16-bit C/F counter value. This 16-bit C/F
counter will be stopped and the counter content will be kept unchanged when the touch key time
slot counter overflows in the manual scan mode. However, this 16-bit C/F counter content will be
cleared to zero at the end of the time slot 0, slot 1 and slot 2 after it is written to the touch key data
memory but kept unchanged at the end of the time slot 3 when the auto scan mode or the periodic
auto scan mode is selected. This register pair will be cleared to zero when the TKST bit is set low.