fb5.c
//If this doesn't work then an interrupt can also be used. Refer page 106 of Software Manual
If this doesn't work then an interrupt can also be used. Refer page 106 of Software Manual
If this doesn ' t work then an interrupt can also be used . Refer page 106 of Software Manual
void USART_Transmit( unsigned char data )										
{
while( !( UCSR2A & (1<<UDRE2)) )
;
UDR2 = data;
}
void USART_Transmit ( unsigned char data ) { while ( ! ( UCSR2A & ( 1 << UDRE2 ) ) ) ; UDR2 = data ; }
If this doesn't work then an interrupt can also be used.
If this doesn ' t work then an interrupt can also be used .
/* Wait for empty transmit buffer*/ /* Put data into buffer, sends the data*/