Programming: ADC (Analog to Digital Converter) Setting the Prescaler
The ADC must run between 50kHz and 200kHz. This is an example of how to set the prescaler. The ADCSRA Control and Status Register is the register that contains the ADPS2, ADPS1 and ADPS0 bits that control the prescaler. In this case the 16 prescaler was selected since this microcontroller is running at 1mHz and 16 prescaler would allow the ADC to run between 50 and 200 kHz. The ADPS2 is the bit to set for this prescaler.
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.