
Rev. 1.10
76
March 02, 2020
Rev. 1.10
77
March 02, 2020
BS83A02L/BS83B04L
Ultra-Low Power Touch Key Flash MCU
BS83A02L/BS83B04L
Ultra-Low Power Touch Key Flash MCU
Touch Key Function – BS83A02L
The device provides two 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 two Touch Keys and has its own oscillator. The module contains its own control
logic circuits and register set.
Total Key Number
Touch Key
Shared I/O Pin
2
KEY1~KEY2
PA1, PA3
Touch Key Structure
Touch Key Register Definition
The touch key module 0, which contains two touch key functions, has its own suite registers. The
following table shows the register set for the touch key module 0.
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
TKC2
Touch key function control register 2
TK16DL
Touch key function 16-bit counter low byte
TK16DH
Touch key function 16-bit counter high byte
TKM016DL
Touch key module 0 16-bit C/F counter low byte
TKM016DH
Touch key module 0 16-bit C/F counter high byte
TKM0ROL
Touch key module 0 reference oscillator capacitor selection low byte
TKM0ROH
Touch key module 0 reference oscillator capacitor selection high byte
TKM0C0
Touch key module 0 control register 0
TKM0C1
Touch key module 0 control register 1
TKM0C2
Touch key module 0 control register 2
TK1M0TH16L
Touch key module 0 KEY1 16-bit threshold low byte
TK1M0TH16H
Touch key module 0 KEY1 16-bit threshold high byte
TK2M0TH16L
Touch key module 0 KEY2 16-bit threshold low byte
TK2M0TH16H
Touch key module 0 KEY2 16-bit threshold high byte
TKM0K1ROCL
Touch key module 0 KEY1 Reference OSC internal capacitor selection low byte
TKM0K1ROCH
Touch key module 0 KEY1 Reference OSC internal capacitor selection high byte
TKM0K2ROCL
Touch key module 0 KEY2 Reference OSC internal capacitor selection low byte
TKM0K2ROCH
Touch key module 0 KEY2 Reference OSC internal capacitor selection high byte
TKM0K1CNTL
Touch key module 0 KEY1 16-bit counter low byte
TKM0K1CNTH
Touch key module 0 KEY1 16-bit counter high byte
TKM0K2CNTL
Touch key module 0 KEY2 16-bit counter low byte
TKM0K2CNTH
Touch key module 0 KEY2 16-bit counter high byte
TKM0THS
Touch key module 0 threshold comparison flag
Touch Key Function Register Definition