I have a thermocouple instrument with pic16f882 IC.
I dont know much about adc programming.
All i have learnt is, the millivolt i get is converted to counter.
The maximum counter in 10bit pic16f882 is 1024.
and i also dont know how to use lookup table.
Please guide me.
void adcvalue()
{
DelayUs(1);
GODONE = 1;
while(GODONE==1);
adh = ADRESH;
adl = ADRESL;
adh=adh<<8;
tval=adh|adl;
return tval;
}
THis is the function i have written to get value from adc.
how to convet this to the millvolt. I know how to display the value.
but i dont knwo how to design a formula to convert this counter to the value i wanted with the help of the look up table?
This is a R type thermocouple.
there are around 1760 values, should i put all the 1760 values into array and compare or is there any other way to do it
Please guide me
Thanks
Prashanth
I dont know much about adc programming.
All i have learnt is, the millivolt i get is converted to counter.
The maximum counter in 10bit pic16f882 is 1024.
and i also dont know how to use lookup table.
Please guide me.
void adcvalue()
{
DelayUs(1);
GODONE = 1;
while(GODONE==1);
adh = ADRESH;
adl = ADRESL;
adh=adh<<8;
tval=adh|adl;
return tval;
}
THis is the function i have written to get value from adc.
how to convet this to the millvolt. I know how to display the value.
but i dont knwo how to design a formula to convert this counter to the value i wanted with the help of the look up table?
This is a R type thermocouple.
there are around 1760 values, should i put all the 1760 values into array and compare or is there any other way to do it
Please guide me
Thanks
Prashanth