hello all,
i am using PIC12F675 ic for ADC operation. Vref=5V resolution = 2^10 = 1023
when i give input from 0V to 5V it works fine with 1023 resolution.
i.e at the output 0V corresponds to 0V and 5V corresponds to 60V (on display)
but now i have input from 0V to 3V which i want to show as 0V to 60V on LCD.
i have calculation as: input Voltage ADC count * 60V / 1023 (it gives me 60V output at 5V input) ADC count at 5V = 3F0H
but when i want to show 60Voutput for 3V input, i have 2 ways to do:
1. reduce Vref to 3V which is not possible in hardware
2.reduce resolution to 614 (for Vref=3V) so formula becomes
input Voltage ADC count * 60V / 614
ADC count at 3V = 25BH
but is it a correct method?
pls suggest me the solution.
thank you all
regards
i am using PIC12F675 ic for ADC operation. Vref=5V resolution = 2^10 = 1023
when i give input from 0V to 5V it works fine with 1023 resolution.
i.e at the output 0V corresponds to 0V and 5V corresponds to 60V (on display)
but now i have input from 0V to 3V which i want to show as 0V to 60V on LCD.
i have calculation as: input Voltage ADC count * 60V / 1023 (it gives me 60V output at 5V input) ADC count at 5V = 3F0H
but when i want to show 60Voutput for 3V input, i have 2 ways to do:
1. reduce Vref to 3V which is not possible in hardware
2.reduce resolution to 614 (for Vref=3V) so formula becomes
input Voltage ADC count * 60V / 614
ADC count at 3V = 25BH
but is it a correct method?
pls suggest me the solution.
thank you all
regards