Search found 1013 matches
- Tue Nov 27, 2007 10:57 am
- Forum: V-USB
- Topic: USB cable detect
- Replies: 3
- Views: 5120
You can check for SOF frames which come in 1 ms intervals if the device is connected to a host. The easiest way to do this is to (1) wire INT0 to D- instead of D+, (2) update to the latest driver version and (3) define USB_COUNT_SOF in usbconfig.h. Then you can check whether the global variable usbS...
- Mon Nov 26, 2007 3:29 pm
- Forum: V-USB
- Topic: AVR MacPack: AVR development on Mac
- Replies: 5
- Views: 8418
AVR MacPack: AVR development on Mac
We have created a binary distribution of AVR GCC and associated tools for all Mac users. The package offers both, GCC version 3 and 4 because version 3 generates more efficient code. All software is compiled as universal binaries for Intel and PowerPC Macs.
See http://www.obdev.at/avrmacpack/ for more information.
See http://www.obdev.at/avrmacpack/ for more information.
- Mon Nov 26, 2007 3:24 pm
- Forum: V-USB
- Topic: USB-joystick Atmega 16
- Replies: 9
- Views: 14822
- Wed Nov 21, 2007 7:41 pm
- Forum: V-USB
- Topic: EasyLogger --> joystick?
- Replies: 5
- Views: 8390
Since you use the PLL for clock generation, the CPU actually runs on 16.5 MHZ and you should set F_CPU to 16500000. We currently don't have a good standard method to obtain OSCCAL. I would recommend that you find it by trial and error by measuring the actual clock frequency. Getting the HID descript...
- Wed Nov 21, 2007 4:19 pm
- Forum: V-USB
- Topic: Easylogger not recognized
- Replies: 7
- Views: 7996
This is different. If XP does not recognize the device, it's either a hardware problem (D+ D- swapped, missing zener diodes or wrong zener voltage, etc.) or a problem with the clock rate. I think, we should come up with an auto-calibration algorithm. It should be possible to take the host's USB cloc...
- Mon Nov 19, 2007 12:23 pm
- Forum: V-USB
- Topic: Problemchen Avr für Avrdoper zu flashen
- Replies: 3
- Views: 5239
Es ist zumindest eine Version von avrdude im Umlauf, die mit AVR-Doper im HID mode nicht zusammen arbeitet. Ich glaube aber, dass er den AVR-Doper gleich nicht findet. Daran sollte es also nicht liegen. Probier' einmal mit Deinem hex-file, ob's am Programmer liegt. Unser hex-file wurde mit gcc 3.4.6...
- Mon Nov 19, 2007 12:19 pm
- Forum: V-USB
- Topic: What I lost in usbdrv dir ?
- Replies: 6
- Views: 8066
- Sun Nov 18, 2007 12:09 pm
- Forum: V-USB
- Topic: What I lost in usbdrv dir ?
- Replies: 6
- Views: 8066
- Sun Nov 18, 2007 11:01 am
- Forum: V-USB
- Topic: EasyLogger --> joystick?
- Replies: 5
- Views: 8390
- Sun Nov 18, 2007 10:59 am
- Forum: V-USB
- Topic: Problemchen Avr für Avrdoper zu flashen
- Replies: 3
- Views: 5239
- Sun Nov 11, 2007 12:37 pm
- Forum: V-USB
- Topic: AVR-USB I/O
- Replies: 17
- Views: 17064
- Sat Nov 10, 2007 7:07 pm
- Forum: V-USB
- Topic: AVR-USB I/O
- Replies: 17
- Views: 17064
If you need to send data to the device, I would recommend that you also encapsulate this in reports sent to the device, so that you can stay fully compliant with HID. See the Automator project for an example. You don't need the interrupt-in endpoint. However, the HID specification demands that one e...
- Wed Nov 07, 2007 10:49 pm
- Forum: V-USB
- Topic: AVR USB stops responding
- Replies: 4
- Views: 6486
If you do the same thing in the main loop, usbPoll() is not called frequently enough. You CAN and SHOULD poll in the main loop, but you MUST NOT hang waiting for an event. If the UART is busy, just continue with the main loop and try again during the next cycle. Do this for every byte you send and f...
- Tue Nov 06, 2007 5:28 pm
- Forum: V-USB
- Topic: General joystick HID question
- Replies: 35
- Views: 49785
Just a quick note on report sizes: AVR-USB can handle longer reports than 8 bytes with a trick. If you want to send (say) 12 bytes, use usbSetInterrupt() for the first 8 bytes, then wait for usbInterruptIsReady() and then send the remaining 4 bytes with usbSetInterrupt(). This is not really intuitiv...