<?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: [FIXED] Timers/PWM broken in v0.0.9 and current snapshot?</title>
		<link>http://forums.leaflabs.com/topic.php?id=683</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:05:25 +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=683" rel="self" type="application/rss+xml" />

		<item>
			<title>crenn on "[FIXED] Timers/PWM broken in v0.0.9 and current snapshot?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=683#post-3932</link>
			<pubDate>Thu, 17 Mar 2011 08:09:04 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">3932@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;For now, to prevent me forgetting the bug, I've implemented it in the snapshot from Feb.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "[FIXED] Timers/PWM broken in v0.0.9 and current snapshot?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=683#post-3924</link>
			<pubDate>Thu, 17 Mar 2011 06:53:28 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">3924@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;crenn,&#60;/p&#62;
&#60;p&#62;Thanks for the report!  I noticed the same behavior on pin 24 a couple of weeks ago; it was a simple PIN_MAP bug.  The fix is currently in master; it'll be part of the next release:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/libmaple/commit/b4c2d4514c6d52cac8a649c5d5c24b68a3c0a416#L12L137&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/commit/b4c2d4514c6d52cac8a649c5d5c24b68a3c0a416#L12L137&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "[FIXED] Timers/PWM broken in v0.0.9 and current snapshot?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=683#post-3916</link>
			<pubDate>Wed, 16 Mar 2011 15:13:47 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">3916@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I've fixed up the link so it should work normally now.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "[FIXED] Timers/PWM broken in v0.0.9 and current snapshot?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=683#post-3911</link>
			<pubDate>Wed, 16 Mar 2011 10:34:31 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">3911@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello-&#60;/p&#62;
&#60;p&#62;crenn, in your above post the forum software does not know the closing parenthesis is not part of the URL, so your link is broken.&#60;/p&#62;
&#60;p&#62;If I want to put a URL inside a pair of parentheses I have two solutions:&#60;/p&#62;
&#60;p&#62;Put a space before and after the parenthesis:&#60;/p&#62;
&#60;p&#62;TIMER_PWM ( &#60;a href=&#34;http://leaflabs.com/docs/lang/api/hardwaretimer.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/lang/api/hardwaretimer.html&#60;/a&#62; )&#60;/p&#62;
&#60;p&#62;Or if you do not like the extra spaces you can always explicitly code the link yourself using the &#34;A&#34; HTML markup tag:&#60;/p&#62;
&#60;p&#62;TIMER_PWM (&#60;a href=&#34;http://leaflabs.com/docs/lang/api/hardwaretimer.html&#34;&#62;http://leaflabs.com/docs/lang/api/hardwaretimer.html&#60;/a&#62;)&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "[FIXED] Timers/PWM broken in v0.0.9 and current snapshot?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=683#post-3906</link>
			<pubDate>Wed, 16 Mar 2011 00:42:13 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">3906@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks for the link Darth Maker, it now works fine as I would have thought and didn't see that you had the bug (I generally am on the forums reading every day). I'd still label this a bug, as the intended behaviour at initialisation, is that all timers are set to TIMER_PWM ( &#60;a href=&#34;http://leaflabs.com/docs/lang/api/hardwaretimer.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/lang/api/hardwaretimer.html&#60;/a&#62; ), but at least it's a bug with a workaround.&#60;/p&#62;
&#60;p&#62;I added this above Timer4.setPrescaleFactor(PRESCALE); in my code:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;code&#62;Timer4.setChannelMode(4,TIMER_PWM);&#60;/code&#62;
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;EDIT: I tested a few other pins, and didn't need the 'work around' but I'm happy enough just using pin 24 with the 'work around'
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Darth Maker on "[FIXED] Timers/PWM broken in v0.0.9 and current snapshot?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=683#post-3904</link>
			<pubDate>Tue, 15 Mar 2011 22:13:49 +0000</pubDate>
			<dc:creator>Darth Maker</dc:creator>
			<guid isPermaLink="false">3904@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I'll point you to this thread, where I had the same problem.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=611&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=611&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;For some reason Timer4 doesn't get initialized properly, so you just add that code in.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "[FIXED] Timers/PWM broken in v0.0.9 and current snapshot?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=683#post-3893</link>
			<pubDate>Tue, 15 Mar 2011 07:34:36 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">3893@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;That is the one thing I didn't try, which was different timers/pins. I'll see if it's working for me on 1.1 tomorrow.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jumpnowdev on "[FIXED] Timers/PWM broken in v0.0.9 and current snapshot?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=683#post-3892</link>
			<pubDate>Tue, 15 Mar 2011 07:14:25 +0000</pubDate>
			<dc:creator>jumpnowdev</dc:creator>
			<guid isPermaLink="false">3892@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I just got my board and I'm using Maple IDE 0.0.9. PWM is working for me at least on the pins I tried. It's the first thing I attempted after SerialUSB and regular Serial TTL (to a Gumstix). I tested PWM output with timers 1.1, 2.4, and 3.1.&#60;/p&#62;
&#60;p&#62;I can provide the code or oscope screenshots if needed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "[FIXED] Timers/PWM broken in v0.0.9 and current snapshot?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=683#post-3867</link>
			<pubDate>Sat, 12 Mar 2011 00:43:26 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">3867@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Since I had to go back to my university briefly today, I hooked up at DSO to the Maple to take a look at the output of the pin, these are the traces.&#60;/p&#62;
&#60;p&#62;v0.0.8&#60;br /&#62;
&#60;a href=&#34;http://www.crennsmind.com/Code/Maple/Servo/DSO/v0.0.8/Signal-Wave.BMP&#34; rel=&#34;nofollow&#34;&#62;http://www.crennsmind.com/Code/Maple/Servo/DSO/v0.0.8/Signal-Wave.BMP&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.crennsmind.com/Code/Maple/Servo/DSO/v0.0.8/Signal-Single_Pulse.BMP&#34; rel=&#34;nofollow&#34;&#62;http://www.crennsmind.com/Code/Maple/Servo/DSO/v0.0.8/Signal-Single_Pulse.BMP&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;v0.0.9&#60;br /&#62;
&#60;a href=&#34;http://www.crennsmind.com/Code/Maple/Servo/DSO/v0.0.9/Signal-Wave.BMP&#34; rel=&#34;nofollow&#34;&#62;http://www.crennsmind.com/Code/Maple/Servo/DSO/v0.0.9/Signal-Wave.BMP&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;v0.0.snapshot110213&#60;br /&#62;
&#60;a href=&#34;http://www.crennsmind.com/Code/Maple/Servo/DSO/v0.0.snapshot110213/Signal-Wave.BMP&#34; rel=&#34;nofollow&#34;&#62;http://www.crennsmind.com/Code/Maple/Servo/DSO/v0.0.snapshot110213/Signal-Wave.BMP&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;There was no output in the last 2, but in v0.0.8 you can see it's working normally. Sorry about the small size of the traces, it's unfortunately how the DSO outputs.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "[FIXED] Timers/PWM broken in v0.0.9 and current snapshot?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=683#post-3860</link>
			<pubDate>Fri, 11 Mar 2011 08:22:26 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">3860@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;While I writing code for my robot today, I came across what I think is a bug, but I can't 100% confirm yet. I forgot to measure if there was any output on the pin, however, this is the code I've tested with. If I compile the same code in v0.0.8, I get the expected result (which is the servo moving).&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.crennsmind.com/Code/Maple/Servo/Servo_Control.txt&#34; rel=&#34;nofollow&#34;&#62;http://www.crennsmind.com/Code/Maple/Servo/Servo_Control.txt&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.crennsmind.com/Code/Maple/Servo/Servo_Test.txt&#34; rel=&#34;nofollow&#34;&#62;http://www.crennsmind.com/Code/Maple/Servo/Servo_Test.txt&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
