Connecting AVR Microcontroller to USB

Discussions on the software and hardware for Atmel's STK standard.

Moderator: phalanx

Post Reply
crystal
Posts: 3
Joined: Fri Jul 08, 2016 12:27 am

Connecting AVR Microcontroller to USB

Post by crystal » Thu Jan 12, 2017 2:12 am

I am working with an ATmega328. What I want to do is finding a way to save any value in any GPR of the microcontroller using the PC.

I found this video where an already made interface is shown. Apparently, that is very user-friendly. But does it what I'm trying to achieve? For example, if I want to save the value 0x3B in register R16, could I use that software to do it via USB?

Also, I don't know how to connect the USB with the microcontroller pins. I've found this image
Image
but I would have expected the pins TXD and RXD to be used. Is this connection alright?

Sorry if the question is a bit messy, I'm a beginner with this stuff. If you need any further information please let me know.

jremington
Support Volunteer
Posts: 2202
Joined: Fri Jun 15, 2007 9:41 pm
Location: Eugene, Or

Re: Connecting AVR Microcontroller to USB

Post by jremington » Thu Jan 12, 2017 12:43 pm

The micro is undoubtedly running VUSB firmware, which is open source. You will have to modify the basic software interface to do what you want.
https://www.obdev.at/products/vusb/index.html

Post Reply