STM32F2 Inverted DAC output on some boards
Hello,
I have 3 boards with STM32F205RBT using 2xDAC and 9xADC. Two boards are working just fine but one board has the second DAC output inverted (write 0 ->3V, write 4094 ->0v). The same program is used, boards are the same.
The DAC output is amplified with oamp LM324APT. Before the oamp there is 1k current limiting resistor in series and 100k pulldown. The same connection is used with success in several other projects.
When I disable the DAC output buffer, the output is no longer inverted. But I would like to keep the output buffer enabled (otherwise is the output voltage not correct...).
sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_DISABLE;I expect a HW problem - ESD or something gone wrong in the soldering process...?
I have found several more threads with the same problem but there was no solution proposed. The threads are old (2015-2018). Maybe there is a solution now...
Can I prevent this problem? If so, how? This board is going into production and I would like to solve it before that...
https://community.st.com/s/question/0D50X00009Xkfc8/inverted-dac
https://community.st.com/s/question/0D50X00009Xka1aSAB/stm32f427-inverted-dac-output
https://community.st.com/s/question/0D50X00009Xkh6F/inverted-dac-output
Thank you!