Difference between revisions of "AVR serial communications"
From Just in Time
(Created page with 'Notes on getting serial communications to work on AVR. ==Registers== ;UCSRB: (USART Control and Status Register B) In this register, set RXEN to enable serial reception and TXEN …') |
(No difference)
|
Revision as of 06:37, 2 December 2009
Notes on getting serial communications to work on AVR.
Registers
- UCSRB
- (USART Control and Status Register B) In this register, set RXEN to enable serial reception and TXEN to enable serial transmission.
- UBRR
- (USART Baud Rate Register) Sets the baud rate. The baud rate is fosc/(UBBR+1) divided by 2, 8 (U2X = 1) or 16 (U2X = 0). U2X is located in UCSRA.