Skip to content

Instantly share code, notes, and snippets.

@raghavendrahassy
Created April 21, 2016 08:45
Show Gist options
  • Save raghavendrahassy/15436c65ab8020d32783380dbef86b82 to your computer and use it in GitHub Desktop.
Save raghavendrahassy/15436c65ab8020d32783380dbef86b82 to your computer and use it in GitHub Desktop.
void USART_Transmit( unsigned char data )
{
/* Wait for empty transmit buffer */
while ( !( UCSR0A & (1<<UDRE)) )
;
/* Put data into buffer, sends the data */
UDR0 = data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment