ok so i have a thermocouple to give out 500c with an amp it gives out 10mV/C so 500C is 5Volts. I can alter the gain to give 1mV per degC so 500C is 500mV. I will be using Mpasm .
So i input the voltage into the pic and convert it using the AD, to a value in the upper and lower registers. Should i set the Vref to 1024mV and this gives me 1 degree per bit, so 500C is 500 bits, that would be 256bits in upper reg and 244 in lower reg, how do i add these bits together to give a total so i can a divide by 100,10,1 to put them in 3 files huns,tens units,the division is not a problem its how to add the two files together as the maximum in the registers is 255? Also is there abetter way to do this with the V ref?
So i input the voltage into the pic and convert it using the AD, to a value in the upper and lower registers. Should i set the Vref to 1024mV and this gives me 1 degree per bit, so 500C is 500 bits, that would be 256bits in upper reg and 244 in lower reg, how do i add these bits together to give a total so i can a divide by 100,10,1 to put them in 3 files huns,tens units,the division is not a problem its how to add the two files together as the maximum in the registers is 255? Also is there abetter way to do this with the V ref?
Last edited: