From c4d31595ee88f9d554a2d39f38e5e8f2532cb5e0 Mon Sep 17 00:00:00 2001 From: ejung Date: Sun, 1 Dec 2019 06:10:56 +0000 Subject: [PATCH] Update 'README.md' improve readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b2bfb74..b349f09 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,18 @@ lets you use normal `printf()` in your code. -## Adjustments to make +### Adjustments to make the dafault configuration works on an atmega328p with 38400 baud. Any other setup might require one of the following changes. -##### Set baudrate in 'uart.h' +#### Set baudrate in 'uart.h' line 6: `#define BAUD 38400` -##### Select which UART to use +#### Select which UART to use If your controller has more than one UART hardware and you want to use a different than UART0, change the register defines in the following way: +##### Example: UART0 -> UART3 from `#define UART_BAUD_REGH UBRR0H` to `#define UART_BAUD_REGH UBRR3H`
and
from `#define UART_UCSZ0_BM UCSZ00` to `#define UART_UCSZ0_BM UCSZ30`