Touch Key Function
The device provides multiple touch key functions. The touch key function is fully integrated and
requires no external components, allowing touch key functions to be implemented by the simple
manipulation of internal registers.
Touch Key Structure
The touch keys are pin shared with the I/O pins, with the desired function chosen via the pin-shared
selection register bit. Keys are organised into one group, known as a module. The module is a fully
independent set of four Touch Keys and has its own oscillator. The module contains its own control
logic circuits and register set.
Touch Key Register Definition
The touch key module 0, which contains four touch key functions, is controlled using several
registers. The following table shows the register set for the touch key module 0.
Register Name
TKTMR
TKC0
TKC1
TKC2
TK16DL
TK16DH
TKM016DL
TKM016DH
TKM0ROL
TKM0ROH
TKM0C0
TKM0C1
TKM0C2
TKM0TH16L
TKM0TH16H
TKM0THS
Register
Name
7
TKTMR
D7
TKC0
TKRAMC
TKRCOV
TKC1
D7
TKC2
—
TK16DL
D7
TK16DH
D15
TKM016DL
D7
TKM016DH
D15
TKM0ROL
D7
TKM0ROH
—
Rev. 1.00
4-Key Enhanced Touch I/O Flash MCU
Total Key Number
Touch Key
4
KEY1~KEY4
Touch Key Structure
Touch key time slot 8-bit counter preload register
Touch key function control register 0
Touch key function control register 1
Touch key function control register 2
Touch key function 16-bit counter low byte
Touch key function 16-bit counter high byte
Touch key module 0 16-bit C/F counter low byte
Touch key module 0 16-bit C/F counter high byte
Touch key module 0 reference oscillator capacitor selection low byte
Touch key module 0 reference oscillator capacitor selection high byte
Touch key module 0 control register 0
Touch key module 0 control register 1
Touch key module 0 control register 2
Touch key module 0 16-bit threshold low byte
Touch key module 0 16-bit threshold high byte
Touch key module 0 threshold comparison flag
Touch Key Function Register Definition
6
5
4
D6
D5
D4
TKST
TKCFOV
D6
D5
—
—
—
—
D6
D5
D4
D14
D13
D12
D6
D5
D4
D14
D13
D12
D6
D5
D4
—
—
—
64
Shared I/O Pin
PA5, PA1, PA3, PA4
Description
Bit
3
2
D3
D2
TK16OV
TKMOD1
TKMOD0
TK16S1
TK16S0
TKFS1
—
TSC
ASMP1
D3
D2
D11
D10
D3
D2
D11
D10
D3
D2
—
—
BS83A04C
1
0
D1
D0
TKBUSY
TKFS0
ASMP0
D1
D0
D9
D8
D1
D0
D9
D8
D1
D0
D9
D8
March 24, 2020
Need help?
Do you have a question about the BS83A04C and is the answer not in the manual?