From e63ed8a651e5246f8698a9c1c3e540029710d0e9 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Thu, 27 May 2021 20:06:47 +0100 Subject: Update 10 articles from html to md --- md/writeup/avr_echo.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 md/writeup/avr_echo.md (limited to 'md/writeup/avr_echo.md') diff --git a/md/writeup/avr_echo.md b/md/writeup/avr_echo.md new file mode 100644 index 0000000..0dac9fb --- /dev/null +++ b/md/writeup/avr_echo.md @@ -0,0 +1,36 @@ +title:AVR echo +keywords:avr,echo,c,atmega + + +# AVR echo +This code tested on ATmega16 + +```c +#include + +#define FOSC 16000000UL +#define BAUD 9600 +#define MYUBRR FOSC/16/BAUD-1 + +void USART_Init( unsigned int ubrr) +{ + UBRRH = (unsigned char)(ubrr>>8); + UBRRL = (unsigned char)ubrr; + UCSRB = (1<