Holtek BS83A04C Manual page 71

4-key enhanced touch i/o flash mcu
Table of Contents

Advertisement

BS83A04C
4-Key Enhanced Touch I/O Flash MCU
• TKM0C2 Register
This register is used to select the desired scan key in the time slots 0~3 of the touch key module 0. It
should be noted that if any key is disabled, the touch key module 0 Reference and Key oscillators of
the corresponding time slot will not oscillate.
Bit
7
Name
M0SK31
R/W
R/W
POR
1
M0SK31~M0SK30: Touch key module 0 time slot 3 key scan select
Bit 7~6
00: KEY1
01: KEY2
10: KEY3
11: KEY4
These bits are used to select the desired scan key in time slot 3. The settings for these
bits are invalid when TKMOD1~TKMOD0=01 or TSC=1.
Bit 5~4
M0SK21~M0SK20: Touch key module 0 time slot 2 key scan select
00: KEY1
01: KEY2
10: KEY3
11: KEY4
These bits are used to select the desired scan key in time slot 2. The settings for these
bits are invalid when TKMOD1~TKMOD0=01 or TSC=1.
Bit 3~2
M0SK11~M0SK10: Touch key module 0 time slot 1 key scan select
00: KEY1
01: KEY2
10: KEY3
11: KEY4
These bits are used to select the desired scan key in time slot 1. The settings for these
bits are invalid when TKMOD1~TKMOD0=01 or TSC=1.
M0SK01~M0SK00: Touch key module 0 time slot 0 key scan select
Bit 1~0
00: KEY1
01: KEY2
10: KEY3
11: KEY4
These bits are used to select the desired scan key in time slot 0 in the auto scan mode
or the periodic auto scan mode or used as the multiplexer for scan key select in the
manual mode.
• TKM0TH16H/TKM0TH16L – Touch Key Module 0 16-bit Threshold Register Pair
Register
Bit
7
Name
D15 D14 D13 D12 D11 D10 D9
R/W
R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR
0
This register pair is used to store the touch key module 0 16-bit upper/lower threshold value. This
register pair will be loaded with the corresponding upper/lower threshold value from the dedicated
touch key data memory automatically by the hardware before scanning the touch key. After the
touch key module 0 dedicated touch key, KEYn (n=1~4), scan operation is completed, the 16-bit C/F
counter content, TKM016DH/TKM016DL, will be compared with the TKM0TH16H/TKM0TH16L
value by the hardware. When this value is less than the lower threshold if M0KnTHS=0, or larger
than the upper threshold if M0KnTHS=1, then the M0KnTHF flag will be set high, and an interrupt
signal will be generated.
Rev. 1.00
6
5
M0SK30
M0SK21
M0SK20
R/W
R/W
R/W
1
1
TKM0TH16H
6
5
4
3
2
1
0
0
0
0
0
0
71
4
3
2
M0SK11
M0SK10
M0SK01
R/W
R/W
0
0
1
TKM0TH16L
0
7
6
5
4
3
D8
D7
D6
D5
D4
D3
0
0
0
0
0
0
1
0
M0SK00
R/W
R/W
0
0
2
1
0
D2
D1
D0
0
0
0
March 24, 2020

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BS83A04C and is the answer not in the manual?

Questions and answers

Table of Contents