Search found 2 matches

by yardleydobon
Mon Jun 27, 2011 8:17 am
Forum: V-USB
Topic: Code in for loop outside of if (usbInterruptIsReady()) {...}
Replies: 1
Views: 2361

Code in for loop outside of if (usbInterruptIsReady()) {...}

Is it not OK to do work in the for loop outside of the if (usbInterruptIsReady()) code block? I have code between wdt_reset() and usbPoll(). Sometimes the device enumerates correctly but usually not. Why doesn't this work or why shouldn't I do this? Does the amount of work done there matter? Do I ne...
by yardleydobon
Mon Jun 13, 2011 11:12 pm
Forum: V-USB
Topic: Using LEDs for Level Conversion
Replies: 0
Views: 4330

Using LEDs for Level Conversion

Sparkfun's AVR Stick uses blue LEDs to drop the 5V output from the microcontroller to ~3.3V instead of zener diodes. The LEDs make it easy to tell if the device enumerated correctly. Plus blue LEDs are available at Radio Shack, but 3.6V zeners are not. However this level conversion trick isn't menti...