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:
*AT91C_TC5_IER=0x4; //enable the RA compare interrupt
*AT91C_AIC_SVR28=(volatile unsigned int) try;
Discussions about all user software around SAM Series.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest