<?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 to set the GPIO as input and high LOW pin?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62822/how-to-set-the-gpio-as-input-and-high-low-pin</link><description>I am using nrf52832 ble, I want to set the pin P0.2 low as analog input and p0.3 high as analog input . 
 #define AIN0 2 // analog pin p0.2 
 #define AIN1 3 
 #define AIN0_PIN_CONFIG_HIGH ((GPIO_PIN_CNF_SENSE_High &amp;lt;&amp;lt; GPIO_PIN_CNF_SENSE_Pos) | \ (GPIO_PIN_CNF_DRIVE_S0S1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2020 11:12:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62822/how-to-set-the-gpio-as-input-and-high-low-pin" /><item><title>RE: how to set the GPIO as input and high LOW pin?</title><link>https://devzone.nordicsemi.com/thread/256156?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 11:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fca94ed-0869-49e8-952e-69d2d460d93a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If you are using nRF5 SDK, then take look at the pin_change_int example.&lt;/p&gt;
&lt;p&gt;For low-to-high sense, use&amp;nbsp;GPIOTE_CONFIG_IN_SENSE_LOTOHI&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_LOTOHI(true);
    in_config.pull = NRF_GPIO_PIN_PULLDOWN;

    err_code = nrf_drv_gpiote_in_init(PIN_IN, &amp;amp;in_config, in_pin_handler);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set the GPIO as input and high LOW pin?</title><link>https://devzone.nordicsemi.com/thread/256046?ContentTypeID=1</link><pubDate>Sat, 20 Jun 2020 21:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93973100-e5d3-4294-b1d6-11df05548ab9</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Sorry - still no idea what you mean by that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set the GPIO as input and high LOW pin?</title><link>https://devzone.nordicsemi.com/thread/256028?ContentTypeID=1</link><pubDate>Sat, 20 Jun 2020 10:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58245b7c-97b1-4e9c-9d49-985c65b91ef2</guid><dc:creator>dewal</dc:creator><description>&lt;p&gt;i want to set that pin as gpio (analog inuput ) low signal and high sense signal.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set the GPIO as input and high LOW pin?</title><link>https://devzone.nordicsemi.com/thread/256026?ContentTypeID=1</link><pubDate>Sat, 20 Jun 2020 09:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4561ece-ebfd-4dac-9997-8a7f090db9a7</guid><dc:creator>awneil</dc:creator><description>[quote userid="90016" url="~/f/nordic-q-a/62822/how-to-set-the-gpio-as-input-and-high-low-pin"]set the pin P0.2 low as analog input and p0.3 high as analog input[/quote]
&lt;p&gt;What do you mean by that?&lt;/p&gt;
&lt;p&gt;Do you want an analogue input with pull-up/down?&lt;/p&gt;
&lt;p&gt;Or what?&lt;/p&gt;
&lt;p&gt;Please explain further.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3223._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>