Rev. 1.20 100 January 23, 2015 Rev. 1.20 101 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
Register
Name
Bit
7 6 5 4 3 2 1 0
TKTMR D7 D6
D5 D4 D3 D2 D1 D0
TKC0 — TKRCOV TKST TKCFOV TK16OV TSCS TK16S1 TK16S0
TK16DL D7 D6
D5 D4 D3 D2 D1 D0
TK16DH D
15 D14 D13 D12 D11 D10 D9 D8
TKC1 — — — — — — TKFS1 TKFS0
TKMn16DL D7 D6
D5 D4 D3 D2 D1 D0
TKMn16DH D
15 D14 D13 D12 D11 D10 D9 D8
TKMnROL D7 D6
D5 D4 D3 D2 D1 D0
TKMnROH — — — — — — D9 D8
TKMnC0 MnMXS1 MnMXS0 MnDFEN MnFILEN MnSOFC MnSOF2 MnSOF1 MnSOF0
TKMnC1 MnTSS — MnROEN MnKOEN MnK4IO Mn
K3IO MnK2IO MnK1IO
Touch Key Module (n=0~4)
TKTMR Register
Bit 7 6 5 4 3 2 1 0
Name D7 D6
D5 D4 D3 D2 D1 D0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0 0 0 0
Bit7~0 TouchKey8-bittimer/counterregister
Timeslotcounteroverowset-uptimeis(256-TKTMR[7:0])×32
TKC0 Register
Bit 7 6 5 4 3 2 1 0
Name — TKRCOV TKST TKCFOV TK16OV TSCS TK16S1 TK16S0
R/W — R/W R/W R/W R/W R/W R/W R/W
POR — 0 0 0 0 0 0 0
Bit7 Unimplemented,readas"0"
Bit6 TKRCOV:Timeslotcounteroverowag
0:Nooverow
1:Overow
Ifmodule0orallmoduletimeslotcounter,selectedbytheTSCSbit,isoverow,the
TouchKeyInterruptrequestag,TKMF,willbesetandallmodulekeyOSCsandref
OSCsautostop.Allmodule16-bitC/Fcounter,16-bitcounter,5-bittimeslotcounter
and8-bittimeslottimercounterwillbeautomaticallyswitchedoff.
B
it5 TKST:StartTouchKeydetectioncontrolbit
0:Stopped
0->1:Started
Inallmodulesthe16-bitC/Fcounter,16-bitcounter,5-bittimeslotcounterwill
beautomaticallyclearedwhenthisbitisclearedtozero(8-bitprogrammabletime
slotcounterwillnotbecleared,whichoverflowtimeissetupbyuser).Whenthis
bitchangesfromlowtohigh,the16-bitC/Fcounter,16-bitcounter,5-bittimeslot
counterand8-bittimeslottimercounterwillbeautomaticallyonandenablekeyOSC
andrefOSCoutputclockinputtothesecounters.
B
it4 TKCFOV:Touchkeymodule16-bitC/Fcounteroverowag
0:Notoverow
1:Overow
Thisbitmustbeclearedbyapplicationprogram.