Description: u16 ADC_Get_aveg(u8 ch,u8 n)
{
u32 ad_sum = 0;
u8 i;
for(i=0;i<n;i++)
{
ad_sum += Get_val(ch);
delay_ms(5);
}
return (ad_sum / n)
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
ADC | 266 | 2018-02-13
|
STM32_ADC.doc | 454144 | 2018-02-13 |