<?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>Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50170/issue-with-setting-gpio-pins-as-output</link><description>Hello, I am new to developing with nrf and have been trying to follow tutorials on individually setting pins as output. I am working on just getting a specified pin to blink an LED. 
 My code is as follows: 
 #define PIN27 27 
 int main(void) { nrf_gpio_cfg_output</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Jul 2019 11:00:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50170/issue-with-setting-gpio-pins-as-output" /><item><title>RE: Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/thread/200731?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 11:00:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4e97a05-e25d-4aff-8701-cb0ce689b7d8</guid><dc:creator>awneil</dc:creator><description>[quote userid="81560" url="~/f/nordic-q-a/50170/issue-with-setting-gpio-pins-as-output/200603"]the led doesn&amp;#39;t work when connected to pin 16[/quote]
&lt;p&gt;So that means the problem is not (just) down to your code - doesn&amp;#39;t it?&lt;/p&gt;
&lt;p&gt;There must be something else (also) wrong with your LED and/or the way you are connecting.&lt;/p&gt;
[quote userid="81560" url="~/f/nordic-q-a/50170/issue-with-setting-gpio-pins-as-output/200603"] I just used a wire to connect to an LED on a breadboard. [/quote]
&lt;p&gt;You need to give more details!&lt;/p&gt;
&lt;p&gt;preferably, a full schematic (aka &amp;quot;circuit diagram&amp;quot;)&lt;/p&gt;
&lt;p&gt;some good, clear, in-focus photos could also help.&lt;/p&gt;
[quote userid="81560" url="~/f/nordic-q-a/50170/issue-with-setting-gpio-pins-as-output/200603"] I am pretty new to embedded systems in general [/quote]
&lt;p&gt;Do you have experience with basic electronics?&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s some good beginner stuff on LEDs:&amp;nbsp;&lt;a href="https://electronicsclub.info/leds.htm"&gt;https://electronicsclub.info/leds.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And some stuff on connecting LEDs to chips:&amp;nbsp;&lt;a href="https://electronicsclub.info/ics.htm"&gt;https://electronicsclub.info/ics.htm&lt;/a&gt;&lt;/p&gt;
[quote userid="81560" url="~/f/nordic-q-a/50170/issue-with-setting-gpio-pins-as-output/200603"]is there a better way to test if the pin toggling is working[/quote]
&lt;p&gt;As &lt;a href="https://devzone.nordicsemi.com/members/haakonsh"&gt;haakonsh&lt;/a&gt; says, an &lt;strong&gt;oscilloscope&lt;/strong&gt; is the key tool.&lt;/p&gt;
&lt;p&gt;You should be able to see that a pin is slowly toggling between high &amp;amp; low using a voltmeter - but a meter cannot show you if anything high-speed is happening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/thread/200719?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 10:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7d21aea-f4a2-4d26-bd29-233925604e65</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Yeah, an oscilloscope or digital analyzer.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Most likely you&amp;#39;ve not wired the LED circuit correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/thread/200603?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 17:52:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f46652a-b1f1-47eb-9588-fdaf884cbfda</guid><dc:creator>gojiman23</dc:creator><description>&lt;p&gt;No, the led doesn&amp;#39;t work when connected to pin 16. I just used a wire to connect to an LED on a breadboard. I am pretty new to embedded systems in general so is there a better way to test if the pin toggling is working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/thread/200602?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 17:42:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecf3b54d-5802-4fe2-92f7-83f9c5310972</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So if you disconnect this &amp;quot;external LED&amp;quot; - is the pin toggling OK ?&lt;/p&gt;
&lt;p&gt;If you connect&amp;nbsp;this &amp;quot;external LED&amp;quot; -&amp;nbsp;to&amp;nbsp; pin 16, does it work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/thread/200601?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 16:57:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8be1e2fa-b748-4325-9fc5-065d25465d09</guid><dc:creator>gojiman23</dc:creator><description>&lt;p&gt;Sorry, I meant an external LED*&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/thread/200599?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 16:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8c69940-96ef-4b3c-9507-8fcefa622ff6</guid><dc:creator>gojiman23</dc:creator><description>&lt;p&gt;Thanks, so I figured out that I am indeed using the right pin. If i switch the code to toggle Pin 16 then it works just fine on the board&amp;#39;s LED, but for some reason an external LCD connected to pin 27 will not. Are there additional adjustments I have to&amp;nbsp; make to my code for that or is it more likely to be a hardware issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/thread/200407?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 07:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed88e9cb-b7ef-47b1-b596-b94eb96b1ff0</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;P0.27&amp;#39;s location on the DK is described in the link in my last post.&amp;nbsp; Your code is correct btw.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/thread/200372?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 22:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b80d240-a3aa-4225-b5ef-ebcf4839b063</guid><dc:creator>gojiman23</dc:creator><description>&lt;p&gt;So how would I access p0.27 instead? Thank you for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/thread/200211?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 08:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b91e0a6-d1b0-4687-9aa8-904740399190</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;p0.27 is not the same as pin 27 on a given chip package.&lt;br /&gt;&lt;br /&gt;Are you sure you&amp;#39;re measuring the correct pin? See&amp;nbsp;&lt;a class="active" title="Connector interface" href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/nrf52840_DK/connector_if.html?cp=3_0_4_7_5"&gt;Connector interface&lt;/a&gt;&amp;nbsp;for the position of p0.27&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/thread/200166?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 23:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89e3510b-8304-480f-96b5-4e9eccb2e5e4</guid><dc:creator>gojiman23</dc:creator><description>&lt;p&gt;I&amp;#39;m using the nrf52840PDK. what is the difference between pin27 and P0.27?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with setting GPIO pins as output.</title><link>https://devzone.nordicsemi.com/thread/200165?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 23:15:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:039ed468-6c7f-49d4-8b7e-9089ee5b8293</guid><dc:creator>johnny</dc:creator><description>&lt;p&gt;This look like correct&lt;/p&gt;
&lt;p&gt;what is your hardware design?&lt;/p&gt;
&lt;p&gt;maybe your pin use pin27 not P0.27&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>