<?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>TWI Interface Problem using TLV493 magnetic sensor</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62699/twi-interface-problem-using-tlv493-magnetic-sensor</link><description>Hi, 
 I work with nRF52832 module. i want to interface two i2c functions. 
 1. EEPROM - SCL - P0.06 SDA - P0.07 -&amp;gt; i check with this separately its working. 
 
 2. TLV493D - SCL - P0.29 SDA - P0.30 -&amp;gt; Now ,i want to try this. 
 i have tested with TWI</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jun 2020 06:39:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62699/twi-interface-problem-using-tlv493-magnetic-sensor" /><item><title>RE: TWI Interface Problem using TLV493 magnetic sensor</title><link>https://devzone.nordicsemi.com/thread/255664?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 06:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26a83bb4-eb47-490a-a081-5139d48ea737</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Ask313"]Thanks for your reply.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="Ask313"]i just follows these procedure then will update the status.[/quote]
&lt;p&gt;Great. I look forward to hearing your update on this, and to resolve this issue together.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Interface Problem using TLV493 magnetic sensor</title><link>https://devzone.nordicsemi.com/thread/255651?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 03:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79e546bb-5939-498a-aa3d-9f3945c93fd0</guid><dc:creator>Ask313</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;now i&amp;#39;m working with&amp;nbsp;&amp;quot;&lt;strong&gt;EByte&amp;quot;&amp;nbsp;&lt;/strong&gt; &lt;strong&gt;e73-2g4m04s1b.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;i just follows these procedure then will update the status.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Senthilkumar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Interface Problem using TLV493 magnetic sensor</title><link>https://devzone.nordicsemi.com/thread/255544?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 12:51:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:281e0f3d-79e0-4de3-b421-7f779a25ae89</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Senthilkumar,&lt;/span&gt;&lt;/p&gt;
[quote user="Ask313"]Sorry, i m not using the Development kit.&amp;nbsp;[/quote]
&lt;p&gt;I understand. Which module are you working with?&lt;/p&gt;
[quote user="Ask313"]The pin out is not an issue.&amp;nbsp; I used P0.30, but uou mentioned that module pin number.[/quote]
&lt;p&gt;My mistake, I seem to have glanced too quickly at your description, sorry.&lt;br /&gt;Using those pins is indeed fine for TWI.&lt;/p&gt;
&lt;p&gt;[quote user="Ask313"][/quote]&lt;/p&gt;
&lt;p&gt;in that new board i have soldered only i2c device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the value i&amp;#39;m getting now.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;lt;info&amp;gt; app: TEMP:23.10&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;info&amp;gt; app: X:18.62&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;info&amp;gt; app: Y:-13.72&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;info&amp;gt; app: Z:-9.80&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Also, i try with old board (two i2c device) some times its hanged and some times shows &lt;strong&gt;Fatal Error.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do I understand you correctly that you have tested your code on a board with only the TLV493D sensor device connected via TWI, and this is working as expected - but when you run the same code on your board with two TWI devices, you the application hangs or crashes with Fatal Error?&lt;br /&gt;Do you have access to a development kit for testing of the code, or an external debugger? - This would make it a lot easier to pinpoint where the application fails.&lt;br /&gt;Do you have any notion of where in the code the application the error is generated, or where it hangs?&lt;br /&gt;&lt;br /&gt;Multiple TWI devices is not a problem, since you are addressing them differently. However, could it be that your device gets stuck in a waiting loop(waiting for a transfer to finish), that the sensor does not acknowledge or respond to? In this case, you could add a timer that will start of each transfer, and abort the transfer if it times out.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Interface Problem using TLV493 magnetic sensor</title><link>https://devzone.nordicsemi.com/thread/255527?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 12:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f688c82-63bd-4868-b7c2-59135e571e9c</guid><dc:creator>Ask313</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry, i m not using the Development kit.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/62699/twi-interface-problem-using-tlv493-magnetic-sensor/255523"]&lt;span&gt;Please check the&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpin.html&amp;amp;anchor=pin_assign"&gt;Pin Assignment&lt;/a&gt;&lt;span&gt;&amp;nbsp;before assigning pins to your peripherals. As you can see, pin 30 is used for the Antenna.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;When it comes to using the pins on your nRF-52 DK I recommend taking a look a&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52832_dk/UG/nrf52_DK/hw_conn_interf.html"&gt;the Connector Interface documentation&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&amp;nbsp;[/quote]
&lt;p&gt;The pin out is not an issue.&amp;nbsp; I used P0.30, but uou mentioned that module pin number.&lt;/p&gt;
&lt;p&gt;I have tested with another board with same functionalities its working. Some of the only its hanged.&lt;/p&gt;
&lt;p&gt;in that new board i have soldered only i2c device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the value i&amp;#39;m getting now.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;lt;info&amp;gt; app: TEMP:23.10&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;info&amp;gt; app: X:18.62&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;info&amp;gt; app: Y:-13.72&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;info&amp;gt; app: Z:-9.80&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Also, i try with old board (two i2c device) some times its hanged and some times shows &lt;strong&gt;Fatal Error.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Kindly give solution for, &lt;strong&gt;multiple i2c activating&lt;/strong&gt; and &lt;strong&gt;Fatal error.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Senthilkumar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Interface Problem using TLV493 magnetic sensor</title><link>https://devzone.nordicsemi.com/thread/255523?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 12:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8632626-6acd-4512-aaaf-200368d6c3c4</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Senthilkumar,&lt;/span&gt;&lt;/p&gt;
[quote user=""]2. TLV493D - SCL - P0.29 SDA - P0.30 -&amp;gt; Now ,i want to try this.[/quote]
&lt;p&gt;&lt;span&gt;Please check the&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpin.html&amp;amp;anchor=pin_assign"&gt;Pin Assignment&lt;/a&gt;&lt;span&gt;&amp;nbsp;before assigning pins to your peripherals. As you can see, pin 30 is used for the Antenna.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;When it comes to using the pins on your nRF-52 DK I recommend taking a look a&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52832_dk/UG/nrf52_DK/hw_conn_interf.html"&gt;the Connector Interface documentation&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[quote user=""][/quote]&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After that i can&amp;#39;t get the actual data. Also, i don&amp;#39;t know the continuous read function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Give related examples for this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;The TWI Scanner will only scan for devices, it will not perform any read / write operations.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For a general example on how you can interface TWI Sensors, you should see the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/twi_sensor_example.html"&gt;TWI Sensor example&lt;/a&gt;. You might also be interested in using the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__twi__sensor.html"&gt;TWI Sensor library&lt;/a&gt; directly.&lt;br /&gt;&lt;br /&gt;I do not have such an example for the TLV493 sensor specifically at the ready, but I am sure a driver for the sensors TWI interface already exists publicly available.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;I do not know if this is the sensor module you have, but&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/Infineon/TLV493D-A1B6-3DMagnetic-Sensor"&gt;a brief search on github yielded this repository&lt;/a&gt;&lt;span&gt;, which might be helpful to have a look at.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;If this is not the sensor module you currently have, then I would suggest finding or implementing a driver based on the TWI interface described in its datasheet.&lt;br /&gt;&lt;br /&gt;Please let me know if anything still should be unclear,&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>