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

		<item>
			<title>bnewbold on "PPM reader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=84#post-609</link>
			<pubDate>Fri, 23 Jul 2010 11:26:19 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">609@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;(0.0.6 released: &#60;a href=&#34;http://leaflabs.com/2010/07/ide-0-0-6-release-horray/&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/2010/07/ide-0-0-6-release-horray/&#60;/a&#62; )
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nate on "PPM reader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=84#post-577</link>
			<pubDate>Mon, 19 Jul 2010 14:13:55 +0000</pubDate>
			<dc:creator>Nate</dc:creator>
			<guid isPermaLink="false">577@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks for your hard work!&#60;br /&#62;
I am really looking forward to 0.0.6.  I will need to use a PWM out signal on one of the pins (already coded using timer 4).  Will I be able to use timer interrupts on timers 1-3 without disabling timer 4?&#60;/p&#62;
&#60;p&#62;As far as suggestions, my vote goes to enabling attach (and detach) external interrupt functions, but I think getting release 0.0.6 out sooner with working timer interrupts would be best.  Just my 2 cents.&#60;br /&#62;
Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "PPM reader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=84#post-571</link>
			<pubDate>Mon, 19 Jul 2010 00:14:38 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">571@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Sigh, 0.0.6 didn't make it out this weekend. I spent all day hacking on the SerialUSB blocking issue and ended up with a partial solution, but still need to test and write it up. New target is Wednesday evening... ;(
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "PPM reader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=84#post-557</link>
			<pubDate>Thu, 15 Jul 2010 08:35:17 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">557@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hey Nate!&#60;/p&#62;
&#60;p&#62;My current timers code is on this branch: &#60;a href=&#34;http://github.com/leaflabs/libmaple/tree/timers&#34; rel=&#34;nofollow&#34;&#62;http://github.com/leaflabs/libmaple/tree/timers&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Caveats that I need to test/document are that configuring the timers will disable certain other functionality (especially PWM, which is itself implemented using the timers), and that the USB, Serial, and SysTick interrupts tend to conflict with the Timer interrupts making them a bit unreliable. There are notes in ./notes/timers and see ./example/test-timers.cpp for example code. We might also make API/functionality changes before release... any comments or suggestions would be appreciated!&#60;/p&#62;
&#60;p&#62;We were hoping to do 0.0.6 last night but are a bit behind; i'll be very disappointed if it isn't tested and out the door this weekend.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nate on "PPM reader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=84#post-551</link>
			<pubDate>Wed, 14 Jul 2010 17:28:18 +0000</pubDate>
			<dc:creator>Nate</dc:creator>
			<guid isPermaLink="false">551@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I need to measure the frequency of an incoming TTL signal.  Any help would be appreciated.  Also, a couple of questions:&#60;/p&#62;
&#60;p&#62;1. Can I get a hold of the untested code supporting timers (see last post)?&#60;br /&#62;
2. Any word on the release date of 0.0.6?&#60;/p&#62;
&#60;p&#62;Thanks for your help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "PPM reader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=84#post-481</link>
			<pubDate>Mon, 05 Jul 2010 20:39:20 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">481@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I should also mention, that you can feel free to dig into hacking on libmaple and submitting patches, but I warn you that the timers on the stm32 are nastily complicated. Stay tuned though, last time I checked timer support was checked in but untested.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "PPM reader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=84#post-480</link>
			<pubDate>Mon, 05 Jul 2010 20:37:48 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">480@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;pulseIn just moved up in the queue! &#60;/p&#62;
&#60;p&#62;In other news, timer interrupt support exists and is coming in 0.0.6, which may help you here too. We depend on users to figure out where to best spend our porting and expansion efforts, so thanks for the update! Ill post again here soon with an update on pulsein support
&#60;/p&#62;</description>
		</item>
		<item>
			<title>leaflabsandy on "PPM reader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=84#post-472</link>
			<pubDate>Mon, 05 Jul 2010 15:07:48 +0000</pubDate>
			<dc:creator>leaflabsandy</dc:creator>
			<guid isPermaLink="false">472@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;8/5/10&#60;/p&#62;
&#60;p&#62;I got some bad news if this website docs are correct ...&#60;/p&#62;
&#60;p&#62;Under the Leaflabs docs &#34;Maple-Arduino Compatability&#34;&#60;br /&#62;
pulseIn() unimplemented: On the TODO list! &#38;lt;------------&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#60;/p&#62;
&#60;p&#62;On the interrupts - I think they are still &#34;work in progress&#34;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alduxvm on "PPM reader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=84#post-470</link>
			<pubDate>Mon, 05 Jul 2010 11:59:38 +0000</pubDate>
			<dc:creator>alduxvm</dc:creator>
			<guid isPermaLink="false">470@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi!!&#60;/p&#62;
&#60;p&#62;In my last project, i had the requirement to read a PPM channel coming from a RC receiver.&#60;/p&#62;
&#60;p&#62;In the arduino i use the timer1 with this code:&#60;/p&#62;
&#60;p&#62;----------------------------------------&#60;/p&#62;
&#60;p&#62;void setup_timer1(){&#60;br /&#62;
//Desactivar todas las interrupciones &#124; disable all interupts&#60;br /&#62;
TIMSK1 &#38;amp;= ~( _BV(TOIE1) &#124; _BV(ICIE1) &#124; _BV(OCIE1A) &#124; _BV(OCIE1B));&#60;/p&#62;
&#60;p&#62;//Fijar modo del timer &#124; set timer mode&#60;br /&#62;
TCCR1A &#38;amp;= ~( _BV(WGM11) &#124; _BV(WGM10) );&#60;br /&#62;
TCCR1B &#38;amp;= ~( _BV(WGM12) &#124; _BV(WGM13) &#124; _BV(ICNC1));&#60;/p&#62;
&#60;p&#62;//Capturar flanco de subida &#124; capture raising edge&#60;br /&#62;
TCCR1B &#124;= _BV(ICES1); //capture raising edge&#60;/p&#62;
&#60;p&#62;//Prescaler 1/8&#60;br /&#62;
TCCR1B &#124;= _BV(CS11);&#60;br /&#62;
TCCR1B &#38;amp;= ~( _BV(CS12) &#124; _BV(CS10) );&#60;/p&#62;
&#60;p&#62;//Desactivar salidas &#124; disable outputs&#60;br /&#62;
TCCR1A &#38;amp;= ~( _BV(COM1A0) &#124; _BV(COM1A1) &#124; _BV(COM1B0) &#124; _BV(COM1B1));&#60;/p&#62;
&#60;p&#62;//Activar interrupcion de captura &#124; enable capture interrupt&#60;br /&#62;
TIMSK1 &#124;= (1&#38;lt;&#38;lt;ICIE1);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;ISR(TIMER1_CAPT_vect){&#60;br /&#62;
//static unsigned int lasticr; //icr at last caputre&#60;br /&#62;
static unsigned char cserinp; //Entrada actual de servo &#124; current input servo&#60;/p&#62;
&#60;p&#62;unsigned int licr;&#60;/p&#62;
&#60;p&#62;//TCCR1B ^= _BV(ICES1);&#60;br /&#62;
//licr=ICR1-lasticr;&#60;br /&#62;
//lasticr=ICR1;&#60;br /&#62;
//  TCNT1=0;&#60;/p&#62;
&#60;p&#62;if(ICR1&#38;gt;10000){ //Pulso muy largo, comenzar con nuevo frame &#124; pulse too long, means start of new frame&#60;br /&#62;
  cserinp=0;&#60;br /&#62;
}else{ //Pulso correcto, guardar medicion, ir al siguiente canal &#124; pulse good, take reading, go to next channel&#60;br /&#62;
  serinp[cserinp]=((ICR1/2));&#60;br /&#62;
  cserinp++;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;TCNT1=0;&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;--------------------------------------&#60;/p&#62;
&#60;p&#62;Im using interrupts to make it more efficient... the array &#34;serinp&#34; contains all the data from the 6 channels of my receiver. &#60;/p&#62;
&#60;p&#62;My question is, how to do this in the marvelous Maple?? because im updating all my project to the maple....&#60;/p&#62;
&#60;p&#62;Any ideas??&#60;/p&#62;
&#60;p&#62;has anyone ported the pulseIn function??&#60;/p&#62;
&#60;p&#62;thanks!!&#60;/p&#62;
&#60;p&#62;cheers!!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
