<?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: Changing prescaler and overflow of multiple timers</title>
		<link>http://forums.leaflabs.com/topic.php?id=10197</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:19:12 +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=10197" rel="self" type="application/rss+xml" />

		<item>
			<title>pyrohaz on "Changing prescaler and overflow of multiple timers"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10197#post-22237</link>
			<pubDate>Sun, 03 Feb 2013 09:01:30 +0000</pubDate>
			<dc:creator>pyrohaz</dc:creator>
			<guid isPermaLink="false">22237@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Perfect! Thats all I needed.&#60;/p&#62;
&#60;p&#62;Thanks a lot! :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "Changing prescaler and overflow of multiple timers"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10197#post-22234</link>
			<pubDate>Sun, 03 Feb 2013 01:52:46 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">22234@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi there!&#60;/p&#62;
&#60;p&#62;The problem is you're giving the 3 HardwareTimer objects the same name, just give each a different name any it will work fine. Something like this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#60;blockquote&#62;HardwareTimer timera(1);&#60;br /&#62;
HardwareTimer timerb(2);&#60;br /&#62;
HardwareTimer timerc(3);&#60;/blockquote&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Then later you'll need to call the set overflow and pre-scale functions for each HardwareTimer object.&#60;/p&#62;
&#60;p&#62;Another timer called systick is used for micros() and millis() and is unaffected by changing the timer pre-scalers and overflows.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pyrohaz on "Changing prescaler and overflow of multiple timers"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10197#post-22232</link>
			<pubDate>Sat, 02 Feb 2013 22:40:31 +0000</pubDate>
			<dc:creator>pyrohaz</dc:creator>
			<guid isPermaLink="false">22232@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hey guys,&#60;br /&#62;
I want to use the PWM pins 8, 9 and 11, all of which are linked to 3 different timers.&#60;/p&#62;
&#60;p&#62;I want the overflow at 255 and the prescaler at 5, quite like in the example on: &#60;a href=&#34;http://leaflabs.com/docs/lang/api/hardwaretimer.html#lang-hardwaretimer&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/lang/api/hardwaretimer.html#lang-hardwaretimer&#60;/a&#62; &#38;lt;&#38;lt; this page.&#60;/p&#62;
&#60;p&#62;When I try to declare 3 different HardwareTimer timer(x)'s, the compiler doesn't allow it due to &#34;redefinition of 'HardwareTimer timer'&#34;&#60;/p&#62;
&#60;p&#62;How can I get around this and set all timers to prescale of 5 and overflow of 255?&#60;/p&#62;
&#60;p&#62;Also, by changing the timers, does time keeping such as micros() and millis() still work? When you change the timer1 prescaler on arduino, the time keeping functions don't keep time properly.&#60;/p&#62;
&#60;p&#62;Thanks, Harris
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
