Simple Reset timer help!!

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
I have something that will work for you. What kind of compensation are you talking about ?

This is not the right forum for this conversation, it would be better if you posted in Jobs.

You can email me at SamuelAdams at cox dot net.

PS. By default, your profile does not allow you to accept Private Messages.
Last edited on
Hello, and thank you for the response. I did not know there was a Jobs listing, I will email you now. 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.

@ Device PIC12F675,PROTECT_OFF,INTRC_OSC_NOCLKOUT,MCLR_OFF
DEFINE ADC_BITS 10
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50


CMCON=7
GPIO=%00000000
TRISIO=%010110
ANSEL=%00111110
ADCON0=%11001100

t VAR WORD
c VAR WORD
cl VAR WORD
m VAR BYTE
hh VAR BYTE
ch VAR BYTE
u VAR BYTE
d VAR BYTE

u=0
d=0
hh=2
ch=1
cl=0

pause 250
ADCIN 3, t
ADCIN 2, c
if(t>c) then
cl=t-c
m=1
endif
if(t<c) then
cl=c-t
m=0
endif

loop:

ADCIN 3, t
ADCIN 2, c
if m=1 then
t=t-cl
else
t=t+cl
endif

if u>10 then
GPIO.0=0
GPIO.5=1
endif

if d>10 then
GPIO.5=0
GPIO.0=1
endif

if t>(c+ch) then
u=u+1
d=0
goto loop
else
if t<(c-hh) then
d=d+1
u=0
goto loop
endif
endif

u=0
d=0
GPIO.0=0
GPIO.5=0
nap 2
GoTo loop
Are you sure that is C++, looks like basic from what I can remember of basic 20 years ago. I saw your email, I will try and reply to it in a moment.
It may be basic.. I was told it was C... could be wrong though. thx
Topic archived. No new replies allowed.