为什么无法进入中断程序呢?(灯不闪烁或者用标志位,也不显示该标志位),这是为什么,该怎么修改?
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.
为什么无法进入中断程序呢?(灯不闪烁或者用标志位,也不显示该标志位),这是为什么,该怎么修改?
Open declaration 这个函数后会链接到hal.h这个文件,里面有一行代码:
pie->ADCINT1 = &mainISR;
说明是由ADCINT1触发的主函数中断,条件满足进入函数后,依次执行点亮LED灯,清AD中断,进行ADC数据转换等后续工作。