<?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>problem with nrf52832 gpio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92752/problem-with-nrf52832-gpio</link><description>Hi,I&amp;#39;m using nrf52832. I configured P0.20 as GPIO output,P0.22 as GPIO input.These two pins are connected wiht a 10Kohm resistor.I measured the voltage level on P0.22 is about 2V. 
 Why?The chip is broken?I have dozens of nrf52832 have the same problem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Oct 2022 09:15:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92752/problem-with-nrf52832-gpio" /><item><title>RE: problem with nrf52832 gpio</title><link>https://devzone.nordicsemi.com/thread/390206?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 09:15:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c461b9d-1c07-49b5-b453-f0004483fd70</guid><dc:creator>toddyu</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1665479051012v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;R52:10K;R41:1M;K5DET2 is GPIO input;K5DET1 is GPIO output.The two pins are connected with a 10Kohm resistor and a switch.There are 6 switches in my design.P0.20 and P0.22 are only mentioned as example.When the switch is open,the voltage level of output pin is 3.6V,the input pin is 0V.When the switch is closed,I expect the voltage level on the input pin would be 3.6V.But actually the voltage level varied,3.6V,2.6V,2V,0.4V,e.g.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with nrf52832 gpio</title><link>https://devzone.nordicsemi.com/thread/390183?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 08:11:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c88513-861d-45ac-b0b4-c8bd8128c5b2</guid><dc:creator>toddyu</dc:creator><description>&lt;p&gt;#define J11_IN 22&lt;br /&gt;#define J11_OUT 20&lt;br /&gt;int main(void)&lt;br /&gt;{&lt;br /&gt; bool erase_bonds;&lt;/p&gt;
&lt;p&gt;log_init();&lt;br /&gt; NRF_LOG_INFO(&amp;quot;TX_TANZHUAN %s started %s %s.&amp;quot;, APP_VERSION, __DATE__, __TIME__);&lt;/p&gt;
&lt;p&gt;timers_init();&lt;br /&gt; leds_init(&amp;amp;erase_bonds);&lt;br /&gt; gpiote_init();&lt;br /&gt; record_init();&lt;br /&gt; set_sensor_id(Readid());&lt;br /&gt; NRF_LOG_INFO(&amp;quot;id:%s&amp;quot;, get_sensor_id());&lt;br /&gt; nrf_gpio_cfg(&lt;br /&gt; J11_OUT,&lt;br /&gt; NRF_GPIO_PIN_DIR_OUTPUT,&lt;br /&gt; NRF_GPIO_PIN_INPUT_DISCONNECT,&lt;br /&gt; NRF_GPIO_PIN_PULLUP,&lt;br /&gt; NRF_GPIO_PIN_S0H1,&lt;br /&gt; NRF_GPIO_PIN_NOSENSE);&lt;/p&gt;
&lt;p&gt;nrf_gpio_cfg_output(J9_OUT);&lt;br /&gt; nrf_gpio_pin_set(J11_OUT);&lt;br /&gt; nrf_gpio_pin_set(J9_OUT);&lt;br /&gt; nrf_gpio_cfg_input(J9_IN,NRF_GPIO_PIN_NOPULL);&lt;br /&gt; // nrf_gpio_cfg_input(J10_IN,NRF_GPIO_PIN_NOPULL);&lt;br /&gt; nrf_gpio_cfg(&lt;br /&gt; J11_IN,&lt;br /&gt; NRF_GPIO_PIN_DIR_INPUT,&lt;br /&gt; NRF_GPIO_PIN_INPUT_CONNECT,&lt;br /&gt; NRF_GPIO_PIN_NOPULL,&lt;br /&gt; NRF_GPIO_PIN_S0S1,&lt;br /&gt; NRF_GPIO_PIN_NOSENSE);&lt;/p&gt;
&lt;p&gt;NRF_LOG_INFO(&amp;quot;num8 %d&amp;quot;,nrf_gpio_pin_read(J8_IN));&lt;br /&gt; NRF_LOG_INFO(&amp;quot;num9 %d&amp;quot;,nrf_gpio_pin_read(J9_IN));&lt;br /&gt; NRF_LOG_INFO(&amp;quot;num10 %d&amp;quot;,nrf_gpio_pin_read(J10_IN));&lt;br /&gt; NRF_LOG_INFO(&amp;quot;num11 %d&amp;quot;,nrf_gpio_pin_read(J11_IN));&lt;br /&gt; NRF_LOG_INFO(&amp;quot;num6 %d&amp;quot;,nrf_gpio_pin_read(J6_IN));&lt;br /&gt;while(1);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with nrf52832 gpio</title><link>https://devzone.nordicsemi.com/thread/390181?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 08:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17f96187-84a8-42d2-abc9-b8dd3fd04402</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Show us code. Note that you can pullup resistors on GPIO &lt;strong&gt;inputs&lt;/strong&gt;&lt;em&gt; &lt;/em&gt;that are only a bit larger than 10k per datasheet.&lt;/p&gt;
&lt;p&gt;That could explain your 2V resulting voltage on the pin.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>