<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Watchdog Timer on Arduino Tutorial	</title>
	<atom:link href="https://www.teachmemicro.com/arduino-watchdog-timer/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.teachmemicro.com/arduino-watchdog-timer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=arduino-watchdog-timer</link>
	<description>Microcontroller Tutorials and Resources</description>
	<lastBuildDate>Sat, 14 Oct 2023 03:23:05 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
	<item>
		<title>
		By: bigmike		</title>
		<link>https://www.teachmemicro.com/arduino-watchdog-timer/#comment-260782</link>

		<dc:creator><![CDATA[bigmike]]></dc:creator>
		<pubDate>Tue, 21 Dec 2021 23:27:54 +0000</pubDate>
		<guid isPermaLink="false">https://www.teachmemicro.com/?p=4578#comment-260782</guid>

					<description><![CDATA[Useful info, thank you.

Anyway, there are 2 errors in the code:

- You don&#039;t enable the reset after interrupt

try to add:

if(count&#062;5) {
    while(true) {}  // Should reset after 2 seconds
  }

in loop, and you&#039;ll see no reset.

To fix change the line with: 
WDTCSR = (1&#060;&#060;WDE) &#124; (1&#060;&#060;WDIE)&#124; (1&#060;&#060;WDP2) &#124; (1&#060;&#060;WDP1) &#124; (1&#060;&#060;WDP0);


- Watchdog interrupt must be enabled after every interrupt (or you&#039;ll see a reset every 4 seconds)

To fix, add in loop:

WDTCSR &#124;= (1&#060;&#060;WDIE);  // Enable watchdog Interrupt again]]></description>
			<content:encoded><![CDATA[<p>Useful info, thank you.</p>
<p>Anyway, there are 2 errors in the code:</p>
<p>- You don't enable the reset after interrupt</p>
<p>try to add:</p>
<p>if(count&gt;5) {<br />
    while(true) {}  // Should reset after 2 seconds<br />
  }</p>
<p>in loop, and you'll see no reset.</p>
<p>To fix change the line with:<br />
WDTCSR = (1&lt;&lt;WDE) | (1&lt;&lt;WDIE)| (1&lt;&lt;WDP2) | (1&lt;&lt;WDP1) | (1&lt;&lt;WDP0);</p>
<p>- Watchdog interrupt must be enabled after every interrupt (or you&#039;ll see a reset every 4 seconds)</p>
<p>To fix, add in loop:</p>
<p>WDTCSR |= (1&lt;&lt;WDIE);  // Enable watchdog Interrupt again</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Lawrence Eichenlaub		</title>
		<link>https://www.teachmemicro.com/arduino-watchdog-timer/#comment-125332</link>

		<dc:creator><![CDATA[Lawrence Eichenlaub]]></dc:creator>
		<pubDate>Fri, 02 Apr 2021 00:05:53 +0000</pubDate>
		<guid isPermaLink="false">https://www.teachmemicro.com/?p=4578#comment-125332</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.teachmemicro.com/arduino-watchdog-timer/#comment-125330&quot;&gt;Lawrence Eichenlaub&lt;/a&gt;.

&quot; #include   &quot;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.teachmemicro.com/arduino-watchdog-timer/#comment-125330">Lawrence Eichenlaub</a>.</p>
<p>" #include   "</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Lawrence Eichenlaub		</title>
		<link>https://www.teachmemicro.com/arduino-watchdog-timer/#comment-125330</link>

		<dc:creator><![CDATA[Lawrence Eichenlaub]]></dc:creator>
		<pubDate>Fri, 02 Apr 2021 00:04:03 +0000</pubDate>
		<guid isPermaLink="false">https://www.teachmemicro.com/?p=4578#comment-125330</guid>

					<description><![CDATA[I believe you need to add
#include 
to your header.]]></description>
			<content:encoded><![CDATA[<p>I believe you need to add<br />
#include<br />
to your header.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Lawrence Eichenlaub		</title>
		<link>https://www.teachmemicro.com/arduino-watchdog-timer/#comment-125329</link>

		<dc:creator><![CDATA[Lawrence Eichenlaub]]></dc:creator>
		<pubDate>Fri, 02 Apr 2021 00:01:57 +0000</pubDate>
		<guid isPermaLink="false">https://www.teachmemicro.com/?p=4578#comment-125329</guid>

					<description><![CDATA[I believe you need to add
#include
to your header.]]></description>
			<content:encoded><![CDATA[<p>I believe you need to add<br />
#include<br />
to your header.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: www.teachmemicro.com @ 2026-07-21 20:37:43 by W3 Total Cache
-->