Created
April 21, 2016 08:45
-
-
Save raghavendrahassy/15436c65ab8020d32783380dbef86b82 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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