for other projects related to automotive industry :
• Video
generally speaking the watchdog timer aka (WDT) is used to
1-generate an interrupt
2-generat a reset
3-servicing an interrupt and then resets
and this occurs in situations like hanging or enters an infinite loop ..
WDT is a timer .. takes initial value .. and counts down to zero .. if it reaches zero .. it will reset the system .. but if you with your code reset the WDT .. then it wont ever reaches to zero .. then the system wont reset ..
these links will help you to get to know WDT better ..
1-http://www.embedded.com/electronics-b...
2-http://www.embedds.com/using-watchdog...
3- you can download the atmega328 datasheet .. it explains it very well .. actually most peripherals ..
#this simple projects .. what it does ..it turns on the led ..
what potentionmeter does .. to provide a delay before turning on the led ...
if the delay is larger than the watchdog timeout(the time the WDT take to reset the microcontroller) .. then the code resets and never reaches the line which makes the led on ..
if the delay is smaller than the watchdog timeout .. then it will reach the led and it will make it on ...
but note:: that both cases the WDT will keep to reset the mcu ..
*a playlist for other projects
• AVR microcontroller projects
Auf dieser Seite können Sie das Online-Video simple code using watchdog timer to reset the microcontroller mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Ebrahim Ahmed 13 April 2015 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,993 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!