<?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>QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68099/qdec-example-with-nrf-connect-sdk-v1-4-0</link><description>Hello, sorry if this seems to be a basic or already asked question, but how could I have an example of QDEC usage with the nrf52840 (ideally the dongle) ? I would like to plug a simple mechanical rotary encoder, and I found some posts telling there is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Nov 2020 08:11:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68099/qdec-example-with-nrf-connect-sdk-v1-4-0" /><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/281241?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 08:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a71a3086-e8a1-49ac-b77e-b06ff237469a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Good to hear. That is about what you should expect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/281202?ContentTypeID=1</link><pubDate>Sat, 21 Nov 2020 16:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93841f32-a779-4297-81b9-e11c7d1ee6ee</guid><dc:creator>Coco cinelle</dc:creator><description>&lt;p&gt;Sorry for the multiple messages...&lt;br /&gt;In fact 8uA of current consumption was due to USB still being plugged after programming the dongle. Without being plugged, my multimeter reports a consumption below 1uA :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/281201?ContentTypeID=1</link><pubDate>Sat, 21 Nov 2020 14:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91890a8a-74a4-462b-ae56-41ae0bf959ea</guid><dc:creator>Coco cinelle</dc:creator><description>&lt;p&gt;I restarted from the beginning, and enabling things one after the other led me to this : &lt;br /&gt;Before enabling or disabling the QDEC device I manually configured the QDEC pins as GPIO INPUT, and this seems to be the cause of a so high current consumption in System OFF mode.&lt;/p&gt;
&lt;p&gt;Now I reach 8uA, that&amp;#39;s far better :) But it seems to me that it is still too high for just sensing two pins for the potential wake up...&lt;br /&gt;So maybe now I should dig into tuning RAM retention, or something else? If you have any clue...&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/281199?ContentTypeID=1</link><pubDate>Sat, 21 Nov 2020 13:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5864b87f-1c37-4732-aa22-ce8753e4ffd0</guid><dc:creator>Coco cinelle</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I switched to external power, and now the dongle stays in sleep or OFF mode&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To enter Sytem OFF mode I call&amp;nbsp; &amp;quot;nrf_power_system_off(NRF_POWER);&amp;quot;&amp;nbsp; as I didn&amp;#39;t succeed to call &amp;quot;&lt;code&gt;sd_power_system_off()&lt;/code&gt;;&amp;quot;&amp;nbsp; (I can&amp;#39;t include the proper header file)... But it seems to work and power consumption goes very low, around 1uA or less. But then I can&amp;#39;t wake up the device with classic GPIO interrupts.&lt;br /&gt;So I figured out that to be able to wake up the dongle from sleep or OFF mode I have to use the &amp;quot;sense&amp;quot; API.&lt;br /&gt;So I call &amp;quot;nrf_gpio_cfg_sense_input&amp;quot; for the two pins of the QDEC device and it works: a rotation of the device&amp;nbsp; wakes up the dongle.&lt;br /&gt;But with this call to &amp;quot;nrf_gpio_cfg_sense_input&amp;quot; the power consumption is then far higher in OFF mode : ~100uA&lt;br /&gt;Do you know what could be the cause of that? I tried pull down instead of pull up... but it is the same.&lt;br /&gt;Maybe something must be deactivated ? I was wondering about RAM retention settings but I read that power usage should not be so different with or without RAM retention...&lt;br /&gt;&lt;br /&gt;So just adding this call makes the wake-up from OFF mode work, but increases a lot power consumption:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_gpio_cfg_sense_input(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qdec_pin[0],&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_PIN_CNF_PULL_Disabled, // I have external pull up&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_PIN_CNF_SENSE_Low);&lt;br /&gt;&lt;br /&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/281151?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2020 15:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8955bf84-ec2e-466e-bfd5-54dcbbc01543</guid><dc:creator>Coco cinelle</dc:creator><description>&lt;p&gt;Ok thank you for the precision !&lt;br /&gt;In fact I just want to do have a rotary encoder that triggers BLE advertisements when rotated, and that then goes to the lowest possible power consumption mode. Rotating it again should wake it up, and so on. I may add some basic buttons too, that would send different BLE advertisement data.&lt;br /&gt;This is a remote command device for a device I made.&lt;br /&gt;So in the end I want to power the device with a cell coin, and I won&amp;#39;t need USB at all :)&lt;br /&gt;&lt;br /&gt;I was asking before soldering SB1 and cutting SB2 to switch to another power source because powering through USB is more convenient at the current stage of my prototyping...&lt;br /&gt;So it seems I am obliged to switch to an external power source if I want to do real testing.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/281131?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2020 14:00:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c65f8d7-1e29-4858-8dd5-d5fa3b7aebcb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry, I forgot to comment on system off and USB. I do not believe it is possible for the device to stay in system off mode while supplied via USB. I do not think that has been considered a realistic&amp;nbsp;scenario, as also in system ON mode current consumption is &lt;em&gt;very&lt;/em&gt; low, and typically anything with a USB host is not so low power.&lt;/p&gt;
&lt;p&gt;May I ask a bit about your product, as this is something you see a need for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/281123?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2020 13:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b7daea5-a166-4c32-8ff1-5e9f6b0305d4</guid><dc:creator>Coco cinelle</dc:creator><description>&lt;p&gt;Ok I was not sure of that. Because of the fact that in wheel.c the QDEC device is put in DEVICE_PM_SUSPEND_STATE after some inactivity delay I was thinking the device could even reach the system OFF state if there was no other activity... But indeed it is certainly system ON low power mode that I reach in my case, and I guess this behaviour is automatic since I don&amp;#39;t call code to explicitely go into this state.&lt;br /&gt;&lt;br /&gt;But my aim in the end is to go to system OFF mode to consume as less power as possible, with qdec pins being able to wake up the device, registering GPIO interrupts for that.&lt;br /&gt;So if I understand correctly your answer, the simple fact that the dongle is powered through USB should not theoretically block the possibility to remain in sleep mode or system OFF mode? I wanted a confirmation especially because I read that &amp;quot;When in System OFF mode, the device can be woken up through one of the following signals&amp;quot; ... &amp;quot;4. Detecting a valid USB voltage on the VBUS pin (V&lt;sub class="ph sub"&gt;BUS,DETECT&lt;/sub&gt;).&amp;quot;&amp;nbsp; here &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpower.html&amp;amp;cp=4_0_0_4_2_2&amp;amp;anchor=unique_1227688711"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/281108?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2020 13:09:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75adb58d-bc76-43df-9ebe-053b943cbb93</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not see that wheel.c has any code to enter system OFF mode, but it would probably not belong there anyway. What is it i you refer to? Could it be that you mean system ON low power mode (which is the normal sleep mode)?&lt;/p&gt;
&lt;p&gt;Generally, there are only a few possible wakeup sources from system OFF (GPIO, NFC or LPCOMP), and then if triggered, the device will wake up. There are no clocks running in system off mode, so any wakeup must be externally triggered.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/280996?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 22:04:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff2c0c5c-d088-47ac-bbbe-4ecb87d9faa3</guid><dc:creator>Coco cinelle</dc:creator><description>&lt;p&gt;Ok, thank you.&lt;br /&gt;So I try to mimic what is done in wheel.c . I also want to enter system OFF mode after some inactivity delay, like it seems to be done in wheel.c, but it seems the dongle wakes up directly after reaching the OFF state...&lt;br /&gt;Could it be caused by the fact that I&amp;#39;m plugged in USB and the only way to stay in system OFF mode would be to enable external power ?&lt;br /&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/279854?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 08:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d8dfe31-ef56-4d3c-ba5c-52eaa98fcf70</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Coco cinelle"]Hi, to be sure I don&amp;#39;t make mistakes, what is the purpose of the &amp;quot;enable-pin&amp;quot; here? Removing the line triggers build errors, but I don&amp;#39;t see the documentation of an &amp;quot;enable pin&amp;quot; for the QDEC device in the nrf product specification.[/quote]
&lt;p&gt;The enable-pin is a concept of the zephyr sensor driver API, and not part of the QDEC peripheral nor nrfx driver. Essentially it is just a pin that is asserted while the QDEC is active. You can see how it is set and cleared by calls to qdec_nrfx_gpio_ctrl() in the implementation in &amp;lt;NCS&amp;gt;/zephyr/drivers/sensor/qdec_nrfx/qdec_nrfx.c.&lt;/p&gt;
[quote user="Coco cinelle"]Also, I suppose low frequency GPIOs would be ok for a-pin and b-pin, so I plan to use for eg. P1.10 and P1.13 (As I saw somewhere in a forum : &amp;quot;0-31 correspond to 0.x and 32-63 correspond to 1.x&amp;quot;).[/quote]
&lt;p&gt;Yes, that should be fine (and your understanding that P1 numbering is correct).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/279816?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 19:55:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43073bb4-4f33-4ca1-b7ba-7780749c719c</guid><dc:creator>Coco cinelle</dc:creator><description>&lt;p&gt;Hi, to be sure I don&amp;#39;t make mistakes, what is the purpose of the &amp;quot;enable-pin&amp;quot; here? Removing the line triggers build errors, but I don&amp;#39;t see the documentation of an &amp;quot;enable pin&amp;quot; for the QDEC device in the nrf product specification.&lt;br /&gt;&lt;br /&gt;Also, I suppose low frequency GPIOs would be ok for a-pin and b-pin, so I plan to use for eg. P1.10 and P1.13 (As I saw somewhere in a forum : &amp;quot;0-31 correspond to 0.x and 32-63 correspond to 1.x&amp;quot;).&lt;br /&gt;&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/279356?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 18:19:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b1b194a-fed4-43f5-98d1-84527373a972</guid><dc:creator>Coco cinelle</dc:creator><description>&lt;p&gt;Hi, I created a .overlay file with this content and there is no more error, thanks!&lt;br /&gt;&lt;br /&gt;About CONFIG_SENSOR, it is because I have this warning:&lt;br /&gt;&lt;br /&gt;warning: QDEC_NRFX (defined at drivers/sensor/qdec_nrfx/Kconfig:4) was assigned the value &amp;#39;y&amp;#39; but&lt;br /&gt;got the value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: SENSOR (=n)&lt;/p&gt;
&lt;p&gt;But for the moment I don&amp;#39;t have any code that uses qdec, I just made a copy of a small sample project to begin...&lt;br /&gt;Going into the real stuff now :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/279318?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 14:56:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72ef76e5-6676-406e-89ac-08217324e955</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Coco cinelle"]When I enable CONFIG_QDEC_NRFX, and anslo CONFIG_SENSOR as this seems to be a required dependency[/quote]
&lt;p&gt;There is a&amp;nbsp;dependency on nrfx if you want to use sensor, but not the other way around if you only want to use nrfx directly.&lt;/p&gt;
[quote user="Coco cinelle"]then my build fails[/quote]
&lt;p&gt;The error is because the zephyr drivers (like sensor)&amp;nbsp;requires&amp;nbsp;that pins etc. ar defined in the device tree file (or overlay file). So you can fix this by adding the qdec configuration to the device tree, either (quick and dirty) by putting it into &lt;code&gt;zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts&lt;/code&gt; if you ar using that target board, or by putting it in your own boar definition or in an overlay file:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;qdec {
	status = &amp;quot;okay&amp;quot;;
	a-pin = &amp;lt;3&amp;gt;;
	b-pin = &amp;lt;28&amp;gt;;
	enable-pin = &amp;lt;30&amp;gt;;
	led-pin = &amp;lt;0xFFFFFFFF&amp;gt;;
	led-pre = &amp;lt;0&amp;gt;;
	steps = &amp;lt;24&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/279105?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 21:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:945e6ccf-a844-4cca-b0a6-3023e1509b7d</guid><dc:creator>Coco cinelle</dc:creator><description>&lt;p&gt;Thank your for pointing me to this.&lt;br /&gt;&lt;br /&gt;When I enable CONFIG_QDEC_NRFX, and anslo CONFIG_SENSOR as this seems to be a required dependency, then my build fails, the first error being:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;[78/185] Building C object zephyr/drivers/sensor/qdec_nrfx/CMakeFiles/drivers__sensor__qdec_nrfx.dir/qdec_nrfx.c.obj&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;FAILED: zephyr/drivers/sensor/qdec_nrfx/CMakeFiles/drivers__sensor__qdec_nrfx.dir/qdec_nrfx.c.obj&lt;br /&gt;...&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;In file included from D:/ncs/v1.4.0/zephyr/include/arch/arm/aarch32/arch.h:20,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from D:/ncs/v1.4.0/zephyr/include/arch/cpu.h:19,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from D:/ncs/v1.4.0/zephyr/include/kernel_includes.h:38,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from D:/ncs/v1.4.0/zephyr/include/kernel.h:17,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from D:/ncs/v1.4.0/zephyr/include/init.h:11,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from D:/ncs/v1.4.0/zephyr/include/device.h:22,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from D:/ncs/v1.4.0/zephyr/include/drivers/sensor.h:23,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from D:/ncs/v1.4.0/zephyr/drivers/sensor/qdec_nrfx/qdec_nrfx.c:7:&lt;br /&gt;D:/ncs/v1.4.0/zephyr/drivers/sensor/qdec_nrfx/qdec_nrfx.c: In function &amp;#39;qdec_nrfx_channel_get&amp;#39;:&lt;br /&gt;zephyr/include/generated/devicetree_unfixed.h:1717:37: error: &amp;#39;DT_N_S_soc_S_qdec_40012000_P_steps&amp;#39; undeclared (first use in this function); did you mean &amp;#39;DT_N_S_soc_S_qdec_40012000_P_status&amp;#39;?&lt;br /&gt;&amp;nbsp;1717 | #define DT_N_INST_0_nordic_nrf_qdec DT_N_S_soc_S_qdec_40012000&lt;/p&gt;
&lt;p&gt;Of course I will search more on my side, but I just tell this in case the solution is not so obvious...&lt;br /&gt;&lt;br /&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QDEC example with nRF Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/279002?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 13:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d88d519b-d2e7-4aec-81c7-99ae1d928a3d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are no QDEC samples in nRF Connect SDK at the moment. You need to enable it with remember to enable &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_QDEC_NRFX.html#cmdoption-arg-CONFIG_QDEC_NRFX"&gt;CONFIG_QDEC_NRFX&lt;/a&gt;&amp;nbsp;in prj.conf. You can refer to the &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/master/drivers/include/nrfx_qdec.h"&gt;nrfx API&lt;/a&gt;&amp;nbsp;if you want to use it directly. You can also refer to how it is done in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf_desktop/doc/wheel.html?highlight=config_qdec_nrfx#nrf-desktop-wheel"&gt;wheel module&lt;/a&gt; (nrf\applications\nrf_desktop\src\hw_interface\wheel.c). Here the Zephyr Sensor API is used, which is an abstraction on top of the nrfx QDEC driver in this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>