+1 vote
2,982 views
by
recategorized by
What is watchdog timer ? Explain the implementation of time out for ATM with block diagram and program.

Your answer

Can you give answer to this question ?

Upload an image:

Privacy: Your email address will only be used for sending these notifications.

1 Answer

0 votes
by
edited

A special type of timer is a watchdog timer, which will reset the system after a predefined timeout. Watchdog timer reset timer every X time unit, else timer generates a signal indicating that the system failed. A common use of watchdog timer is to enable an embedded system to restart itself in case of a failure.
Another common use is to support timeouts in a program while keeping the program structure simple.

image

Example of ATM timeout using a watchdog timer:-
In this example, a watchdog timer is used to implement a timer out for an automatic teller machine (ATM).
A normal ATM session introduces a user inserting a bank card, typing in a personal identification number (PIN), and then answering questions about whether to deposit or withdraw money, which account will be involved how much money will be involved, whether another transaction is desired and so on.
We want to design the ATM such that it will terminate the session if at any time the user does not press any button for a minute. In this case, the ATM will eject the bank card and terminate the session.

image

As oscillator signal, OSC is connected to prescaler that divides the oscillator frequency by 12 (OSC/12) to generate a signal clk.
The signal clock is connected to an 11-bit up counter scalereg. When scalereg overflows, it rolls over to "o", and its overflow output causes the 16-bit up counter timer reg to increment.
If timing overflows, it triggers the system reset or an interrupt. To reset the watchdog timer, checkreg must be enabled. Then a value can be loaded into timereg.
When a value is loaded into timereg, the checkreg register is automatically reset. If the checkreg register is not enabled. a value can not be loaded into timereg. This is to prevent erroneous software from unintentionally resetting the watchdog timer.

← Prev Question Next Question →
Request Answer

Related questions

+1 vote
1 answer 323 views
+1 vote
1 answer 63 views
asked Dec 19, 2017 by anonymous
+1 vote
1 answer 70 views
asked Dec 19, 2017 by anonymous
0 votes
1 answer 51 views
0 votes
1 answer 51 views
0 votes
1 answer 181 views
0 votes
1 answer 2,992 views
0 votes
1 answer 216 views
0 votes
1 answer 2,842 views
+1 vote
1 answer 87 views
asked Jan 23, 2018 by anonymous
0 votes
1 answer 72 views
0 votes
1 answer 16 views
0 votes
1 answer 10 views
0 votes
1 answer 22 views
+1 vote
1 answer 2,732 views
0 votes
1 answer 7 views
0 votes
1 answer 3,061 views
0 votes
1 answer 71 views
0 votes
1 answer 2,402 views
0 votes
0 answers 50 views
+2 votes
1 answer 85 views
asked Dec 16, 2017 by anonymous
0 votes
1 answer 8 views
0 votes
1 answer 27 views
0 votes
1 answer 7 views
asked Jul 9 by anonymous
0 votes
1 answer 14 views
0 votes
2 answers 132 views
0 votes
1 answer 22 views
+2 votes
1 answer 51 views
asked Jan 20, 2018 by anonymous
+3 votes
1 answer 97 views
asked Dec 16, 2017 by anonymous
Welcome to AskOrAnswerMe.com , where you can ask questions and receive answers from other user. Feel free to ask any question. Help everyone by giving best answer to the questions.

11,534 questions

10,164 answers

190 comments

4,086 users

...