<?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>Adding I2C-TWI EEPROM access, to existing SPI access</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90015/adding-i2c-twi-eeprom-access-to-existing-spi-access</link><description>We do have an eeprom accessed over the SPI, and works well. 
 Need to add an option to access also the I2C eeprom. 
 Adding to the project nrf_drv_twi,c, nrfx_twi.c, nrfx_twim.c - do I need to use both nrfx_twi.c and nrfx_twim.c? 
 During compilation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Jul 2022 12:33:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90015/adding-i2c-twi-eeprom-access-to-existing-spi-access" /><item><title>RE: Adding I2C-TWI EEPROM access, to existing SPI access</title><link>https://devzone.nordicsemi.com/thread/377198?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 12:33:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:078bd969-8f85-4068-85da-d0e2e8a088f4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The SPI and TWI do indeed share instances, so you have to use another TWI instance than SPI instance. I don&amp;#39;t think we have any specific examples using both, but we have separate SPI examples and TWI examples. It should be sufficient to move the TWI init function + driver and library files into your existing project and make sure you use a different TWI instance. Depending on what functions you want to use from the nrfx TWI drivers, you choose if you want just the nrfx_twi.c or the nrfx_twim.c (or both).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding I2C-TWI EEPROM access, to existing SPI access</title><link>https://devzone.nordicsemi.com/thread/377116?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 08:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daee4060-843f-473f-9e79-57c7124e9357</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;Most helpful would be a sample application for the Segger studio initializing SPI0 and TWIM1.&amp;nbsp;&lt;br /&gt;I am concerned about the twi includes not picking up the defines.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>