How can i define daud rate in avr microcontrollers ?
-
while learning the USART communication in avr setting baud rate part seems little confusing to me .
There are two registers for setting baud rate UBRROH AND UBBRROL
How Can i use these registers...? -
Hi @Richu-Bini, The Uart Baud Rate Register (UBRR) is used to set the clock for the UART shift registers and For standard crystal and resonator frequencies, the most commonly used baud rates for asynchronous operation can be generated by using the UBRR settings provided by the AVR Datasheet: AVR306: Using the AVR USART on tinyAVR and megaAVR devices
And you can find the equation from the datasheet to calculate the UBRR values depends on the clock source it has.
more details at the AVR306: Using the AVR USART on tinyAVR and
megaAVR devicessrc: http://www.avrbeginners.net/architecture/uart/uart.html#baud_generator
resource: