Page 1 of 1

Connecting AVR Microcontroller to USB

Posted: Thu Jan 12, 2017 2:12 am
by crystal
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.

Re: Connecting AVR Microcontroller to USB

Posted: Thu Jan 12, 2017 12:43 pm
by jremington
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