Skip to content

Software implemented UART library designed for simplicity and easy configuration. When you have to use a chip without crystal oscillator you will find yourself having a hard time getting the communication to work. In this case you can instead use the 'tiny UART' and calibrate your Baudrate pricesely according to the accuracy of the onchip RC-Osc…

Notifications You must be signed in to change notification settings

sklf81/a-ttiny-uart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

This is A-Ttiny-UART program

As the name implies this is a library written for UART communication on a low-end ATtiny Microprocessor. I've created this 'rugged' version for the sake of simplicity... The library has got to be highly integrated into the program and it may be tricky to understand at first glance.

Here's a little explaination:

For the Transmitter of the UART library i got the source code and all relevant information from Marcel Meyer-Garcia (https://github.com/MarcelMG/AVR8_BitBang_UART_TX) If you find yourself trying to get a µC to communicate over UART but don't have a proper crystal for the timing of it all, this library might come handy. With the timer_comperator parameter of the UART_init() function, you can calibrate a hardware timer of the µC to form a Clock-Divider that provides the frequency for the desired baudrate. When you notice that you receive the wrong symbols on your Serial-Terminal you might consider tweaking the value of timer_compare a little that the counter times at the right pace.

About

Software implemented UART library designed for simplicity and easy configuration. When you have to use a chip without crystal oscillator you will find yourself having a hard time getting the communication to work. In this case you can instead use the 'tiny UART' and calibrate your Baudrate pricesely according to the accuracy of the onchip RC-Osc…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published