求高手帮忙!!!!!!!!!!!!!
说明:PA1外部中断设置成下降沿中断
1.当开启四个ADC转换 分别为 ADC_InsertedChannel_Config(KEYADCChannel0, 1, ADC_SAMPLETIME_55POINT5);ADC_InsertedChannel_Config(PAPSen2ADCChannel2, 2, ADC_SAMPLETIME_55POINT5);ADC_InsertedChannel_Config(PAPSen3ADCChannel3, 3, ADC_SAMPLETIME_55POINT5);ADC_InsertedChannel_Config(CRGDirSenADCChannel4, 4, ADC_SAMPLETIME_55POINT5);的时候,上升沿和下降沿都能进入EXTI0_1_IRQHandler()此函数。
2.只要屏蔽ADC_InsertedChannel_Config(PAPSen3ADCChannel3, 3, ADC_SAMPLETIME_55POINT5);这个ADC转换时,只有下降沿才会进入中断函数。 |