Search found 1013 matches

by christian
Sun Jul 01, 2007 10:23 pm
Forum: V-USB
Topic: building a small audiocontroller with the help of avr-usb
Replies: 3
Views: 5647

I don't know what "view channels" are, but there are other joystick examples, see m There are the SNES/NES Gamepad adapter, 3DP-Vert, USBJoy and the N64 adapter. The definitive reference is the USB "HID Usage Tables" document available from usb.org. It contains examples for a Joy...
by christian
Sun Jul 01, 2007 9:21 pm
Forum: V-USB
Topic: how connect snes,playstation controller (gamepad) to xbox?
Replies: 1
Views: 4679

I suppose you mean Raphael's Gamepad controller at

http://www.raphnet.net/electronique/sne ... dex_en.php

I have never built this thing myself because I don't have any old gamepads or joysticks, so I can't comment. Sorry...
by christian
Wed Jun 27, 2007 1:53 pm
Forum: V-USB
Topic: Beginner's question: compiling AVR firmware for powerswitch
Replies: 5
Views: 7905

Don't know, but the previous release (20060125) should be a good candidate. Maybe you can find more info in the change log of the project.
by christian
Tue Jun 26, 2007 10:12 am
Forum: V-USB
Topic: Beginner's question: compiling AVR firmware for powerswitch
Replies: 5
Views: 7905

I prefer gcc 3 because I'm used to its behavior. I also suspect that it's more efficient in general on the AVR platform.
by christian
Mon Jun 25, 2007 10:07 pm
Forum: V-USB
Topic: Arduino -> USB
Replies: 8
Views: 29594

AVR-USB "weights" between 1.3 and 2 k, depending on the options you choose. It should easily fit into the remaining space of even an ATMega8 after subtracting the boot loader. Regarding performance: Whether you can do anything besides USB depends on your USB configuration. If you use bulk ...
by christian
Mon Jun 25, 2007 6:52 pm
Forum: V-USB
Topic: Arduino -> USB
Replies: 8
Views: 29594

We have released a new version of AVR-USB today which solves at least the cyrstal frequency issue: This version can be configured to run off a 12 MHz or 16 MHz crystal clock or a 16.5 MHz RC oscillator clock. The internal RC oscillator option is particularly interesting for 8 pin devices such as the...
by christian
Mon Jun 25, 2007 5:45 pm
Forum: V-USB
Topic: Beginner's question: compiling AVR firmware for powerswitch
Replies: 5
Views: 7905

This is because the latest WinAVR packages contain gcc version 4 while we use version 3 to prepare the package.

AVR-USB has been optimized for gcc version 3. It's therefore not too surprising that gcc version 4 generates slightly bigger code.
by christian
Tue Jun 19, 2007 2:39 pm
Forum: V-USB
Topic: AVR-CDC problem
Replies: 6
Views: 8894

Receive and transmit data are sent through different endpoints. Receive data is transferred through a bulk-in endpoint. Your example suggests that this bulk-in endpoint stalls when you set the baud rate. Windows hosts stop polling bulk-in endpoints when an error occurs, e.g. when the device does not...
by christian
Mon Jun 18, 2007 3:41 pm
Forum: V-USB
Topic: AVR-CDC problem
Replies: 6
Views: 8894

If you are sure that you have no bug in your baud rate setting code, then one possible problem might be data toggling on the USB side. When the data stream is reset, it must be initialized to either DATA0 or DATA1 (don't know which, please look at the code for a definitive answer). It is possible th...
by christian
Sat Jun 16, 2007 7:44 pm
Forum: V-USB
Topic: AVR USB and VB6
Replies: 7
Views: 11402

If you want to start a re-enumeration "the correct way", you must be able to deactivate the 1.5k pull-up resistor. If it's connected to a port pin instead of the positive supply, just disconnect it for several 100 milliseconds. If your pull-up is wired directly to the positive supply, you ...
by christian
Fri Jun 15, 2007 7:56 pm
Forum: V-USB
Topic: usb mouse
Replies: 5
Views: 8522

The HIDKeys project has a Makefile target "fuse". This target sets the fuse values to: # Fuse high byte: # 0xc9 = 1 1 0 0 1 0 0 1 <-- BOOTRST (boot reset vector at 0x0000) # ^ ^ ^ ^ ^ ^ ^------ BOOTSZ0 # | | | | | +-------- BOOTSZ1 # | | | | + --------- EESAVE (don't preserve E...
by christian
Fri Jun 15, 2007 7:49 pm
Forum: V-USB
Topic: Minimum holding time for HIDKeys
Replies: 3
Views: 5646

Yes, the poll interval time should be long enough. Regarding code readability: Yes, usbtiny is more readable since it has much less #ifdefs and other optional stuff. But all those features make AVR-USB more powerful. You can implement applications with up to 4 endpoints, such as AVR-CDC. AVR-CDC is ...
by christian
Fri Jun 15, 2007 7:42 pm
Forum: V-USB
Topic: AVR-CDC problem
Replies: 6
Views: 8894

This is a problem with interrupt latency. If the USB interrupt is blocked for too long, USB packets are lost causing the host to stall the device. The problem occurs much more likely with higher baud rates. Have you tried the latest version of the driver as it ships with PowerSwitch? We could slight...
by christian
Fri Jun 15, 2007 7:38 pm
Forum: V-USB
Topic: USB Keyboard Boot Protocol [solved]
Replies: 7
Views: 14162

I'm glad to read that it works now! Although it's interesting that the old driver did not work with usbFunctionWrite(). I know about no bug which caused usbFunctionWrite() to fail in any previous versions. Maybe your extensions moved the RAM layout around and the alignment requirements for the USB r...
by christian
Wed Jun 13, 2007 4:13 pm
Forum: V-USB
Topic: unknown device on some computers not on others..
Replies: 9
Views: 8994

This is very likely a hardware voltage levels problem. Did you insert low power zener diodes at D+ and D- or add a voltage regulator?

Some computers tolerate 5 V levels, others don't.