<?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>maximum QDEC sample frequency</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10298/maximum-qdec-sample-frequency</link><description>Hi everyone!
We&amp;#39;re working with the processor nRF51422 with S210 softdevice and we&amp;#39;ve found an issue about the QDEC sample frequency. In fact, the minimum sample period by configuring SAMPLEPER=0 is 128us, but in our project we have an encoder that reach</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 May 2021 11:06:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10298/maximum-qdec-sample-frequency" /><item><title>RE: maximum QDEC sample frequency</title><link>https://devzone.nordicsemi.com/thread/311733?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 11:06:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd56635d-0aba-4a29-8858-a93224ee9a63</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The QDEC was designed primarily for handling scroll wheels on mice, which doesn&amp;#39;t require a very high sampling frequency. Supporting higher frequencies is not necessarily hard from a design standpoint, but could have implications for power consumption etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It should be possible to use the TIMER, GPIOTE and PPI modules to sample pulses at higher speeds, but this requires a bit more work on the implementation side to setup the peripherals and decode the results.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: maximum QDEC sample frequency</title><link>https://devzone.nordicsemi.com/thread/305100?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 12:45:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74470374-b4c6-4d89-b37a-d2cd02ee0da4</guid><dc:creator>eh</dc:creator><description>&lt;p&gt;I&amp;#39;m also wondering about this. Currently working on the nRF52840 and sampling encoder signals from a motor. But since the highest sampling frequency in the QDEC is 128us I can not runt the motor very fast. I would like to see a sampling frequency of at least a few tenths of kHz, that does not seem hard to achieve. Are there any reason for this low frequency limit on the sampling?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: maximum QDEC sample frequency</title><link>https://devzone.nordicsemi.com/thread/38221?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2015 08:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c209039-14d7-4452-bea2-0c4632aee4da</guid><dc:creator>sebastiano.xinet</dc:creator><description>&lt;p&gt;I see. And the sampling reliability is our initial problem so I think we follow your suggestion and use our external solution, that we have already tested and works good. Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: maximum QDEC sample frequency</title><link>https://devzone.nordicsemi.com/thread/38220?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 20:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d93307c4-0162-4605-8bc6-97d40b74157b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;If an external device is an option that would probably be best. I am sure you could hack something together with the nRF51 alone, but I doubt it would be a 100% reliable solution ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: maximum QDEC sample frequency</title><link>https://devzone.nordicsemi.com/thread/38219?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 15:26:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce1236a9-923f-46a5-bf3c-cc8fbf80bad8</guid><dc:creator>sebastiano.xinet</dc:creator><description>&lt;p&gt;Yes, the movement is bi-directional. If other ways are much more complex to implement we&amp;#39;ll use some external device to resolve our problem. Thanks anyway for the reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: maximum QDEC sample frequency</title><link>https://devzone.nordicsemi.com/thread/38217?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2015 15:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1436eb15-7730-4d87-b141-49bed4599c04</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;As mentioned there are no quicker modes available unfortunately.&lt;br /&gt;
If you need to reliably detect a pulse quicker than this you would probably have to do it using the GPIOTE, PPI and TIMER modules, but that would make for a significantly more complex implementation.&lt;br /&gt;
I assume the movement is bi-directional (like a scroll wheel for mice) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: maximum QDEC sample frequency</title><link>https://devzone.nordicsemi.com/thread/38218?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2015 11:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e2d374-d250-4cea-b65c-df4e9891002d</guid><dc:creator>sebastiano.xinet</dc:creator><description>&lt;p&gt;Yes, we had already seen what spec sheet tells but we had also seen that the debounce filter, that is into the process of QDEC, work with a 1MHz sampling frequency. So, our question meant to ask if could be an alternative way to use that frequency also for the QDEC sample. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: maximum QDEC sample frequency</title><link>https://devzone.nordicsemi.com/thread/38216?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2015 04:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:070c7c58-f262-4118-a87b-d62f4e757178</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;No it&amp;#39;s not - the spec sheet for the nrf51x22 tells you the minimum sampling period for the QDEC is 128µs. That&amp;#39;s it, that&amp;#39;s the minimum.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>