use µC with AVR-USB with no connection to PC

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
paul

use µC with AVR-USB with no connection to PC

Post by paul » Mon Feb 25, 2008 3:32 pm

I want to use my mega16 to control a charger. This charger should also work without being connected to the PC. Is this possible and how?

If this is possible, what happens if I connect the Controller to my PC during a loading. My programm gets interrupted and then?

Paul

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Thu Feb 28, 2008 10:46 pm

This is possible, of course. In this case you should add a 1 MOhm pull-down resistor on D+ to avoid spurious interrupts.

When USB is connected, the driver's interrupt routine handles all necessary requests. When your application sends requests to the device, the function usbFunctionSetup() is called in your firmware to handle them.

Post Reply