Search found 1013 matches

by christian
Sat Apr 11, 2009 3:50 pm
Forum: V-USB
Topic: avrusb with external power source
Replies: 2
Views: 2807

Re: avrusb with external power source

It is possible to use an external supply. I'd recommend taking all the power from your own supply and leave the USB 5V unused. This violates the spec, I think, because your pull-up delivers current when the host is powered off, but that should not cause any real problems.
by christian
Sat Apr 11, 2009 3:46 pm
Forum: V-USB
Topic: Voltage Question
Replies: 6
Views: 4947

Re: Voltage Question

If your AVR tears down the USB supply, it must be broken (take more than 500 mA) or your USB port is broken.

BTW: I'd recommend 1k5 instead of 2k2 for the pull-up. You probably don't reach the threshold voltage on D- with 2k2 due to the current through the zener diodes.
by christian
Sat Apr 11, 2009 3:43 pm
Forum: V-USB
Topic: disable the UART transmitter on the 88
Replies: 4
Views: 3925

Re: disable the UART transmitter on the 88

The USART is disabled after reset. AVR-USB leaves it disabled unless you have turned on debugging.
by christian
Sat Apr 11, 2009 3:42 pm
Forum: V-USB
Topic: Can't find device in windows, please help
Replies: 22
Views: 13976

Re: Can't find device in windows, please help

Since the open fails, the device may be opened by another application on your machine. Don't know what error code 5 means, though.
by christian
Sat Apr 11, 2009 3:40 pm
Forum: V-USB
Topic: bootloadHID atmega128
Replies: 7
Views: 7714

Re: bootloadHID atmega128

I'm surprised to hear that pgm_read_byte_far() works in this case because the address is only 16 bit. If anybody has a good point WHY this works, we can add an #ifdef to usbportability.h (but on what condition?) or add a usbconfig.h option.
by christian
Sat Apr 11, 2009 2:36 pm
Forum: V-USB
Topic: about avrusb library
Replies: 11
Views: 8191

Re: about avrusb library

You need the latest version of bootloadHID for 12.8 MHz because all other boot loaders won't fit. And you need to wire D- to the interrupt because the continuous oscillator synchronization code is used.
by christian
Sat Apr 11, 2009 2:30 pm
Forum: V-USB
Topic: Device not recognized after PC start
Replies: 5
Views: 4783

Re: Device not recognized after PC start

This may be an issue with RC oscillator calibration. Which method of calibration do you use?
by christian
Sat Apr 11, 2009 2:25 pm
Forum: V-USB
Topic: avrdoper
Replies: 5
Views: 5534

Re: avrdoper

This is a chicken and egg problem. For the first time programming, you must use another programmer. If you have a friend who has a programmer, ask this friend. Otherwise make a web search for parallel port based programmers. They consist just of two connectors wired together. You need a PC with para...
by christian
Mon Feb 16, 2009 4:24 pm
Forum: V-USB
Topic: Detect Master presence?
Replies: 1
Views: 2506

If a master is present, there will be a SOF pulse every 1 ms on D-. If you connect D- to the interrupt and set USB_COUNT_SOF in usbconfig.h, you'll see whether usbSofCount increments.
by christian
Mon Feb 16, 2009 4:19 pm
Forum: V-USB
Topic: gpl v3
Replies: 1
Views: 2440

The current version allows both, GPLv2 and GPLv3.
by christian
Mon Feb 16, 2009 4:18 pm
Forum: V-USB
Topic: USB remote wakeup
Replies: 1
Views: 2522

The value returned by GET_CONFIGURATION is the same as set with SET_CONFIGURATION. See the implementation in usbdrv.c. If the host is in sleep mode (you know that the host is sleeping when there are no frame pulses every 1 ms on D-), you can wake it with a SE0 condition: Tie D+ and D- to 0 for (I th...
by christian
Mon Feb 16, 2009 4:15 pm
Forum: V-USB
Topic: how to remove the notice "found x busses"
Replies: 1
Views: 2568

This is a libusb-win32 issue. The info log comes directly from the libusb-win32 dll. Don't know whether there are versions without this log. The time to enumerate all USB devices depends on the implementation of libusb on the particular platform. You can implement a logic which searches on the "...
by christian
Wed Feb 11, 2009 4:25 pm
Forum: V-USB
Topic: avrusb 18MHz port incl crc check
Replies: 3
Views: 3438

Sorry for not posting to this thread so far... I'm very interested in a CRC enabled version, but I currently don't have the time to put any work into it myself.

If you have questions about any details of the driver, please contact me through the support system.
by christian
Fri Feb 06, 2009 12:40 pm
Forum: V-USB
Topic: Device stuck in "suspend" and blocking USB port
Replies: 5
Views: 5011

When you change the Timer0 prescaler, you change the timing unless you also modify the code. With a prescaler of 64, you get ca. one interrupt every 1 ms, that should not cause problems when you declare the ISR as ISR_NOBLOCK. Disabling the Timer0 overflow interrupt only instead of cli() is a good i...
by christian
Tue Feb 03, 2009 3:30 pm
Forum: V-USB
Topic: is low latency communication possible?
Replies: 2
Views: 3128

When the host initiates communication, the control transfer is one of your best options for low speed devices. Full speed devices would benefit from a bulk endpoint, though. In your case, just do a control-in, do your processing and then a control-out. 1 ms latency may be possible, but better measur...