2025-04-07 7:46 PM
Hello,
Im working on a program which sends data from the ADC to the computer. My problem is that the data from my STM32H563ZIT6 is bad. I first noticed this from looking at the data sent from the computer and confirmed this by outputting the ADC data through the DAC. Attached is the output from a 50Khz sine wave.
I am not sure what is causing this stair stepping pattern. For reference I have the ADC clock at 75Mhz, 6.5 cycle sample time, and triggered by a 1Mhz timer.
I did notice that the data in the buffer seemed to be mostly shifted left 4 bits (though it never goes above 4095) or is missing the first 4 LSBs.
I ran the same program on an STM32F303RET6 and got the expected output from the DAC.
What am I missing that could be the cause of this oddity? Attached is the H563 program which exhibits this behavior.
Thank you!