Discuz! Board
标题:
指教下ADC
[打印本页]
作者:
edgeing
时间:
2016-1-7 11:08
标题:
指教下ADC
#pragma vector=0xD
__interrupt void TIM1_UPD_OVF_TRG_BRK_IRQHandler(void)
{
Conversion_Value = ADC1_GetConversionValue();
Delay(0xff);
Delay(0xff);
ADC_Value(Conversion_Value);
TIM1_ClearITPendingBit(TIM1_IT_UPDATE);//清除向上溢出中断
}
定时器里取到ADC值,如果累积10次 求平均呢
作者:
admin
时间:
2016-1-8 19:17
设置一个参数循环加呀
欢迎光临 Discuz! Board (http://qfv8.com/)
Powered by Discuz! X3