Mtech1
Junior Member level 1
Hello,
I'm reading the general description of the ADC features in a any microcontroller, and I have some questions on my mind. I'm trying to understand what configuration settings I need to set in a program to read a 0-12V DC voltage with a 10-bit ADC.
Specifically, refrance voltage, sampling time and trigger mode. I'm confused between using a 5V or 12V DC reference voltage. 5V because the microcontroller operates at 5V, but 12V because it's the maximum voltage range I want to read. Additionally, I'm not sure about the sampling time. There are two options: manual or automatic, and I want to set the automatic conversion mode.
I'm reading the general description of the ADC features in a any microcontroller, and I have some questions on my mind. I'm trying to understand what configuration settings I need to set in a program to read a 0-12V DC voltage with a 10-bit ADC.
Specifically, refrance voltage, sampling time and trigger mode. I'm confused between using a 5V or 12V DC reference voltage. 5V because the microcontroller operates at 5V, but 12V because it's the maximum voltage range I want to read. Additionally, I'm not sure about the sampling time. There are two options: manual or automatic, and I want to set the automatic conversion mode.