Search found 13 matches

by Alloc
Mon Dec 01, 2008 2:11 pm
Forum: V-USB
Topic: Any way to help the developer(s) of AVR-USB?
Replies: 3
Views: 4481

Hm, ok ^^
Still if there's any need for any tests or such I would gladly help out ... You're really doing a wonderful job here for many AVR-users =)

Regards,
Chris
by Alloc
Sun Nov 30, 2008 11:31 pm
Forum: V-USB
Topic: Any way to help the developer(s) of AVR-USB?
Replies: 3
Views: 4481

Any way to help the developer(s) of AVR-USB?

Hi, I really like AVR-USB very much and appreciate the work put into it. So I'd like to ask if there's any way to help you (the developers) (not by writing USB code, but anything else) or at least give you a few bucks for your work. I know of the hobby-license but as I see it that's not only giving ...
by Alloc
Sun Nov 30, 2008 11:15 pm
Forum: V-USB
Topic: Activating USART-interrupt makes controller reset
Replies: 9
Views: 8331

Since there are no subroutine calls in the vector (or did you talk about sub-calls in the whole source?) that's probly not possible. Does avr-gcc use any registers as special functions? Eg, why does avr-gcc push all those registers at the beginning of the interrupt? 282: 1f 92 push r1 284: 0f 92 pus...
by Alloc
Sun Nov 30, 2008 10:34 pm
Forum: V-USB
Topic: Activating USART-interrupt makes controller reset
Replies: 9
Views: 8331

I use the 16 MHz variant ... unfortunately there's no information on "allowable interrupt latency". Only 12 and 16.5 MHz include that information.
by Alloc
Sun Nov 30, 2008 1:20 am
Forum: V-USB
Topic: Activating USART-interrupt makes controller reset
Replies: 9
Views: 8331

For USART_UDRE, you probably need to write an assembler routine. Executing sei() after resetting the pending flag might be too slow. But look at the disassembler listing to be sure. At how many cycles starts "too slow"? 00000282 <__vector_14>: 282: 1f 92 push r1 284: 0f 92 push r0 286: 0f...
by Alloc
Sat Nov 29, 2008 4:34 pm
Forum: V-USB
Topic: Activating USART-interrupt makes controller reset
Replies: 9
Views: 8331

Hi, think I understood the reason ... The UDRE-flag is set as long as UDR is not written to. By enabling interrupts at the beginning of the UDRE-interrupt another interrupt is executed ... endless loop. Is the USART_UDRE_vect0-ISR small enough for not enabling interrupts? Btw, you (christian) sugges...
by Alloc
Sat Nov 29, 2008 4:11 am
Forum: V-USB
Topic: Activating USART-interrupt makes controller reset
Replies: 9
Views: 8331

Activating USART-interrupt makes controller reset

Hi, I'm currently trying to get a mega16 to act as a bridge between USB and USART. Everything works fine, as long as I don't enable the USART Data Register Empty Interrupt (USART_UDRE_vect). As soon as I enable it the uC hangs and after a short period does a watchdog-reset, *but only* if the interru...
by Alloc
Thu Nov 20, 2008 1:44 am
Forum: V-USB
Topic: AVR-USB hangs when using usbSetInterrupt(0, 0)
Replies: 4
Views: 5045

Okay, thanks =)
by Alloc
Wed Nov 19, 2008 10:15 pm
Forum: V-USB
Topic: AVR-USB hangs when using usbSetInterrupt(0, 0)
Replies: 4
Views: 5045

Hi christian,

thanks for the reply. Thought I could use it with zero bytes since it's used that way in the RemoteSensor example.
So is there any way to set the usb-interrupt without any data? Or do I have to use a dummy byte?

Regards,
Chris
by Alloc
Sat Nov 15, 2008 4:18 am
Forum: V-USB
Topic: AVR-USB hangs when using usbSetInterrupt(0, 0)
Replies: 4
Views: 5045

AVR-USB hangs when using usbSetInterrupt(0, 0)

Hi, I wrote a little fw which indicates whether the host should read data by setting it's interrupt1-in-flag. When I call the usbSetInterrupt-method by eg usbSetInterrupt(&LED_PORT, 1); it works fine. If I (at the same codeline) call it by usbSetInterrupt(0, 0); libUsb also retur...
by Alloc
Sat Nov 15, 2008 3:53 am
Forum: V-USB
Topic: Advantages of Interrupt-In vs polling via Control-Transfers?
Replies: 4
Views: 5314

Thanks =)
by Alloc
Fri Nov 14, 2008 1:04 am
Forum: V-USB
Topic: Advantages of Interrupt-In vs polling via Control-Transfers?
Replies: 4
Views: 5314

Thanks christian, that explains why it's there at all But because of USB's single-master architecture "someone" still has to do the polling... Is that done by the host-controller or does the OS have to do this (which in turn would basically mean it's using some CPU-time, just better organi...
by Alloc
Sun Nov 09, 2008 3:29 pm
Forum: V-USB
Topic: Advantages of Interrupt-In vs polling via Control-Transfers?
Replies: 4
Views: 5314

Advantages of Interrupt-In vs polling via Control-Transfers?

Hi, I'm currently looking at the RemoteSensor example because I want to create a device which should send data to the host "itself". I'm wondering where the advantages of an Interrupt-In are compared to simply polling the device through Control-Transfers. Looking at the host-code in the ex...