- This topic has 1 reply, 2 voices, and was last updated 12 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › ADC in atmega16 or 32
Please help me to understand,
First 3 bits og ADCMUX are for ADC channel selection and if it is 000 means channel 0
001 means channel 1
010 means channel 2
……
…..
and 111 means channel 7
These thinngs are mentioned in ADC tutorial in
“
Also matching with Atmega32 datasheet.
So if I want select channle for ADC then
ch= ch & 0b00000111; // channel must be b/w 0 to 7
I think you should use each channel separately and store it in an Array.