Search found 1013 matches
- Sun Jan 11, 2009 12:04 pm
- Forum: V-USB
- Topic: hid-data, always 0xff
- Replies: 7
- Views: 6574
- Wed Jan 07, 2009 3:20 pm
- Forum: V-USB
- Topic: Timed output with avr-usb
- Replies: 9
- Views: 6855
- Mon Jan 05, 2009 1:46 pm
- Forum: V-USB
- Topic: Zener diode suitability
- Replies: 5
- Views: 6041
- Mon Jan 05, 2009 1:44 pm
- Forum: V-USB
- Topic: Timed output with avr-usb
- Replies: 9
- Views: 6855
When you generate the signals from software (which may be required if you need more than one output), you get glitches from time to time when USB traffic interrupts the output pulse. The USB interrupt runs for ~ 100 microseconds and blocks all other activity during this time. This may be acceptable ...
- Sun Jan 04, 2009 10:42 pm
- Forum: V-USB
- Topic: Timed output with avr-usb
- Replies: 9
- Views: 6855
No! I mean something like that (it does not work as described below, but you get the general idea): Configure timer 0 for PWM and enable the overflow interrupt. In the overflow interrupt routine (which enables global interrupts immediately, of course) set the PWM value to 0 so that no pulse is gener...
- Sun Jan 04, 2009 9:56 pm
- Forum: V-USB
- Topic: Timed output with avr-usb
- Replies: 9
- Views: 6855
I didn't mean to use timer 0 in PWM mode. Use it to turn a port pin on or off (or leave it as it is) at a given count. This is rather complex, admittedly, but it should be possible. BTW: Servos have a dead range to avoid oscillation around the target position. This results in a resolution of ~ 100 s...
- Sun Jan 04, 2009 7:56 pm
- Forum: V-USB
- Topic: Using PCINT1 instead of INT0 on ATTINY45
- Replies: 1
- Views: 3163
- Sun Jan 04, 2009 7:55 pm
- Forum: V-USB
- Topic: 2 Problems with AVR Doper (2008-11-27 Firmware)
- Replies: 2
- Views: 3665
If you compile from the source code, edit firmware/stk500protocol.c and change the constants /* The following versions are reported to the programming software: */ #define STK_VERSION_HW 1 #define STK_VERSION_MAJOR 2 #define STK_VERSION_MINOR 4 appropriately. The other issue: Don't know why there ar...
- Sun Jan 04, 2009 7:51 pm
- Forum: V-USB
- Topic: Timed output with avr-usb
- Replies: 9
- Views: 6855
You can't disconnect and re-connect 50 times a second, the procedures take much too long for such a frequency. You also must not disable interrupts for more than a couple of cycles because AVR-USB MUST react within microseconds to a USB request. Your best option is to work on the PWM code. You can u...
- Sun Jan 04, 2009 7:08 pm
- Forum: V-USB
- Topic: AVRUSB on Arduino Diecimila?
- Replies: 2
- Views: 2970
- Sun Jan 04, 2009 7:06 pm
- Forum: V-USB
- Topic: How to set fuse bits for Tiny2313 when implementing USB ?
- Replies: 4
- Views: 6934
- Sun Jan 04, 2009 7:04 pm
- Forum: V-USB
- Topic: Continously sampling via ADC, how to start
- Replies: 15
- Views: 17047
Some answers: (1) You can't call usbPoll() from a timer interrupt. You must call it from the main code. usbPoll() usually returns within microseconds, but since your usbFunctionSetup(), usbFUnctionRead() and usbFunctionWrite() routines are called from there, the maximum duration depends on your rout...
- Mon Dec 29, 2008 9:24 pm
- Forum: V-USB
- Topic: How fast is Software-USB
- Replies: 26
- Views: 36513
- Mon Dec 22, 2008 11:39 am
- Forum: V-USB
- Topic: avrdoper - 1mH choke/coil
- Replies: 2
- Views: 3270
- Mon Dec 22, 2008 11:37 am
- Forum: V-USB
- Topic: Zener diode suitability
- Replies: 5
- Views: 6041