<?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>i2c eeprom with 16bit addressing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5267/i2c-eeprom-with-16bit-addressing</link><description>Hello everyone, I must to write and read a I2C eeprom like 24c256. I tryed to do it but all the examples with I2C protocol works with 8bit addressing. I tryed to modify mpu6050.c source code (in Nordic\nrf51822\Source\ext_sensors) for use with sd_twi_hardware_master</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Oct 2016 10:01:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5267/i2c-eeprom-with-16bit-addressing" /><item><title>RE: i2c eeprom with 16bit addressing</title><link>https://devzone.nordicsemi.com/thread/18437?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 10:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98542f8c-154b-48a6-8222-fb7965ddd3b1</guid><dc:creator>Quang Phu</dc:creator><description>&lt;p&gt;Thank you :Dd&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2c eeprom with 16bit addressing</title><link>https://devzone.nordicsemi.com/thread/18436?ContentTypeID=1</link><pubDate>Sat, 24 Jan 2015 09:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3ab0dd6-159d-482c-8fc3-24ea2026a33e</guid><dc:creator>Paolo A.</dc:creator><description>&lt;p&gt;Good morning to all,
it is true that &amp;quot;the night brings advice.&amp;quot; I solved the problem and I placed below the correct snippet code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;bool ee_mem24c256_register_read(uint16_t register_address, uint8_t * destination, uint8_t number_of_bytes)
{
    bool    transfer_succeeded;
	  uint8_t w_addr[2];

	  addrH = (int8_t) (register_address&amp;gt;&amp;gt;8);
	  addrL = (int8_t) (register_address&amp;amp;0xFF); 
	
    w_addr[0] = addrH;
    w_addr[1] = addrL;
	
    transfer_succeeded  = twi_master_transfer(m_device_address, w_addr, 2, TWI_DONT_ISSUE_STOP);
    transfer_succeeded &amp;amp;= twi_master_transfer(m_device_address|TWI_READ_BIT, destination, number_of_bytes, TWI_ISSUE_STOP);
    return transfer_succeeded;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I hope this can serve .... to all developers CIAO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>