<?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>[help me]SPI Commnunication btw nRF52 series and intanRHD2132, SPIM + TIMER</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111570/help-me-spi-commnunication-btw-nrf52-series-and-intanrhd2132-spim-timer</link><description>I am implementing SPI communication between the intanRHD2132 (ADC) and nRF52840. 
 I need to periodically send commands (READ, WRITE, etc.) to the intanRHD2132 (ADC). To achieve this, I am using a TIMER to control the SPI communication. 
 The commands</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 May 2024 13:25:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111570/help-me-spi-commnunication-btw-nrf52-series-and-intanrhd2132-spim-timer" /><item><title>RE: [help me]SPI Commnunication btw nRF52 series and intanRHD2132, SPIM + TIMER</title><link>https://devzone.nordicsemi.com/thread/486926?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 13:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3875e6de-c784-4aaf-9fb8-223c1f88e084</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Happy to help out.&lt;/p&gt;
&lt;p&gt;Let me know if you have any issues or questions. Hope you have a great weekend!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [help me]SPI Commnunication btw nRF52 series and intanRHD2132, SPIM + TIMER</title><link>https://devzone.nordicsemi.com/thread/486914?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 12:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e8607c2-c53d-49bd-85d9-4014d84337c8</guid><dc:creator>seongmincho</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you for your kind response. I&amp;#39;ve decided on the next course of action&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [help me]SPI Commnunication btw nRF52 series and intanRHD2132, SPIM + TIMER</title><link>https://devzone.nordicsemi.com/thread/486904?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 12:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d382ab5e-e511-457d-b291-85c7eae3b15d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When using easydma list, it will auto-increment your pointers for each transaction. You should setup a buffer that is as large as your overall transfer on both RX and TX.&lt;/p&gt;
&lt;p&gt;Instead of using m_tx_buffer/m_rx_buffer as the EasyDMA buffers, you should use Command (declare it as a 1-d array instead of 2-d array) / result.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [help me]SPI Commnunication btw nRF52 series and intanRHD2132, SPIM + TIMER</title><link>https://devzone.nordicsemi.com/thread/486874?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 11:09:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8181c2b-11d4-4889-923f-cc4132604de5</guid><dc:creator>seongmincho</dc:creator><description>&lt;p&gt;Hello! I have programmed new code based on your advice.&amp;nbsp;&lt;span&gt;Thank you for your help.&lt;/span&gt;&lt;br /&gt;As a result, the minimum value of &amp;#39;TIME_TO_WAIT_US&amp;#39; has been reduced from 43us to 13us. However, there is still room for improvement. I need the value to be smaller than 13us(&amp;#39;TIME_TO_WAIT_US&amp;#39;). It seems that I am not utilizing the buffer effectively. Could you please review the code and suggest any necessary modifications?&lt;/p&gt;
&lt;p&gt;Here are the requirements I need to implement:&lt;/p&gt;
&lt;p&gt;- Send a 16-bit command to the ADC via SPI. (receive the 16-bit data to the nRF52840 via SPI)&lt;br /&gt;- The 16-bit command must be sent at regular intervals defined by TIME_TO_WAIT_US.&lt;/p&gt;
&lt;p&gt;Could you advise on how to manage the variables uint8_t Command[30][2] and uint8_t result[70] more efficiently in the code?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [help me]SPI Commnunication btw nRF52 series and intanRHD2132, SPIM + TIMER</title><link>https://devzone.nordicsemi.com/thread/486324?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 08:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f972955b-b530-43b4-b700-290a646c103f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For new projects, we recommend that you use nRF connect SDK (ncs):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="seongmincho"]&lt;p&gt;1. The person in the link you provided uses &amp;#39;nRF5_SDK,&amp;#39; right? It seems to me that &amp;#39;nRF5_SDK&amp;#39; is often used with &amp;#39;SEGGER Embedded Studio&amp;#39;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Yes, but the low level nrfx APIs are quite similar (almost identical).&lt;/p&gt;
[quote user="seongmincho"]2. Is the difference between &amp;#39;nRF Connect SDK&amp;#39; and &amp;#39;nRF5_SDK&amp;#39; just that one is the newer version and the other is the older version? Sometimes it&amp;#39;s really confusing and difficult when looking at different versions of the code. There&amp;#39;s no clear place that explains these concepts, so I&amp;#39;m asking you.&amp;quot;[/quote]
&lt;p&gt;Both nRF5 SDK and NCS runs on the same hardware, so there will be similarities in the low level APIs.&lt;/p&gt;
&lt;p&gt;As mentioned, we do recommend that you use NCS for new projects.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [help me]SPI Commnunication btw nRF52 series and intanRHD2132, SPIM + TIMER</title><link>https://devzone.nordicsemi.com/thread/486320?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 07:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d39166b-f038-41d7-a078-7f819fbf0f7a</guid><dc:creator>seongmincho</dc:creator><description>&lt;p&gt;&amp;quot;Thank you so much for your response. I am applying PPI and making some adjustments.&lt;/p&gt;
&lt;p&gt;I have a few questions that are different from the original post&amp;#39;s topic.&lt;/p&gt;
&lt;p&gt;1. The person in the link you provided uses &amp;#39;nRF5_SDK,&amp;#39; right? It seems to me that &amp;#39;nRF5_SDK&amp;#39; is often used with &amp;#39;SEGGER Embedded Studio&amp;#39;.&lt;/p&gt;
&lt;p&gt;2. Is the difference between &amp;#39;nRF Connect SDK&amp;#39; and &amp;#39;nRF5_SDK&amp;#39; just that one is the newer version and the other is the older version? Sometimes it&amp;#39;s really confusing and difficult when looking at different versions of the code. There&amp;#39;s no clear place that explains these concepts, so I&amp;#39;m asking you.&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [help me]SPI Commnunication btw nRF52 series and intanRHD2132, SPIM + TIMER</title><link>https://devzone.nordicsemi.com/thread/486094?ContentTypeID=1</link><pubDate>Tue, 28 May 2024 07:20:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:175f5b47-0a18-498f-b1da-338c6adc41d2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The error that you&amp;#39;re receiving is 0xBAD0000 + 11 -&amp;gt;&amp;nbsp;NRFX_ERROR_BUSY.&lt;/p&gt;
&lt;p&gt;You should consider to use SPIM + PPI, as shown in this thread:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/97758/reading-samples-from-external-adc-using-spim-with-easydma-arraylist/418626"&gt;RE: Reading samples from external ADC using SPIM with EasyDMA arrayList&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>