11.07.2015 Views

ATMega chip full datasheet - UCSD Department of Physics

ATMega chip full datasheet - UCSD Department of Physics

ATMega chip full datasheet - UCSD Department of Physics

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ATmega48A/PA/88A/PA/168A/PA/328/PFigure 20-1. USART Block Diagram (1)Clock GeneratorUBRRn [H:L]OSCBAUD RATE GENERATORSYNC LOGICPINCONTROLXCKnTransmitterDATA BUSUDRn(Transmit)TRANSMIT SHIFT REGISTERPARITYGENERATORTXCONTROLPINCONTROLReceiverTxDnCLOCKRECOVERYRXCONTROLRECEIVE SHIFT REGISTERDATARECOVERYPINCONTROLRxDnUDRn (Receive)PARITYCHECKERUCSRnA UCSRnB UCSRnCNote: 1. Refer to Figure 1-1 on page 2 and Table 14-9 on page 90 for USART0 pin placement.20.3 Clock GenerationThe Clock Generation logic generates the base clock for the Transmitter and Receiver. TheUSART supports four modes <strong>of</strong> clock operation: Normal asynchronous, Double Speed asynchronous,Master synchronous and Slave synchronous mode. The UMSELn bit in USARTControl and Status Register C (UCSRnC) selects between asynchronous and synchronousoperation. Double Speed (asynchronous mode only) is controlled by the U2Xn found in theUCSRnA Register. When using synchronous mode (UMSELn = 1), the Data Direction Registerfor the XCKn pin (DDR_XCKn) controls whether the clock source is internal (Master mode) orexternal (Slave mode). The XCKn pin is only active when using synchronous mode.8271D–AVR–05/11179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!