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.

covert 10bit ADC into 8 bit

Status
Not open for further replies.

poppy2008

New Member
hi all
i need one help from you(its simple,but i dont know):)

how to convert 10bit ADC value into 8 bit adc value?( i am using pic24F)

for example, 16 word buffer mode

adc_vo = ADC1BUF0 + ADC1BUF1 + ADC1BUF2 + ADC1 BUF3 + ADC1BUF4 + ADC1BUF5 + ADC1BUF6 + ADC1BUF7 +
ADC1BUF8 + ADC1BUF9 + ADC1BUFA + ADC1 BUFB +
ADC1BUFC + ADC1BUFD + ADC1BUFE + ADC1 BUFF;
 
Last edited:
hi,
I am not familiar with the 24F series, does the ADC have the option to Left or Right justify the 10bit value from the adc.??

EDIT:

A quick look at the datasheet indicates FORM and FORM1 in the analog configuration up can be set to 'Fractional', if so just read the high byte register for a 8 bit conversion value.
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top