Rev. 1.60 190 August 20, 2019 Rev. 1.60 191 August 20, 2019
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
• TKC1 Register
Bit 7 6 5 4 3 2 1 0
Name D7 D6 D5 TSCS TK16S1 TK16S0 TKFS1 TKFS0
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 1 1
Bit 7~5 D7~D5: Data bits for test only
These bits are used for test purpose only and must be kept as "000" for normal
operations.
Bit 4 TSCS: Touch key time slot counter select
0: Each touch key module uses its own time slot counter
1: All touch key modules use Module 0 time slot counter
Bit 3~2 TK16S1~TK16S0: Touch key function 16-bit counter clock source select
00: f
SYS
01: f
SYS
/2
10: f
SYS
/4
11: f
SYS
/8
Bit 1~0 TKFS1~TKFS0: Touch Key oscillator and Reference oscillator frequency select
00: 500 kHz
01: 1000 kHz
10: 1500 kHz
11: 2000 kHz
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
overows 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. This
register pair will be cleared to zero when the TKST bit is set low.
TKMn16DH/TKMn16DL – Touch Key Module n 16-bit C/F Counter Register Pair
Register TKMn16DH TKMn16DL
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 n 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 overows 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 but kept unchanged at the end of the
time slot 3 when the auto scan mode is selected. This register pair will be cleared to zero when the
TKST bit is set low.