how to use in-built adc of avr


Posted on Feb 7, 2014

Microcontroller understands only digital language. However, the inputs available from the environment to the microcontroller are mostly analog in nature, i. e. , they vary continuously with time. In order to understand the inputs by the digital processor, a device called Analog to Digital Converter (ADC) is used. As the name suggests this peripheral gathers the analog information supplied from


how to use in-built adc of avr
Click here to download the full size of the above Circuit.

the environment and converts it to the controller understandable digital format, microcontroller then processes the information and provides the desired result at the output end. ADC channels in Atmega16 are multiplexed with PORTA and use the common pins (pin33 to pin40) with PORTA. ADC system of Atmega16 microcontroller consists of following pins: ii. AREF: Pin32 of Atmega16 microcontroller, the voltage on AREF pin acts as the reference voltage for ADC conversion, reference voltage is always less than or equal to the supply voltage, i. e. , Vcc. iii. AVCC: Pin30, this pin is the supply voltage pin for using PORTA and the ADC; AVCC pin must be connected to Vcc (microcontroller supply voltage) to use PORTA and ADC. Connect the circuit as shown in the circuit diagram. A ceramic capacitor 104 is connected in between AVcc (pin 30) and Aref (pin 32). AVcc (pin 30) is connected to external supply +5V.




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    100W Audio Amplifier
    basics of electricity
    connect 4000
    White led driver
    Low-Drift High-Impedance JFET DC Voltmeter
    TLE5206-2 H-Bridge Circuit Application and Datasheet
    Sensor
    4 Band Double Tuned Preselector
    Audio Memo Alert Circuit
    Multiplication detector circuit with MC1496
    20W 40-500kHz PA 01
    Press light switch double circuit 7



    Top