MCP9700 and PIC16F15313
I wrote a program for the PIC16F15313 that has to read an analog value (voltage) from the temperature sensor MCP9700.
The program has to read every 2 seconds temperature and if the temperature is higher than 25 has to turn on a led.
Build the project gave me a positive result (Build succeful).
I can flash without problems the PIC, but seems is not working.
Attached you can find the software
I think the problem is the way to assign the variables.
I have to assign all integers because if I tried to assign a float variable I received an error message because I used too much memory. Using the integer does not allow me to manage numbers with the dot.
Please let me know where I did wrong.