<?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 set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60975/how-to-set-default-i2c-pin-sda-and-scl-for-nrf52832-using-uicr-customer-register</link><description>How to set SDA= p0.25;and SCL=P0.26 default pin configration.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 May 2020 10:56:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60975/how-to-set-default-i2c-pin-sda-and-scl-for-nrf52832-using-uicr-customer-register" /><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/251909?ContentTypeID=1</link><pubDate>Wed, 27 May 2020 10:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eda5b796-e89f-43c8-8153-a4195ee57480</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The PS (V1.4, chapter 49.8.6) leaves no ambiguity here:&lt;/p&gt;
&lt;p&gt;&amp;quot;PSELSCL [0..31] Pin number configuration for TWI SCL signal&amp;quot;.&lt;/p&gt;
&lt;p&gt;Any experienced programmer can calculate the decimal pin number from those simple hex values - and everybody else just uses windows calculator in programmer mode.&lt;/p&gt;
&lt;p&gt;SCL is&amp;nbsp; P0.26, SDA is P0.27 as shown here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Dunno &lt;em&gt;why&lt;/em&gt; the values are encoded in hex in your case. Decimal values work fine here, and would match the P0.xx values from the PS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/251844?ContentTypeID=1</link><pubDate>Wed, 27 May 2020 08:17:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c1e96a-f7df-4bb7-a3c7-29dc6d7cd59f</guid><dc:creator>dewal</dc:creator><description>&lt;p&gt;#define TWI0_CONFIG_FREQUENCY&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_TWI_FREQ_100K&lt;br /&gt;#define TWI0_CONFIG_SCL 0x1b&lt;br /&gt;#define TWI0_CONFIG_SDA 0x1a&lt;/p&gt;
&lt;p&gt;Is this PSEL_xx register configuration??&amp;nbsp;&lt;br /&gt;&lt;br /&gt;0x1b and 0x1a&amp;nbsp; are bit selection in&amp;nbsp; PSEL.SCA and PSEL.SDA&amp;nbsp; ???&lt;/p&gt;
&lt;p&gt;if&amp;nbsp; these are correct, then tell me how they get write this exact vslues on the register? &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/249039?ContentTypeID=1</link><pubDate>Sat, 09 May 2020 06:18:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:384372d1-53a0-4549-ba1c-5ca68aaa1b14</guid><dc:creator>dewal</dc:creator><description>&lt;p&gt;for the appliaction purpose&amp;nbsp; design our own IC of nrf52. so i need the default pin configuration for that. can you explain me nrf_sdk I2c example. I am new for nrf so i didn&amp;#39;t understand their example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/248911?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 11:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0339013b-2d9b-4493-9d0a-bfa3a823079d</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Can you explain in depth why you think you needed that feature, and what you did not understand in the PS, TWI and TWIM chapters?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/248842?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 04:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a703126-5507-4325-9a03-92c34dc1802b</guid><dc:creator>dewal</dc:creator><description>&lt;p&gt;can you explain in depth please . &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/248752?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 14:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7890371f-88a4-4330-9def-0678e1b85a09</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;You simply &lt;strong&gt;cannot&lt;/strong&gt; do that - the application has &lt;em&gt;full&lt;/em&gt; control over which gpio pin has what digital function assigned to. Simply by putting the correct magic number in the peripherial register (PSEL.XXX).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/248707?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 12:32:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5193a12-8853-4c65-a232-d9ffcbb283ae</guid><dc:creator>dewal</dc:creator><description>&lt;p&gt;How to update pin configuration for sda and scl to board permanent via bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/248695?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 11:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e8b1dfd-0433-4e81-84dd-475af100eb60</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m not sure what you mean by &amp;quot;&lt;span&gt;default pin configuration&amp;quot;. There is no default pin config for the peripheral. Any GPIO can be configured to be used with any serial peripheral. You need to define the pin usage in the application. The pin configuration can be changed in run-time. If you erase the chip, it will not have any TWI peripheral configured so the pin config will be irrelevant. The pin config will always be set on boot by your application.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/248691?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 11:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e37d825a-c8ec-40c6-b35b-50055d4edf31</guid><dc:creator>dewal</dc:creator><description>&lt;p&gt;thank you, but i want default pin configuration. after reset and erase their is no changes to defined pin. &lt;/p&gt;
&lt;p&gt;i think above are user defined pin configration .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/248670?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 09:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97b202cf-5280-4902-aade-175e52a378b5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;If you are using the TWI driver in the SDK (nrf_drv_twi), the GPIO pin numbers are set in the config struct passed to nrf_drv_twi_init(). For instance, in the twi_sensor example, the ARDUINO_SCL/SDA pins are used:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void twi_init (void)
{
    ret_code_t err_code;

    const nrf_drv_twi_config_t twi_lm75b_config = {
       .scl                = ARDUINO_SCL_PIN,
       .sda                = ARDUINO_SDA_PIN,
       .frequency          = NRF_DRV_TWI_FREQ_100K,
       .interrupt_priority = APP_IRQ_PRIORITY_HIGH,
       .clear_bus_init     = false
    };

    err_code = nrf_drv_twi_init(&amp;amp;m_twi, &amp;amp;twi_lm75b_config, twi_handler, NULL);
    APP_ERROR_CHECK(err_code);

    nrf_drv_twi_enable(&amp;amp;m_twi);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;These pins are defined in the pca10040.h board header file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define ARDUINO_SCL_PIN             27    // SCL signal pin
#define ARDUINO_SDA_PIN             26    // SDA signal pin&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can define your own pins in the application:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define TWI_SCL_PIN             26    // SCL signal pin
#define TWI_SDA_PIN             25    // SDA signal pin&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then set these in the config struct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/248658?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 09:07:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98590e11-1e80-4f33-8a78-c9f4b1a83ed2</guid><dc:creator>dewal</dc:creator><description>&lt;p&gt;Thank you for reply.&lt;/p&gt;
&lt;p&gt;how can i go through sdk_config.h file.please explain me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?</title><link>https://devzone.nordicsemi.com/thread/247804?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 09:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f00c6cf8-ca2e-46d0-b436-bd33e8a25c95</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;You don&amp;#39;t use UICR for that.&lt;/p&gt;
&lt;p&gt;You use either sdk_config.h or the custom board header file for your board (when using NRF SDK).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>