|
Hello,
I want to get an interrupt when USB-Cable is connected. The 5V from USB is the "Input" of a potential divider, the divided potential is connected with Pin13 (PA19/FIQ).
My Code is: AT91C_BASE_PIOA->PIO_PPUDR = USB_SELECT; // Disable the intern Pullup-Resistor.
AT91F_AIC_ConfigureIt ( AT91C_BASE_AIC, AT91C_ID_FIQ, FIQ_LEVEL, AT91C_AIC_SRCTYPE_POSITIVE_EDGE, FIQ_handler); AT91F_AIC_EnableIt ( AT91C_BASE_AIC, AT91C_ID_FIQ);
So, when I connect USB, I should get a "positive Edge" at Pin13 and the FIQ_handler should run. But that's only theory. The FIQ_handler is not running.
Could somebody help me?
Kind regards, Johannes
|