Search found 1013 matches

by christian
Thu Jul 31, 2008 12:26 pm
Forum: V-USB
Topic: Zener diode problems
Replies: 2
Views: 4209

Yes. Zener diodes have a high capacity which distorts the signals. Low power diodes have less capacity. And the nominal voltage is measured at lower currents for low power types. You may have to choose a higher voltage for higher power types. For an experimental circuit, you may try several Si-diode...
by christian
Thu Jul 31, 2008 12:23 pm
Forum: V-USB
Topic: use other frequency than 12MHz
Replies: 2
Views: 3460

Just for the reference:
You can use crystal clocks of 12, 15, 16, 16.5 or 20 MHz. Lower rates are not supported. An RC clock of 16.5 MHz is also supported, but this clock is only available on some AVRs such as the ATTiny25, 45, 85 and ATTiny26.
by christian
Thu Jul 31, 2008 12:21 pm
Forum: V-USB
Topic: Question: usbpoll()
Replies: 4
Views: 7389

If no data must be processed (99% of the calls), it does two global variable loads, two comparisons and returns. You must call it at least every 50 ms, see usbdrv.h for more info about the API.
by christian
Tue Jul 29, 2008 5:53 pm
Forum: V-USB
Topic: AVR as usb host?
Replies: 4
Views: 5529

See "embedded USB hosts" at http://www.obdev.at/products/avrusb/links.html. The first link is a firmware implementation.
by christian
Tue Jul 29, 2008 5:51 pm
Forum: V-USB
Topic: USBaspLoader and ATmega32
Replies: 6
Views: 6530

Please start with a less complex example, something which does not require the boot section and switching the interrupt vectors. When that works, you can at least be sure that the hardware infrastructure is OK.
by christian
Tue Jul 29, 2008 5:40 pm
Forum: V-USB
Topic: AVR-doper
Replies: 4
Views: 5690

The most likely cause for this is a voltage level problem on D+ or D-. Please check the idle voltage on D- and ensure it's above 3 V and below 3.6 V.

Other things to try: Different host, insert USB 2.0 hub, swap USB cables etc. If one of these helps, a voltage level problem is very likely.
by christian
Tue Jul 29, 2008 5:37 pm
Forum: V-USB
Topic: Question: usbpoll()
Replies: 4
Views: 7389

usbPoll() returns within a few microseconds, unless a message was received. If a message was received, it calls one of your functions (e.g. usbFunctionSetup()) and returns then. usbPoll() NEVER blocks by itself. The code example you gave won't work because you don't call usbPoll() often enough. You ...
by christian
Tue Jul 29, 2008 12:29 pm
Forum: V-USB
Topic: About the boot loader
Replies: 12
Views: 9789

Did you choose the same options for the boot loader (same emulation level) as when you do a "make allhexfiles"? Other than that, you might use a different version of avr-libc (although I doubt that this make such a great difference).
by christian
Wed Jul 23, 2008 12:11 pm
Forum: V-USB
Topic: About the boot loader
Replies: 12
Views: 9789

I compiled this with gcc 3.4.6. If you use WinAVR, you must use a rather old version (before the switch to gcc 4).
by christian
Tue Jul 22, 2008 4:26 pm
Forum: V-USB
Topic: About the boot loader
Replies: 12
Views: 9789

For the Pin Change thing, see the end of this thread: m This was on the tiny45, but it's still an example for using the pin change interrupt. A different issue: The osccal routine is too big for a 2 k boot loader. Your code size is ~ 2.5 k, too much for the boot section. You'll probably find a diffe...
by christian
Tue Jul 22, 2008 11:37 am
Forum: V-USB
Topic: About the boot loader
Replies: 12
Views: 9789

I'm not sure I understand what you are asking... Looking at the code: You still have those defines commented out. But I see that you have already found the appropriate values for the defines. I have not checked them, but you obviously understood the concept. Regarding interrupt edge sensitivity: The...
by christian
Fri Jul 18, 2008 4:22 pm
Forum: V-USB
Topic: how can i transfer data by usb_control_msg from host to avr
Replies: 5
Views: 7612

Please download the latest driver and see the hid-data example in the examples directory. Or read the documentation for usbFunctionWrite() in usbdrv.h.
by christian
Fri Jul 18, 2008 4:08 pm
Forum: V-USB
Topic: About the boot loader
Replies: 12
Views: 9789

I never tried gcc with avrstudio, so I can't comment on that. If you use WinAVR, you can use our standard Makefiles. Adding osccal.c may become tight due to the 2kB restriction for boot loaders. To use the Pin Change Interrupt, you need to change the last section of usbconfig.h: /* -----------------...
by christian
Fri Jul 18, 2008 4:00 pm
Forum: V-USB
Topic: how i can install prottoss.avr910 in vista
Replies: 6
Views: 13005

It seems that Windows Vista forbids low speed devices with bulk endpoints. Osamu has a workaround for this, see www.obdev.at/goto.php?t=lowbulk
by christian
Fri Jul 18, 2008 3:57 pm
Forum: V-USB
Topic: how can i transfer data by usb_control_msg from host to avr
Replies: 5
Views: 7612

The example above is for sending data from the host to the AVR, as you requested. On the AVR side, you need to implement usbFunctionWrite(). See the hid-data example which ships with the driver for details.