Dtynin
DIIDevHeads IoT Integration Server
•Created by Dtynin on 9/3/2024 in #firmware-and-baremetal
Why Is My AVR32UC ADC Returning Zero Despite a Correct Input Signal?
Hey everyone, I'm currently working on reading an analog value using the ADC on my AVR32UC microcontroller, but I'm running into a problem where the ADC consistently returns zero, even though the input signal is correct. I've verified that the ADC driver is enabled in the
prj.conf
file, and also ensured that the ADC channel being used corresponds to the correct pin on the microcontroller.
Here's the code I'm using:
The issue I’m facing:
Despite these efforts, the ADC still returns zero consistently. Does anyone have suggestions on what might be causing this, or how I can troubleshoot further?4 replies