urgent,about at91sam9g20,can't enter interrupt handler!

Discussions about all user software around SAM Series.

Moderator: nferre

songyang
Posts: 9
Joined: Sun Feb 20, 2011 10:51 am

urgent,about at91sam9g20,can't enter interrupt handler!

Sun Feb 20, 2011 11:10 am

I want to use the RA compare of TC5 to generate an interrupt and I use the JLINK to debug the program. But the processor can’t enter the IRQ handler. In addition, I set the TC_IER by 0x4, but the value of TC_IMR is always 0. I think it should also be 0x4. What’s the problem maybe?

the related code:
void interrpt_install()

{

*AT91C_TC5_IER=0x4; //enable the RA compare interrupt
*AT91C_AIC_IDCR=0x10000000;
*AT91C_AIC_SMR28=0x27;
*AT91C_AIC_SVR28=(volatile unsigned int) try;
*AT91C_AIC_ICCR=0x10000000;
*AT91C_AIC_IECR=0x10000000;
}

Return to “Software”

Who is online

Users browsing this forum: No registered users and 1 guest