I also realized that the instruction was too long so I modified the code as follows: if(GPIO_PIN0_Value != ((HWREG16(P6_BASE + OFS_PAIN) & (GPIO_PIN0 0)) { ISR_Missed = true; } else { ISR_Missed = false; } Also, since the PWM level change occurs every 4ms, I set the CCR interrupt at 2ms to delay the GPIO_PIN0_Value check. And the result is the same
↧