I have a very simple app that generates a sine wave, the scope trace is fine.
I decided to replicate the logic so I could generate two signals by leveraging the second DAC.
Problem is that the output from the 2nd DAC is clipped whereas the first is not.
This is running on a Nucleo F446RE board.
DHR12R1 appears a perfect looking sine but DHR12R2 has clipped (just the top) at slighly less than 3v.
Can anyone see anything in the code that might explain this?
(The writes to the 2nd DAC are "inverted" so that the two signals are 180 degrees out of phase just FYI).
Here's the code (the collapsed stuff is the sine table calculation, no IO at all).

Writing to just DAC1 or DAC2 and the clipping is still present but only when writing to DAC2.
I decided to replicate the logic so I could generate two signals by leveraging the second DAC.
Problem is that the output from the 2nd DAC is clipped whereas the first is not.
This is running on a Nucleo F446RE board.
DHR12R1 appears a perfect looking sine but DHR12R2 has clipped (just the top) at slighly less than 3v.
Can anyone see anything in the code that might explain this?
(The writes to the 2nd DAC are "inverted" so that the two signals are 180 degrees out of phase just FYI).
Here's the code (the collapsed stuff is the sine table calculation, no IO at all).

Writing to just DAC1 or DAC2 and the clipping is still present but only when writing to DAC2.
Last edited: