Rev. 1.20 98 January 23, 2015 Rev. 1.20 99 January 23, 2015
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
Eachdeviceprovidesmultipletouchkeyfunctions.Thetouchkeyfunctionisfullyintegratedand
requiresnoexternalcomponents,allowingtouchkeyfunctionstobeimplementedbythesimple
manipulationofinternalregisters.
Touch Key Structure
ThetouchkeysarepinsharedwiththePA~PDlogicI/Opins,withthedesiredfunctionchosenvia
registerbits.Keysareorganisedintoseveralgroups,witheachgroupknownasamoduleandhaving
amodulenumber,M0toMn.EachmoduleisafullyindependentsetoffourTouchKeysandeach
TouchKeyhasitsownoscillator.Eachmodulecontainsitsowncontrollogiccircuitsandregister
set.Examinationoftheregisternameswillrevealthemodulenumberitisreferringto.
Device Keys - n Touch Key Module Touch Key Shared I/O Pin
BS82B12A-3 12
M0 K
ey1~Key4 PB0~PB3
M1 Key5~Key8 PB4~PB7
M2 K
ey9~Key12 PC0~PC3
BS82C16A-3 16
M0 K
ey1~Key4 PB0~PB3
M1 Key5~Key8 PB4~PB7
M2 K
ey9~Key12 PC0~PC3
M3 Key13~Key16 PC4~PC7
BS82D20A-3 20
M0 K
ey1~Key4 PB0~PB3
M1 Key5~Key8 PB4~PB7
M2 K
ey9~Key12 PD3, PD2, PC0, PC1
M3 Key13~Key16 PC2~PC5
M4 Key17~Key20
PC6, PC7,
PA4, PA1
Touch Key Register Denition
Eachtouchkeymodule,whichcontainsfourtouchkeyfunctions,hasitsownsuiteregisters.
Thefollowingtableshowstheregistersetforeachtouchkeymodule.TheMnwithintheregister
namereferstotheTouchKeymodulenumber,theBS82B12A-3hasarangeofM0toM2,the
BS82C16A-3hasarangeofM0toM3,theBS82D20A-3hasarangeofM0toM4.
Name Usage
TKTMR
Touch Key 8-bit timer/counter register
TKC0 Counter on-off and clear control/reference clock control/Start bit
TK16DL Touch key module 16-bit counter low byte contents
TK16DH Touch key module 16-bit counter high byte contents
TKC1 Touch key OSC frequency select
TKMn16DL Module n 16-bit counter low byte contents
TKMn16DH Module n 16-bit counter high byte contents
TKMnROL Reference OSC internal capacitor select
TKMnROH Reference OSC internal capacitor select
TKMnC0
Control Register 0
Multiplexer Key Select
TKMnC1
Control Register 1
Key oscillator control/Reference oscillator control/ Touch key or I/O select
Register Listing (n=0~4)