Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] connect AVR microcontroller to PC(The Serial Communication Terminal in codevision)

Status
Not open for further replies.

yaghoubi

Junior Member level 3
Joined
Aug 12, 2011
Messages
27
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,283
Activity points
1,485
Hello everybody
I want to send data from one AVR to another.
At first I going to send data to computer,to know what I have sent from AVR1(I'd like see what has been sent).
How I can connect the AVR to PC?
I don't know how connect AVR TX pin to computer.
 

Can I connect by usb port?

Does your AVR have a USB peripheral interface?

If not, you can use a USB to UART bridge chip or breakout board with FT232 device:

FT Series ICs - USB Slave Converters

FT232RL USB to UART Breakout Board

Once the USB interface is plugged into your PC, you can access a Virtual Serial COM Port as if it were a normal serial port.

Silicon Labs also makes a USB to UART bridge device.

They are very handy I keep several on the bench.

BigDog
 

check the data sheet of the AVR controller you are using to confirm if it supports USB... then you should use a USB to serial cable for this purpose..
 

In AVR programer , We use atmega8 connect directly with usb port.
I think we can use it for atmega16.
 

In AVR programer , We use atmega8 connect directly with usb port.
I think we can use it for atmega16.

I believe you are referring to the USBasp programmer USB interface:

USBasp - USB programmer for Atmel AVR controllers

Which uses a softUSB interface without a hardware peripheral. However, the code to implement it is in Assembly and can be difficult to port to other projects.

BigDog

---------- Post added at 07:06 ---------- Previous post was at 07:02 ----------

Here is another softUSB implementation for AVRs:

V-USB Virtual USB Port for AVR MCUs

Hope it helps with your endeavors.

BigDog
 
If this is just a project for yourself to be used on your PC, you should probably stick with serial communication between the PC and the microcontroller as this is the simplest method for PC to mcu communication (the least amount of headaches for you).

I found a site which provides a circuit to interface a microcontroller to a PC using just basic parts available from Radio Shack. Furthermore, the circuit described does not require an external power supply. You can find the schematic here:

- Serial port to microcontroller interface - - Inventions and Innovations

I have used it before and it worked perfectly with both an actual serial port as well as a "fake" serial port (a USB-to-virtual serial port converter).





good luck
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top