Rev. 1.20
98
�an�a�� 2�� 201�
Rev. 1.20
99
�an�a�� 2�� 201�
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
Touch Key Function
Each 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 PA
~
P
D
logic I/O pins, with the desired function chosen via
register bits. Keys are organised into several groups, with each group known as a module and having
a
module number, M0 to M
n
. 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.
Device
Keys - n
Touch Key Module
Touch Key
Shared I/O Pin
BS82B12A-�
12
M0
Ke�1~Ke�4
PB0~PB�
M1
Ke��~Ke�8
PB4~PB7
M2
Ke�9~Ke�12
PC0~PC�
BS82C16A-�
16
M0
Ke�1~Ke�4
PB0~PB�
M1
Ke��~Ke�8
PB4~PB7
M2
Ke�9~Ke�12
PC0~PC�
M�
Ke�1�~Ke�16
PC4~PC7
BS82D20A-�
20
M0
Ke�1~Ke�4
PB0~PB�
M1
Ke��~Ke�8
PB4~PB7
M2
Ke�9~Ke�12
PD�� PD2� PC0� PC1
M�
Ke�1�~Ke�16
PC2~PC�
M4
Ke�17~Ke�20
PC6� PC7�
PA4� PA1
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 BS82B12A-3 has a range of M0 to M2, the
BS82C16A-3 has a range of M0 to M3, the BS82D20A-3 has a range of M0 to M
4.
Name
Usage
TKTMR
To�ch Ke� 8-bit time�/co�nte� �egiste�
TKC0
Co�nte� on-off and clea� cont�ol/�efe�ence clock cont�ol/Sta�t bit
TK16DL
To�ch ke� mod�le 16-bit co�nte� low b�te contents
TK16DH
To�ch ke� mod�le 16-bit co�nte� high b�te contents
TKC1
To�ch ke� OSC f�eq�enc� select
TKMn16DL
Mod�le n 16-bit co�nte� low b�te contents
TKMn16DH
Mod�le n 16-bit co�nte� high b�te contents
TKMnROL
Refe�ence OSC inte�nal capacito� select
TKMnROH
Refe�ence OSC inte�nal capacito� select
TKMnC0
Cont�ol Registe� 0
M�ltiplexe� Ke� Select
TKMnC1
Cont�ol Registe� 1
Ke� oscillato� cont�ol/Refe�ence oscillato� cont�ol/ To�ch ke� o� I/O select
Register Listing (n=0~4)
Содержание BS82B12A-3
Страница 33: ...Rev 1 20 33 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 34: ...Rev 1 20 34 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 35: ...Rev 1 20 35 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...