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
Bit5 BRGH:BaudRatespeedselection
0:Lowspeedbaudrate
1:Highspeedbaudrate
ThebitnamedBRGHselectsthehighorlowspeedmodeoftheBaudRateGenerator.
Thisbit,togetherwiththevalueplacedinthebaudrateregisterBRG,controlsthe
BaudRateoftheUART.Ifthisbitisequalto"1",thehighspeedmodeisselected.If
thebitisequalto"0",thelowspeedmodeisselected.
Bit4 ADDEN:Addressdetectfunctionenablecontrol
0:Addressdetectionfunctionisdisabled
1:Addressdetectionfunctionisenabled
ThebitnamedADDENistheaddressdetectfunctionenablecontrolbit.Whenthis
bitisequalto"1",theaddressdetectfunctionisenabled.Whenitoccurs,ifthe8th
bit,whichcorrespondstoRX7ifBNO=0orthe9thbit,whichcorrespondstoRX8if
BNO=1,hasavalueof"1",thenthereceivedwordwillbeidentiedasanaddress,
ratherthandata.Ifthecorrespondinginterruptisenabled,aninterruptrequestwillbe
generatedeachtimethereceivedwordhastheaddressbitset,whichisthe8thor9th
bitdependingonthevalueofBNO.Iftheaddressbitknownasthe8thor9thbitofthe
receivedwordis"0"withtheaddressdetectfunctionbeingenabled,aninterruptwill
notbegeneratedandthereceiveddatawillbediscarded.
Bit3 WAKE:RXpinfallingedgewake-upfunctionenablecontrol
0:RXpinwake-upfunctionisdisabled
1:RXpinwake-upfunctionisenabled
Thisbitenablesordisablesthereceiverwake-upfunction.Ifthisbitisequalto"1"
andthedeviceisintheIDLE0orSLEEPmode,afallingedgeontheRXinputpin
willwake-upthedevice.Ifthisbitisequalto"0"andthedeviceisintheIDLEor
SLEEPmode,anyedgetransitionsontheRXpinwillnotwake-upthedevice.
Bit2 RIE:Receiverinterruptenablecontrol
0:Receiverrelatedinterruptisdisabled
1:Receiverrelatedinterruptisenabled
Thisbitenablesordisablesthereceiverinterrupt.Ifthisbitisequalto"1"andwhen
thereceiveroverrunagOERRorreceivedataavailableagRXIFisset,theUART
interruptrequestagwillbeset.Ifthisbitisequalto"0",theUARTinterruptrequest
agwillnotbeinuencedbytheconditionoftheOERRorRXIFags.
Bit1 TIIE:TransmitterIdleinterruptenablecontrol
0:Transmitteridleinterruptisdisabled
1:Transmitteridleinterruptisenabled
Thisbitenablesordisablesthetransmitteridleinterrupt.Ifthisbitisequalto"1"and
whenthetransmitteridleagTIDLEisset,duetoatransmitteridlecondition,the
UARTinterruptrequestagwillbeset.Ifthisbitisequalto"0",theUARTinterrupt
requestagwillnotbeinuencedbytheconditionoftheTIDLEag.
Bit0 TEIE:TransmitterEmptyinterruptenablecontrol
0:Transmitteremptyinterruptisdisabled
1:Transmitteremptyinterruptisenabled
Thisbitenablesordisablesthetransmitteremptyinterrupt.Ifthisbitisequalto"1"
andwhenthetransmitteremptyagTXIFisset,duetoatransmitteremptycondition,
theUARTinterruptrequestflagwillbeset.Ifthisbitisequalto"0",theUART
interruptrequestagwillnotbeinuencedbytheconditionoftheTXIFag.