<?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>Custom board based on nrf52832 s132 pin input P0.09</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31316/custom-board-based-on-nrf52832-s132-pin-input-p0-09</link><description>Hi, 
 we are using a custom board, with codes tested on a NRF52 DK. We reconfigured the pins and when using pin P0.09 (by default NFC) as an input &amp;quot;active_high&amp;quot; and with &amp;quot;internal pull_down&amp;quot; , we get some voltage in it. 
 We had defines the macro for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Mar 2018 09:24:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31316/custom-board-based-on-nrf52832-s132-pin-input-p0-09" /><item><title>RE: Custom board based on nrf52832 s132 pin input P0.09</title><link>https://devzone.nordicsemi.com/thread/124309?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 09:24:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff1adaa5-82fb-4a36-8ab2-0dd1a0a21c7d</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When I configure pin 9 as a GPIO and set the pull to &amp;quot;pull-down&amp;quot; and test here, the voltage on pin 9 is 0.&lt;/p&gt;
&lt;p&gt;What kind of board do you use? A custom board? Could you try the same configurations on the nRF52-DK and check if it works?&lt;/p&gt;
&lt;p&gt;Could could check that the button on your board is correctly soldered? I.e, not shifted by 90 degrees for example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board based on nrf52832 s132 pin input P0.09</title><link>https://devzone.nordicsemi.com/thread/124160?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 12:38:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28b3b100-211f-40ae-9f08-6262348edffc</guid><dc:creator>dhinojosac</dc:creator><description>&lt;p&gt;First, in the main&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
    bool erase_bonds;
    log_init();
    timer_init();

    buttons_leds_init(&amp;amp;erase_bonds); //init leds and buttons

    board_bikelite_init();  // INIT BOARD BIKELITE
    ...&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;In the function buttons_leds_init&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void buttons_leds_init(bool * p_erase_bonds)
{
    ret_code_t err_code;
    bsp_event_t startup_event;

    /** init buttons and leds in bsp.c **/
    err_code = bsp_init(BSP_INIT_LED | BSP_INIT_BUTTONS, bsp_event_handler); 
    APP_ERROR_CHECK(err_code);


    err_code = bsp_btn_ble_init(NULL, &amp;amp;startup_event);
    APP_ERROR_CHECK(err_code);

    *p_erase_bonds = (startup_event == BSP_EVENT_CLEAR_BONDING_DATA);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In the bsp_init() in the bsp.c&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint32_t bsp_init(uint32_t type, bsp_event_callback_t callback)
{
    uint32_t err_code = NRF_SUCCESS;

#if LEDS_NUMBER &amp;gt; 0 &amp;amp;&amp;amp; !(defined BSP_SIMPLE)
    m_indication_type     = type;
#endif // LEDS_NUMBER &amp;gt; 0 &amp;amp;&amp;amp; !(defined BSP_SIMPLE)

#if (BUTTONS_NUMBER &amp;gt; 0) &amp;amp;&amp;amp; !(defined BSP_SIMPLE)
    m_registered_callback = callback;

    // BSP will support buttons and generate events
    if (type &amp;amp; BSP_INIT_BUTTONS)
    {
        uint32_t num;

        for (num = 0; ((num &amp;lt; BUTTONS_NUMBER) &amp;amp;&amp;amp; (err_code == NRF_SUCCESS)); num++)
        {
            err_code = bsp_event_to_button_action_assign(num, BSP_BUTTON_ACTION_PUSH, BSP_EVENT_DEFAULT);
        }

        if (err_code == NRF_SUCCESS)
        {
            err_code = app_button_init((app_button_cfg_t *)app_buttons,
                                       BUTTONS_NUMBER,
                                       APP_TIMER_TICKS(50));
        }

        if (err_code == NRF_SUCCESS)
        {
            err_code = app_button_enable();
        }

        if (err_code == NRF_SUCCESS)
        {
            err_code = app_timer_create(&amp;amp;m_button_timer_id,
                                        APP_TIMER_MODE_SINGLE_SHOT,
                                        button_timer_handler);
        }
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In the fuction app_button_init we passed the buttons defined in bsp.c as:&lt;pre class="ui-code" data-mode="text"&gt;static const app_button_cfg_t app_buttons[BUTTONS_NUMBER] =
{
    #ifdef BSP_BUTTON_0
    {BSP_BUTTON_0, APP_BUTTON_ACTIVE_HIGH, BUTTON_PULL, bsp_button_event_handler},
    #endif // BUTTON_0

    #ifdef BSP_BUTTON_1
    {BSP_BUTTON_1, APP_BUTTON_ACTIVE_HIGH, BUTTON_PULL, bsp_button_event_handler},
    #endif // BUTTON_1

    /** BSP_BUTTON_2  = BUTTON_3 = 9 (P0.09) and BUTTON_PULL is NRF_GPIO_PIN_PULLDOWN**/
    #ifdef BSP_BUTTON_2
    {BSP_BUTTON_2, APP_BUTTON_ACTIVE_HIGH, BUTTON_PULL, bsp_button_event_handler},
    #endif // BUTTON_2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It is configured as input with pull down, but we don&amp;#39;tt understand the reason of the voltage :S&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board based on nrf52832 s132 pin input P0.09</title><link>https://devzone.nordicsemi.com/thread/124083?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 08:22:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39ef24bc-e95f-40e7-860d-b7fefc73a3bd</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;From that read-out of UICR, the &amp;quot;NFC-pins&amp;quot; are set to be used as GPIOs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How do you configure&amp;nbsp; pin 9 (BUTTON_3) in your code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board based on nrf52832 s132 pin input P0.09</title><link>https://devzone.nordicsemi.com/thread/124043?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 21:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec296938-1ddc-4332-9210-8e46f8372389</guid><dc:creator>dhinojosac</dc:creator><description>&lt;p&gt;Using nrfjprog to read the specific address of the pin.&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1520891881662v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board based on nrf52832 s132 pin input P0.09</title><link>https://devzone.nordicsemi.com/thread/123977?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 14:44:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60b2ab55-de5a-459b-8d1e-20484e91c4dd</guid><dc:creator>dhinojosac</dc:creator><description>&lt;p&gt;Thanks, I attach the UICR reading file.&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/read_5F00_uicr.log"&gt;devzone.nordicsemi.com/.../read_5F00_uicr.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board based on nrf52832 s132 pin input P0.09</title><link>https://devzone.nordicsemi.com/thread/123944?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 13:52:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33ea83ae-097b-4cfc-b08e-72f501b3e448</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;If&amp;nbsp;CONFIG_NFCT_PINS_AS_GPIOS is set in &amp;quot;pre-processor&amp;quot; symbols, the &amp;quot;NFC-pins&amp;quot; should be regular GPIOs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To double check that the configuration is correct, you can read &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fuicr.html&amp;amp;cp=2_1_0_13_0_62&amp;amp;anchor=register.NFCPINS"&gt;UICR&lt;/a&gt;&amp;nbsp;using nrfjprog. What is the result from that reading?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>