<?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>nRF54L15 QEDC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124026/nrf54l15-qedc</link><description>I want to use a hardware encoder to implement a mouse scroll wheel. Do you provide a QEDC routine for me to quickly learn and use? Are there any specific pin requirements for QEDC? Can I use any port and pin freely?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Sep 2025 10:33:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124026/nrf54l15-qedc" /><item><title>RE: nRF54L15 QEDC</title><link>https://devzone.nordicsemi.com/thread/547443?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 10:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8d1877e-b632-453d-b7e6-e87c5c53ca23</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="LinJunXuan"]Isn&amp;#39;t this NRF code[/quote]
&lt;p&gt;Yes, this is from the low-level SPIS nrfx driver. Generally the nrfx drivers are low-level and can be used directly, but for most there als exist a Zephyr API on top that is normally what is recommended. You are free to use the nrfx QSPI driver direclty as well if you like (see &lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/blob/6541dc3a175ef8cd0970f7d8f1d954928e6bde8c/nrfx/drivers/include/nrfx_qdec.h"&gt;nrfx_qdec.h&lt;/a&gt;), but I would recommend the Zephyr APIs and we do not have any example for using nrfx_qdec directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 QEDC</title><link>https://devzone.nordicsemi.com/thread/547417?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 08:35:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a31eb39-49f0-4b17-a767-9355c56524b1</guid><dc:creator>LinJunXuan</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5228f168_2D00_1010_2D00_4c26_2D00_a3cd_2D00_895d0d69136b.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Isn&amp;#39;t this NRF code&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;Thank you for your patient response above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 QEDC</title><link>https://devzone.nordicsemi.com/thread/547409?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 08:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86061332-4d7a-4d70-87fe-455931b2a7d0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="LinJunXuan"]&lt;p&gt;1. When I searched in the Nordic search bar, it also popped up at the address you gave me in this comment, but I am still confused because it is all about registers and there is no corresponding application code??&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;2. I think it&amp;#39;s important to provide application code and examples to improve my development efficiency. Similar to STM32, downloading a Library can directly write all the examples and provide corresponding API manuals?&lt;/p&gt;[/quote]
&lt;p&gt;Can you elaboraate on what application code you are looking for? You do no need anyhign other than what is demonstrated in the Quadrature Decoder Sensor sample (the code for this sample is found under&amp;nbsp;zephyr/samples/sensor/qdec/&amp;nbsp; - &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/607e1be8d008fad2d610fba7eb573bd36b1fa660/samples/sensor/qdec"&gt;here&lt;/a&gt;). This demonstrate using the driver. You do not need to look into the driver implementation, but from the Zephyr API this calls into the nrfx driver implemented in &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/a553af738d49f1cd5ca18769a2b6d1342df75105/drivers/sensor/nordic/qdec_nrfx/qdec_nrfx.c"&gt;qdec_nrfx.c&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regarding API, the QDEC impelmentation use the generic Sensor API, which you can find documentation for &lt;a href="https://docs.nordicsemi.com/bundle/zephyr-apis-3.1.0/page/group_sensor_interface.html"&gt;here&lt;/a&gt;. This is a generic API that covers a lot though, so I suggest focusing on the sample first as that shows only what you need for QDEC.&lt;/p&gt;
[quote user="LinJunXuan"]3. And now, almost all of my development with Nordic is based on the application code provided by Zephyr, such as gpio_pin_get.dt. However, when I search for it, the code given to me is Nordic, and the parameter passing between the two is different. I am very confused[/quote]
&lt;p&gt;Can you elaborate on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 QEDC</title><link>https://devzone.nordicsemi.com/thread/547405?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 07:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05007161-4ef1-4eb9-8154-f2d9cc72a9c0</guid><dc:creator>LinJunXuan</dc:creator><description>&lt;p&gt;1. When I searched in the Nordic search bar, it also popped up at the address you gave me in this comment, but I am still confused because it is all about registers and there is no corresponding application code??&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;2. I think it&amp;#39;s important to provide application code and examples to improve my development efficiency. Similar to STM32, downloading a Library can directly write all the examples and provide corresponding API manuals?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;3. And now, almost all of my development with Nordic is based on the application code provided by Zephyr, such as gpio_pin_get.dt. However, when I search for it, the code given to me is Nordic, and the parameter passing between the two is different. I am very confused&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 QEDC</title><link>https://devzone.nordicsemi.com/thread/547403?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 07:43:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f29b8369-a9ca-42d4-afed-3756f392710e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="LinJunXuan"]Thank you very much for your help，Is QDEC the corresponding application code?[/quote]
&lt;p&gt;I can you elaborate the question? The sample I linked to demonstrate how to use the QDEC Zephyr driver, and when usig with a nRF54L15 this will use the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf54L15/page/qdec.html"&gt;QDEC peripheral&lt;/a&gt;.&lt;/p&gt;
[quote user="LinJunXuan"]Sometimes when I search for Nordic code, sometimes based on Zephyr, sometimes on Nordic Hal, it&amp;#39;s really confusing[/quote]
&lt;p&gt;Thank you for the feedback, that is a problem we are aware of and looking into. The samples that are form Zephyr not officially supported, but can often be usefull non the less and Nordic contributes to many of them them (as has been the case for the QDEC sample).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 QEDC</title><link>https://devzone.nordicsemi.com/thread/547366?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 14:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a15e7f81-a87d-4bad-a909-c43b1dd792b6</guid><dc:creator>LinJunXuan</dc:creator><description>&lt;p&gt;Thank you very much for your help，Is QDEC the corresponding application code?&lt;br /&gt;Sometimes when I search for Nordic code, sometimes based on Zephyr, sometimes on Nordic Hal, it&amp;#39;s really confusing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 QEDC</title><link>https://devzone.nordicsemi.com/thread/547364?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 14:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fccdb3d-c163-46c1-b9bc-537c50fd9706</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The example works on nRF54L15 DK. You can see that there is an overlay for that specific DK under the board folderer in the project: &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/436d1bf6288de0c6a85fa233b59e1c64f422ee04/samples/sensor/qdec/boards/nrf54l15dk_nrf54l15_cpuapp.overlay"&gt;nrf54l15dk_nrf54l15_cpuapp.overlay&lt;/a&gt;. This is the only QDEC example we have avaialble.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 QEDC</title><link>https://devzone.nordicsemi.com/thread/547363?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 14:35:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9f609c7-c2e3-49a7-a060-998963e88944</guid><dc:creator>LinJunXuan</dc:creator><description>&lt;p&gt;But this example is from STM32. Regarding this issue, I asked AI frantically, and they provided incorrect answers. I am now feeling very frustrated, and STM32 states that a Timer timer is required. I am not sure if Nordic&amp;#39;s QDEC is also needed. I tried using this demo, and every time I searched for some demos on the HTTP website you provided me, such as Nordic&amp;#39;s storage of Flash and Timer, there were too many things popping up every time. I just want to see the demo. Can you provide a better shortcut or have a better PDF document&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 QEDC</title><link>https://devzone.nordicsemi.com/thread/547335?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 12:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ead1c4dc-79b4-43db-acc7-18810ab4c3ce</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF54L15 has a QDEC peripheral and the use of that is demonstrated i the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.1.0/page/zephyr/samples/sensor/qdec/README.html"&gt;Quadrature Decoder Sensor&lt;/a&gt;&amp;nbsp;sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>