ADC的测量精度问题,采样和测量值查了0.01~0.02V
-
static const adc_converter_config_t adc_config1={ /* adc_config0 */ .clockDivider=1, .startTime=160, .sampleTime=100, .overrunMode=false, .autoOffEnable=false, .waitEnable=true, .trigger=ADC_TRIGGER_SOFTWARE, .align=ADC_ALIGN_RIGHT, .resolution=ADC_RESOLUTION_12BIT, .dmaWaterMark=0, .dmaEnable=false, .sequenceConfig={ .sequenceMode=ADC_CONV_LOOP, .sequenceIntEnable=true, .convIntEnable=false, .readyIntEnable=false, .ovrunIntEnable=false, .sampIntEnable=false, .channels={ ADC_INPUTCHAN_EXT19, ADC_INPUTCHAN_EXT18, ADC_INPUTCHAN_EXT17, ADC_INPUTCHAN_EXT16, ADC_INPUTCHAN_EXT1, ADC_INPUTCHAN_EXT20, ADC_INPUTCHAN_EXT10, }, .totalChannels=DADC_u8GRP0_CH_NUM_VAR1, }, .compareConfig={ .compareEnable=false, .compareAllChannelEnable=false, .compHigh=4095, .compLow=0, .compIntEnable=false, }, };
精度还行,在10ms的采样周期里,能采样完成吧
帮助没办法联网的电脑使用YCT
帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...