Rev. 1.20 144 January 23, 2015 Rev. 1.20 145 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
AcyclicLCDwaveformincludestwoframes,knownasFrame0andFrame1forwhichthe
followingoffersafunctionalexplanation.
In Frame 0
ToselectFrame0cleartheFRAMEbitto0.
Inframe0,theCOMsignaloutputcanhaveavalueofV
DD
,orhaveaV
bias
valueof(1/3)V
DD
.The
SEGsignalcanhaveavalueofV
SS
,orhaveaV
bias
valueof(2/3)V
DD
.
In Frame 1
Inframe1,theCOMsignaloutputcanhaveavalueofV
SS
,orhaveaV
bias
valueof(2/3)V
DD
.The
SEGsignalcanhaveavalueofV
DD
haveaVbiasvalueof(1/3)V
DD
.
TheCOM0~COMnwaveformiscontrolledbytheapplicationprogramusingtheFRAMEbit,andthe
correspondingI/OdataregisterfortherespectiveCOMpintodeterminewhethertheCOM0~COMn
outputhasavalueofeitherV
DD
,V
SS
orV
bias
.TheSEG0~SEGmwaveformiscontrolledinasimilar
wayusingtheFRAMEbitandthecorrespondingI/OdataregisterfortherespectiveSEGpinto
determinewhethertheSEG0~SEGnoutputhasavalueofeitherV
DD
,V
SS
orV
bias
.
LCD Bias Control
TheLCDCOMandSEGdriverenablearangeofselectionstobeprovidedtosuittherequirement
oftheLCDpanelwhicharebeingused.ThebiasresistorchoiceisimplementedusingtheISEL1
andISEL0bitsintheSLCDC0register.
SLCDC0 Register
Bit 7 6 5 4 3 2 1 0
Name FRAME ISEL1 ISEL0 LCDEN
COM3EN COM2EN COM1EN COM0EN
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 FRAME:Fram0orFrame1outputselection
0:Frame0
1:Frame1
Bit6~5 ISEL1~ISEL0:SCOMandSSEGoperatingcurrentselection(V
DD
=5V)
00:8.3μA
0
1:16.7μA
10:50μA
11:100μA
Bit4 LCDEN:SCOMandSSEGmoduleon/offcontrol
0:Disable
1:Enable
TheSCOMnandSSEGmlinescanbeenabledusingCOMnENandSEGmENif
LCDEN=1.WhenLCDEN=0,thentheSCOMnandSSEGmoutputswillbexedata
V
SS
level.
Bit3 COM3EN:SCOM3orotherfunctionselection
0:Otherfunction
1:SCOM3
Bit2 COM2EN:SCOM2orotherfunctionselection
0:Otherfunction
1:SCOM2
Bit1 COM1EN:SCOM1orotherfunctionselection
0:Otherfunction
1:SCOM1
Bit0 COM0EN:SCOM0orotherfunctionselection
0:Otherfunction
1:SCOM0