STC32G12K128 单片机的ADC的外部参考电源管脚ADC_VRef+
我想请问一下这个STC32G12K128 单片机的ADC的外部参考电源管脚ADC_VRef+在哪里接外部电源啊因为这个注意事项里面说“ADC的外部参考电源管脚ADC VRef+,一定不能浮空,必须接外部参考电源或者直接连到Vcc”
我现在使用例程测试出来的ADC 输入电压有一些不稳定,尤其是电压比较小的几个管脚 要求不高接VCC,要求高接外部基准
直接连接:
外部基准:
读低速信号要稳定可以使用DMA自动累加然后超采样
https://www.stcaimcu.com/forum.php?mod=redirect&goto=findpost&ptid=2537&pid=19963
用软件数字滤波也可以
unsigned char Filter_Addr_Buf;
unsigned int Filter_Value;
unsigned int xdata Filter_Value_Buf;
void Filter(unsigned int temp)
{
unsigned char count;
unsigned long Sum;
Sum=0;
Filter_Value_Buf=temp;
Filter_Addr_Buf++;
if(Filter_Addr_Buf==Filter_N)
Filter_Addr_Buf=0;
for(count=0;count<Filter_N;count++)
Sum+=Filter_Value_Buf;
Filter_Value=(Sum/Filter_N);
}
还有电压过小需要使用运放放大,信号的幅度尽量覆盖ADC量程,减少无效区间
页:
[1]