2014-05-30 8:16 AM
Any ideas what would cause a STM32F4 Discovery board to suddenly invert the DAC output, such that 0 gives 3V and 4095 gives 0V? This does not seem to be a programming issue as the identical program worked fine prior (and on other boards). It also does not appear to be a single bad board, it has happened to me on two boards. The issue seems to unrecoverable, reloading a program, cycling power, etc do not fix it.
I had been hooking and unhooking leads, so it is possible a stray voltage went somewhere bad, but I would still like to understand the mechanism. The boards work fine otherwise (including the ADCs).Thanks.2014-06-02 4:12 AM
The DAC output would appear inverted if you reference (measure) it in regard to VDDA, and not to GND. So it might be a wiring issue.
2024-10-21 8:59 PM
Are you using the buffered (non-inverting) or the unbuffered output driving a virtual earth inverting opamp (inverting) output? Because depending on your choice, obviously one will invert compared to the other, which is the most likely explanation.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.