Search found 23 matches

by kwebdesigns
Sat May 24, 2008 7:03 pm
Forum: V-USB
Topic: Adding Interrupt OUT to powerSwitch.
Replies: 11
Views: 9756

I am having trouble getting a descriptor for Bulk-Out Endpoint 1. I too get -22 returned from writing to this endpoint. In usbconfig.h I have: #define USB_CFG_DESCR_PROPS_CONFIGURATION USB_PROP_IS_DYNAMIC In main.c I have this for the descriptor: PROGMEM char configDescriptor[] = { /* USB confi...
by kwebdesigns
Sun Mar 23, 2008 4:48 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

I finally got it! I made those changes you told me, but I do not think any of those were the problem. I have been using an Olimex development board and I finally breadboarded the circuit without it. Now the device is recognized and I am having no problems. I do not know why I never checked that, but...
by kwebdesigns
Sun Mar 23, 2008 2:24 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

Christan,
Have you had time to test the code I sent you? Sorry I haven't contacted you in a while, but I have been gone the past few days. Thanks for taking the time to help me.
by kwebdesigns
Tue Mar 18, 2008 11:56 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

I rebuilt the circuit and I am still getting ~3V levels on both lines. I have built the circuit exactly like the easylogger circuit. This must be a hardware error. This isn't making sense. I don't have an oscilloscope, but I think I am going to order one. Is it okay if I e-mail you the code I'm usin...
by kwebdesigns
Tue Mar 18, 2008 11:33 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

Yes. Whenever I plug in the USB cable and keep the multimeter on D+ it goes up to 3V. Is that bad? If so, it's possible that I am getting bad readings somehow.
by kwebdesigns
Tue Mar 18, 2008 11:26 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

Sorry about that. D+ stays at 0, but during a reset it comes up to 3V temporarily. I'm rebuilding the circuit and what should I have for resistor values, clamping diodes, etc.
by kwebdesigns
Tue Mar 18, 2008 10:54 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

The voltage levels at D+ and D- are at 4V without clamping diodes and 3V with. What should I be using to connect the USB interface. I do not have a LE35 and the AVR has to run at 5V powered by the USB port. I have tried many combinations of hardware, but something isn't right. Would a new Atmega8 he...
by kwebdesigns
Tue Mar 18, 2008 10:18 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

I get the same thing on another computer. One computer has Vista and the other has XP and I also tried it on a hub.
by kwebdesigns
Tue Mar 18, 2008 10:12 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

I will try another computer and check the serial output.
by kwebdesigns
Tue Mar 18, 2008 9:56 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

I don't know why I did that, but I got the fuses changed. I am lucky that the chip continued to work. I am still getting the same blank output.
by kwebdesigns
Tue Mar 18, 2008 9:37 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

The interrupt vector I used: ISR(INT0_vect) { DBG1(0x50, 0, 0); } The output I received: ff: ff: ff: ff: ff: ff: ff: ff: ff: ff: ff: ff: f50: f: The D- and D+ should be correct. D- is connected to PB0 and D+ is connected to PB1 and PD2. All of the configuration is set at 12...
by kwebdesigns
Tue Mar 18, 2008 8:59 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

I disabled USB_INTR_VECTOR in usbdrvasm.S and I added this code to main.c

Code: Select all

ISR(INT0_vect) {
 
   DBG1 (0xFF,0XFF,4);

}

Every time I reset I get the output from the message. Assuming I did this correctly it appears that INT0 is working.
by kwebdesigns
Tue Mar 18, 2008 8:38 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

Which function is this and where is it located? Is it timerInterrupt or usbFunctionSetup in main.c or something else?

EDIT: timerInterrupt constantly prints debug output. usbFunctionSetup does nothing.
by kwebdesigns
Tue Mar 18, 2008 8:15 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

I have D+ (green wire) wired to PD2 (INT0) on the Atmega8. I believe that is correct.
by kwebdesigns
Tue Mar 18, 2008 8:09 pm
Forum: V-USB
Topic: AVR-USB Device Not Recognized on Atmega8
Replies: 41
Views: 32928

See my post above ^^^