set the timer to reset

For C and ASSEMBLY users to post questions and code snippets for programming in C and ASSEMBLY. And for any other C or ASM course related questions.

Moderators: Benj, Mods

Post Reply
saravana_3
Posts: 61
Joined: Thu Dec 20, 2007 4:23 pm
Location: singapore
Contact:

set the timer to reset

Post by saravana_3 »

I need to do the following senerio,
when there is no input at the portA,3 (the output of portA,3 is portB,3) for 5 minutes the system must reset automatically,
friends, are you having any Idea to fulfill the condition.
thanks
Saran
saran

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: set the timer to reset

Post by Benj »

Hello Saran

Maybe the watchdog timer would be useful for providing this reset function. Refer to the device datasheet under special features of the CPU. Other then this you can use a software reset eg a goto or a jump that tales the program back to the start.

Post Reply