Task #85

Task #77: ATmega firmware programmieren

Task #84: Interface with ESP8266

Establish UART Communication between ATmega and PC

Added by joshwap over 5 years ago. Updated over 5 years ago.

Status:ErledigtStart date:01/04/2015
Priority:NormalDue date:
Assignee:joshwap% Done:

100%

Category:-Estimated time:1.00 hour
Target version:-Spent time:3.55 hours

Description

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.

History

#1 Updated by joshwap over 5 years ago

  • Estimated time changed from 0.50 to 1.00
Comment

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.

#2 Updated by joshwap over 5 years ago

Comment

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

#3 Updated by joshwap over 5 years ago

Comment

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.

#4 Updated by joshwap over 5 years ago

  • % Done changed from 0 to 90

#5 Updated by joshwap over 5 years ago

  • % Done changed from 90 to 100
Comment

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

#6 Updated by joshwap over 5 years ago

  • Status changed from Neu to Erledigt

Also available in: Atom PDF

Go to top