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.

关于F28377D例程timer控制LED闪烁的问题

我在CPU1里仿真用定时器控制LED闪烁,除了在中断服务函数里面把管脚电平置高,其他没有地方把管脚拉低。

请问以下方式,为什么就能够控制LED闪烁?

while(1)
{

}

__interrupt void cpu_timer0_isr(void)
{
      CpuTimer0.InterruptCount++;

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

      GpioDataRegs.GPATOGGLE.bit.GPIO0 = 1;
      GpioDataRegs.GPATOGGLE.bit.GPIO1 = 1;
      GpioDataRegs.GPCTOGGLE.bit.GPIO67 = 1;
      GpioDataRegs.GPCTOGGLE.bit.GPIO84 = 1;

}