Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Connecting Atmega8 directly to PC via USB

Status
Not open for further replies.

d_a_l_3

Junior Member level 1
Joined
Jun 8, 2007
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Croatia
Activity points
1,386
Hi

I have Atmega8 and I need USB connection with PC, to control LedMatrix
Now, can someone help me to realize that, I have seen many with PIC
But not USB to serial and than, I need direct methode to comunicate with Atmega(

Thanks
 

kishore2k4

Full Member level 5
Joined
Jun 17, 2006
Messages
296
Helped
44
Reputation
88
Reaction score
10
Trophy points
1,298
Location
Middle Earth
Activity points
3,295
atmega usb

Since the ATMega8 doesn't sport a USB controller you have to use, either a serial/parallel connection or get a USB-serial converter which simply installs a driver on the host PC so that the whole connection will look like a serial(emulated) link so you can use just about any program to talk to your controller.

Also don't forget to use a RS232-TTL serial level translator lke MAX232.

If all that sounds to summarised you can do the following:

Get a USB-Serial converter and install it on your PC
Also use a MAX232 or similar IC as a level translator for your microcontroller(ATMega8)
Decide on a buad rate and other serial settings like pariy.
You can immediately test your code with the built-in utility program called Hyper Terminal that comes preinstalled with most windows versions.
 

Willebul

Junior Member level 3
Joined
Mar 18, 2002
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Africa
Activity points
136
atmega8 usb driver

Hi

Why not use one of the Atmel AT90USBxxx devices , It is a AVR with USB port included. Your mega8 code will run as is , just add the usb code

Wb
 

d_a_l_3

Junior Member level 1
Joined
Jun 8, 2007
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Croatia
Activity points
1,386
atmega8 usb

Hi

Because I can't buy AT90USBxxx devices in my country...
That is problem...

:D
 

d_a_l_3

Junior Member level 1
Joined
Jun 8, 2007
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Croatia
Activity points
1,386
atmega usb driver

I have found this on www.obdev.at



when I connect device say Device not recognized-Unknown Device

P.S.
I'm not sure if I'm doing everything well, with firmware....
If someone has made this can post firmware here???

thx
 

microteck

Junior Member level 1
Joined
Aug 15, 2007
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,340
atmega8 usb rs232

hope it usedfull
 

didiet78

Junior Member level 1
Joined
Sep 5, 2007
Messages
18
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Bandung
Activity points
1,363
usb atmega

Try app note avr309 from atmel
 

7rots51

Advanced Member level 4
Joined
May 17, 2002
Messages
1,184
Helped
25
Reputation
50
Reaction score
12
Trophy points
1,318
Activity points
9,651
atmega8 usb serial

use FT232R or FT245R from ftdichip ,they also provide good drivers for windows(VCP,DLL)
 

hosnie

Newbie level 3
Joined
Apr 28, 2008
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,302
usb serial atmega8

hi,
i have a program for connecting atmega8 with usb, and send data from avr to PC.
but when i debug the code with avr studio, these errors appear" undefined reference to `usbPoll, undefined reference to `usbMsgPtr', undefined reference to `usbInit'".
and when i include "usbdrv.c" in main function this is the error "undefined reference to `usbCrc16'"
this variable is in "usbdrv.c"

i am beginner, could someone help me please?

i have attached source codes.[/code]
 

rafei

Junior Member level 2
Joined
Jul 1, 2009
Messages
22
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
Tehran
Activity points
1,386
usb driver atmega8

hi,
i`m using a FT232RL rs232 to usb interface and the result is good.
the only problem is making a graphical .exe program for communication with micro.
 

saurabh_j

Newbie level 1
Joined
Nov 27, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,284
Re: usb serial atmega8

hi,
i have a program for connecting atmega8 with usb, and send data from avr to PC.
but when i debug the code with avr studio, these errors appear" undefined reference to `usbPoll, undefined reference to `usbMsgPtr', undefined reference to `usbInit'".
and when i include "usbdrv.c" in main function this is the error "undefined reference to `usbCrc16'"
this variable is in "usbdrv.c"

i am beginner, could someone help me please?

i have attached source codes.[/code]
hey u find anything related to it.... i am in need .please reply soon
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top