Task #77: ATmega firmware programmieren
Task #84: Interface with ESP8266
Establish UART Communication between ATmega and PC
|Category:||-||Estimated time:||1.00 hour|
|Target version:||-||Spent time:||3.55 hours|
First of progra a firmware capable to communicate over UART. The connection to a host PC ensures later on that UART isn't the problem if any bugs may be encountered.
- Estimated time changed from 0.50 to 1.00
the usart driver needs the sysclk module to work. So here it comes ... work!
If i'd use a newer atmega all of this wouldn't happen.
Turned out the structure of the uart driver as a whole is impractical with the ATmega32. I need to take another one or write my own
I just looked over my stock of ICs and found 2 ATmega328 ... LUCKY!
Changed them and works like a charm. Now trying some minor changes on the usart driver.
- % Done changed from 0 to 90
- % Done changed from 90 to 100
Turns out i need a special crystal for 115200. Got it working with 16Mhz and UBRR = 8.
Changed the function which calculates the value for UBRR to produce the same results as in the table in the datasheet
- Status changed from Neu to Erledigt
Also available in: Atom
Go to top