<?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>When configuring a pin as a task pin in GPIOTE, is it still possible to use the input buffer?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49770/when-configuring-a-pin-as-a-task-pin-in-gpiote-is-it-still-possible-to-use-the-input-buffer</link><description>Hi there, 
 The PS says that a pin configure as a task will get the output overrided, but does it also get the input overrided? 
 Regards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Jul 2019 10:23:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49770/when-configuring-a-pin-as-a-task-pin-in-gpiote-is-it-still-possible-to-use-the-input-buffer" /><item><title>RE: When configuring a pin as a task pin in GPIOTE, is it still possible to use the input buffer?</title><link>https://devzone.nordicsemi.com/thread/198669?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 10:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2658abb3-5ee1-4a7d-8e56-43400209c167</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I understand correctly, you want to read the input of an GPIO configured as output (overridden by a peripheral). That is not possible. You need to then connect that specific pin to another GPIO (configured as input) to do this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When configuring a pin as a task pin in GPIOTE, is it still possible to use the input buffer?</title><link>https://devzone.nordicsemi.com/thread/198607?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 07:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b44f164f-bc8e-437d-829f-c84b1695bd9e</guid><dc:creator>David Fernandez</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;What I mean by reading the state of a task pin is that:&lt;/p&gt;
&lt;p&gt;1. I want the input buffer to be connected to the pin.&lt;/p&gt;
&lt;p&gt;2. I want to get the value seen by the input buffer.&lt;/p&gt;
&lt;p&gt;Since the task pin will be configured as S0D1 or H0D1, the interesting thing is to read it when the task sets it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When configuring a pin as a task pin in GPIOTE, is it still possible to use the input buffer?</title><link>https://devzone.nordicsemi.com/thread/198600?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 07:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8151426a-40b4-48a2-ac8f-f2799740fb9c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="David Fernandez"]I only need to connect 2 events to master SCL &amp;amp; SDA, and 2 tasks to slave SCL &amp;amp; SDA, but I need to be able to read the actual state on the task pins.[/quote]
&lt;p&gt;Taking two events and triggering two tasks in another peripheral is no problem, using individual PPI channels, so lets forget about that scenario.&lt;/p&gt;
&lt;p&gt;You want to read the state of a task pin - what do you mean by this? Do you want to read the actual state of the GPIO taken by a peripheral, or do you want to trigger something when that task occurs?&lt;/p&gt;
&lt;p&gt;It still sounds to me like you want to connect several peripherals to the same GPIO, ie: TWIS and GPIOTE to operate on the same pin.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When configuring a pin as a task pin in GPIOTE, is it still possible to use the input buffer?</title><link>https://devzone.nordicsemi.com/thread/198492?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 13:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28aede0c-36fa-464d-9bb8-86c53f148f5b</guid><dc:creator>David Fernandez</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;I am not planning on connect the same pin to 2 GPIOTE events.&lt;/p&gt;
&lt;p&gt;I only need to connect 2 events to master SCL &amp;amp; SDA, and 2 tasks to slave SCL &amp;amp; SDA, but I need to be able to read the actual state on the task pins.&lt;/p&gt;
&lt;p&gt;That is why I am asking about if the task configuration will force the INPUT OVERRIDE or only the DIR OVERRIDE.&lt;/p&gt;
&lt;p&gt;Can you confirm that?&lt;/p&gt;
&lt;p&gt;By software I can reverse the direction anytime it needs to, and checking the input value of an output task I can decide if the direction reverses or if the master inputs are forced down.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When configuring a pin as a task pin in GPIOTE, is it still possible to use the input buffer?</title><link>https://devzone.nordicsemi.com/thread/198430?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 11:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc2f206e-949e-41ef-8a7a-434a583d586b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;If I understand correctly; You&amp;#39;ll need to connect that specific signal into another available GPIO to do this, and connect those&amp;nbsp;externally on&amp;nbsp;your design (use a DK for testing for instance).&lt;/p&gt;
&lt;p&gt;You cannot override an output (SCL/SDA) to also set it as a input and connect that again to GPIOTE-&amp;gt;IN, using only one GPIO.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I&amp;#39;ve misunderstood anything, please correct me.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When configuring a pin as a task pin in GPIOTE, is it still possible to use the input buffer?</title><link>https://devzone.nordicsemi.com/thread/198407?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 10:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6c6a293-7133-462c-a933-125f15192f23</guid><dc:creator>David Fernandez</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;I know the figure.&lt;/p&gt;
&lt;p&gt;Not entirely sure if you have answer my question here.&lt;/p&gt;
&lt;p&gt;So my question is, when I use a pin as a GPIOTE _task_ pin, is it possible to get the input buffer to work by configuring the PIN_CFG.INPUT as 0? i.e. Would the INPUT_OVERRIDE prevent me from that or is that override only used for GPIOTE _event_ pins?&lt;/p&gt;
&lt;p&gt;I will be using the pin as a S0D1 (or should it be H0D1) to work in a I2C bus SCL/SDA.&lt;/p&gt;
&lt;p&gt;My aim is to forward a master from another set of pins and have the hardware do almost all the work, except when we set a pin to 1, and it reads as 0, where I will have to reverse the direction in GPIOTE and wait for it to be 1 again to set the direction back to what it was.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When configuring a pin as a task pin in GPIOTE, is it still possible to use the input buffer?</title><link>https://devzone.nordicsemi.com/thread/198384?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 09:44:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e990ce7-dd84-4945-af90-10fdc8f7de5f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This figure shows the different override &amp;quot;options&amp;quot; the hardware will apply:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpio.html?cp=3_0_0_5_8_0#concept_o12_bgv_bs"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpio.html?cp=3_0_0_5_8_0#concept_o12_bgv_bs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When configuring a pin as input, and connecting it to GPIOTE, you need to ensure that you set the PIN_CNF field INPUT to &amp;#39;0&amp;#39; to connect the signal internally to the actual pin:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpio.html?cp=3_0_0_5_8_1_9#register.PIN_CNF-0-31"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpio.html?cp=3_0_0_5_8_1_9#register.PIN_CNF-0-31&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you set different pull-configurations, these will not be&amp;nbsp;overridden by the hardware.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>