Rev. 1.20 122 January 23, 2015 Rev. 1.20 123 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
Bit2 TXBRK:Transmitbreakcharacter
0:Nobreakcharacteristransmitted
1:Breakcharacterstransmit
TheTXBRKbitistheTransmitBreakCharacterbit.Whenthisbitis"0",thereare
nobreakcharactersandtheTXpinoperatesnormally.Whenthebitis"1",thereare
transmitbreakcharactersandthetransmitterwillsendlogiczeros.Whenthisbitis
equalto"1",afterthebuffereddatahasbeentransmitted,thetransmitteroutputisheld
lowforaminimumofa13-bitlengthanduntiltheTXBRKbitisreset.
Bit1 RX8:Receivedatabit8for9-bitdatatransferformat(readonly)
Thisbitisonlyusedif9-bitdatatransfersareused,inwhichcasethisbitlocationwill
storethe9thbitofthereceiveddataknownasRX8.TheBNObitisusedtodetermine
whetherdatatransfersarein8-bitor9-bitformat.
Bit0 TX8:Transmitdatabit8for9-bitdatatransferformat(writeonly)
Thisbitisonlyusedif9-bitdatatransfersareused,inwhichcasethisbitlocation
willstorethe9thbitofthetransmitteddataknownasTX8.TheBNObitisusedto
determinewhetherdatatransfersarein8-bitor9-bitformat.
UCR2 register
TheUCR2registeristhesecondofthetwoUARTcontrolregistersandservesseveralpurposes.One
ofitsmainfunctionsistocontrolthebasicenable/disableoperationoftheUARTTransmitterand
ReceiveraswellasenablingthevariousUARTinterruptsources.Theregisteralsoservestocontrol
thebaudratespeed,receiverwake-upenableandtheaddressdetectenable.Furtherexplanationon
eachofthebitsisgivenbelow.
Bit 7 6 5 4 3 2 1 0
Name TXEN RXEN BRGH ADDEN WAKE RIE TIIE TEIE
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 TXEN:UARTTransmitterenabledcontrol
0:UARTtransmitterisdisabled
1:UARTtransmitterisenabled
ThebitnamedTXENistheTransmitterEnableBit.Whenthisbitisequalto"0",the
transmitterwillbedisabledwithanypendingdatatransmissionsbeingaborted.In
additionthebufferswillbereset.InthissituationtheTXpinwillbeusedasanI/Oor
otherpin-sharedfunctionalpin.
IftheTXENbitisequalto"1"andtheUARTENbitisalsoequalto"1",the
transmitterwillbeenabledandtheTXpinwillbecontrolledbytheUART.Clearing
theTXENbitduringatransmissionwillcausethedatatransmissiontobeabortedand
willresetthetransmitter.Ifthissituationoccurs,theTXpinwillbeusedasanI/Oor
otherpin-sharedfunctionalpin.
Bit6 RXEN:UARTReceiverenabledcontrol
0:UARTreceiverisdisabled
1:UARTreceiverisenabled
ThebitnamedRXENistheReceiverEnableBit.Whenthisbitisequalto"0",the
receiverwillbedisabledwithanypendingdatareceptionsbeingaborted.Inaddition
thereceivebufferswillbereset.InthissituationtheRXpinwillbeusedasanI/Oor
otherpin-sharedfunctionalpin.IftheRXENbitisequalto"1"andtheUARTENbit
isalsoequalto"1",thereceiverwillbeenabledandtheRXpinwillbecontrolledby
theUART.ClearingtheRXENbitduringareceptionwillcausethedatareceptionto
beabortedandwillresetthereceiver.Ifthissituationoccurs,theRXpinwillbeused
asanI/Oorotherpin-sharedfunctionalpin.