Search found 1013 matches

by christian
Sun May 04, 2008 10:09 pm
Forum: V-USB
Topic: How to send a report more than 255 bytes?
Replies: 3
Views: 5357

I've reworked some of the driver code and while doing this made the size of usbMsgLen a configuration option.

If you want a developer snapshot of this version, please let me know by e-mail (support system for avr-usb). The new version supports several kB of transfer size.
by christian
Wed Apr 30, 2008 1:00 pm
Forum: V-USB
Topic: How to send a report more than 255 bytes?
Replies: 3
Views: 5357

This is not currently supported by the driver. You would have to define usbMsgLen as 16 bit variable and update all accesses accordingly.
by christian
Tue Apr 29, 2008 10:42 am
Forum: V-USB
Topic: AVR-Doper [Rototron] programming problem
Replies: 11
Views: 14932

USBasp is not compatible to any version of the STK500. It can therefore only be used with avrdude.

However, the USBasp hardware can run the latest version of the AVR-Doper firmware. With this firmware, it has most features of AVR-Doper and is thus compatible to the STK500v2.
by christian
Mon Apr 28, 2008 4:06 pm
Forum: V-USB
Topic: BootloadHID with ATmega8 schematic
Replies: 3
Views: 5547

Did you check the obvious things:
- fuse bits
- hardware configuration reflected in bootloaderconfig.h
- compiled for correct clock rate
- boot loader enabled by jumper
by christian
Sun Apr 27, 2008 4:36 pm
Forum: V-USB
Topic: AVR-Doper [Rototron] programming problem
Replies: 11
Views: 14932

Sorry about the LED, this is a bug with an #ifdef: The pin is configured as input and if on, the pull-up is enabled, providing a bit of current to the LED. You can fix the problem by adding UTIL_PBIT_SET(ddr, HWPIN_LED); in line 573 of file main.c (directly above UTIL_PBIT_CLR(port, HWPIN_LE...
by christian
Sun Apr 27, 2008 12:35 pm
Forum: V-USB
Topic: AVR-Doper [Rototron] programming problem
Replies: 11
Views: 14932

CDC mode speed can be limited due to aggressive polling by the host. The new version posted yesterday may bring an improvement here. Also, if you have a CPU clock of more than 1 MHz, you can try to pass -B1.1 to avrdude for a higher ISP clock. The -B option is stored in AVR-Doper until you override ...
by christian
Sun Apr 27, 2008 10:49 am
Forum: V-USB
Topic: AVR-Doper [Rototron] programming problem
Replies: 11
Views: 14932

Please try to add a couple of -v options to the command line of avrdude. It should print more information about data sent and received.

Have you verified that the AVR you are programming is clocked with at least 1 MHz?
by christian
Thu Apr 24, 2008 9:49 am
Forum: V-USB
Topic: How to wakeup PC?
Replies: 5
Views: 5922

Sorry, what I have posted is NOT correct. I've re-read the spec and the resume signal is a differential "1", not SE0. The code should therefore look like this: cli(); USBOUT |= _BV(USB_CFG_DPLUS_BIT); USBDDR |= _BV(USB_CFG_DPLUS_BIT) | _BV(USB_CFG_DMINUS_BIT)...
by christian
Wed Apr 23, 2008 4:50 pm
Forum: V-USB
Topic: How to wakeup PC?
Replies: 5
Views: 5922

You must generate a USB reset condition to wake up the PC. This is done with usbDeviceDisconnect(); _delay_ms(10); usbDeviceConnect(); You should only generate the reset if the PC is really in sleep mode. You can find out by checking for start of frame pulses on D-.
by christian
Wed Apr 23, 2008 4:42 pm
Forum: V-USB
Topic: What's the purpose of 68ohm resistors on D+ and D- lines?
Replies: 6
Views: 7153

These resistors have several functions: * Limit the current if zener diodes are used for voltage limiting on D+ and D-. * Limit the current in case of short circuit or if higher voltage is applied from extern. * To some degree impedance matching to the cable when sending data. * Low pass filter to a...
by christian
Wed Apr 23, 2008 9:30 am
Forum: V-USB
Topic: AVR_USB timing out?
Replies: 18
Views: 36547

You don't need USB_CFG_PULLUP_IOPORTNAME in the most recent releases of the driver in order to use usbDeviceDisconnect() and usbDeviceConnect().

1.95 V is far below the limit of 2.5 V. Please use higher voltage and lower power diodes. You should reach AT LEAST 2.5 V.
by christian
Wed Apr 23, 2008 9:26 am
Forum: V-USB
Topic: AVR-USB frequency meter
Replies: 16
Views: 18181

See the AVR-Doper example. It contains an interface to the UART with custom requests to a HID class device. There's also a command line tool in the avrdebug directory.
by christian
Tue Apr 22, 2008 10:47 am
Forum: V-USB
Topic: AVR-USB frequency meter
Replies: 16
Views: 18181

If you can use two AVRs: connect them with SPI or whatever (low priority interrupts), use 20 MHz for the frequency measuring AVR and writhe the SPI interrupt routine in assembler. You need to count the number of input pulses during a given period (e.g. 1 second) and the number of CPU clocks taken fo...
by christian
Mon Apr 21, 2008 8:12 pm
Forum: V-USB
Topic: AVR-USB frequency meter
Replies: 16
Views: 18181

You can extend Timer0 in software, but that's not easy. Connect the signal to T1 instead and switch between modes as required. The entire task is not easy. You must be very careful to avoid problems when you are in ICP mode and the frequency increases. I would not recommend this as a beginner's proj...
by christian
Mon Apr 21, 2008 7:00 pm
Forum: V-USB
Topic: BootloadHID with ATmega8 schematic
Replies: 3
Views: 5547

The schematic should be OK, if the Zener diodes are OK. Please measure the voltage on D- with a voltmeter. It should be well above 2.5 V.