UART in ATMEGA 8535

Started by taufiq_tqr March 9, 2010
Dear all friend,

Anybody help me to explain to me and give me a example how to communicate serial port between ATMEGA8535 and Personal Computer (PC).
Pls the code use C language.

Thanks all, I'm wait the answer

Hi Taufiq,

The data sheet for the ATMEGA8535 pages 145 to 173 contain data for setting
up and using the USART. Page 151 contains C code for initialization of the
USART. Page 152 has C code for the transmission of data using 8 bits. Page
155 has C code for the reception of data using 8 bits. In the following
pages is data on calculating and setting the baud rate, etc.

Note that PC's use RS232 voltage levels for the serial port and you will
need a level converter chip such as the MAX232 to convert the TTL levels of
the 8535 to the RS232 levels.

Zack

On Sat, Mar 6, 2010 at 8:22 AM, taufiq_tqr wrote:

> Dear all friend,
>
> Anybody help me to explain to me and give me a example how to communicate
> serial port between ATMEGA8535 and Personal Computer (PC).
> Pls the code use C language.
>
> Thanks all, I'm wait the answer
>