Search found 1013 matches

by christian
Mon Dec 22, 2008 11:36 am
Forum: V-USB
Topic: Attiny461
Replies: 11
Views: 9541

I was under the same impression (that the V types use the same silicon but are selected by parameters), but users reported that the same circuit works with a non-V type while it fails with a V type. This was at 16 MHz, as far as I remember.
by christian
Fri Dec 19, 2008 11:27 pm
Forum: V-USB
Topic: Attiny461
Replies: 11
Views: 9541

The 12 MHz module needs the precision of a crystal, the 12.8 MHz module does not. The additional 0.8 MHz are spent for a software PLL. Regarding the conflict between table 7-6 and figure 24-35: The table documents guaranteed values, the diagram real, measured values. The diagram reflects reality ver...
by christian
Fri Dec 19, 2008 12:24 pm
Forum: V-USB
Topic: Attiny461
Replies: 11
Views: 9541

You can still try to get it running with the 12.8 MHz module. This should work on devices rated at 10 MHz.
by christian
Fri Dec 19, 2008 12:15 pm
Forum: V-USB
Topic: hid-data, always 0xff
Replies: 7
Views: 6574

Yes, something is broken with this example. Don't know what, though. The data arrives at the AVR, as far as I remember, but it's not written to the EEPROM correctly.

Just modify the example to set some I/O pins instead. You'll see that it works.
by christian
Fri Dec 19, 2008 12:12 pm
Forum: V-USB
Topic: Transfer speed on CDC-Mode
Replies: 1
Views: 2812

Avoid CDC mode if at all possible. The transfer rate with AVR-USB is lower than with all other modes because it eats so much (AVR-) CPU time. And it's not compatible with many Linux kernels and Windows Vista.
by christian
Fri Dec 05, 2008 9:40 pm
Forum: V-USB
Topic: Free Running Mode possible?
Replies: 3
Views: 4844

If you enable the interrupt, you must supply an implementation for the vector. Otherwise the reset vector is called. Where in your code do you read the ADC data? If you don't need the accuracy of an interrupt, you may poll for it instead. Leave ADIE zero and check for ADIF regularly. If it is set, w...
by christian
Fri Dec 05, 2008 8:21 pm
Forum: V-USB
Topic: Free Running Mode possible?
Replies: 3
Views: 4844

There's nothing special with AVR-USB and free running mode of the ADC. It looks as if your code crashes, maybe because you enabled an interrupt which has no vector assigned or the vector is called recursively. If you need an interrupt for the ADC, you must make sure it enables global interrupts with...
by christian
Fri Dec 05, 2008 6:54 pm
Forum: V-USB
Topic: hidkeys and MacOS - identifying the keyboard
Replies: 1
Views: 2381

As far as I know, Mac OS X does this if it can't identify the keyboard otherwise. You can just ignore this dialog if your keyboard does not have these keys.
by christian
Fri Dec 05, 2008 6:50 pm
Forum: V-USB
Topic: usbconfig
Replies: 1
Views: 2547

Did you do a "make clean" after the change? There is no explicit dependency on usbconfig.h in Makefile.
by christian
Mon Dec 01, 2008 12:14 pm
Forum: V-USB
Topic: newbie help: avr-usb translation into AVR Studio 4
Replies: 2
Views: 11036

You need to pass additional compiler flags. Most importantly: -DF_CPU=12000000 (or whatever your clock frequency is) and -Iusbdrv unless you move all the usbdrv files into your main source directory.

You also need to add the assembler file usbdrvasm.S to the project.
by christian
Mon Dec 01, 2008 12:11 pm
Forum: V-USB
Topic: Any way to help the developer(s) of AVR-USB?
Replies: 3
Views: 4487

Just enjoy :-)
by christian
Mon Dec 01, 2008 12:08 pm
Forum: V-USB
Topic: Activating USART-interrupt makes controller reset
Replies: 9
Views: 8342

You have found out most of the details yourself. R0 is used for temporary results and R1 should always be zero. If you make the routine naked, you have to push registers from inline assembler without knowing what to push. A new compiler version might assign registers in a different way. But at least...
by christian
Sun Nov 30, 2008 10:40 pm
Forum: V-USB
Topic: Activating USART-interrupt makes controller reset
Replies: 9
Views: 8342

Without looking at the details: I think the 12 and 16 MHz module have the same latency from start of interrupt to reading the first bit. It should therefore be OK to scale the 25 cycles with 16/12. This would be 33 cycles. You can probably reduce the number of pushes in your interrupt if you avoid s...
by christian
Sun Nov 30, 2008 10:16 pm
Forum: V-USB
Topic: Activating USART-interrupt makes controller reset
Replies: 9
Views: 8342

At how many cycles starts "too slow"? See the comment at the beginning of the respective assembler module. For 12 MHz: ;max allowable interrupt latency: 34 cycles -> max 25 cycles interrupt disable Your interrupt takes 3 cycles until it executes, 2 cycles for the jump to the vector and 18...
by christian
Sat Nov 29, 2008 11:12 pm
Forum: V-USB
Topic: Activating USART-interrupt makes controller reset
Replies: 9
Views: 8342

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. In an assembler routine, you may push only one or two registers, handle the pending flag and then execute sei. Btw, yo...