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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ATmega48A/PA/88A/PA/168A/PA/328/PTable 20-11.UCPOLnUCPOLn Bit SettingsTransmitted Data Changed (Output <strong>of</strong>TxDn Pin)0 Rising XCKn Edge Falling XCKn Edge1 Falling XCKn Edge Rising XCKn Edge20.11.5 UBRRnL and UBRRnH – USART Baud Rate RegistersReceived Data Sampled (Input on RxDnPin)Bit 15 14 13 12 11 10 9 8– – – – UBRRn[11:8] UBRRnHUBRRn[7:0]UBRRnL7 6 5 4 3 2 1 0Read/Write R R R R R/W R/W R/W R/WR/W R/W R/W R/W R/W R/W R/W R/WInitial Value 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0• Bit 15:12 – ReservedThese bits are reserved for future use. For compatibility with future devices, these bit must bewritten to zero when UBRRnH is written.• Bit 11:0 – UBRR[11:0]: USART Baud Rate RegisterThis is a 12-bit register which contains the USART baud rate. The UBRRnH contains the fourmost significant bits, and the UBRRnL contains the eight least significant bits <strong>of</strong> the USARTbaud rate. Ongoing transmissions by the Transmitter and Receiver will be corrupted if the baudrate is changed. Writing UBRRnL will trigger an immediate update <strong>of</strong> the baud rate prescaler.8271D–AVR–05/11205

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

Saved successfully!

Ooh no, something went wrong!