Search found 1013 matches

by christian
Mon Apr 16, 2007 4:53 pm
Forum: V-USB
Topic: Running at a higher clock rate
Replies: 1
Views: 4362

The currently shipping firmware works with 12 MHz only, it's required that one USB bit is exactly 8 CPU cycles. In principle, it's possible to insert NOPs in the assembler module to accommodate higher clock rates. However, the clock rate must be divisible by 3 (i.e. 15, 18, 21, ... MHz). The assembl...
by christian
Sun Apr 15, 2007 2:40 pm
Forum: V-USB
Topic: AVR Doper problem (HV mode doesn't work)
Replies: 17
Views: 21011

The Tiny25 is almost the same as the Tiny45, except memory sizes. Since we have tested with the Tiny45, I would expect that it works.

Since you say that it also fails with the Tiny25, it's likely that something is wrong with the wiring.
by christian
Fri Apr 13, 2007 8:02 pm
Forum: V-USB
Topic: avrdude: initialization failed, rc=-1
Replies: 2
Views: 8379

Yes, you need a CMOS buffer chip. The HCT126 is preferred. The buffer allows for differences in supply voltage between programmer and target. If you don't need this feature, a version without buffer chip is (in principle) possible. Any volunteers who design a version and firmware patch to work witho...
by christian
Fri Apr 13, 2007 7:56 pm
Forum: V-USB
Topic: AVR Doper problem (HV mode doesn't work)
Replies: 17
Views: 21011

First of all: The base resistor of T4 is the internal pull-up resistor of the port pin. I must admit that we have not tested HV programming with too many chips, I only have the ATTiny45 and an AT90S2343 available. If I remember correctly, somebody here in the forum has reported problems with the ATT...
by christian
Fri Apr 13, 2007 12:07 pm
Forum: V-USB
Topic: Problems with usb 2.0 hosts
Replies: 9
Views: 11541

You should call usbPoll() at least every 50 ms (see documentation in usbdrv.h). You may get away with longer intervals after the device enumeration is completed, though. If you call usbPoll() from other places than the main loop, you should be aware that usbFunctionSetup(), usbFunctionRead() and usb...
by christian
Thu Apr 12, 2007 7:28 pm
Forum: V-USB
Topic: Problems with usb 2.0 hosts
Replies: 9
Views: 11541

I doubt that it's the cable -- this is low speed USB anyway. You must be violating the USB standard somehow. USB 2.0 controllers are more modern and may therefore enforce better standards compliance. I can assure you that the driver itself is good enough for compatibility with all host controllers a...
by christian
Wed Apr 11, 2007 11:33 pm
Forum: V-USB
Topic: Problems with usb 2.0 hosts
Replies: 9
Views: 11541

I can confirm that the driver itself works well with USB 2.0 hosts as well with USB 1.0 / 1.1 hosts. I would suspect either a hardware problem or something in the firmware which interfers with the driver, e.g. by modifying the status of D+ and D-.
by christian
Wed Apr 11, 2007 7:54 pm
Forum: V-USB
Topic: HIDKeyboard USB Makefile error
Replies: 6
Views: 8926

That's an error in the checksize script, probably because you don't have awk or another Unix tool installed. You can safely ignore this error or remove the checksize call altogether. It's only a check to see how much memory is used by the code.
by christian
Wed Apr 11, 2007 7:00 pm
Forum: V-USB
Topic: Problems with usb 2.0 hosts
Replies: 9
Views: 11541

Are you sure that this is a USB 2.0 specific problem and not a problem with this particular host? The USB port of this host might be damaged, at least the low speed / full speed circuit.
by christian
Wed Apr 11, 2007 3:59 pm
Forum: V-USB
Topic: Help w/understanding USB using Atmel controllers
Replies: 5
Views: 8989

That's a point Libusb-win32 is a generic, ready-made kernel level driver. It's built to attach to any device and send/receive messages to/from it. The problem with an HID is that the operating system's driver already matches the device. You can probably override that matching if libusb-win32 matches...
by christian
Wed Apr 11, 2007 3:34 pm
Forum: V-USB
Topic: Help w/understanding USB using Atmel controllers
Replies: 5
Views: 8989

I don't know Atmel's HID example and therefore don't know what the DLL is supposed to do. However, I do know that a kernel DLL is not required to communicated with an HID. The DLL might just be a user space library which builds an abstraction around the operating system's USB calls, similar to the l...
by christian
Wed Apr 11, 2007 3:17 pm
Forum: V-USB
Topic: Problems with usb 2.0 hosts
Replies: 9
Views: 11541

Do you have a scope (storage scope would be ideal) to check the wave forms and levels on D+ and D-?

If you power your AVR from 3.3V, there should be no common mode range problem. But a scope often reveals trivial problems which would otherwise be hard to find.
by christian
Wed Apr 11, 2007 3:14 pm
Forum: V-USB
Topic: HIDKeyboard USB Makefile error
Replies: 6
Views: 8926

Are you referring to the HIDKeys example? The makefile in that example DOES have a default target named "all". If it is not found, something is seriously broken in your development environment.

Can you post the exact error messages?
by christian
Wed Apr 11, 2007 3:12 pm
Forum: V-USB
Topic: hid-keys key repetition....
Replies: 2
Views: 9705

The HID spec suggests that key repitition can be implemented by sending the keyboard status in an interrupt transfer in regular intervals. Most operating system interpret the key status as status, measure the time how long a particular key is pressed and start repeating (with their own internal time...
by christian
Thu Apr 05, 2007 10:47 pm
Forum: V-USB
Topic: atmega128
Replies: 15
Views: 14962

Interesting... Do you have any debug tools available such as a digital storage scope, a logic analyzer or at least a simple analog scope? With a DSO, you should see a query/response dialog on D+, query and response being distinguished by slightly different voltage levels. Simple errors can usually b...