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.

CPU定时器0中断标志需要清除吗?



CPU定时器0中断标志需要清除吗?

官网例程没有初始化,但可以继续响应中断,

程序如下:这是它的中断子程序:

__interrupt void cpu_timer0_isr(void)
{
CpuTimer0.InterruptCount++;
GpioDataRegs.GPATOGGLE.bit.GPIO16 = 1; // Toggle GPIO34 once per 500 milliseconds

// Acknowledge this interrupt to receive more interrupts from group 1
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
}