Search found 1013 matches
- Thu Jan 24, 2008 2:31 pm
- Forum: V-USB
- Topic: AVR-USB on ATmega 162
- Replies: 10
- Views: 10892
The logical conclusion would be that there is something in your interrupt handler which affects AVR-USB. You DID declare your interrupt handler with __attribute__ ((interrupt)), right? And there is no cli() in the interrupt handler or any other code which runs only if the interrupt occurs? To analyz...
- Tue Jan 22, 2008 12:33 pm
- Forum: V-USB
- Topic: Newest AVR-USB code
- Replies: 5
- Views: 7647
The macro USB_INTR_CFG_CLR is probably never needed. If some bits must be cleared in the interrupt configuration register in order to configure the interrupt correctly, set these bits in this mask. If you create your own usbconfig.h, please start from usbdrv/usbconfig-prototype.h, not from an exampl...
- Mon Jan 21, 2008 7:52 pm
- Forum: V-USB
- Topic: libusb_win32 can communicate with the endpoint 1or2??
- Replies: 2
- Views: 4533
- Mon Jan 21, 2008 7:49 pm
- Forum: V-USB
- Topic: Flow chart for Automator Project
- Replies: 1
- Views: 3518
- Mon Jan 21, 2008 7:48 pm
- Forum: V-USB
- Topic: Is the ATtiny84 supported?
- Replies: 1
- Views: 3327
The Tiny84 SHOULD work, but I have not yet tested it myself. Since there is no PLL clock, you need an external crystal. This makes pin assignment a bit tricky, as you already noticed. You have the following options: (1) Use Port A for D+ and D- and connect INT0 to D+, too. You lose one I/O pin with ...
- Mon Jan 21, 2008 7:41 pm
- Forum: V-USB
- Topic: Newest AVR-USB code
- Replies: 5
- Views: 7647
The newest version is always available in the PowerSwitch example. We currently have a thread in this forum where somebody reports problem with using other interrupts than INT0, but many others had success. Please note that only INT0 has the highest priority. If you use a different interrupt, it wou...
- Wed Jan 16, 2008 1:34 pm
- Forum: V-USB
- Topic: AVR-USB on ATmega 162
- Replies: 10
- Views: 10892
- Mon Jan 14, 2008 3:30 pm
- Forum: V-USB
- Topic: AVR-USB on ATmega 162
- Replies: 10
- Views: 10892
It's not sufficient to put your own sei() into the interrupt handler, you must declare it with __attribute__ ((interrupt)) so that gcc emits an sei() as the first instruction. Other than that: Did you make sure that D+ triggers an interrupt and that the interrupt line is an input with internal pull-...
- Sun Jan 13, 2008 7:17 pm
- Forum: V-USB
- Topic: HVSP mode: only ~4.8 V
- Replies: 1
- Views: 3248
- Sun Jan 13, 2008 7:14 pm
- Forum: V-USB
- Topic: AVR-USB on ATmega 162
- Replies: 10
- Views: 10892
- Fri Jan 11, 2008 6:38 pm
- Forum: V-USB
- Topic: problems with using external interrupt different from INT0
- Replies: 28
- Views: 28971
The main() code looks OK since you use the constants from usbconfig.h. USB RESET is the condition while in the delay loop. BTW: I would recommend to increase the RESET time to 500 ms. That's not related to the interrupt problem, though. I'm afraid I'm out of ideas here, other than the general hints ...
- Fri Jan 11, 2008 5:08 pm
- Forum: V-USB
- Topic: problems with using external interrupt different from INT0
- Replies: 28
- Views: 28971
You mentioned that you updated usbconfig.h. That's all there is to change for the driver itself. But did you also update the hardware initialization in main()? Note that the USB pins must be configured as inputs without pull-up resistor. If you do a USB RESET in main, you must also update this code.
- Thu Jan 10, 2008 6:11 pm
- Forum: V-USB
- Topic: problems with using external interrupt different from INT0
- Replies: 28
- Views: 28971
People usually only watch the forum while they work on a project. I know that andy from thread m uses an ATMega32 where hardware interrupt 2 is used for USB. His usbconfig.h contains the following changes from the default: #define USB_CFG_DMINUS_BIT 4 #define USB_CFG_DPLUS_BIT 2 #define USB_INTR_CFG...
- Thu Jan 10, 2008 4:03 pm
- Forum: V-USB
- Topic: problems with using external interrupt different from INT0
- Replies: 28
- Views: 28971
Other users had success with interrupts other than INT0. In fact, the code for making the interrupt vector configurable was contributed by a user who used a different interrupt. I'm therefore 100% sure that this CAN work. If you analyze a bug for days, you can be reasonably sure that it is NOT in th...
- Wed Jan 09, 2008 6:29 pm
- Forum: V-USB
- Topic: problems with using external interrupt different from INT0
- Replies: 28
- Views: 28971
OK. But then I don't see any asymmetry in the treatment of interrupts. No matter which interrupt you use, it should be treated in the same way... The problem is very likely caused by something simple, e.g. a code portion which configures the interrupt as an output or enables the pull-up resistor or ...