| Electronic Components Datasheet Search |
|
AVR125 Datasheet(PDF) 5 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR125 Datasheet(HTML) 5 Page - ATMEL Corporation |
|
5 / 11 page ![]() AVR125 5 8352A-AVR-01/12 2.5 Changing channel or reference selection Bits MUXn and REFS0 in the ADMUX register are single buffered through a temporary register to which CPU has random access. If Auto Triggering is used, then ADMUX can be safely updated: • When ADATE or ADEN is cleared • During conversion, minimum one ADC clock cycle after the trigger event • After a conversion, before the Interrupt Flag used as trigger source is cleared In these ways, the new settings will affect the next ADC conversion. In single conversion mode, the channel must be selected before starting the conversion. The channel can be changed one clock cycle after setting ADSC bit, but it is better to wait till the conversion completes and then change the channel. In Free running mode, select the channel before starting the first conversion. It can be changed one clock cycle after setting ADSC bit. It is better to wait till first conversion is complete and then change the channel selection. But since the next conversion has already started automatically, the changes will be reflected in the next following conversion. 2.6 ADC noise canceller The Atmel ATtiny ADC has a noise canceller that enables conversion during sleep mode which reduces the noise induced from CPU core and other peripherals. This feature is available in ADC Noise Reduction and Idle mode. • Make sure that the ADC is enabled and is not busy converting. Single Conversion mode must be selected and the ADC conversion complete interrupt must be enabled • Enter ADC Noise Reduction mode (or idle mode). The ADC will start a conversion once the CPU has been halted • If no other interrupts occur before the ADC conversion completes, the ADC interrupt will wake up the CPU and execute the ADC Conversion Complete interrupt routine. If another interrupt wakes up the CPU before the ADC conversion is complete, that interrupt will be executed, and an ADC Conversion Complete interrupt request will be generated when the ADC conversion completes. The CPU will remain in active mode until a new sleep command is executed 2.7 Conversion result Once the ADC completes conversion, the 10 bit result will be available in the ADCH and ADCL registers and ADC Interrupt Flag will be set. For single conversion, the result is: ADC = REF IN V .1024 V where VIN represents analog input voltage and VREF represents the selected reference voltage. 0x000 represents GND and 0x3FF represents the reference voltage minus one LSB. |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |