<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>single phase QDEC ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24187/single-phase-qdec</link><description>is it possible configure the QDEC to single phase, i am using one omnipolar hall effect sensor i am wondering if i can configure only phase A ande use it, is it possible ???</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Aug 2017 10:49:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24187/single-phase-qdec" /><item><title>RE: single phase QDEC ?</title><link>https://devzone.nordicsemi.com/thread/95258?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 10:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a7f6cb-37e3-4f83-b460-687a8ac7f333</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes,&lt;/p&gt;
&lt;p&gt;If you want to measure the time/duration between each pulse, you should use the TIMER peripheral in &lt;em&gt;Timer mode&lt;/em&gt;. If you only need to count and keep track of the number of pulses, then use the &lt;em&gt;LowPowerCounter&lt;/em&gt; mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: single phase QDEC ?</title><link>https://devzone.nordicsemi.com/thread/95257?ContentTypeID=1</link><pubDate>Sun, 13 Aug 2017 20:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8246df48-e008-4396-81ab-dfb3529f1e54</guid><dc:creator>Thiru</dc:creator><description>&lt;p&gt;so you suggestion is  use falling edge or rising edge , use PPI event to start and stop the timer,  get the duration,  this duration will be the time for one rotation.&lt;/p&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;p&gt;anyway i can use any counter to count pulse in the pin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: single phase QDEC ?</title><link>https://devzone.nordicsemi.com/thread/95256?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2017 12:04:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eed65abc-9ac3-4f5c-a3f2-29a34a9baa9b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The QDEC peripheral is designed for two-phase inputs. You could in &lt;em&gt;theory&lt;/em&gt; use it count a single phase by assigning the same GPIO pin where your phase is to both Phase A and Phase B inputs. You will then get what’s called a double transition (invalid sample), and you can read the count result from the ACCDBL register. Note that the ACCDBL is just a 4 bit register, while the normal(valid samples) ACC register is 32 bit.&lt;/p&gt;
&lt;p&gt;Since this is just a single phase, a more suited approach might be to just simply use the TIMER and GPIOTE. The GPIOTE can be configured to generate an event on a pin change, and using the PPI you can connect that event to the TIMER running in LowPowerCounter mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>