code error

Status
Not open for further replies.
Whats your MCU... I can browse the datasheet to see what's needed..
 
thanks
i read it .
when the MCU store ADC data in 2 register ADCH ADCL
how i can write int x = ADC data that include the registers value
 
Most compilers use a word to access the ADC result ADCL and ADCH are addressed next to each other so the variable ADC returns the full result... Just copy the function and that will return the ADC result...
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…