<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Pico PIO state machine implements a peripheral: Rotary Decoder - 1: example</title><link>/products/raspberry-pi/b/blog/posts/pico-pio-state-machine-implements-a-peripheral-rotary-decoder---1-example</link><description>The Pico has a set of PIO co-processors. They are real-time controllers that can execute logic with deterministic timing. Ideal to run strict-timed sequences and state machines. And to implement extra peripherals (like a quadrature decoder h...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Pico PIO state machine implements a peripheral: Rotary Decoder - 1: example</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/pico-pio-state-machine-implements-a-peripheral-rotary-decoder---1-example</link><pubDate>Sun, 13 Nov 2022 20:20:36 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e4424811-ca93-4040-b886-b9159595ac4a</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I just found out that the standard raspberry pico-examples also have a good &lt;a href="https://github.com/raspberrypi/pico-examples/tree/master/pio/quadrature_encoder" rel="noopener noreferrer" target="_blank"&gt;PIO quadrature encoder example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To make it work with the pico Eurocard, change this line of code:&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;&lt;span&gt;// &amp;nbsp;const uint PIN_AB = 10;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; &amp;nbsp; &lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;uint&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;PIN_AB&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;6&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24735&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Pico PIO state machine implements a peripheral: Rotary Decoder - 1: example</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/pico-pio-state-machine-implements-a-peripheral-rotary-decoder---1-example</link><pubDate>Mon, 07 Nov 2022 17:47:24 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e4424811-ca93-4040-b886-b9159595ac4a</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;ve attached the VSCode project&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24735&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>