用F103ZET6的板子学习基本的HAL库DAC输出:
HAL_DAC_SetValue (&hdac ,DAC_CHANNEL_1 ,DAC_ALIGN_12B_R ,value);
HAL_DAC_Start (&hdac ,DAC_CHANNEL_1);
输出值应该是value/4096*3.3V,测试2048输出1.64V,1024输出0.82,到了100,输出0.081还正常,但80时输出0.073,60时输出0.070,40时输出0.068,即使输入0也会有一个0.063,怎样能让其输出50mV呢? |