Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

code error

Status
Not open for further replies.
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.

Latest threads

New Articles From Microcontroller Tips

Back
Top