Professional Documents
Culture Documents
Recap
ADC Basics
ADC Jargons
Sampling
Quantization
Resolution/Step Size
Conversion Time
Vref
Resolution/Step Size
stepsize =
Vref
2n
n = 8, Vref = 2.56V
n = 10, Vref = 2.56V
Vin
Dout =
stepsize
For, n = 9 and Vref = 2.56V , find the Dout if,
I
I
I
I
Vin = 0.8V
Vin = 2.1V
Successive Approximation
Integration
Flash ADC
Flash ADC
Todays Topic
ADC Programming in C
10-bit ADC
10-bit ADC
2 output registers,
10-bit ADC
2 output registers,
I
ADCH:ADCL
10-bit ADC
2 output registers,
I
I
ADCH:ADCL
16-bits, 6-bits are unused
10-bit ADC
2 output registers,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
10-bit ADC
2 output registers,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
10-bit ADC
2 output registers,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
7 differential input
10-bit ADC
2 output registers,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
7 differential input
with optional gain of 10x & 200x
10-bit ADC
2 output registers,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
7 differential input
with optional gain of 10x & 200x
However, only one conversion at a time
10-bit ADC
2 output registers,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
7 differential input
with optional gain of 10x & 200x
However, only one conversion at a time
Vref options,
10-bit ADC
2 output registers,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
7 differential input
with optional gain of 10x & 200x
However, only one conversion at a time
Vref options,
I
Analog Vcc , 5V
10-bit ADC
2 output registers,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
7 differential input
with optional gain of 10x & 200x
However, only one conversion at a time
Vref options,
I
I
Analog Vcc , 5V
internal 2.56V
10-bit ADC
2 output registers,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
7 differential input
with optional gain of 10x & 200x
However, only one conversion at a time
Vref options,
I
I
I
Analog Vcc , 5V
internal 2.56V
external AREF pin
10-bit ADC
2 output registers,
I
I
I
7 differential input
with optional gain of 10x & 200x
However, only one conversion at a time
Vref options,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
Analog Vcc , 5V
internal 2.56V
external AREF pin
10-bit ADC
2 output registers,
I
I
I
7 differential input
with optional gain of 10x & 200x
However, only one conversion at a time
Vref options,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
Analog Vcc , 5V
internal 2.56V
external AREF pin
selection of pre-scaler
10-bit ADC
2 output registers,
I
I
I
7 differential input
with optional gain of 10x & 200x
However, only one conversion at a time
Vref options,
I
I
I
ADCH:ADCL
16-bits, 6-bits are unused
Option to adjust left or right
Analog Vcc , 5V
internal 2.56V
external AREF pin
selection of pre-scaler
AD Conversion takes at-least 13 ADC clock cycles
ADC Programming
Major Relevant registers
ADC Programming
Major Relevant registers
ADCH:ADCL
ADC Programming
Major Relevant registers
ADCH:ADCL
ADCSRA
ADC Programming
Major Relevant registers
ADCH:ADCL
ADCSRA
ADMUX
ADC Programming
Major Relevant registers
ADCH:ADCL
ADCSRA
ADMUX
SFIOR
ADC Programming
Major Relevant registers
ADCH:ADCL
ADCSRA
ADMUX
SFIOR
ADC Programming
ADCSRA Register
ADC Programming
ADCSRA Register
ADC Programming
ADCSRA Register
Initialization,
ADC Programming
ADCSRA Register
Initialization,
I
ADC Programming
ADCSRA Register
Initialization,
I
I
ADC Programming
ADCSRA Register
Initialization,
I
I
Conversion Start,
ADC Programming
ADCSRA Register
Initialization,
I
I
Conversion Start,
I
ADC Programming
ADMUX Register
ADC Programming
ADMUX Register
ADC Programming
ADMUX Register
Reference