<?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>How can I use SPI and I2C interrupt at the same program in nRF52832?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77978/how-can-i-use-spi-and-i2c-interrupt-at-the-same-program-in-nrf52832</link><description>Hi, 
 
 As well know, nRF52832 have more then one SPI and TWI interface. 
 How can I use SPI and TWI interface in the same program? for example, use SPI-0 and TWI-1. 
 
 Thank you, 
 Ives</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Jul 2021 11:05:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77978/how-can-i-use-spi-and-i2c-interrupt-at-the-same-program-in-nrf52832" /><item><title>RE: How can I use SPI and I2C interrupt at the same program in nRF52832?</title><link>https://devzone.nordicsemi.com/thread/322646?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 11:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0efd1dbc-4c93-4b16-b803-bc7ccbd7576b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The screenshot I shared was from a config file for the nRF52840 which has 4 SPIMs, nRF52832 that you are using has less which is why you can&amp;#39;t find it in your config file. The screenshot was only meant to be an illustration of where you enable/disable the config.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use SPI and I2C interrupt at the same program in nRF52832?</title><link>https://devzone.nordicsemi.com/thread/322599?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 07:44:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0665c74f-ef47-48c2-9561-5e84a163a4c3</guid><dc:creator>chianglin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;But I can not found NRFX_SPIM3_ENABLE define in sdk_ovnfig.h.&lt;/p&gt;
&lt;p&gt;Please found the attach file&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4604.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../4604.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use SPI and I2C interrupt at the same program in nRF52832?</title><link>https://devzone.nordicsemi.com/thread/322438?ContentTypeID=1</link><pubDate>Thu, 29 Jul 2021 11:54:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8624d378-9268-4a2a-b8dc-f73eea8f4935</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;You need to change this part in the example code:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1627559678161v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And enable it in the sdk_config file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1627559643347v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use SPI and I2C interrupt at the same program in nRF52832?</title><link>https://devzone.nordicsemi.com/thread/322401?ContentTypeID=1</link><pubDate>Thu, 29 Jul 2021 09:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9bbf1f9-21ce-4e8c-8c8a-323fdd6e7040</guid><dc:creator>chianglin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I want change SPI interface to SPI-1, then I need modify the &amp;quot;&lt;strong&gt;SPI_INSTANCE&amp;quot; to 1?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How to change the setting of config file?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does I need change &amp;quot;event handle&amp;quot; function?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thank you&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use SPI and I2C interrupt at the same program in nRF52832?</title><link>https://devzone.nordicsemi.com/thread/322351?ContentTypeID=1</link><pubDate>Thu, 29 Jul 2021 06:48:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c72e5089-01f2-4e05-a809-657d0170ac9a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;By interface you mean instance?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use SPI and I2C interrupt at the same program in nRF52832?</title><link>https://devzone.nordicsemi.com/thread/322266?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 13:50:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb407c00-6822-46a2-9df6-dc0e517ad659</guid><dc:creator>chianglin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your answer and example code.&lt;/p&gt;
&lt;p&gt;If I want change twi or SPIM to 2nd interface, how can I modify config-file and source code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use SPI and I2C interrupt at the same program in nRF52832?</title><link>https://devzone.nordicsemi.com/thread/322225?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 12:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fc456f7-3fde-4b68-b277-ab900ed41b27</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You need to enable both peripherals in the project sdk config file.&lt;/li&gt;
&lt;li&gt;Add the proper source files for both peripherals. This usually consists of the drivers for the peripherals.&lt;/li&gt;
&lt;li&gt;Add the path to the source files to the projects settings.&lt;/li&gt;
&lt;li&gt;Initialize the peripherals in the project&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Use them &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The easiest approach is to merge the example projects in the SDK together. For example &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/twi_scanner_example.html?cp=8_1_4_6_42"&gt;twi_scanner &lt;/a&gt;+ &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrfx_spim_example.html?cp=8_1_4_6_38"&gt;SPIM &lt;/a&gt;example.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>