How to get the output of the DAC full zero voltage?
Good day. Faced such a situation. I want to get at the output of the DAC zero level (writing to the register is trivially 0). That's just absolute zero does not work, on the output of the microcontroller there is somewhere around 70mV. The influence of the external circuit can be excluded, since it is checked with the output physically disconnected from the rest of the circuit.
Has anyone come across this? Or to paraphrase a question, did anyone get a complete zero on the DAC?
Stm32l151, so the DAC is configured and working properly, performs its function (except for zero). Clocking DAC and port A is present, just did not copy here ....
//---------DAC-------------
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStructure.GPIO_Pin = DAC0_Pin;
GPIO_Init(DAC0_Port, &GPIO_InitStructure);
DAC_InitStructure.DAC_Trigger = DAC_Trigger_None;
DAC_InitStructure.DAC_WaveGeneration = DAC_WaveGeneration_None;
DAC_InitStructure.DAC_OutputBuffer = DAC_OutputBuffer_Enable;//Disable;//
DAC_Init(DAC_Channel_1|DAC_Channel_2, &DAC_InitStructure);
DAC_Cmd(DAC_Channel_1, ENABLE);
DAC_SetChannel1Data(DAC_Align_12b_R,0);Should I turn off the buffer? The datasheet says "Voltage on DAC_OUT output if DAC output buffer OFF = 0.5mV". What about total voltage zero?