Programmers

All on one SLOW page
Serial Port
Parallel Port
Smart Programmers
Serial Loaders

Projects

ATmega8 Serial LCD
ATtiny2313 Serial LCD
ATtiny4313 Serial LCD
ATmega328 SIRC
ATtiny2313 SIRC
40-pin Dev Board
28-pin Dev Board
AVR PS/2 Keyboard
AVR MAX232 RTS/CTS
AVR Dual RS232 Ports

Minimal Circuits

ATmega16
ATmega32
ATmega644
ATmega1284
ATmega8515
ATmega8535
ATmega8
ATmega48
ATmega88
ATmega168
ATmega328
ATmega162
ATmega128
ATtiny13
ATtiny2313
ATtiny4313
ATtiny24
ATtiny84
ATtiny25
ATtiny45
ATtiny85

Other Stuff

ATtiny13 vs ATtiny85
ATmega8 vs ATmega88
ATmega16 vs ATmega164
ISP and SPI
MAX232 Arduino
A small FAQ
Hardware Info

Dual RS232 using an AVR ATmega644 and MAX232

Introduction

The purpose of this project is to demonstrate the use of a MAX232 with a Dual USART ATmega, specifically an ATmega644, but the concept applies to all AVR's that have dual USARTS. The MAX232 provides two RS232 transmitters and two RS232 receivers.

Parts

With a 20 MHz crystal you get more bang for the buck, but if you need the highest baud rates, you will need to slow it down by using a 14.7456 MHz or 18.4320 MHz. The following table lists baud rates and divisors with different crystal frequencies. (Assumes U2X = 1)

Baud Rate14.7456 MHz18.4320 MHz
9600191239
1920095119
384004759
576003139
768002329
115.2k1519
230.4k79
460.8k3-
921.6k1-
2.304M-1

If you can live with non-standard baud rates, like when you are talking to another device of your own making, and don't have to worry about the outside world, you can get up to 2.5 MBaud with a 20 MHz crystal.