<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>LeafLabs Garden &#187; Topic: PWM timer pause() leaves pin HIGH</title>
		<link>http://forums.leaflabs.com/topic.php?id=1920</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:08:49 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1920" rel="self" type="application/rss+xml" />

		<item>
			<title>manitou on "PWM timer pause() leaves pin HIGH"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1920#post-11311</link>
			<pubDate>Mon, 18 Jun 2012 20:49:35 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">11311@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;If running a PWM timer and you issue a pause(), the pin may be left HIGH.  If you are using PWM to limit power through the pin, then leaving it HIGH may not be what you want.  I'm not sure what the appropriate fix is.  After the pause() I added&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;setMode(TIMER_CH4,TIMER_DISABLED);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and before the resume(), I added&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;pwmtimer.setMode(TIMER_CH4,TIMER_PWM);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and that seemed to leave the pin LOW during pause.&#60;/p&#62;
&#60;p&#62;On Arduino, I disable the PWM pin for a pause:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;TCCR2A &#38;amp;= ~(_BV(COM2B1));&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
