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>22.9.4 SFIOR – Special FunctionIO RegisterThese bits represent the result from the conversion, as detailed in “ADC Conversion Result” onpage 220.Bit 7 6 5 4 3 2 1 0ADTS2 ADTS1 ADTS0 – ACME PUD PSR2 PSR10 SFIORRead/Write R/W R/W R/W R R/W R/W R/W R/WInitial Value 0 0 0 0 0 0 0 0• Bit 7:5 – ADTS2:0: ADC Auto Trigger SourceIf ADATE in ADCSRA is written to one, the value of these bits selects which source will triggeran ADC conversion. If ADATE is cleared, the ADTS2:0 settings will have no effect. A conversionwill be triggered by the rising edge of the selected Interrupt Flag. Note that switching from a triggersource that is cleared to a trigger source that is set, will generate a positive edge on thetrigger signal. If ADEN in ADCSRA is set, this will start a conversion. Switching to Free Runningmode (ADTS[2:0]=0) will not cause a trigger event, even if the ADC Interrupt Flag is set.Table 22-6. ADC Auto Trigger Source SelectionsADTS2 ADTS1 ADTS0 Trigger Source0 0 0 Free Running mode0 0 1 Analog Comparator0 1 0 External Interrupt Request 00 1 1 Timer/Counter0 Compare Match1 0 0 Timer/Counter0 Overflow1 0 1 Timer/Counter1 Compare Match B1 1 0 Timer/Counter1 Overflow1 1 1 Timer/Counter1 Capture Event• Bit 4 – Reserved BitThis bit is reserved for future use in the <strong>ATmega32A</strong>. For ensuring compability with futuredevices, this bit must be written zero when SFIOR is written.8155C–AVR–02/11227

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

Saved successfully!

Ooh no, something went wrong!