<?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: One way to generate high speed signal</title>
		<link>http://forums.leaflabs.com/topic.php?id=1055</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:24:15 +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=1055" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "One way to generate high speed signal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1055#post-6480</link>
			<pubDate>Wed, 21 Sep 2011 08:53:05 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">6480@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;gulu2065 - that should work. &#60;/p&#62;
&#60;p&#62;Did you check the correct pins?&#60;br /&#62;
&#60;a href=&#34;http://leaflabs.com/docs/hardware/maple.html#master-pin-map&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/hardware/maple.html#master-pin-map&#60;/a&#62;&#60;br /&#62;
PB5 is pin D4 and&#60;br /&#62;
PB6 is pin D5&#60;/p&#62;
&#60;p&#62;Did you set the pinMode for those pins?&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;pinMode(D4, OUTPUT);
pinMode(D5, OUTPUT);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It might be easier to work backwards, and use the pin map to figure out which pins you want to check.&#60;/p&#62;
&#60;p&#62;(full disclosure: I am not a member of LeafLabs staff)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gulu2065 on "One way to generate high speed signal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1055#post-6468</link>
			<pubDate>Wed, 21 Sep 2011 01:41:15 +0000</pubDate>
			<dc:creator>gulu2065</dc:creator>
			<guid isPermaLink="false">6468@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;mbolivar,&#60;br /&#62;
are you sure this will work?&#60;br /&#62;
I tried but it do not set them both. Only set one.&#60;br /&#62;
Could you explain it in more detail?&#60;br /&#62;
Thanks,
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "One way to generate high speed signal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1055#post-6460</link>
			<pubDate>Tue, 20 Sep 2011 21:22:26 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6460@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;gbulmer,&#60;/p&#62;
&#60;p&#62;Thanks for the links.  I've added a link to thread with id=895 to the FAQ entry:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/leaflabs-docs/commit/dc70ddaad588c23525c3e8ff4ba080e0ac313719&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/leaflabs-docs/commit/dc70ddaad588c23525c3e8ff4ba080e0ac313719&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;(A link to the thread with id=774 is already present).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "One way to generate high speed signal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1055#post-6454</link>
			<pubDate>Tue, 20 Sep 2011 20:37:23 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">6454@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;You might find these threads useful too:&#60;br /&#62;
&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=774&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=774&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=895&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=895&#60;/a&#62; (and the threads it references)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "One way to generate high speed signal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1055#post-6451</link>
			<pubDate>Tue, 20 Sep 2011 18:17:07 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6451@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Do you really want to say several &#60;em&#62;ports&#60;/em&#62;?  You can't write to pins on different ports (like GPIOA and GPIOB) with the same instruction.&#60;/p&#62;
&#60;p&#62;If what you mean is several &#60;em&#62;bits&#60;/em&#62;, then you can just pick two pins on the same port using your board's &#60;a href=&#34;http://leaflabs.com/docs/gpio.html#pin-maps&#34;&#62;pin map&#60;/a&#62;, and use the bit set/reset register, BSRR, to set or clear both bits at the same time.  See ST RM0008 &#60;a href=&#34;http://leaflabs.com/docs/gpio.html#recommended-reading&#34;&#62;(linked to here)&#60;/a&#62; for more information.&#60;/p&#62;
&#60;p&#62;Edit:  for example, you could say&#60;/p&#62;
&#60;p&#62;&#60;code&#62;GPIOB_BASE-&#38;gt;BSRR = BIT(6) &#124; BIT(5);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;to set both bit 6 and 5 (on GPIOB) at the same time.  To clear them at the same time, you could use&#60;/p&#62;
&#60;p&#62;&#60;code&#62;GPIOB_BASE-&#38;gt;BSRR = BIT(6 + 16) &#124; BIT(5 + 16);&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gulu2065 on "One way to generate high speed signal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1055#post-6450</link>
			<pubDate>Tue, 20 Sep 2011 17:39:46 +0000</pubDate>
			<dc:creator>gulu2065</dc:creator>
			<guid isPermaLink="false">6450@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;mbolivar,&#60;br /&#62;
this is great, In fact I just reading something like this.&#60;br /&#62;
Now I am interesting in how to write several port at the same time, i.e. let them work at the same speed and thus generate abitrary bits I want.&#60;br /&#62;
Do you have any idea about it?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "One way to generate high speed signal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1055#post-6449</link>
			<pubDate>Tue, 20 Sep 2011 17:34:23 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6449@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;gulu2065,&#60;/p&#62;
&#60;p&#62;you may find this FAQ interesting:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://leaflabs.com/docs/faq.html#how-do-i-write-to-a-pin-at-high-speed&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/faq.html#how-do-i-write-to-a-pin-at-high-speed&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gulu2065 on "One way to generate high speed signal"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1055#post-6442</link>
			<pubDate>Tue, 20 Sep 2011 16:12:27 +0000</pubDate>
			<dc:creator>gulu2065</dc:creator>
			<guid isPermaLink="false">6442@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yesterday I found one interesting (For a green hand, I think so,) way to generate high frequency signal.&#60;br /&#62;
I post here, hope it will help anyone needed&#60;/p&#62;
&#60;p&#62;#define PIN_B6_HIGH (GPIOB_BASE)-&#38;gt;BSRR = BIT(6)&#60;br /&#62;
#define PIN_B6_LOW  (GPIOB_BASE)-&#38;gt;BRR  = BIT(6)&#60;/p&#62;
&#60;p&#62;void setup() {&#60;br /&#62;
  pinMode(5, OUTPUT);  // B6 is pin 5&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;void loop() {&#60;br /&#62;
  myloop:&#60;br /&#62;
    PIN_B6_HIGH;&#60;br /&#62;
    PIN_B6_LOW;&#60;br /&#62;
      goto myloop;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;If you want to moderate frequency or duty,&#60;br /&#62;
you could use this delay&#60;br /&#62;
    __asm__(&#34;nop\n\t&#34;);&#60;br /&#62;
it could offer a 30ns? I forget exact number but much shorter than the delayMicrosenonds();
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
