Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: AT91sam7S64 FIQ as extern interrupt
PostPosted: Thu Nov 18, 2010 3:59 pm 
Offline

Joined: Thu Nov 18, 2010 3:45 pm
Posts: 3
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: