<?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>Using UARTE1 as event line</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96456/using-uarte1-as-event-line</link><description>I am interfacing nRF to a GPRS modem. In order to ensure the modem is in a known state I do a power cycle of the modem and I determine completion by monitoring the TX line from the modem using the UARTE1 RX. When the modem powers down the modem TX line</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Feb 2023 08:39:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96456/using-uarte1-as-event-line" /><item><title>RE: Using UARTE1 as event line</title><link>https://devzone.nordicsemi.com/thread/409290?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 08:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e839cd4a-ce1c-4a21-87f6-54b75434b63e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should get a no mem error&amp;nbsp;returned from&amp;nbsp;nrf_drv_gpiote_in_init() the problem is that you have configured too few low power events, so it makes sense that it is not the issue. Even so, please note that&amp;nbsp;GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS will be used, and not&amp;nbsp;NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS (generally, the nrfx configurations are not used - &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/nrfx_migration_user_guide.html"&gt;see doc for details&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using UARTE1 as event line</title><link>https://devzone.nordicsemi.com/thread/409271?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 07:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0659f59-19b5-4370-a0c0-14d4430fae3c</guid><dc:creator>Malcolm</dc:creator><description>&lt;p&gt;I changed the number of events and I can generate interupt on both lines, including UARTE1 RX line, so that indicates the interrupt mechansm is work.&lt;/p&gt;
&lt;p&gt;My software has 4 events defined and I configure only 2 so this is not my issue. I will investigate further.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using UARTE1 as event line</title><link>https://devzone.nordicsemi.com/thread/409232?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2023 19:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43d88c27-44fe-4a91-9c45-22a533cac0c0</guid><dc:creator>Malcolm</dc:creator><description>&lt;p&gt;I went to the sample you suggested and followed the code. I have determined the issue.&lt;/p&gt;
&lt;p&gt;I am configuring 2 interrupt lines but&lt;/p&gt;
&lt;p&gt;#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1&lt;/p&gt;
&lt;p&gt;whereas 8 are configure for high power&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using UARTE1 as event line</title><link>https://devzone.nordicsemi.com/thread/409150?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2023 12:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da318b3-b66a-44f1-af78-88e76d635fa8</guid><dc:creator>Malcolm</dc:creator><description>&lt;p&gt;This snippet is buried in 1000&amp;#39;s of lines of code so anything could be happening. I am going to strip this back and replace the switch line for the UARTE1 RX line and use a jumper as switch. If that works I will move forward.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using UARTE1 as event line</title><link>https://devzone.nordicsemi.com/thread/409149?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2023 12:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd8066ea-d27f-4f42-b028-722bfd388e20</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. I do not immediately spot any issues in the code snippet you have here though, and it should work. You can refer to the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/pin_change_int_example.html"&gt;pin change interrupt example&lt;/a&gt;&amp;nbsp;in the SDK. That would be more or less equivalent with that you have here except that it triggers on both high and low and use GPIOTE (high accuracy, at the expense of current consumption). But if you change the configuration to the input pin from&amp;nbsp;PIOTE_CONFIG_IN_SENSE_TOGGLE(false)&amp;nbsp;to&amp;nbsp;NRFX_GPIOTE_CONFIG_IN_SENSE_LOTOHI(false) the example still works and demonstrate what you need.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using UARTE1 as event line</title><link>https://devzone.nordicsemi.com/thread/408915?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 14:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04f0d5f9-cdfc-4e7f-975c-b50ef38bca36</guid><dc:creator>Malcolm</dc:creator><description>&lt;p&gt;I do not enable as a UART until I see the line go high once the modem has initialised.&lt;/p&gt;
&lt;p&gt;Currently this works in polling mode; I set a timer that polls the line every 100ms and this works so it is acting as input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using UARTE1 as event line</title><link>https://devzone.nordicsemi.com/thread/408877?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 13:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de589cff-2c50-4393-bbd9-3e478ffcb550</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you disable the UART first? If not, this will not work (you cannot use a pin as GPIO and a UART pin at the same time).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>