Rev. 1.20 116 January 23, 2015 Rev. 1.20 117 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
UART Interface
Thedevicescontainanintegratedfull-duplexasynchronousserialcommunicationsUARTinterface
thatenablescommunicationwithexternaldevicesthatcontainaserialinterface.TheUARTfunction
hasmanyfeaturesandcantransmitandreceivedataseriallybytransferringaframeofdatawith
eightorninedatabitspertransmissionaswellasbeingabletodetecterrorswhenthedatais
overwrittenorincorrectlyframed.TheUARTfunctionpossessesitsowninternalinterruptwhich
canbeusedtoindicatewhenareceptionoccursorwhenatransmissionterminates.
TheintegratedUARTfunctioncontainsthefollowingfeatures:
• Full-duplex,UniversalAsynchronousReceiverandTransmitter(UART)communication
• 8or9bitscharacterlength
• Even,oddornoparityoptions
• Oneortwostopbits
• Baudrategeneratorwith8-bitprescaler
• Parity,framing,noiseandoverrunerrordetection
• Supportforinterruptonaddressdetect(lastcharacterbit=1)
• Transmitterandreceiverenabledindependently
• 2-byteDeepFIFOReceiveDataBuffer
• TransmitandReceiveMultipleInterruptGenerationSources:
♦
TransmitterEmpty
♦
TransmitterIdle
♦
ReceiverFull
♦
ReceiverOverrun
♦
AddressModeDetect
♦
RXpinwake-upinterrupt(RXenable,RXfallingedge)
UART External Pin Interfacing
Tocommunicatewithanexternalserialinterface,theinternalUARThastwoexternalpinsknown
asTXandRX.TheTXandRXpinsaretheUARTtransmitterandreceiverpinsrespectively.Along
withtheUARTENbit,theTXENandRXENbits,ifset,willautomaticallysetuptheseI/Oorother
pin-sharedfunctionalpinstotheirrespectiveTXoutputandRXinputconditionsanddisableany
pull-highresistoroptionwhichmayexistontheTXorRXpins.WhentheTXorRXpinfunction
isdisabledbyclearingtheUARTENandTXENorRXENbit,theTXorRXpincanbeusedasa
generalpurposeI/Oorotherpin-sharedfunctionalpin.