Search found 1013 matches

by christian
Mon Mar 10, 2008 11:03 pm
Forum: V-USB
Topic: avrdude error command failed via serial port
Replies: 2
Views: 3732

Is this with AVR-Doper? Are you sure that you have chosen the correct serial interface?

The serial interface assigned to AVR-Doper may change when you connect it to a different USB port or insert a hub.
by christian
Sat Mar 08, 2008 5:43 pm
Forum: V-USB
Topic: Atmega16+32 not found with 16MHz crystal on some Hosts
Replies: 20
Views: 22228

When you use zener diodes, make sure that you use low power types (the tiny ones in the same package as the 1N4148). Higher power types require more current to reach their nominal voltage and have much higher capacitances. The higher capacitance distorts the timing. I would recommend 3.6 V types ove...
by christian
Fri Feb 29, 2008 8:25 pm
Forum: V-USB
Topic: USBasp Works in Windows but not working in Linux
Replies: 7
Views: 24380

This depends on your Linux configuration. As far as I know, you can configure hotplug to set less restrictive permissions for particular USB devices. By default, only root has full access.
by christian
Thu Feb 28, 2008 11:55 pm
Forum: V-USB
Topic: EasyLogger --> joystick?
Replies: 5
Views: 8392

Just for your information: We have released EasyLogger 2008-02-28 today. This version adds self-calibration of the RC oscillator. In principle, this calibration algorithm can be used to calibrate the RC oscillator directly to 12 MHz. However, the precision is not high enough for the 12 MHz module (b...
by christian
Thu Feb 28, 2008 11:54 pm
Forum: V-USB
Topic: enumeration detect for AVR?
Replies: 5
Views: 6845

Just for your information: We have released EasyLogger 2008-02-28 today. This version adds self-calibration of the RC oscillator. In principle, this calibration algorithm can be used to calibrate the RC oscillator directly to 12 MHz. However, the precision is not high enough for the 12 MHz module (b...
by christian
Thu Feb 28, 2008 11:53 pm
Forum: V-USB
Topic: occasional transmission errors with 16.5MHz RC oscillator
Replies: 17
Views: 16534

Just for your information: We have released EasyLogger 2008-02-28 today. This version adds self-calibration of the RC oscillator. In principle, this calibration algorithm can be used to calibrate the RC oscillator directly to 12 MHz. However, the precision is not high enough for the 12 MHz module (b...
by christian
Thu Feb 28, 2008 11:08 pm
Forum: V-USB
Topic: USBasp Works in Windows but not working in Linux
Replies: 7
Views: 24380

Is this the same computer? If not, it may be a hardware problem, e.g. missing zener diodes.
by christian
Thu Feb 28, 2008 11:07 pm
Forum: V-USB
Topic: WakeOnUSB
Replies: 1
Views: 3465

When the PC is in sleep mode, you can wake it with an USB RESET status for a couple of CPU cycles. You could do this with:

Code: Select all

    usbDeviceDisconnect();
    for(i=0;i<10;i++);
    usbDeviceConnect();


If the PC is powered off, this won't help.
by christian
Thu Feb 28, 2008 11:01 pm
Forum: V-USB
Topic: Interupt
Replies: 1
Views: 3424

Regarding how to enable/disable interrupts: You have to set the interrupt-enable bit for your interrupt in the appropriate register. That's similar to the code in usbInit(). The interrupt handler should not be declared with ISR if you use AVR-USB since it must allow other interrupts. Use UTIL_INTERR...
by christian
Thu Feb 28, 2008 10:47 pm
Forum: V-USB
Topic: AvrCDC Vista problem
Replies: 6
Views: 6707

I don't have Vista so I can't really comment, but I have heard/read that the device should have a serial number. Set one in usbconfig.h and it should work more reliably.
by christian
Thu Feb 28, 2008 10:46 pm
Forum: V-USB
Topic: use µC with AVR-USB with no connection to PC
Replies: 1
Views: 3403

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...
by christian
Sun Feb 24, 2008 6:01 pm
Forum: V-USB
Topic: Usb device not found.
Replies: 11
Views: 10650

A hub, especially a USB 2.0 hub, may have a different timing in the low speed USB communication. Timing dependent bugs may therefore occur or not occur if a hub is inserted.
by christian
Fri Feb 22, 2008 11:04 pm
Forum: V-USB
Topic: device descriptor read/64, error -62
Replies: 5
Views: 10428

Yes, this code is intended to handle this. However, it has been developed for the 2313 and it may not be suitable for your pin assignment and AVR type.
by christian
Thu Feb 21, 2008 10:21 pm
Forum: V-USB
Topic: device descriptor read/64, error -62
Replies: 5
Views: 10428

Since the device shows up with different addresses in the log file within a period of 2 seconds, I suppose that enumeration fails. Since you have made sure that the AVR runs on 12 MHz, the most likely causes are missing zener diodes in 5 V designs or an incorrect initialization of the pins involved ...
by christian
Thu Feb 21, 2008 10:17 pm
Forum: V-USB
Topic: Non-bus powered bare schematic
Replies: 2
Views: 4092

PowerSwitch actually IS an externally powered device. In order to circumvent some problems when only one power supply is available, the AVR is ALSO powered from the USB.