BS83A04C
4-Key Enhanced Touch I/O Flash MCU
Register
Name
7
TKM0C0
—
TKM0C1
M0TSS
TKM0C2
M0SK31
M0SK30
TKM0TH16L
D7
TKM0TH16H
D15
TKM0THS
M0K4THF
M0K3THF
• TKTMR Register
Bit
7
Name
D7
R/W
R/W
POR
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 equal to t
be obtained by a 5-bit counter and equal to 32 time slot clock cycles. It also can be
obtained by bypassing a 5-bit counter and equal to 1 time slot clock cycle. Therefore,
the time slot counter overflow time is equal to the following equation shown.
If M0TSS=0, Time slot counter overflow time=(256-TKTMR[7:0])×32t
M0TSS=1, Time slot counter overflow time=(256-TKTMR[7:0])×t
the time slot counter clock period.
• TKC0 Register
Bit
7
Name
TKRAMC TKRCOV
R/W
R/W
POR
0
Bit 7
TKRAMC: Touch key data memory access control
0: Accessed by MCU
1: Accessed by touch key module
This bit determines that the touch key data memory is used by the MCU or the touch
key module. However, the touch key module will have the priority to access the touch
key data memory when the touch key module operates in the auto scan mode or the
periodic auto scan mode, i.e., the TKST bit state is changed from 0 to 1 when the
TKMOD1~TKMOD0 bits are set to 00, 10 or 11. After the touch key auto scan or
the periodic auto scan operation is completed, i.e., the TKBUSY bit state is changed
from 1 to 0, the touch key data memory access will be controlled by the TKRAMC
bit. Therefore, it is recommended to set the TKRAMC bit to 1 when the touch key
module operates in the auto scan mode or the periodic auto scan mode. Otherwise, the
contents of the touch key data memory may be modified as this data memory space is
configured by the touch key module followed by the MCU access.
TKRCOV: Touch key time slot counter overflow flag
Bit 6
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 TKRCOV interrupt request
flag will be set. However, if this bit is set by application program, the touch key
TKRCOV interrupt request flag will not be affected. Therefore, this bit can not be set
by application program but must be cleared to 0 by application program.
Rev. 1.00
6
5
4
—
M0DFEN
—
—
M0ROEN
M0KOEN
M0SK21
M0SK20
D6
D5
D4
D14
D13
D12
M0K2THF
M0K1THF
Touch Key Function Register List
6
5
D6
D5
R/W
R/W
0
0
6
5
TKST
TKCFOV
R/W
R/W
0
0
65
Bit
3
2
M0SOFC
M0SOF2
M0SOF1
M0K4EN
M0K3EN
M0K2EN
M0SK11
M0SK10
M0SK01
D3
D2
D11
D10
M0K4THS M0K3THS M0K2THS M0K1THS
4
3
2
D4
D3
D2
R/W
R/W
R/W
0
0
0
4
3
2
TK16OV TKMOD1 TKMOD0 TKBUSY
R/W
R/W
R/W
0
0
0
1
0
M0SOF0
M0K1EN
M0SK00
D1
D0
D9
D8
1
0
D1
D0
R/W
R/W
0
0
or 32t
. It can
STC
STC
, while if
TSC
, where t
is
TSC
TSC
1
0
R/W
R
1
0
March 24, 2020
Need help?
Do you have a question about the BS83A04C and is the answer not in the manual?