huzeeigat
Member level 4
Hey i m making a temperature sensor using lm35 and pic18f452
the objective is to control the temperature between 25 and 27'C...when the temperature is below 25'c,a heater is to be turned on at pin RD3 and when the temperature is above 27'c,a cooling fan is to be turned on at pin RD2...I have written the code in c lang..and compiled successfully in mplab..but when i tried it on proteus along with the circuit...i get an error as follows...
Processor has been reset by watchdog timer expiring at xyz time...i disabled the wdt from mplab...and then again tried on proteus but i get the same error...i dont knw how to change the oscillator frequency in mplab...m posting the code along with the proteus ckt...can any1 tell me wat is the problem....
---------- Post added at 15:43 ---------- Previous post was at 15:31 ----------
here is an image of the simulation window that i get on proteus after i execute the above circuit
the objective is to control the temperature between 25 and 27'C...when the temperature is below 25'c,a heater is to be turned on at pin RD3 and when the temperature is above 27'c,a cooling fan is to be turned on at pin RD2...I have written the code in c lang..and compiled successfully in mplab..but when i tried it on proteus along with the circuit...i get an error as follows...
Processor has been reset by watchdog timer expiring at xyz time...i disabled the wdt from mplab...and then again tried on proteus but i get the same error...i dont knw how to change the oscillator frequency in mplab...m posting the code along with the proteus ckt...can any1 tell me wat is the problem....
---------- Post added at 15:43 ---------- Previous post was at 15:31 ----------
here is an image of the simulation window that i get on proteus after i execute the above circuit
Last edited: