Search found 1013 matches
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...
- Fri Dec 19, 2008 12:15 pm
- Forum: V-USB
- Topic: hid-data, always 0xff
- Replies: 7
- Views: 6574
- Fri Dec 19, 2008 12:12 pm
- Forum: V-USB
- Topic: Transfer speed on CDC-Mode
- Replies: 1
- Views: 2812
- 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...
- 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...
- Fri Dec 05, 2008 6:54 pm
- Forum: V-USB
- Topic: hidkeys and MacOS - identifying the keyboard
- Replies: 1
- Views: 2381
- Mon Dec 01, 2008 12:14 pm
- Forum: V-USB
- Topic: newbie help: avr-usb translation into AVR Studio 4
- Replies: 2
- Views: 11036
- 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
- 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...
- 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...
- Sun Nov 30, 2008 10:16 pm
- Forum: V-USB
- Topic: Activating USART-interrupt makes controller reset
- Replies: 9
- Views: 8342
- 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...