<?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>MMA845x (GY-45) and NRF52-DK with I2C/TWI: HELP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34544/mma845x-gy-45-and-nrf52-dk-with-i2c-twi-help</link><description>Hello. Complete n00b here! 
 I&amp;#39;ve built a small sample on mbed of an I2c Scanner. Also tried other runtimes. Somehow, its not working. 
 I&amp;#39;m using a GY-45 Module, which wraps MMA8541 on it: 
 ) 
 By looking, it seems that technically, its resistors are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 May 2018 09:08:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34544/mma845x-gy-45-and-nrf52-dk-with-i2c-twi-help" /><item><title>RE: MMA845x (GY-45) and NRF52-DK with I2C/TWI: HELP</title><link>https://devzone.nordicsemi.com/thread/133373?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 09:08:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06607fef-c712-423b-8b6d-325772549355</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you connected the&amp;nbsp;GY-45 Module directly to an unmodified nRF52-DK/PCA10040 board?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you use the TWI driver in the SDK (used by TWI scanner example), the pullups will be enabled. If they are enabled in mbed depends on what version and API you are using. Most likely they are enabled, but to be sure, you need to follow the API back to the implementation in the GitHub repository I linked in my last post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA845x (GY-45) and NRF52-DK with I2C/TWI: HELP</title><link>https://devzone.nordicsemi.com/thread/133092?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 18:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93a3e373-d296-4594-8001-58c9e9d35b51</guid><dc:creator>aldrinleal</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;J&amp;oslash;rgen,&lt;/p&gt;
&lt;p&gt;I tried both on mbed as well as TWI_Scanner as well (NRF5 sdk version 12.3). On both cases, they report all addresses as available (&lt;a href="https://raspberrypi.stackexchange.com/questions/32719/i2cdetect-shows-every-possible-address"&gt;which is a sign that its not working&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Question: Will both mbed and NRF5-sdk will enable the internal pullup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA845x (GY-45) and NRF52-DK with I2C/TWI: HELP</title><link>https://devzone.nordicsemi.com/thread/133091?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 18:21:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d96d08d-0c05-473b-b1f8-80de4919e1d8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you provide a more detailed description of what is not working than &amp;quot;Somehow, its not working&amp;quot;? Did you test the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/twi_scanner_example.html?cp=4_0_0_4_5_41"&gt;TWI scanner example&lt;/a&gt; from our SDK?&lt;/p&gt;
&lt;p&gt;You have not included any information on what mbed version your are using, or how you configure TWI/I2C in your code. mbed include the TWI driver from our SDK, and use this for some of the I2C code. This driver will &lt;a href="https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_14_2/drivers_nrf/twi_master/nrf_drv_twi.c#L111"&gt;enable internal pullup resistor&lt;/a&gt; for both SCL and SDA, maybe this could explain the value you are seeing? The &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=2_1_0_19_3#unique_1820404704"&gt;pullups&lt;/a&gt; should be between 11 and 16 kohm, with a typical value of 13k.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>