Search found 1013 matches

by christian
Tue Feb 05, 2008 11:53 am
Forum: V-USB
Topic: Zener diodes at D+ D-
Replies: 26
Views: 43169

3 V is enough to be recognized as high level. When the AVR outputs +5V on D+ or D-, the diodes limit the voltage to 3.6 V, which is also accepted as high level inside the common mode range of the input amplifier, although it's slightly outside the spec. 3.6 V is a compromise between a too low level ...
by christian
Tue Feb 05, 2008 9:48 am
Forum: V-USB
Topic: USBJOY(PS2) atmega8
Replies: 25
Views: 32747

If you have set all CKSEL bits to 1, you have programmed the ATMega8 for external clock. Just apply any clock (e.g. generated with a 555) to the XTAL1 pin (pin 9 on the DIL package). Make sure that the clock is several times the ISP clock. 500 kHz to 1 MHz should be OK.
by christian
Mon Feb 04, 2008 11:04 pm
Forum: V-USB
Topic: USBJOY(PS2) atmega8
Replies: 25
Views: 32747

I know only one programmer which implements Parallel Programming and that is the STK500. There's also a reverse engineered circuit for an STK500 available on the net, if you don't want to buy one. What may be easier to obtain is a "parallel enabler" or whatever the name of that circuit is....
by christian
Mon Feb 04, 2008 11:00 pm
Forum: V-USB
Topic: Zener diodes at D+ D-
Replies: 26
Views: 43169

If the device is really recognized by Windows, then USB communication must be working. If Windows knows the device name, it was able to read the device descriptor. If it just claims to have an "unknown device", it does not recognize it. Trapezoid waveforms are OK on the scope, but real tri...
by christian
Sun Feb 03, 2008 6:30 pm
Forum: V-USB
Topic: DOPER FIRMWARE WARNINGS???
Replies: 3
Views: 5692

The signedness-warnings are harmless. The assembler warnings are probably a bug in gcc since it seems to produce code which is not well understood by the assembler. I don't know whether these warnings are relevant.
by christian
Sun Feb 03, 2008 6:29 pm
Forum: V-USB
Topic: Interrupt In Endpoint 1 Question
Replies: 2
Views: 4628

This is a bit tricky. If you send 8 bytes with usbSetInterrupt(), the host asks for the next chunk until it receives less than 8 bytes and merges all chunks to a common message. This means that you should send the first 8 bytes with usbSetInterrupt(), then wait until they have been sent to the host ...
by christian
Sun Feb 03, 2008 6:25 pm
Forum: V-USB
Topic: Linux kernel patch for CDC problems
Replies: 16
Views: 30892

I don't know what this recent change does to break CDC ACM devices on low speed USB, but I can tell you that interrupt- and bulk-endpoints are equivalent except that bulk endpoints are polled "as fast as possible" while interrupt endpoints are polled with a given rate.
by christian
Sun Feb 03, 2008 6:23 pm
Forum: V-USB
Topic: AVR-DOPER M8 FUSES
Replies: 2
Views: 4522

See the Makefile, target "fuse". If you type "make fuse", it flashes the fuses.
by christian
Sun Feb 03, 2008 6:22 pm
Forum: V-USB
Topic: how to force the input signals for an usb2.0
Replies: 1
Views: 3231

Are you sure that these questions are related to AVR-USB (a firmware implementation of USB on AVR microcontrollers) or to a project based on AVR-USB?
by christian
Sun Feb 03, 2008 6:16 pm
Forum: V-USB
Topic: AVR-CDC How detect end of paket (paket length>8)?
Replies: 1
Views: 3696

Any real time protocol with tight time constraints gets into troubles with USB -> serial converters since the timing can usually not be exactly preserved. USB CDC sends data on the stream endpoint when it is available. If no data is available, no data is sent. If the time resolution after going thro...
by christian
Tue Jan 29, 2008 7:34 pm
Forum: V-USB
Topic: how to set up interrupt vector programmatically
Replies: 5
Views: 7332

This is not correct. The vector table is in flash memory.
by christian
Tue Jan 29, 2008 1:49 pm
Forum: V-USB
Topic: how to set up interrupt vector programmatically
Replies: 5
Views: 7332

The vector table consists of relative jump instructions. You must compute the correct rjmp instruction and write it to the vector table slot. Please note that flash memory can only be programmed page-wise. You must read the entire page, modify the vector and write back the page. Also, some AVRs requ...
by christian
Tue Jan 29, 2008 1:07 pm
Forum: V-USB
Topic: how to set up interrupt vector programmatically
Replies: 5
Views: 7332

Since the interrupt vector is in flash memory, it's hard to modify it from your code. I would recommend that you define ISRs for INT0 AND INT1 and call your routine from either one.
by christian
Tue Jan 29, 2008 1:06 pm
Forum: V-USB
Topic: Control OUT data
Replies: 1
Views: 3233

You must return -1 (0xff) in usbFunctionSetup() to inform the driver that you want to receive the data via usbFunctionWrite(). See the documentation in usbdrv.h.
by christian
Tue Jan 29, 2008 1:04 pm
Forum: V-USB
Topic: how to set a USB Composite Devices using Easylogger
Replies: 2
Views: 4715

You need to know how the HID report descriptor should look like for a composite device. You have two options to find this out: (1) You read the USB HID spec and design your descriptor from scratch, or (2) you look at the HID report descriptor of an existing device and modify it according to your nee...