- This topic has 1 reply, 2 voices, and was last updated 9 years, 11 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
unsigned int ADC_read(unsigned char ch)
{
ch= ch & 0b00000111; // channel must be b/w 0 to 7
ADMUX |= ch; // selecting channel
ADCSRA|=(1<
in this part of code whats the use of ch?
i know we have 7 channels kf adc from ADC0 through ADC6
but why we used ch ?
can we select any channel to give adc input through it?
http://www.engineersgarage.com/embedded/avr-microcontroller-projects/adc-circuit
yes whats up man?
tell whts the problem?