- This topic has 2 replies, 3 voices, and was last updated 7 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › Differential Adc
Can anyone guide me on using differential adc on atmega 16 to find the difference between two adc pins, with some gain.
there is no decent tutorials on the internet regarding differential adc
Hi Shreyansh
Have you tried the comparator function of AtMega 16, it performs something similar to what you require. There are two pins AIN1 and AIN0 which deal with this function. AIN1 is the positive(non-inverting) input and AIN0 is the negative(inverting) input. The output is generated on bit ACO of ACSR register. You could also replace the negative(inverting) pin with one of the 8 ADCs of AtMega 16.
I would also suggest you to go through AtMega 16's datasheet, especially the comparator section, to undersatnd better.
Hope this helps
you can perform differential action in software also
just take two different digital values from two ADC pins and subtract it.
thats all