<?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>micro:bit nrf51822 can not set GPIO:30 to TWI0.PSELSDA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29948/micro-bit-nrf51822-can-not-set-gpio-30-to-twi0-pselsda</link><description>Hello Nordic Devzone, 
 I have problems with twi/i2c init code on a Micro:bit, nrf51822.
The accelerometer is a Freescale MMA8652FC.
I use Segger Embedded Studio for ARM V3_34 64-bit. 
 The accelerometer works fine with codes from makecode.microbit</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jan 2018 08:13:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29948/micro-bit-nrf51822-can-not-set-gpio-30-to-twi0-pselsda" /><item><title>RE: micro:bit nrf51822 can not set GPIO:30 to TWI0.PSELSDA</title><link>https://devzone.nordicsemi.com/thread/119108?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 08:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c8f7fb6-5e17-42b0-bf7a-e3c078c30bf1</guid><dc:creator>dmarschal</dc:creator><description>&lt;p&gt;Thank you so much for your help! It worked (-:&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: micro:bit nrf51822 can not set GPIO:30 to TWI0.PSELSDA</title><link>https://devzone.nordicsemi.com/thread/119107?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 12:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4928d4ae-4b1e-493d-be10-60a380e91486</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You should write the &lt;strong&gt;pin number&lt;/strong&gt; to the PSELSCL/PSELSDA registers, not the GPIO mask. The register take values 0 to 31, as described in the documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>