ON 20041029@5:55:04 PM at page: http://techref.massmind.org/techref/microchip/math/index.htm#38289.2576041667 James Newton[JMN-EFP-786] published post 38289.2576041667 graham@london-electronics.com asks:
Hi

Using PIC16F877 - I have an input value of up to 65535 (from an A/D convereter) and want to scale it by a variable factor to give an answer from 0.0001 up to 99999, with 1 in 65535 resolution. (The value will be displayed on a 5 digit 7 segment display, with + or - sign)

I'm struggling.. any bright folk have a suggestion?

Thanks in advance,

Graham
|Delete 'P-' before: '' but after: 'graham@london-electronics.com asks:
Hi

Using PIC16F877 - I have an input value of up to 65535 (from an A/D convereter) and want to scale it by a variable factor to give an answer from 0.0001 up to 99999, with 1 in 65535 resolution. (The value will be displayed on a 5 digit 7 segment display, with + or - sign)

I'm struggling.. any bright folk have a suggestion?

Thanks in advance,

Graham