<?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>How to define PIN in nrf52?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70123/how-to-define-pin-in-nrf52</link><description>I want to used p1.01 and p1.2 and p0.13,so how to defined it. 
 I do like 
 #define led0 13 to used pin p0.13 its working but how to define pin P1.01 and all</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Feb 2021 08:16:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70123/how-to-define-pin-in-nrf52" /><item><title>RE: How to define PIN in nrf52?</title><link>https://devzone.nordicsemi.com/thread/292385?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2021 08:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbc3a174-a847-43b2-b650-49ff2b6c13e2</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Here is the &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8508.blinky.zip"&gt;devzone.nordicsemi.com/.../8508.blinky.zip&lt;/a&gt;&amp;nbsp;I have verified, you expect to see LED1 blink and P1.08 level toggle every 500ms. If it does not work, can you send a picture to show me your hardware connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define PIN in nrf52?</title><link>https://devzone.nordicsemi.com/thread/292070?ContentTypeID=1</link><pubDate>Sat, 30 Jan 2021 21:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:866d7e6a-5b82-4489-bcee-262369f2ee38</guid><dc:creator>shadab</dc:creator><description>&lt;p&gt;I used sdk17 and try the same way to config port 1 pin as output to blink external LEd but it wont work and for port 0 pin its working, I&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**
 * Copyright (c) 2014 - 2020, Nordic Semiconductor ASA
 *
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice, this
 *    list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form, except as embedded into a Nordic
 *    Semiconductor ASA integrated circuit in a product or a software update for
 *    such product, must reproduce the above copyright notice, this list of
 *    conditions and the following disclaimer in the documentation and/or other
 *    materials provided with the distribution.
 *
 * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
 *    contributors may be used to endorse or promote products derived from this
 *    software without specific prior written permission.
 *
 * 4. This software, with or without modification, must only be used with a
 *    Nordic Semiconductor ASA integrated circuit.
 *
 * 5. Any software provided in binary form under this license must not be reverse
 *    engineered, decompiled, modified and/or disassembled.
 *
 * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA &amp;quot;AS IS&amp;quot; AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */
/** @file
 *
 * @defgroup blinky_example_main main.c
 * @{
 * @ingroup blinky_example
 * @brief Blinky Example Application main file.
 *
 * This file contains the source code for a sample application to blink LEDs.
 *
 */

#include &amp;lt;stdbool.h&amp;gt;
#include &amp;lt;stdint.h&amp;gt;
#include &amp;quot;nrf_delay.h&amp;quot;
//#include &amp;quot;boards.h&amp;quot;
//#include &amp;quot;pca10000.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;

#define LED_ext          NRF_GPIO_PIN_MAP(0,5)
#define led0             NRF_GPIO_PIN_MAP(0,13)
#define led1             NRF_GPIO_PIN_MAP(1,8)                 // LED0 P1.8 Not working


 
/**
 * @brief Function for application main entry.
 */
int main(void)
{
    nrf_gpio_cfg_output(led0); // config the as output pin
    nrf_gpio_cfg_output(led1); // config the as output pin
    nrf_gpio_cfg_output(LED_ext); // config the as output pin


    while(1)
    {

          nrf_gpio_pin_toggle(led0);
          nrf_delay_ms(500);
          nrf_gpio_pin_toggle(led1);
          nrf_delay_ms(500);
          nrf_gpio_pin_toggle(LED_ext);
          nrf_delay_ms(500);

    }
}
/**
 *@}
 **/
&lt;/pre&gt; shared the code below&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define PIN in nrf52?</title><link>https://devzone.nordicsemi.com/thread/291948?ContentTypeID=1</link><pubDate>Fri, 29 Jan 2021 10:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa536dd9-2be3-49fc-85e6-ca6fd4418ec8</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;I am working. ;-)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could explain what you have done by far? Did you check the original example with a&amp;nbsp;&lt;span&gt;logic analyzer or oscilloscope, what does it look like?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define PIN in nrf52?</title><link>https://devzone.nordicsemi.com/thread/291869?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2021 19:22:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32edf931-4b2d-40d8-b59d-74275e201605</guid><dc:creator>shadab</dc:creator><description>&lt;p&gt;Hi charlie !! not working&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define PIN in nrf52?</title><link>https://devzone.nordicsemi.com/thread/291499?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2021 12:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dc81efd-c8a0-441a-8183-7911859334aa</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Shadab,&lt;/p&gt;
&lt;p&gt;Not sure how you test this, anyway let&amp;#39;s find a common ground.&lt;/p&gt;
&lt;p&gt;In&amp;nbsp;nRF5_SDK_17.0.2, there is a simple example on&amp;nbsp;examples\peripheral\blinky. Make sure the original blink example works, then you can modify it like below to verify if pins at &lt;span&gt;GPIO1&lt;/span&gt; works or not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    /* Configure board. */
    //bsp_board_init(BSP_INIT_LEDS);
    nrf_gpio_cfg_output(NRF_GPIO_PIN_MAP(1,10));

    /* Toggle LEDs. */
    while (true)
    {
        //for (int i = 0; i &amp;lt; LEDS_NUMBER; i++)
        //{
            //bsp_board_led_invert(i);
            nrf_gpio_pin_toggle(42);
            nrf_delay_us(0.5);
        //}
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here both&amp;nbsp;NRF_GPIO_PIN_MAP(1,10) and 42 points to oin1.10. You should see the pin toggle with the help of a logic analyzer or oscilloscope.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define PIN in nrf52?</title><link>https://devzone.nordicsemi.com/thread/291428?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2021 07:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec08678a-0042-4af3-ada6-63911283b20a</guid><dc:creator>shadab</dc:creator><description>&lt;p&gt;hi charlie, I try on nrf52833 DK board but its not working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define PIN in nrf52?</title><link>https://devzone.nordicsemi.com/thread/287529?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2021 13:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:390d307d-52ab-4ea6-a590-400ac471bd83</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Shadab,&lt;/p&gt;
&lt;p&gt;Just add 32 to the pin number of GPIO1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>