Angry Badger
Member
Hi,
I'm sampling the output from a Honeywell HIH 5030 humidity sensor using 10 bit A/D and the PIC's (18F2420) internal (5V) ref. The A/D conversion result has to be scaled and converted to BCD before being written to an LCD.
I obtained the scaling formula from a trend line in an XL chart and it is this: %RH = 0.1163(ADRES) - 23.821
Is this formula easily 'do-able' in ASM. I'm hopeless at maths stuff so don't want to even try this until I know it's manageable. Not done any 'C' programming but I think in 'C' you could just enter the formula and get the result?
Thanks in advance for any help.
I'm sampling the output from a Honeywell HIH 5030 humidity sensor using 10 bit A/D and the PIC's (18F2420) internal (5V) ref. The A/D conversion result has to be scaled and converted to BCD before being written to an LCD.
I obtained the scaling formula from a trend line in an XL chart and it is this: %RH = 0.1163(ADRES) - 23.821
Is this formula easily 'do-able' in ASM. I'm hopeless at maths stuff so don't want to even try this until I know it's manageable. Not done any 'C' programming but I think in 'C' you could just enter the formula and get the result?
Thanks in advance for any help.
Attachments
Last edited: