<?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: bug on timer3 channel 2</title>
		<link>http://forums.leaflabs.com/topic.php?id=10472</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:26:30 +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=10472" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "bug on timer3 channel 2"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10472#post-24329</link>
			<pubDate>Tue, 09 Apr 2013 05:44:35 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">24329@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;ssawee - Please post follow-up messages on the original thread, and avoid creating new threads for follow-up messages.&#60;/p&#62;
&#60;p&#62;(Full disclosure: I am not a member of LeafLabs staff.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ssawee on "bug on timer3 channel 2"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10472#post-24326</link>
			<pubDate>Tue, 09 Apr 2013 04:43:16 +0000</pubDate>
			<dc:creator>ssawee</dc:creator>
			<guid isPermaLink="false">24326@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;sorry，it‘s my mistake ....&#60;/p&#62;
&#60;p&#62;I corrected the mistake in my code,&#60;br /&#62;
give this code to show how to use timer to control pwm.&#60;/p&#62;
&#60;p&#62;HardwareTimer timer1(2);&#60;/p&#62;
&#60;p&#62;void setup(){&#60;br /&#62;
pinMode(1,PWM);&#60;br /&#62;
timer1.pause();&#60;br /&#62;
timer1.setPrescaleFactor(9);&#60;br /&#62;
timer1.setOverflow(1);&#60;br /&#62;
//timer1.setMode(1,TIMER_PWM);&#60;br /&#62;
timer1.setCompare(2,1);&#60;br /&#62;
timer1.refresh();&#60;br /&#62;
timer1.resume();&#60;/p&#62;
&#60;p&#62;} &#60;/p&#62;
&#60;p&#62;void loop(){}
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
