<?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>How many interrupt pins we can enable in NRF52840?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95292/how-many-interrupt-pins-we-can-enable-in-nrf52840</link><description>Hi Everyone, 
 I am using NRF52840 in my project and compiling my code using sdk 17.0.2. My application requires 7 interrupt pins to be enabled. However when I am enabling all the interrupts i get an error. I observed that the sdk is allowing only 4 interrupts</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Jan 2023 07:54:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95292/how-many-interrupt-pins-we-can-enable-in-nrf52840" /><item><title>RE: How many interrupt pins we can enable in NRF52840?</title><link>https://devzone.nordicsemi.com/thread/402894?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 07:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec23fc9c-5cc5-4f60-86fd-01d37f5ff5d7</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Thank you so much. Setting GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS to 7 resolved my issue. Now it is working even if I set&amp;nbsp;&lt;span&gt;GPIOTE_CONFIG_IN_SENSE_HITOLO(false).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How many interrupt pins we can enable in NRF52840?</title><link>https://devzone.nordicsemi.com/thread/402892?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 07:26:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e020962-0637-4d04-b06f-d4e2a7276d1e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="snehal_2789"]&lt;p&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;According to your suggestion I changed the config in sdk_config.h as below:-&lt;/p&gt;
&lt;p&gt;#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS&lt;br /&gt;#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS&amp;nbsp; &amp;nbsp; &amp;nbsp; 7&amp;nbsp;&lt;br /&gt;#endif&lt;/p&gt;[/quote]
&lt;p&gt;As you are using the nrf_drv API you need to set the&amp;nbsp;GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS and not the&amp;nbsp;NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS, and then this should work.&lt;/p&gt;
[quote user="snehal_2789"]&lt;p&gt;Then I changed the configuration of pins from&amp;nbsp;GPIOTE_CONFIG_IN_SENSE_HITOLO(false) to&amp;nbsp;GPIOTE_CONFIG_IN_SENSE_HITOLO(true). Now I am not getting any errors.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is this change ok?&lt;/p&gt;[/quote]
&lt;p&gt;Yes, in most cases. When set to true, you are using GPIOTE instead of port event. The down side is a slightly higher power consumption (which may or may not be an issue for you). There are 8 GPIOTE channels on the nRF52840, so using 7 is no problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How many interrupt pins we can enable in NRF52840?</title><link>https://devzone.nordicsemi.com/thread/402885?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 05:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6baabe5-4aeb-4365-af1d-3508d37c0a4e</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&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;According to your suggestion I changed the config in sdk_config.h as below:-&lt;/p&gt;
&lt;p&gt;#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS&lt;br /&gt;#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS&amp;nbsp; &amp;nbsp; &amp;nbsp; 7&amp;nbsp;&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Previously the value set was 1. But still was not able to enable the interrupts.&lt;/p&gt;
&lt;p&gt;Then I changed the configuration of pins from&amp;nbsp;GPIOTE_CONFIG_IN_SENSE_HITOLO(false) to&amp;nbsp;GPIOTE_CONFIG_IN_SENSE_HITOLO(true). Now I am not getting any errors.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is this change ok?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How many interrupt pins we can enable in NRF52840?</title><link>https://devzone.nordicsemi.com/thread/402853?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2023 15:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33e19442-2200-4adb-9c62-c5b2eea769ec</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You configure the pins with&amp;nbsp;GPIOTE_CONFIG_IN_SENSE_HITOLO(false);, and as you set false here that means you are not using GPIOTE. That could be OK, but in that case you need to adjust the number of low power events (whici is 4 by default in most applications). To do so, adjust&amp;nbsp;GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS in sdk_config.h to a higher value (at least 7).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>