<?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>Keyboard gpio init code , pins set as output but pull up/down resistor disable.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35352/keyboard-gpio-init-code-pins-set-as-output-but-pull-up-down-resistor-disable</link><description>Hi, I am confused by this config. 
 static void drv_keyboard_gpio_init(void) { // Make sure that columns will drive 0 when they will be configured as outputs. NRF_GPIO-&amp;gt;OUTCLR = KEYBOARD_MASK_COL_ALL; 
 // Configure Columns. drv_keyboard_gpio_cfg(KEYBOARD_MASK_COL_ALL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jun 2018 09:07:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35352/keyboard-gpio-init-code-pins-set-as-output-but-pull-up-down-resistor-disable" /><item><title>RE: Keyboard gpio init code , pins set as output but pull up/down resistor disable.</title><link>https://devzone.nordicsemi.com/thread/136097?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 09:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:388bb401-6cd5-40bc-a990-440a52f3bd6c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;If you look at for instance the configuration register for the first GPIO:&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=2_1_0_19_2_9#register.PIN_CNF-0"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=2_1_0_19_2_9#register.PIN_CNF-0&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you set DRIVE fields to S0S1, then it&amp;#39;s a normal push-pull, if you for instance set S0D1, then it will be open drain (you may enable internal pull or use external).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keyboard gpio init code , pins set as output but pull up/down resistor disable.</title><link>https://devzone.nordicsemi.com/thread/136019?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 00:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ee3b039-2fbc-48f7-9c0d-8fe64f1fbf8b</guid><dc:creator>Ralph</dc:creator><description>&lt;p&gt;If I enable the pull-up/down resistor, it would become open-drain?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keyboard gpio init code , pins set as output but pull up/down resistor disable.</title><link>https://devzone.nordicsemi.com/thread/135987?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 15:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae88287a-f5ec-4d5d-8f5b-3e5ce926c875</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Both are possible through configuration, but in this case push-pull.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keyboard gpio init code , pins set as output but pull up/down resistor disable.</title><link>https://devzone.nordicsemi.com/thread/135895?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 11:16:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84d8766a-03a5-447e-a46b-b94c64a061c7</guid><dc:creator>Ralph</dc:creator><description>&lt;p&gt;Hi, Kenneth&lt;/p&gt;
&lt;p&gt;What method nrf52832 using to set low or high?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;push-pull or open-drain?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keyboard gpio init code , pins set as output but pull up/down resistor disable.</title><link>https://devzone.nordicsemi.com/thread/135893?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 11:11:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:111ca623-e6a8-4741-9c7d-3b52a9484c1d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;All GPIO&amp;#39;s can be set logic low (GND) or high (VDD), with or without pull up/down resistors:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=2_1_0_19#concept_zyt_tcb_lr"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=2_1_0_19#concept_zyt_tcb_lr&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>