Question
STM32F401RET Simulink ADC Signal Issues

My problem is that I am measuring a pure sine wave from a voltage sensor. I verified the sensor output using an oscilloscope, and the waveform is clean. However, the ADC readings on the STM32 show a very low-quality signal that appears as a stepped waveform rather than a smooth sine wave.
I have already tried increasing the sampling rate, running the ADC at its maximum clock speed, and using a timer as an external trigger source for the ADC, but none of these solutions improved the result.
I would appreciate any suggestions on what could be causing this issue.
