sachsoni
Newbie level 4

We wrote the code for PIC 16F688 and this is using for controlling DC/AC load as per WattHour consumption. We try to restrict the usage of load energy from battery. We sense the solar/battery voltage and solar/battery current and try to restrict the energy usage as per our requirement.
In this code the IC 16F688 will not detect the analog calculation and not providing corresponding output. We are using Pin no. 13 & 12as a analog i/p for solar and battery voltage sense and 11 & 3 as a analog i/p for solar and battery current by hall sensor. Output is taken from pin no. 5.
I attached the complete code for this project. Kindly go through it and resolve why the IC will not able to read the analog input and pls send if any error found in coding.
Thank you,
In this code the IC 16F688 will not detect the analog calculation and not providing corresponding output. We are using Pin no. 13 & 12as a analog i/p for solar and battery voltage sense and 11 & 3 as a analog i/p for solar and battery current by hall sensor. Output is taken from pin no. 5.
I attached the complete code for this project. Kindly go through it and resolve why the IC will not able to read the analog input and pls send if any error found in coding.
Thank you,