
Rev. 1.00
116
October 26, 2018
Rev. 1.00
117
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
Bit 5
TKST
: Touch key detection Start control
0: Stopped or no operation
0→1: Start detection
In all modules the touch key module 16-bit C/F counter, touch key function 16-bit
counter and 5-bit time slot unit period counter will automatically be cleared when this
bit is cleared to zero. However, the 8-bit programmable time slot counter will not be
cleared. When this bit is changed from low to high, the touch key module 16-bit C/F
counter, touch key function 16-bit counter, 5-bit time slot unit period counter and 8-bit
time slot counter will be switched on together with the key and reference oscillators to
drive the corresponding counters.
Bit 4
TKCFOV
: Touch key module 16-bit C/F counter overflow flag
0: No overflow occurs
1: Overflow occurs
This bit is set high by the touch key module 16-bit C/F counter overflow and must be
cleared to 0 by application programs.
Bit 3
TK16OV
: Touch key function 16-bit counter overflow flag
0: No overflow occurs
1: Overflow occurs
This bit is set high by the touch key function 16-bit counter overflow and must be
cleared to 0 by application programs.
Bit 2
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 1~0
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
• TKC1 Register
Bit
7
6
5
4
3
2
1
0
Name
—
—
—
—
—
—
TKFS1
TKFS0
R/W
—
—
—
—
—
—
R/W
R/W
POR
—
—
—
—
—
—
1
1
Bit 7~2
Unimplemented, read as “0”
Bit 1~0
TKFS1~TKFS0
: Touch Key oscillator and Reference oscillator frequency selection
00: 1MHz
01: 3MHz
10: 7MHz
11: 11MHz
• 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, this 16-bit counter will be stopped and the counter content will be unchanged.
This register pair will be cleared to zero when the TKST bit is set low.