<?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>Trying to read a 24-bit register using I2C</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17745/trying-to-read-a-24-bit-register-using-i2c</link><description>Hi, I am trying to read a 24-bit register (with 8-bit address) using the I2C (nrf52). And the timing diagram is given below. 
 
 Basically I created a 3-element array (24-bit in total) 
 static uint8_t m_sample[3];
 
 and use nrf_drv_twi_rx to store</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Nov 2016 12:42:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17745/trying-to-read-a-24-bit-register-using-i2c" /><item><title>RE: Trying to read a 24-bit register using I2C</title><link>https://devzone.nordicsemi.com/thread/68306?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2016 12:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c90c91c1-93d1-4522-9a7f-884208747d68</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi PPendless,&lt;/p&gt;
&lt;p&gt;I think the approach you describe in your question should work fine.  You can see the write and read sequences of TWI peripheral in the nRF52832 Product Specification, please see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/twi.html?cp=2_2_0_48#concept_rhy_rzp_sr"&gt;this&lt;/a&gt; page on our Infocenter.&lt;/p&gt;
&lt;p&gt;P.S. You cannot modify the read and write sequences, when and where the ACKs and NACKs are issued can be seen in the figures on the Infocenter page I linked to.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>