Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created November 7, 2017 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esmarr58/268014a3f48432fc54ecacca2aa43cd6 to your computer and use it in GitHub Desktop.
Save esmarr58/268014a3f48432fc54ecacca2aa43cd6 to your computer and use it in GitHub Desktop.
void InitUART( unsigned char baudrate ) { //Configurando la UART
UBRRL = baudrate; //Seleccionando la velocidad
UCSRB = (UCSRB | _BV(RXEN) | _BV(TXEN));//Habilitando la transmisión y recepción
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment