in the below program BAUD_PRESCALE =((crystal freq/(baudrate*16)-1)=77
now i should do,UBRRL=BAUD_PRESCALE,BUT IN THE FOLLOWING FUNCTION ONE THING MAKES ME CONFUSED,UBRRH=(BAUD_PRESCALE>>8);WHATS THIS? PLEASE EXPLAIN,,,,THANKS SO MUCH,THE REAL HUMINITY
void usart_init()
{
UCSRB |= (1<<RXCIE) | (1 << RXEN) | (1 << TXEN); // Turn on the transmission and reception circuitry
UCSRC |= (1 << URSEL) | (1 << UCSZ0) | (1 << UCSZ1); // Use 8-bit character sizes
UBRRL = BAUD_PRESCALE; // Load lower 8-bits of the baud rate value into the low byte of the UBRR register
UBRRH = (BAUD_PRESCALE >> 8); // Load upper 8-bits of the baud rate value into the high byte of the UBRR register
}
now i should do,UBRRL=BAUD_PRESCALE,BUT IN THE FOLLOWING FUNCTION ONE THING MAKES ME CONFUSED,UBRRH=(BAUD_PRESCALE>>8);WHATS THIS? PLEASE EXPLAIN,,,,THANKS SO MUCH,THE REAL HUMINITY
void usart_init()
{
UCSRB |= (1<<RXCIE) | (1 << RXEN) | (1 << TXEN); // Turn on the transmission and reception circuitry
UCSRC |= (1 << URSEL) | (1 << UCSZ0) | (1 << UCSZ1); // Use 8-bit character sizes
UBRRL = BAUD_PRESCALE; // Load lower 8-bits of the baud rate value into the low byte of the UBRR register
UBRRH = (BAUD_PRESCALE >> 8); // Load upper 8-bits of the baud rate value into the high byte of the UBRR register
}