Im in desperate need of a simple source code that will reset my temperature sensing program written in c plus plus after 30 seconds. Im using a 12f675 pic chip for a temperature sensor. Problem is once it detects a temperature change the led's display a change in temperature but stay on and won't reset to detect a new change. I have a temporary fix by using a 555 timer circuit, but it would save time and money if I could just put a 30 second reset in the code. Basically I want it to follow the instructions of my code, but reset the circuit every 30 seconds. Any help would be appreciated and compensated if it works. Thanks
Btw here is the code I currently have. and would like a code added to reset the circuit every 30 seconds, as if I turned the on/off switch off then on again.