|
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; }
|