<?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>PCA10005 GPIO: unable to drive a high voltage level.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3944/pca10005-gpio-unable-to-drive-a-high-voltage-level</link><description>Hi, 
 I have the following code running on NRF51822: 
 int main(void)
{
 // Configure GPIO 08 (P1.0) as output.

 nrf_gpio_cfg_output(8);
 // Set HI on GPIO 08(P1.0)
 nrf_gpio_pin_set(8);

...
}
 
 However, when I check the voltage at pin</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 05 Oct 2014 14:51:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3944/pca10005-gpio-unable-to-drive-a-high-voltage-level" /><item><title>RE: PCA10005 GPIO: unable to drive a high voltage level.</title><link>https://devzone.nordicsemi.com/thread/14192?ContentTypeID=1</link><pubDate>Sun, 05 Oct 2014 14:51:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9e5030c-afe5-4bac-becd-1c7a1167da68</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Thank you for answering your own question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10005 GPIO: unable to drive a high voltage level.</title><link>https://devzone.nordicsemi.com/thread/14191?ContentTypeID=1</link><pubDate>Sun, 05 Oct 2014 13:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4cbc2b2-92aa-4d31-9b5e-dbf28e2e5eb9</guid><dc:creator>NK</dc:creator><description>&lt;p&gt;At the end, it turned out to be a grounding issue - I was using the DK without the NRFGO motherboard &amp;amp; hence had to hook up the VCC &amp;amp; GND manually. The GND connection was not perfect due to which the LED was not lighting up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10005 GPIO: unable to drive a high voltage level.</title><link>https://devzone.nordicsemi.com/thread/14190?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2014 16:33:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdf2de44-db9c-4b59-8881-eedca9f2d20e</guid><dc:creator>NK</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;Thank you for reformatting. &amp;quot;P1&amp;quot; in my post is referring to the &amp;quot;connector P1&amp;quot; on the PCA10005 board (i.e., the NRF51822 development kit board). On this board, the logical pin number 8 in the GPIO block is routed to pin 29 of the connector P1. And that is where I am checking the voltage using a multimeter.&lt;/p&gt;
&lt;p&gt;Actually, I also refer to a &amp;quot;P1.0&amp;quot; which refers to logical pin 8 in the GPIO block - also pin 0 of GPIO port 1. The connector being labeled P1 probably adds to the confusion!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10005 GPIO: unable to drive a high voltage level.</title><link>https://devzone.nordicsemi.com/thread/14189?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2014 15:20:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b337d5-8703-462e-b0cf-38eecbdcbc70</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I took a second and reformatted the code and now I see what you mean. I&amp;#39;m a bit confused as I don&amp;#39;t recall the part having a P1, only P0. Keep in mind that the pin number you are passing to these functions isn&amp;#39;t the physical pin number on the part. It is the logical pin number in the GPIO block. I&amp;#39;ll assume you are using the QFN48 for this next statement: If you want to set physical pin 8 high, that is P0.4 so you would pass a 4 to the cfg_output and pin_set functions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10005 GPIO: unable to drive a high voltage level.</title><link>https://devzone.nordicsemi.com/thread/14188?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2014 14:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7272926-7e40-431d-b3ec-cd0ec0cbe1b4</guid><dc:creator>NK</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;Apologies if it was not clear - I think some of the formatting in my original post got removed, but I do have that statement in my code above. I would appreciate any pointers on how I could debug the fact that inspite of having the &amp;quot;nrf_gpio_pin_set&amp;quot; statement in my code, I am still not seeing a HIGH voltage level on the GPIO pin.&lt;/p&gt;
&lt;p&gt;Thanks,
NK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10005 GPIO: unable to drive a high voltage level.</title><link>https://devzone.nordicsemi.com/thread/14187?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2014 12:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b9d93c-8626-4da6-a1fb-52e18786f637</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you look at the GPIO section of the nRF51822 reference manual, it would appear that GPIO pins are set to low by default. You need to do a nrf_gpio_pin_set(8); in order to get the high value on the pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>