stm8l151外中断脉冲计数时,在中断服务程序中必须添加延时吗?否则会频繁退出后又立即进中断!
有好的解决办法吗?
INTERRUPT_HANDLER(EXTI2_IRQHandler, 10){
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
EXTI2_Decrement();
Delay(0xFFFF); // 此延时是必须的吗?
/* Cleat Interrupt Pending bit */
EXTI_ClearITPendingBit(EXTI_IT_Pin2);
}