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.

can anyone tell me how to interface atmega328 with pc via usb port?

Status
Not open for further replies.

alfie.max15

Member level 2
Joined
Jan 3, 2013
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,660
I am trying to find a way to communicate with usb port to which a microcontroller has been connected.
can anyone help me how i can?
i am using atmega328
 

alfie.max15

Member level 2
Joined
Jan 3, 2013
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,660
actually i dont have a serial port in my pc
so i want o connect atmega328 to pc via usp port
and then i dont know how to communicate with it using windows/linux

- - - Updated - - -

actually i dont have a serial port in my pc
so i want o connect atmega328 to pc via usp port
and then i dont know how to communicate with it using windows/linux
 

alexan_e

Administrator
Joined
Mar 16, 2008
Messages
11,895
Helped
2,021
Reputation
4,158
Reaction score
2,032
Trophy points
1,393
Location
Greece
Activity points
64,375
I'm still not clear of what you are asking, is it a USB bootloader similar to arduino or are you asking for the actual arduino bootloader
If thew question is about arduino you can find all relevant info https://www.arduino.cc/
if not check https://www.obdev.at/products/vusb/usbasploader.html but note that you will need a programmer to program the bootloader to the AVR in both cases
 

alfie.max15

Member level 2
Joined
Jan 3, 2013
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,660
i mean that i can connect a atmega328 to pc via usb cable
but i dont know how to access or read the data trasmitted from the microcontroller from the pc
is it possible to do so using c language?
 

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,349
Reputation
4,692
Reaction score
2,275
Trophy points
1,413
Location
Southwest, USA
Activity points
62,385
You can either implement V-USB which Alex suggested in reply #2, which is a firmware/software based USB implementation.

Or you can utilize a USB to Serial Bridge chipset like the FT232R which interfaces directly to the AVRs UART.

In either case the USB can implement a CDC device class which appears as Virtual COM Port on the PC, allowing legacy applications which support RS-232 serial port interfacing.


BigDog
 

mifth

Newbie level 2
Joined
Jan 7, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Surabaya
Activity points
1,289
did you mean that you are gonna communicated your microcontroller w/ PC? if the case like that its plenty ways i.e. you can use usb to ttl(simple one) or ou can use rs232 interfaced with db9.. how it works? just google it CMIIW
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top