<?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>Reading Irms and Vrms value from ACS71020 sensor using i2c protocol</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62945/reading-irms-and-vrms-value-from-acs71020-sensor-using-i2c-protocol</link><description>Hi 
 I am reading the Irms and Vrms data from the register 0x20 so i am using nrf_drv_twi_rx(&amp;amp;m_twi, ACS71020_ADDRESS, m_sample, sizeof(m_sample)); where we specify only device address so how can we know that the data we are getting is from same register</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Jun 2020 15:09:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62945/reading-irms-and-vrms-value-from-acs71020-sensor-using-i2c-protocol" /><item><title>RE: Reading Irms and Vrms value from ACS71020 sensor using i2c protocol</title><link>https://devzone.nordicsemi.com/thread/256754?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2020 15:09:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10d0c3a1-3bb4-4279-b1a1-581650a88190</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I assume V_I_RMS is the register address you are trying to read, then my question is what is your current issue? What did you expect to observe and what did you actually observe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Irms and Vrms value from ACS71020 sensor using i2c protocol</title><link>https://devzone.nordicsemi.com/thread/256645?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2020 10:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:793b88fc-93df-4a0c-849a-5a010494f1fb</guid><dc:creator>Saagar</dc:creator><description>&lt;p&gt;No as&amp;nbsp;&lt;span&gt;nrf_drv_twi_rx takes only device address&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;As per my understanding first we need to write to the register then we have to read data from that register&lt;/p&gt;
&lt;p&gt;&amp;nbsp;uint8_t acc = V_I_RMS;&lt;/p&gt;
&lt;p&gt;err_code = nrf_drv_twi_tx(&amp;amp;m_twi, ACS71020_ADDRESS, &amp;amp;acc, sizeof(acc), false);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;err_code = nrf_drv_twi_rx(&amp;amp;m_twi, ACS71020_ADDRESS, m_sample, sizeof(m_sample));&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Irms and Vrms value from ACS71020 sensor using i2c protocol</title><link>https://devzone.nordicsemi.com/thread/256640?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2020 09:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f896c5e-209c-4ea4-ad60-40cb02fd60e9</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Do you not send the register address in your read command?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>