- •Features
- •Pin Configuration
- •Description
- •Block Diagram
- •Pin Descriptions
- •AVCC
- •Port A (PA7..PA0)
- •Port B (PB7..PB0)
- •XTAL1
- •XTAL2
- •Resources
- •AVR CPU Core
- •Architectural Overview
- •I/O Direct
- •Data Direct
- •Data Indirect with Displacement
- •Data Indirect
- •Memories
- •SRAM Data Memory
- •EEPROM Data Memory
- •EEPROM Read/Write Access
- •I/O Memory
- •Clock Systems and their Distribution
- •Clock Sources
- •Default Clock Source
- •Crystal Oscillator
- •External RC Oscillator
- •External Clock
- •Power-on Reset
- •External Reset
- •Brown-out Detection
- •Watchdog Reset
- •Idle Mode
- •Power-down Mode
- •Standby Mode
- •Analog to Digital Converter
- •Analog Comparator
- •Brown-out Detector
- •Internal Voltage Reference
- •Watchdog Timer
- •Port Pins
- •I/O Ports
- •Introduction
- •Configuring the Pin
- •Reading the Pin Value
- •Unconnected Pins
- •Alternate Port Functions
- •Alternate Functions of Port A
- •Alternate Functions Of Port B
- •Register Description for I/O Ports
- •Interrupts
- •Interrupt Vectors
- •Interrupt Handling
- •Interrupt Response Time
- •External Interrupt
- •Pin Change Interrupt
- •Timer/Counters
- •Timer/Counter0 Prescaler
- •Timer/Counter1 Prescaler
- •8-bit Timer/Counter0
- •8-bit Timer/Counter1
- •Timer/Counter1 in PWM Mode
- •Watchdog Timer
- •Overview
- •Register Descriptions
- •Functional Descriptions
- •Three-wire Mode
- •SPI Slave Operation Example
- •Two-wire Mode
- •Start Condition Detector
- •Alternative USI Usage
- •4-bit Counter
- •12-bit Timer/Counter
- •Software Interrupt
- •Analog Comparator
- •Analog to Digital Converter
- •Features
- •Operation
- •Changing Channel or Reference Selection
- •ADC Conversion Result
- •ADLAR = 0
- •ADLAR = 1
- •Fuse Bits
- •Latching of Fuses
- •Signature Bytes
- •Calibration Byte
- •Page Size
- •Signal Names
- •Parallel Programming
- •Enter Programming Mode
- •Chip Erase
- •Programming the Flash
- •Programming the EEPROM
- •Reading the Flash
- •Reading the EEPROM
- •Programming the Lock Bits
- •Reading the Signature Bytes
- •Reading the Calibration Byte
- •Serial Downloading
- •Data Polling Flash
- •Data Polling EEPROM
- •Electrical Characteristics
- •Absolute Maximum Ratings*
- •DC Characteristics
- •External Clock Drive Waveforms
- •External Clock Drive
- •ADC Characteristics
- •Active Supply Current
- •Idle Supply Current
- •Power-down Supply Current
- •Standby Supply Current
- •Pin Pull-up
- •Internal Oscillator Speed
- •Register Summary
- •Instruction Set Summary
- •Ordering Information
- •Packaging Information
- •Errata
- •ATtiny26 Rev. B/C/D
- •Table of Contents
Changing Channel or Reference Selection
Figure 54. ADC Timing Diagram, Single Conversion
|
|
|
|
|
|
|
|
One Conversion |
|
|
|
|
Next Conversion |
|||
Cycle Number |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
1 |
2 |
3 |
ADC Clock |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ADSC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ADIF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ADCH |
|
MSB of Result |
|
ADCL |
|
LSB of Result |
|
Sample & Hold |
Conversion |
MUX and REFS |
|
MUX and REFS |
|||
Complete |
Update |
||
Update |
|
|
Figure 55. ADC Timing Diagram, Free Running Conversion
|
One Conversion |
|
Next Conversion |
|
|||
Cycle Number |
11 |
12 |
13 |
1 |
2 |
3 |
4 |
|
|
|
|
|
|
|
|
ADC Clock |
|
|
|
|
|
|
|
ADSC |
|
|
|
|
|
|
|
ADIF |
|
|
|
|
|
|
|
ADCH |
|
|
|
MSB of Result |
|
||
ADCL |
|
|
|
LSB of Result |
|
||
Conversion |
|
|
|
|
|
Sample & Hold |
|
|
|
|
|
|
|
||
Complete |
|
|
|
MUX and REFS |
|||
|
|
|
|
|
Update |
|
Table 43. ADC Conversion Time
|
Sample & Hold (Cycles from |
Conversion |
Conversion |
Condition |
Start of Conversion) |
Time (Cycles) |
Time (µs) |
|
|
|
|
Extended conversion |
13.5 |
25 |
125 - 500 |
|
|
|
|
Normal conversions |
1.5 |
13 |
65 - 260 |
|
|
|
|
The MUXn and REFS1:0 bits in the ADMUX Register are single buffered through a temporary register to which the CPU has random access. This ensures that the channels and reference selection only takes place at a safe point during the conversion. The channel and reference selection is continuously updated until a conversion is started. Once the conversion starts, the channel and reference selection is locked to ensure a sufficient sampling time for the ADC. Continuous updating resumes in the last ADC clock cycle before the conversion completes (ADIF in ADCSR is set). Note that the conversion starts on the following rising ADC clock edge after ADSC is written. The user is thus advised not to write new channel or reference selection values to ADMUX until one ADC clock cycle after ADSC is written.
100 ATtiny26(L)
1477J–AVR–06/07