
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
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
corresponding selection register bits. Keys are organised into several groups, with each group known
as a module and having a module number, M0 to M2. Each module is a fully independent set of
four Touch Keys and each Touch Key has its own oscillator. Each module contains its own control
logic circuits and register set. Examination of the register names will reveal the module number it is
referring to.
Total Key Number
Touch Key Module
Touch Key
12
Mn
(n=0~2)
M0
KEY1~KEY4
M1
KEY5~KEY8
M2
KEY9~KEY12
Touch Key Structure
Touch Key Register Definition
Each touch key module, which contains four touch key functions, has its own suite registers. The
following table shows the register set for each touch key module. The Mn within the register name
refers to the Touch Key module number. The device has three Touch Key Modules.
Register Name
Description
TKTMR
Touch key time slot 8-bit counter preload register
TKC0
Touch key function Control register 0
TKC1
Touch key function Control register 1
TK16DL
Touch key function 16-bit counter low byte
TK16DH
Touch key function 16-bit counter high byte
TKMn16DL
Touch key module n 16-bit C/F counter low byte
TKMn16DH
Touch key module n 16-bit C/F counter high byte
TKMnROL
Touch key module n reference oscillator capacitor select low byte
TKMnROH
Touch key module n reference oscillator capacitor select high byte
TKMnC0
Touch key module n Control register 0
TKMnC1
Touch key module n Control register 1
Touch Key Function Register Definition (n=0~2)