Hi guys, wonder if you can help me,
Im currently stuck into my first proper ish pic project (7 seg thermometer) and while ive learnt a lot along the way im struggling with converting adc output to temperature the reason being ive not had to deal with dividing in binary before. ive read a few basic guides but most of it launches into multiplying 16 bit numbers by 8 bits etc. The only other way i can see of doing it is to subtract the constant and inc file for every subtraction without a carry bit. However this potentially as i can see it could leave me 1degree out if i divide the voltage value buy my sensors 6.4mv/deg and i end up with a remainder of 6.3 mv etc
Can someone explain a way around this or pointme in the direction of a good beginners guide? Ive found the little niche of adding a negative as opposed to subtracting (after much head scratching!) if that helps.
Thanks for your time
Harry
Im currently stuck into my first proper ish pic project (7 seg thermometer) and while ive learnt a lot along the way im struggling with converting adc output to temperature the reason being ive not had to deal with dividing in binary before. ive read a few basic guides but most of it launches into multiplying 16 bit numbers by 8 bits etc. The only other way i can see of doing it is to subtract the constant and inc file for every subtraction without a carry bit. However this potentially as i can see it could leave me 1degree out if i divide the voltage value buy my sensors 6.4mv/deg and i end up with a remainder of 6.3 mv etc
Can someone explain a way around this or pointme in the direction of a good beginners guide? Ive found the little niche of adding a negative as opposed to subtracting (after much head scratching!) if that helps.
Thanks for your time
Harry