Pages: [1]   Go Down
Author Topic: Atmega 8 in 3V3, 8Mhz Xtal... what is the speed error in 2400Bauds?  (Read 2075 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 153
veroboaring is the new XGame - Extreme Veroboarder
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey all!!

Can i know what is the timing error at 2400Bauds using a 8Mhz cristal?. All this in a AtMega 8 Arduino CPU

If i change the 16Mhz Crystal for a 8Mhz Crystal, and use 3V3 as power source, i need to change more fuse bits that the BOD=2,7V?

Best Regards
Frank
Logged

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The ATmega8 has different part numbers for 3.3V and 5V parts.  If you have a 5V part it will not operate reliably at 3.3V.

A 328P (note P suffix) can operate at different voltages and speeds without changing parts.

Create a new boards.txt entry for your part, or just use an 8MHz board entry like the lilypad or the 8MHz Pro, and you won't have baud rate errors (or millis() errors, or delay() errors, etc...).

-j
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 153
veroboaring is the new XGame - Extreme Veroboarder
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My CPU runs great, all the IO functions are rigth. The only thing is know if i use a 8Mhz crystal, using the internal prescalers UART setup, at 2400BPS how many bauds i have like error.

I got 2400Bauds, but i want to know what is the error using a 8Mhz and what if i use a 16Mhz Xtal.

At UART always we have some speed diferences, smallers but they are.

In fact, 16Mhz or 8Mhz for 2400Bauds do not give a standar preescaler value, 3333,333...4 will be the number

Best Regards
Frank
Logged

Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2086
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

here you are:

http://www.wormfood.net/avrbaudcalc.php

0.2%
Logged

Pages: [1]   Go Up
Jump to: