12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ATmega32A</strong>• Bit 5 – ADLAR: ADC Left Adjust ResultThe ADLAR bit affects the presentation of the ADC conversion result in the ADC Data Register.Write one to ADLAR to left adjust the result. Otherwise, the result is right adjusted. Changing theADLAR bit will affect the ADC Data Register immediately, regardless of any ongoing conversions.For a complete description of this bit, see “ADCL and ADCH – The ADC Data Register” onpage 225.• Bits 4:0 – MUX4:0: Analog Channel and Gain Selection BitsThe value of these bits selects which combination of analog inputs are connected to the ADC.These bits also select the gain for the differential channels. See Table 22-4 for details. If thesebits are changed during a conversion, the change will not go in effect until this conversion iscomplete (ADIF in ADCSRA is set).Table 22-4. Input Channel and Gain SelectionsMUX4:000000 ADC000001 ADC100010 ADC2Single EndedInput00011 ADC3 N/A00100 ADC400101 ADC500110 ADC600111 ADC7Positive DifferentialInputNegative DifferentialInput01000 ADC0 ADC0 10x01001 ADC1 ADC0 10x01010 ADC0 ADC0 200x01011 ADC1 ADC0 200x01100 ADC2 ADC2 10x01101 ADC3 ADC2 10x01110 ADC2 ADC2 200x01111 ADC3 ADC2 200x10000 ADC0 ADC1 1x10001 ADC1 ADC1 1x10010 N/A ADC2 ADC1 1x10011 ADC3 ADC1 1x10100 ADC4 ADC1 1x10101 ADC5 ADC1 1x10110 ADC6 ADC1 1x10111 ADC7 ADC1 1x11000 ADC0 ADC2 1x11001 ADC1 ADC2 1xGain8155C–AVR–02/11224

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!