Search found 1013 matches

by christian
Wed Apr 16, 2008 4:02 pm
Forum: V-USB
Topic: working nicely on my laptop, but fail on my PC?
Replies: 32
Views: 34668

I think Osamu has some statistics included with his AVR-CDC project.
by christian
Wed Apr 16, 2008 10:09 am
Forum: V-USB
Topic: AvrUsbBoot on ATmega168
Replies: 5
Views: 8329

As you already found out: We take great care to ensure that newer versions have the same or less code size than previous versions. Regarding VID/PID: We added a warning if it's not defined in usbconfig.h because we want to make sure that people know what they are doing. Simply add obdev's free VID/P...
by christian
Tue Apr 15, 2008 10:42 am
Forum: V-USB
Topic: usbasp / mac os x
Replies: 5
Views: 8789

Please measure the voltage level on D- when the device is idle. It should be well above 2.5 V and below 3.6 V. Some Zener diodes are not suitable.
by christian
Tue Apr 15, 2008 10:09 am
Forum: V-USB
Topic: AvrUsbBoot on ATmega168
Replies: 5
Views: 8329

This is an old note. Recent versions of AVR-USB don't have this requirement any more.

If the boot loader fails to work, please check the usual things: fuses, speed selection in usbconfig.h, level conversion for D+ and D- etc.
by christian
Tue Apr 15, 2008 10:06 am
Forum: V-USB
Topic: Shut down or sleep mode for AVR-USB
Replies: 8
Views: 9537

You need to detect the Start Of Frame pulses. Since they are on D-, you need to supervise D-. The pulses are short (667 ns) and rare (every 1 ms), so you need hardware to detect them. This hardware could be an interrupt or a counter input. There are no such pulses on D+ (therefore we use D+ for the ...
by christian
Tue Apr 15, 2008 10:01 am
Forum: V-USB
Topic: Linux kernel patch for CDC problems
Replies: 16
Views: 30893

The problem is not only with cdc_acm, but with all host side software. Libusb has different API functions for bulk and interrupt endpoints. Software which is written for one type of endpoint won't accept the other.
by christian
Mon Apr 14, 2008 8:18 pm
Forum: V-USB
Topic: AVR-USB frequency meter
Replies: 16
Views: 18181

And take the difference with what? You need two captures which are a known number of cycles apart. This is easiest done with an interrupt.
by christian
Mon Apr 14, 2008 8:16 pm
Forum: V-USB
Topic: AVR_USB timing out?
Replies: 18
Views: 36547

Newer versions of PowerSwitch use the delay function (eith a much longer delay, BTW) instead.
by christian
Mon Apr 14, 2008 8:01 pm
Forum: V-USB
Topic: AVR-USB frequency meter
Replies: 16
Views: 18181

If you use the input capture unit, you still get an interrupt every cycle. That gives the maximum frequency of ~ 3 kHz.

Other than that, the input capture unit can be very handy for precise measurements. I had frequency resolutions of more than 22 bits.
by christian
Mon Apr 14, 2008 6:01 pm
Forum: V-USB
Topic: Linux kernel patch for CDC problems
Replies: 16
Views: 30893

Yes, Bulk endpoints are not allowed for low speed devices. There is no particular reason for this (at least not these days with USB 2.0 hubs), but the standard defines it this way. [For USB 1.0 hubs, this was a performance problem since polling blocks the bus for a long time.] Since it's additional ...
by christian
Mon Apr 14, 2008 10:47 am
Forum: V-USB
Topic: unknown device on some computers not on others..
Replies: 9
Views: 8995

You can contact me at the AVR-USB support address.

Can you please be more precise: How many 1N4148 did you use? What was the resulting supply voltage at the AVR? What's the idle voltage on D-?
by christian
Mon Apr 14, 2008 10:43 am
Forum: V-USB
Topic: Shut down or sleep mode for AVR-USB
Replies: 8
Views: 9537

The 1kHz SE0 pulses are on D-, not D+. You therefore need an interrupt on D-.
by christian
Mon Apr 14, 2008 9:43 am
Forum: V-USB
Topic: USB EasyLogger PCB
Replies: 1
Views: 2974

Thanks! I've added a link to the project page.
by christian
Mon Apr 14, 2008 9:42 am
Forum: V-USB
Topic: Shut down or sleep mode for AVR-USB
Replies: 8
Views: 9537

If D- is wired to a pin which can trigger an interrupt (e.g. INT1, pin change interrupt), there's also an example available how to implement it. Suspend mode is documented in the USB specification. When the host goes to sleep it MUST stop sending the 1 kHz pulses. The device may wake up the host by ...
by christian
Sun Apr 13, 2008 3:27 pm
Forum: V-USB
Topic: working nicely on my laptop, but fail on my PC?
Replies: 32
Views: 34668

You must reset data toggling after each new connection. Do you lose the first chunk or one in the middle? When you generate a trigger in usbFunctionWriteOut() if data toggling is wrong, you should see many DATA packets which are answered with a NAK between the two with the same token. The main loop ...