
Rev. 1.00
114
October 26, 2018
Rev. 1.00
115
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
Register
Name
Bit
7
6
5
4
3
2
1
0
TKTMR
D7
D6
D5
D4
D3
D2
D1
D0
TKC0
—
TKRCOV
TKST
TKCFOV TK16OV
TSCS
TK16S1 TK16S0
TKC1
—
—
—
—
—
—
TKFS1
TKFS0
TK16DL
D7
D6
D5
D4
D3
D2
D1
D0
TK16DH
D15
D14
D13
D12
D11
D10
D9
D8
TKMn16DL
D7
D6
D5
D4
D3
D2
D1
D0
TKMn16DH
D15
D14
D13
D12
D11
D10
D9
D8
TKMnROL
D7
D6
D5
D4
D3
D2
D1
D0
TKMnROH
—
—
—
—
—
—
D9
D8
TKMnC0
MnMXS1 MnMXS0 MnDFEN MnFILEN MnSOFC MnSOF2 MnSOF1 MnSOF0
TKMnC1
MnTSS
—
MnROEN MnKOEN MnK4EN MnK3EN MnK2EN MnK1EN
Touch Key Function Register List (n=0~2)
• TKTMR Register
Bit
7
6
5
4
3
2
1
0
Name
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
POR
0
0
0
0
0
0
0
0
Bit 7~0
D7~D0
: Touch key time slot 8-bit counter preload register
The touch key time slot counter preload register is used to determine the touch key
time slot overflow time. The time slot unit period is obtained by a 5-bit counter and
is equal to 32 time slot clock cycles. Therefore, the time slot counter overflow time is
equal to the following equation shown.
Time slot counter overflow time=(256 - TKTMR[7:0])×32 t
TSC
, where t
TSC
is the time
slot counter clock period.
• TKC0 Register
Bit
7
6
5
4
3
2
1
0
Name
—
TKRCOV
TKST
TKCFOV TK16OV
TSCS
TK16S1
TK16S0
R/W
—
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
—
0
0
0
0
0
0
0
Bit 7
Unimplemented, read as “0”
Bit 6
TKRCOV
: Touch key time slot counter overflow flag
0: No overflow occurs
1: Overflow occurs
This bit can be accessed by application program. When this bit is set by touch key time
slot counter overflow, the corresponding touch key interrupt request flag will be set.
However, if this bit is set by application program, the touch key interrupt request flag
will not be affected. Therefore, this bit cannot be set by application program but must
be cleared to 0 by application program.
If the module 0 time slot counter or the individual module time slot counter, selected
by the TSCS bit, overflows, the TKRCOV bit and the Touch Key Interrupt request
flag, TKMF, will be set and all module key oscillators and reference oscillators will
automatically stop. 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
automatically switched off.