Hello,
I'm currently reading the general description of ADC features in microcontrollers and have a few questions regarding their configuration. Specifically, I'm interested in understanding how to set up a ADC to read a 0-12V DC voltage using a 10-bit ADC. As , a 10-bit ADC provides 1024 steps, with 0 representing 0V DC , 512 representing 6V DC and 1024 representing 12V DC.
To achieve this, I'd like to know what configuration settings are necessary for the reference voltage, sampling time, and trigger mode. If you don't prefer general term for clarification. you can use a specific example of your choice, or you can consider the PIC16F877A microcontroller.
Thank you in advance.
I'm currently reading the general description of ADC features in microcontrollers and have a few questions regarding their configuration. Specifically, I'm interested in understanding how to set up a ADC to read a 0-12V DC voltage using a 10-bit ADC. As , a 10-bit ADC provides 1024 steps, with 0 representing 0V DC , 512 representing 6V DC and 1024 representing 12V DC.
To achieve this, I'd like to know what configuration settings are necessary for the reference voltage, sampling time, and trigger mode. If you don't prefer general term for clarification. you can use a specific example of your choice, or you can consider the PIC16F877A microcontroller.
Thank you in advance.