<?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>NRF GPIO Example OutPut Write</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59165/nrf-gpio-example-output-write</link><description>Hi, 
 To turn on and turn off the LED nrf SDK is using following code in sdk12.1. 
 
 #define LEDS_OFF(leds_mask) do { NRF_GPIO-&amp;gt;OUTSET = (leds_mask) &amp;amp; (LEDS_MASK &amp;amp; LEDS_INV_MASK); \ NRF_GPIO-&amp;gt;OUTCLR = (leds_mask) &amp;amp; (LEDS_MASK &amp;amp; ~LEDS_INV_MASK); } while</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Mar 2020 09:13:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59165/nrf-gpio-example-output-write" /><item><title>RE: NRF GPIO Example OutPut Write</title><link>https://devzone.nordicsemi.com/thread/240368?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2020 09:13:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:109a9037-eb8e-4ded-b8cc-28315c95486c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;That is not configurable in SW, this is an HW decision that is made by the board designer. The LEDs are physically connected either between VDD and the GPIO or between GND and the GPIO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF GPIO Example OutPut Write</title><link>https://devzone.nordicsemi.com/thread/240320?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 18:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41847a1e-447a-4e12-9e4f-730b84d4b16c</guid><dc:creator>SachRafa</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Thanks for the update. How to configure the LED to connect between GPIO and ground?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Rafa.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF GPIO Example OutPut Write</title><link>https://devzone.nordicsemi.com/thread/240181?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 08:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad0aa3b1-cbf1-411e-aa4b-891951271cf7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This depends on how the LEDs are connected. On our DKs, the LEDs are active low and are connected between the GPIO and VDD. This means that if the GPIO is set high (i.e. VDD), both nodes of the LED will have the same voltage potential and no current will flow through it. When the GPIO is cleared (i.e. GND), the voltage difference between the two nodes will create a current flow, lighting up the LED.&lt;/p&gt;
&lt;p&gt;It would also be possible to connect the LED between the GPIO and GND. In that case, you would use SET and CLR to turn on and off the LED as you expect. The main reason for using active low LEDs is that the GPIOs of the nRF5x ICs can sink (i.e. receive) more current than it can source (i.e. send out).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>