<?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>nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80657/nrf52810-twi-driver-issues</link><description>Hi, 
 
 I&amp;#39;m using TWI to control accemeter(MMA452).When I used TWI SENSOR to read my sensor, it didn&amp;#39;t work normally. 
 
 The address of MMA8452 is 0x1C,so i want to read the value of 0x0D register.When I use nrf_drv_twi_tx(), m_xfer_done is always false</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Oct 2021 13:13:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80657/nrf52810-twi-driver-issues" /><item><title>RE: nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/thread/334630?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 13:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2577112b-ee8a-468f-b136-eaa83d44aff6</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Use the same API and driver as they use in the examples.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/thread/334613?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 12:50:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b47e48ad-a781-4eef-ad3c-0b502fabbff8</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Can I use twi_sw_master driver in our product?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/thread/334611?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 12:41:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cc8417c-ac4f-4e0d-9af4-e4c0ea484939</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;I don&amp;#39;t have the keil project. But you can easily do it yourself by:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make a copy of the PCA10040e Blinky project&lt;/li&gt;
&lt;li&gt;Replace the blinky main.c file with the c file from the twi_sensor project&lt;/li&gt;
&lt;li&gt;Compare the sdk_config file from the blinky and sdk_config file for the twi_sensor project and enable the TWIM peripheral and other relevant configs.&lt;/li&gt;
&lt;li&gt;Open the Keil project and add every driver that is not already added but present in the twi_sensor project.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="ColorPen"]How about the mothod of twi_sw_master which is&amp;nbsp;&lt;span&gt;deprected? Beacause I had used this driver on other platform.&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;You should use the same API as they use in the example.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/thread/334265?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 07:30:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a2c00b9-c2ed-470f-a14e-af9bb2dddd4e</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;Thank you Jared. But could you add Keil MDK project? I&amp;#39;m using keil to make my appliation.&lt;/p&gt;
&lt;p&gt;How about the mothod of twi_sw_master which is&amp;nbsp;&lt;span&gt;deprected? Beacause I had used this driver on other platform.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/thread/334263?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 07:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55bd5224-4e9e-4c23-918f-240ea84a3355</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Whoops! My fault. It seems the folder I was looking at was from an earlier conversion I had done myself. I&amp;#39;ve attached the PCA10040e folder. Just un-zip it in:&amp;nbsp;nRF5_SDK_17.0.2_d674dde\examples\peripheral\twi_scanner&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7142.pca10040e.7z"&gt;devzone.nordicsemi.com/.../7142.pca10040e.7z&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/thread/334251?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 03:16:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7816cc8b-2ac5-4835-ba51-73a0edcbf928</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4885.SC.png" /&gt;&lt;/p&gt;
&lt;p&gt;There is no example for nRF52810 in SDK17.02 about TWI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BTW, I have read the ID of device by using twi_sw_master on nRF52832.This method is be deprected in SDK, could I use it?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll test on nRF52810. There is no difference by using this mothod, right?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/thread/334178?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 13:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ccfa6bf-5449-4227-aaf8-57dcc5c828c5</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Check the twi_scanner example. You can try pasting your code into the main.c of that example. I think that should work &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/thread/334140?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 12:06:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fc0aba6-0eb5-4deb-b2c5-4fdb0c858fff</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0160.png" /&gt;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t find PCA10040e in SDK17.0.2&amp;nbsp; &amp;nbsp;:(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/thread/334121?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 11:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f8a8937-b6d3-44b5-8159-bfe88239c607</guid><dc:creator>Jared</dc:creator><description>[quote user="ColorPen"]This device is 7-bit address. So when I write data,shifted left 1-bit and set lowest-bit to 0.[/quote]
&lt;p&gt;I understand.&lt;/p&gt;
[quote user="ColorPen"]I&amp;nbsp; download the example(SDK14.2) to my board, there isn&amp;#39;t any wave on P26 and P27. Even no devices on SCL and SDA, is that normally?[/quote]
&lt;p&gt;Use SDK 17.0.2 instead, it has support for nRF52810 contrary to SDK 14.2.0. See the PCA10040e example folder instead.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/thread/334111?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 11:22:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4d8c849-cbc9-4d30-9c49-9cf48e2d7ce7</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;This device is 7-bit address. So when I write data,shifted left 1-bit and set lowest-bit to 0.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp; download the example(SDK14.2) to my board, there isn&amp;#39;t any wave on P26 and P27. Even no devices on SCL and SDA, is that normally?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TWI Driver issues</title><link>https://devzone.nordicsemi.com/thread/334108?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 11:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43302f15-2cc6-4951-b7ef-feaa72629f90</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you probe the SDA line and see what data that Is sent and if it&amp;#39;s what you expect? If the address is 0x1C, why do you write to 0x38 and 0x39?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>