Hello,
I am using a Pic16F877 to detect voltage input for my project, however for some reason when i use a small input value for example a 100mV input, an incorrect output is shown.
my coding is simple.
Volt = getvolt(6); //getting the input voltage from analog pin 6
voltage =(Volt *5)/1024; // converting value to voltage
Thank you for your kind help
I am using a Pic16F877 to detect voltage input for my project, however for some reason when i use a small input value for example a 100mV input, an incorrect output is shown.
my coding is simple.
Volt = getvolt(6); //getting the input voltage from analog pin 6
voltage =(Volt *5)/1024; // converting value to voltage
Thank you for your kind help