<?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 Master and access to RAM through EEPROM Register</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62784/twi-master-and-access-to-ram-through-eeprom-register</link><description>Hello Everyone, 
 I started to use the NRF52832 recently and wanted to use it with a sensor from Melexis called MLX90632. I am using sdk 15.0.0. 
 This sensor have a library provided with it that helped me understand better how does the sensor work but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jun 2020 04:04:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62784/twi-master-and-access-to-ram-through-eeprom-register" /><item><title>RE: TWI Master and access to RAM through EEPROM Register</title><link>https://devzone.nordicsemi.com/thread/256798?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 04:04:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26ec9ff2-9543-46ca-9e29-d214147a3bdd</guid><dc:creator>Guillaume Exc</dc:creator><description>&lt;p&gt;It worked indeed i did not understand that we had to write before reading the values. Thanks for the help !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Master and access to RAM through EEPROM Register</title><link>https://devzone.nordicsemi.com/thread/256701?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2020 12:46:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f78230cd-fab1-4269-9cd5-2b733eef2c5c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Guillaume,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please have a look at the example&amp;nbsp;twi_master_with_twis_slave inside&amp;nbsp;\examples\peripheral.&amp;nbsp;&amp;nbsp;&lt;br /&gt;In that example there is an emulated EEPROM is used. And it works almost like the MLX90632. Have a look at&amp;nbsp;eeprom_read() function. First we use&amp;nbsp;nrf_drv_twi_tx() to write the address we want to read, and after that we read it out using&amp;nbsp;nrf_drv_twi_rx . Notice that the no_stop argument was set to true. matched with what described in the sensor datasheet.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Please study section 10.2 in the MLX90632 datasheet.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Master and access to RAM through EEPROM Register</title><link>https://devzone.nordicsemi.com/thread/256295?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 02:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03abe247-e44d-42c9-9c3e-643215ae87e5</guid><dc:creator>Guillaume Exc</dc:creator><description>&lt;p&gt;Hello, I don&amp;#39;t see any possible way to add eeprom into the nrf_rdv_twi_rx() or&amp;nbsp;&lt;span&gt;nrf_rdv_twi_tx()&amp;nbsp;. When looking at the documentation (&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.0.0%2Fgroup__nrf__drv__twi.html" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;) You don&amp;#39;t have any explanation regarding EEPROM reading.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When using for example&amp;nbsp;&amp;nbsp;nrf_drv_twi_rx(), the parameters following the documentation should be :&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;nrf_drv_twi_t const * p_instance ----&amp;gt; &lt;/em&gt;&amp;amp;m_twi&lt;/li&gt;
&lt;li&gt;&lt;em&gt;uint8_t address -----&amp;gt;&amp;nbsp;&lt;/em&gt;SensorAdress ( in my case 3A)&lt;/li&gt;
&lt;li&gt;&lt;em&gt;uint8_t * p_data ------&amp;gt;&amp;nbsp;&lt;/em&gt;data&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;uint8_t length -------&amp;gt;&amp;nbsp;&lt;/em&gt;sizeof(data)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And that&amp;#39;s it, there is not explanation on how to handle the EEPROM of the sensor and adding the different addresses.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I might misunderstand the function so if you have any way of explaining on how to use theses functions to use EEPROM i would be thankful. For example how should i do if i want to access the eeprom address of 0x3001.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Guillaume&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Master and access to RAM through EEPROM Register</title><link>https://devzone.nordicsemi.com/thread/256236?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 14:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:705d8680-7ddc-462c-a33c-17e38354499c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Guillaume,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see anything special about accessing RAM and EEPROM on the&amp;nbsp;&lt;span&gt;MLX90632. It&amp;#39;s defined at section 10.2 in the product&amp;#39;s datasheet. You can use&amp;nbsp;nrf_drv_twi_rx() and&amp;nbsp;nrf_drv_twi_tx() to read and write.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Master and access to RAM through EEPROM Register</title><link>https://devzone.nordicsemi.com/thread/256022?ContentTypeID=1</link><pubDate>Sat, 20 Jun 2020 06:29:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4408f29b-e3c3-46c5-b7e0-613039893bec</guid><dc:creator>Guillaume Exc</dc:creator><description>&lt;p&gt;Hello Hung,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I understand the fact that you can&amp;#39;t help much about the 3rd party library but i believe my issue is really accessing the data stored in the eeprom and RAM from the sensor. Is there any template i could relate to because i believe the nrf_drv_twi that you suggested doesn&amp;#39;t handle eeprom use.&lt;/p&gt;
&lt;p&gt;Anyway thanks for your help&lt;/p&gt;
&lt;p&gt;Guillaume&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Master and access to RAM through EEPROM Register</title><link>https://devzone.nordicsemi.com/thread/255985?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 13:35:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdcbd6f5-8161-4922-b90b-6286edcde684</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Guillaume,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We can&amp;#39;t really help you to interface with a specific 3rd party sensor, however I would suggest you to:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Use a logic analyzer to capture the TWI transaction and compare it to what you can find in the sensor&amp;#39;s datasheet and the sensor&amp;#39;s library.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Try to use TWI directly using&amp;nbsp;nrf_drv_twi it may give you more flexibility than the&amp;nbsp;nrf_twi_sensor library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>