Associate
May 12, 2025
Solved
L476RGT6 ADC1 Driver Not Working (Incorrect Reading)
- May 12, 2025
- 3 replies
- 661 views
Hi! I have the following code for an ADC1 driver running in ADC1_IN1 (PC0) in an L476RGT6 and it runs fine. However, I am testing it by reading a potentiometer and the value read is constant. I've already double-checked everything, including channel selection in ADCx_SQR1, but I am still not sure why it is not reading correctly when I change the potentiometer resistance.
You can assume systick_us_delay() works fine.
