<?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 should I use the GPIO of NRF52840 to capture a interruption of the falling edge and trigger it?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40789/how-should-i-use-the-gpio-of-nrf52840-to-capture-a-interruption-of-the-falling-edge-and-trigger-it</link><description>hi everyone! 
 I am developing NRF52840 with the Development Kit. 
 I am trying to use a GPIO to o capture a external HIGH-TO-LOW signal and then trigger a LED. 
 I I learned the examp called pin_change_int. 
 But i find it&amp;#39;s easy to capture a button</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Nov 2018 09:57:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40789/how-should-i-use-the-gpio-of-nrf52840-to-capture-a-interruption-of-the-falling-edge-and-trigger-it" /><item><title>RE: How should I use the GPIO of NRF52840 to capture a interruption of the falling edge and trigger it?</title><link>https://devzone.nordicsemi.com/thread/158792?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 09:57:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c880826-9d75-437b-9b1b-ae08b3f41726</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Does your project compile?&lt;/p&gt;
&lt;p&gt;Maybe there was some copy paste errror, but line 30 from your snippet seems to have some missing chars.&lt;/p&gt;
&lt;p&gt;in_config.is_watcher_GPIO_PIN_NOPULL;&lt;/p&gt;
&lt;p&gt;Do you mean:&lt;/p&gt;
&lt;p&gt;in_config.is_watcher = 0 or 1;?&lt;/p&gt;
&lt;p&gt;in_config.pull = NRF_GPIO_PIN_NOPULL?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regardless,&lt;/p&gt;
&lt;p&gt;If you want to toggle the LED on High to Low on your input pin, I suggest that you change&lt;/p&gt;
&lt;p&gt;nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(true);&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;nrf_drv_gpiote_in_config_t in_config =&amp;nbsp;GPIOTE_CONFIG_IN_SENSE_HITOLO(true);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;next, you are trying to use P0.01 as an input pin. If you look at the back side of your nRF52840 DK, you will see that P0.00 and P0.01 are not connected to the pinout that you are connected to. They are connected to the XTAL. It also describes what solder bridges to cut and solder in order to connect the pins P0.01 to the pinouts on the DK.&lt;/p&gt;
&lt;p&gt;Unless you really need to use P0.01 and P0.00, I suggest you use some other pins, because the XTAL can&amp;#39;t be moved. It is possible to not use the XTAL, but then you will need to change the settings on every BLE example you want to use on that DK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want to connect the pinout to the chip, cut SB1 and SB2, and short SB3 and SB4.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In case you choose to use another pin, please note some other pins that are typically used for something else:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P0.11 - Button&lt;br /&gt;&lt;/span&gt;&lt;span&gt;P0.12 -&amp;nbsp;Button&lt;br /&gt;&lt;/span&gt;&lt;span&gt;P0.24 -&amp;nbsp;Button&lt;br /&gt;&lt;/span&gt;&lt;span&gt;P0.25 -&amp;nbsp;Button&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P0.13 - LED&lt;br /&gt;P0.14 - LED&lt;br /&gt;P0.15 - LED&lt;br /&gt;P0.16 - LED&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P0.09 - NFC&lt;br /&gt;P0.10 - NFC&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;in addition to the UART pins, P0.05-P0.08, RESET pin, P0.18, SWO pin P1.00,&amp;nbsp; and the QSPI pins, P0.17 + P0.19-23.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I use the GPIO of NRF52840 to capture a interruption of the falling edge and trigger it?</title><link>https://devzone.nordicsemi.com/thread/158554?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 08:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b32815c-aa6f-4afd-98f0-6b79764c5a3d</guid><dc:creator>work hard-hard work</dc:creator><description>&lt;p&gt;HELP &amp;nbsp;ME PLEASE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I use the GPIO of NRF52840 to capture a interruption of the falling edge and trigger it?</title><link>https://devzone.nordicsemi.com/thread/158520?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 02:13:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52e4504e-c300-41c1-a8f6-f49129a92844</guid><dc:creator>work hard-hard work</dc:creator><description>&lt;p&gt;the&amp;nbsp;Signal parameters is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Width: +1.9945ms&lt;br /&gt;Cycle: +2.00145ms&lt;br /&gt;Frequency: 499.64Hz&lt;br /&gt;Duty cycle: 99.90%&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1542852827227v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I use the GPIO of NRF52840 to capture a interruption of the falling edge and trigger it?</title><link>https://devzone.nordicsemi.com/thread/158519?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 02:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2cebba2-d556-4eaa-96d3-ccb5483d5ebc</guid><dc:creator>work hard-hard work</dc:creator><description>&lt;p&gt;and this is the screenshot of the external signal&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1542852532657v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>