Search found 1013 matches

by christian
Sat Aug 28, 2010 1:53 pm
Forum: V-USB
Topic: example for Atmega8
Replies: 14
Views: 13354

Re: example for Atmega8

Understanding all of usbconfig-prototype.h may be a bit hard for a newbie. In any case you should know the general architecture, that V-USB drives the USB lines directly and that there is no FT232 involved. Then you should know that USB requires descriptors, what they are good for and what is inside...
by christian
Thu Aug 26, 2010 12:05 pm
Forum: V-USB
Topic: example for Atmega8
Replies: 14
Views: 13354

Re: example for Atmega8

Should be possible, of course. But you must be careful with the big device because it may need more than 16 bits for pointers. All of the driver must be in the low 64 kB.

See http://blog.flipwork.nl/?x=entry:entry081009-142605 for an example of a single key keyboard.
by christian
Fri Aug 20, 2010 11:01 am
Forum: V-USB
Topic: Need help powerswitch
Replies: 10
Views: 8189

Re: Need help powerswitch

Yes, that's the core I meant. Except that you forgot to connect the Vcc line (power supply) from the USB connector to the rest of the circuit. I don't know the company who sells Metaboard. Did not even know that it's available commercially. Regarding Arduino: What makes it an interesting candidate a...
by christian
Thu Aug 19, 2010 12:38 pm
Forum: V-USB
Topic: Need help powerswitch
Replies: 10
Views: 8189

Re: Need help powerswitch

Regarding Metaboard: The advantage are the I/O pins and the breadboard area. It is intended to be used with a boot loader. A boot loader is a kind of built-in programmer, so you flash it via USB instead of connecting an external programmer to some pins. On the other hand, it contains an unnecessary ...
by christian
Wed Aug 18, 2010 11:19 am
Forum: V-USB
Topic: Need help powerswitch
Replies: 10
Views: 8189

Re: Need help powerswitch

If you want something simple and educational to start with, I'd recommend m instead. The circuit is very easy to build AND you can use it to learn more about electronics. PowerSwitch is not really intended for the electronics newbie because it works with mains voltage. That can be rather dangerous. ...
by christian
Mon Aug 02, 2010 1:49 pm
Forum: V-USB
Topic: Bug in Wiki (or) in "PowerSwitch" [solved]
Replies: 2
Views: 3400

Re: Bug in Wiki (or) in "PowerSwitch" [solved]

Note that PowerSwitch ships with a really old version of the driver. It has not been updated since the driver comes in a separate package now (see m). The wiki documentation refers to more recent versions. Regarding USB_ENDPOINT_IN vs. USB_ENDPOINT_OUT in the host side software of PowerSwitch: This ...
by christian
Mon Jul 12, 2010 11:36 am
Forum: V-USB
Topic: PCINT instead of INT0?
Replies: 12
Views: 15032

Re: PCINT instead of INT0?

Yes, INT0_vect is already there in the repository, it will be published with the next release.
by christian
Mon Jul 12, 2010 10:01 am
Forum: V-USB
Topic: PCINT instead of INT0?
Replies: 12
Views: 15032

Re: PCINT instead of INT0?

Have you verified the interrupt vector? If SIG_PIN_CHANGE is not defined, the interrupt handler will never be called and there's no compiler/linker warning or error. Please check main.elf with avr-objdump -d main.elf Then check the verctor address for pin change and see whether it contains the jump ...
by christian
Fri Jul 09, 2010 5:35 pm
Forum: V-USB
Topic: PCINT instead of INT0?
Replies: 12
Views: 15032

Re: PCINT instead of INT0?

Yes, this means that the handler is never called. It seems that either the vector address is not correct (you can check this with a disassembler listing of the linked code) or the interrupt is not enabled. Don't know which steps are required to enable a PCINT, I would have to read the data sheet...
by christian
Thu Jul 08, 2010 6:53 pm
Forum: V-USB
Topic: PCINT instead of INT0?
Replies: 12
Views: 15032

Re: PCINT instead of INT0?

No, the driver works with all three, rising edge, falling edge and change triggered interrupt. You should verify whether the interrupt handler is actually called...
by christian
Mon Jul 05, 2010 6:02 pm
Forum: V-USB
Topic: PCINT instead of INT0?
Replies: 12
Views: 15032

Re: PCINT instead of INT0?

by christian
Mon May 17, 2010 3:14 pm
Forum: V-USB
Topic: How to output data to e.g. HID device
Replies: 19
Views: 16582

Re: How to output data to e.g. HID device

Have you checked that bytesRemaining is 16 bit, not 8 bit as in the example? In any case, you don't need to change the logical maximum. that's just the value range of a byte explained to the host side driver. Also, please check whether you use usbRequest->wLength anywhere. Most examples use the low ...
by christian
Fri Apr 09, 2010 7:44 pm
Forum: V-USB
Topic: AVR - Doper is only HVSP
Replies: 5
Views: 4751

Re: AVR - Doper is only HVSP

There are two hardware versions. The big one supports HVPP, as far as I know.
by christian
Sat Mar 06, 2010 6:16 pm
Forum: V-USB
Topic: ATtiny85 self programming flash.
Replies: 11
Views: 14834

Re: ATtiny85 self programming flash.

You keep the interrupts disabled while you do the busy wait. This way you lock out the driver during the write operation. See bootloadHID for an example where to disable interrupts and where to keep them enabled.
by christian
Fri Mar 05, 2010 8:23 pm
Forum: V-USB
Topic: Help with usbHidReportDescriptor
Replies: 10
Views: 8430

Re: Help with usbHidReportDescriptor

The error message says that the make utility can't find the gcc executable. This is some kind of misconfiguration of your MinGW installation.