<?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>Setting gpio ports as outputs and setting them to Vdd</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37764/setting-gpio-ports-as-outputs-and-setting-them-to-vdd</link><description>I am trying to configure two ports as outputs, setting them to Vdd and toggling them. The two ports in question are Po.06 and Po.07. 
 Here is my code to configure these ports as outputs, set them, then toggle each periodically. 
 
 
 Here is the board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Oct 2018 23:38:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37764/setting-gpio-ports-as-outputs-and-setting-them-to-vdd" /><item><title>RE: Setting gpio ports as outputs and setting them to Vdd</title><link>https://devzone.nordicsemi.com/thread/152278?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 23:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a57a4d41-d064-40c5-9131-1d379d007120</guid><dc:creator>Benjamin Willis</dc:creator><description>&lt;p&gt;Sorry for being absent for so long. The image that you provided gives me the same result that I was getting with my own code above. Also, I have tested on two different boards with identical design, and they all behave identically. So I&amp;nbsp;think that&amp;#39;s enough to conclude that the hardware is the issue. Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting gpio ports as outputs and setting them to Vdd</title><link>https://devzone.nordicsemi.com/thread/146053?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 08:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e80d52f-8091-4c9f-aa2a-50f180c5606e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I don&amp;#39;t think the issue is related to your FW code then. You may program attached .hex file if you want to confirm the behavior with a different FW image.&amp;nbsp; It toggles pin 6 and 7 at 1 s interval using SW delays like you did in your code. I&amp;#39;ve tested it on a DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfjprog --program pin_toggle_w_softdevice.hex --chiperase -r&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pin_5F00_toggle_5F00_w_5F00_softdevice.hex"&gt;devzone.nordicsemi.com/.../pin_5F00_toggle_5F00_w_5F00_softdevice.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Do you have more than one board to test this on? In case it is a hw issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting gpio ports as outputs and setting them to Vdd</title><link>https://devzone.nordicsemi.com/thread/145996?ContentTypeID=1</link><pubDate>Mon, 27 Aug 2018 19:04:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:614bd90f-c17f-482c-a6df-165f24f7a33c</guid><dc:creator>Benjamin Willis</dc:creator><description>&lt;p&gt;I have made sure to set the SPI and TWI pins away from Po.06 and Po.07, so that&amp;#39;s not an issue. The two pins 6 &amp;amp; 7 are actually controlling the gates of MOSFETs, and those MOSFETs get their power from the bus. The MOSFETs are essentially on/off switches for the LEDs. So it&amp;#39;s not a current issue either.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting gpio ports as outputs and setting them to Vdd</title><link>https://devzone.nordicsemi.com/thread/145960?ContentTypeID=1</link><pubDate>Mon, 27 Aug 2018 14:00:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16afadaa-e1d2-416a-b3b4-830cd015911d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see anything in your code that can override the IO configuration (SPI,TWI,etc). Do you know what the max. sink/source current in your case, and is it the same for both LEDs? If needed, you can change the drive strength in the GPIO pin configuration &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=2_1_0_19_3_0#unique_1511470077"&gt;(GPIO spec.&lt;/a&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>