Forums

USART microcontroller communication

Started by ahme...@gmail.com February 20, 2006
Hello all,

Consider the atmega48 microcontroller by Atmel corp. I want to connects
its USART to my PC. Basically i want the microcontroller to talk to to
computer.

How can i do this?

1. Using a serial port?

2. Can a build my own PCI/ISA card for the pc so that it can read from
the uC and send the data to the computer where other devices can use
the information?

3. Other options?


Thank you

ahmed.sharifi@gmail.com wrote:
> Hello all, > > Consider the atmega48 microcontroller by Atmel corp. I want to connects > its USART to my PC. Basically i want the microcontroller to talk to to > computer. > > How can i do this? > > 1. Using a serial port?
Yes. You need an electrical level translator between the serial port of the chip and the cable to the PC. A representative chip is Maxim MAX232 and its derivatives.
> 2. Can a build my own PCI/ISA card for the pc so that it can read from > the uC and send the data to the computer where other devices can use > the information?
Too complicated.
> 3. Other options?
None sensible, if the idea is to use the serial port of the controller. -- Tauno Voipio tauno voipio (at) iki fi
Tauno Voipio wrote:
> ahmed.sharifi@gmail.com wrote: > > Hello all, > > > > Consider the atmega48 microcontroller by Atmel corp. I want to connects > > its USART to my PC. Basically i want the microcontroller to talk to to > > computer. > > > > How can i do this? > > > > 1. Using a serial port? > > Yes. You need an electrical level translator between > the serial port of the chip and the cable to the PC. > A representative chip is Maxim MAX232 and its derivatives.
Or with a few transistors.
> > > 2. Can a build my own PCI/ISA card for the pc so that it can read from > > the uC and send the data to the computer where other devices can use > > the information? > > Too complicated.
Unnecessary.
> > > 3. Other options? > > None sensible, if the idea is to use the serial port of > the controller.
Not serial, but parallel port would be cheaper and faster.
ahmed,
          Now every microcontroller are having the pin connection and
corresponding register for serial asynchronous communication (RS232),
so you can happly use these facility for your application. But in
between (PC - uC)  you have to use some level converter (say MAX232),
thats it.