Search found 1013 matches

by christian
Fri Oct 10, 2008 5:24 pm
Forum: V-USB
Topic: USB MIDI Interface
Replies: 93
Views: 458497

USB is a host driven bus. Every activity must be initiated by the host. This gives ugly semantics for things like interrupts but makes the bus logic (and thus the controller chips) much simpler (= cheaper).
by christian
Thu Oct 09, 2008 4:54 pm
Forum: V-USB
Topic: 3.3v zener instead of 3.6v zener
Replies: 5
Views: 5994

Someone also suggested a green and an orange LED in series. The forward voltage should be pretty close to 3.3 V.

Since LEDs can differ depending on efficiency etc, measure the voltage before you use them.
by christian
Thu Oct 09, 2008 4:53 pm
Forum: V-USB
Topic: EasyLogger on a Tiny25
Replies: 1
Views: 2995

You can save quite a couple of bytes if you don't output the value in decimal. That would save the division code.

Other than that, I'd recommend gcc 3 since it generates shorter code.
by christian
Thu Oct 09, 2008 4:50 pm
Forum: V-USB
Topic: USB AVR (hid mouse) PORT init problem
Replies: 2
Views: 3726

Did you do a "make clean" after the change? Most of the makefiles don't have dependencies on usbconfig.h and don't recompile after a change.

Other than that: Are you sure the wiring is OK?
by christian
Thu Oct 09, 2008 4:48 pm
Forum: V-USB
Topic: HID Report Descriptor
Replies: 1
Views: 2836

Since you say that you connect a microphone, I assume that you have a sampling rate of more than 8 kHz. AVR-USB is low speed only. The available transfer rate is not enough for one audio channel.

Regarding the HID reports: I usually look for a similar device and check how they did it...
by christian
Thu Oct 09, 2008 4:45 pm
Forum: V-USB
Topic: How to switch an Output on when device is registered?
Replies: 1
Views: 2882

Look at the global variable usbConfiguration. It contains the value of the configuration choosen by the host. However, it is not reset when the device is disconnected. To find out whether your device is disconnected, connect INT0 to D- instead of D+, define USB_COUNT_SOF to 1 and check whether usbSo...
by christian
Thu Oct 09, 2008 4:40 pm
Forum: V-USB
Topic: Questions about USB_CFG_MAX_BUS_POWER
Replies: 1
Views: 2762

The value you define is in mA, so define it to 500. The USB Spec demands half that value and AVR-USB divides it automatically. Note that you must wait until your device is configured before you draw the full power. Until then you are limited to 100 mA. If you exceed the value, it depends on the host...
by christian
Thu Oct 09, 2008 4:38 pm
Forum: V-USB
Topic: general AVR-USB timing questions
Replies: 1
Views: 3290

If the interrupt is wired to D+, there is only activity when data is actually requested or transferred. If you connect it to D-, you get a couple of cycles every 1 ms frame. Other than that, note that interrupt endpoints are polled and that you have to call usbPoll() in regular intervals. Bulk endpo...
by christian
Thu Oct 09, 2008 4:36 pm
Forum: V-USB
Topic: VENDOR_RQ_WRITE_BUFFER problem
Replies: 1
Views: 2738

This is example code only. When you write your own device, host and device must agree on numerical values for the requests. This define must be shared between host software and device so that both use the same numerical value.
by christian
Thu Oct 09, 2008 4:34 pm
Forum: V-USB
Topic: PowerSwitch mit ATmega1281 (Fehler: D+/D- beide auf High)
Replies: 8
Views: 6462

Hast Du ein scope? Im Prinzip MUSS sich auf der D+ Leitung was tun, sonst koennte er nicht behaupten, dass die enumeration schief gegangen ist. Wenn Du ein Speicherscope hast, trigger auf D+ und schau' nach, ob das device auf ein request antwortet. Meistens kann man die Antwort am leicht anderen Peg...
by christian
Wed Sep 24, 2008 4:03 pm
Forum: V-USB
Topic: USBaspLoader + no-crystal + ATTiny
Replies: 4
Views: 4703

Don't know. Probably not...
by christian
Wed Sep 24, 2008 3:56 pm
Forum: V-USB
Topic: USBaspLoader + no-crystal + ATTiny
Replies: 4
Views: 4703

Not just too little memory, the ATTiny x5 has no boot loader section.
by christian
Wed Sep 17, 2008 5:11 pm
Forum: V-USB
Topic: atmega168v - avrusb
Replies: 1
Views: 2949

You can verify if the uC works correctly if you upload a program which toggles a pin every second and connect an LED to the pin. Then take a stopwatch and count...
by christian
Wed Sep 17, 2008 5:00 pm
Forum: V-USB
Topic: Be assigned to zener diode clamping the signal voltage of D+
Replies: 2
Views: 5029

Please note that not all orange and green LEDs have the same forward voltage. You must specify exact part types for the LEDs.
by christian
Wed Sep 17, 2008 4:55 pm
Forum: V-USB
Topic: AVR-USB and Xmega?
Replies: 3
Views: 4673

We at obdev don't plan to support these chips.