This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于6747无法进入定时器中断的问题



我设置TIMER12定时器中断时,出现了以下问题:定时器指向的中断函数有时能进有时不能进,同样的代码,前后编译两次结果就不同,甚至原编译文件下载不同结果也不同。一直找不到问题所在,望指点,顺便感谢TITAN在前一个问题的悉心指点

TimerInit

{ TGCR=0x00000007;

TIM12=0X5D40;

TCR=0x0080;}

IntInit{

CSR&=0XFFFE;

INTMUX3=0x00040000;

ISTP=0x80000000;

ICR=0xfff0;

ISR=0x0;

IER=0xffff;

CSR=CSR|0X1;

}

Timer0_1ms

{

CSR=0XFFFE;

.......

ICR=0XFFF0;

CSR=CSR|0X1;

}