EasyManua.ls Logo

Holtek BS82B12A-3 - UART Data T�Ansfe� Scheme; UART Stat�S and Cont�Ol Registe�S

Holtek BS82B12A-3
168 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 1.20 118 January 23, 2015 Rev. 1.20 119 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 Data Transfer Scheme
TheblockdiagramshowstheoveralldatatransferstructurearrangementfortheUARTinterface.
TheactualdatatobetransmittedfromtheMCUisfirsttransferredtotheTXRregisterbythe
applicationprogram.ThedatawillthenbetransferredtotheTransmitShiftRegisterfromwhereit
willbeshiftedout,LSBrst,ontotheTXpinataratecontrolledbytheBaudRateGenerator.Only
theTXRregisterismappedontotheMCUDataMemory,theTransmitShiftRegisterisnotmapped
andisthereforeinaccessibletotheapplicationprogram.
DatatobereceivedbytheUARTisacceptedontheexternalRXpin,fromwhereitisshiftedin,
LSBfirst,totheReceiverShiftRegisterataratecontrolledbytheBaudRateGenerator.When
theshiftregisterisfull,thedatawillthenbetransferredfromtheshiftregistertotheinternalRXR
register,whereitisbufferedandcanbemanipulatedbytheapplicationprogram.OnlytheRXR
registerismappedontotheMCUDataMemory,theReceiverShiftRegisterisnotmappedandis
thereforeinaccessibletotheapplicationprogram.
Itshouldbenotedthattheactualregisterfordatatransmissionandreception,althoughreferredto
inthetext,andinapplicationprograms,asseparateTXRandRXRregisters,onlyexistsasasingle
sharedregisterintheDataMemory.ThissharedregisterknownastheTXR_RXRregisterisused
forbothdatatransmissionanddatareception.
MSB LSB
…………………………
Transmitter Shift Register
MSB
LSB
…………………………
Receiver Shift Register
TX Pin RX Pin
Baud Rate
Generator
TXR Register
RXR Register
Buffer
MCU Data Bus
CLK CLK
UART Data Transfer Scheme
UART Status and Control Registers
TherearevecontrolregistersassociatedwiththeUARTfunction.TheUSR,UCR1andUCR2
registerscontroltheoverallfunctionoftheUART,whiletheBRGregistercontrolstheBaudrate.
TheactualdatatobetransmittedandreceivedontheserialinterfaceismanagedthroughtheTXR_
RXRdataregister.
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
USR PERR NF FERR OERR RIDLE RXIF TIDLE TXIF
UCR1 UARTEN BNO PREN PRT STOPS TXBRK RX8 TX8
UCR2 TXEN RXEN BRGH ADDEN WAKE RIE TIIE TEIE
TXR_RXR TXRX7 TXRX6
TXRX5 TXRX4 TXRX3 TXRX2 TXRX1 TXRX0
BRG BRG7 BRG6 BRG5 BRG4 BRG3 BRG2 BRG1 BRG0
UART Register List

Table of Contents

Related product manuals