<?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>SPI MISO data bus empty on logic Analyser</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88418/spi-miso-data-bus-empty-on-logic-analyser</link><description>Hello everyone, 
 I am working with the SDK v17.1.0 with the DK nRF52832. I want te retrieve data from a battery cell monitor which uses the LTC6804 from Analog Device. 
 I am communicating with it through SPI and sending it the trams of commands necessay</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Jun 2022 13:53:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88418/spi-miso-data-bus-empty-on-logic-analyser" /><item><title>RE: SPI MISO data bus empty on logic Analyser</title><link>https://devzone.nordicsemi.com/thread/371698?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2022 13:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:990635ba-98b4-4c44-b1d9-f718318e3d98</guid><dc:creator>vw_dev</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I solved the issue. It was at a hardware level:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using a demo circuit implementing the LTC6804 which output is in isoSPI. I added a isoSPI/SPI interface and then connected it with a breadboard to the nrf52832. I also removed my pull-ups and it is working fine.&lt;/p&gt;
&lt;p&gt;The MOSI channel is sending the right frames and the MISO is responding only after the MOSI frames with the correct values. It was not because the logic analyser were not configured correctly.&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MISO data bus empty on logic Analyser</title><link>https://devzone.nordicsemi.com/thread/371405?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 12:43:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e38de31e-6942-405b-8b05-c5b04de888e0</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Something is obviously not correct here, it&amp;#39;s either the logic analyzer not configured correctly or the slave. Can you flash the chip with the nrfx SPI example from the SDK and see if the data is duplicated on MISO?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MISO data bus empty on logic Analyser</title><link>https://devzone.nordicsemi.com/thread/370427?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 11:50:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:801c7362-a7f6-4119-8609-06c03a1e03aa</guid><dc:creator>vw_dev</dc:creator><description>&lt;p&gt;What I find strange is that on a normal SPI communication, the response on the MISO bus should be after receiving the command frames, which is not the case here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The logic analyser is only displaying what data go through the bus, right? So I don&amp;#39;t know if the issue is starting from here&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MISO data bus empty on logic Analyser</title><link>https://devzone.nordicsemi.com/thread/370425?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 11:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:702b6368-0206-4936-b0fb-f663bac18cad</guid><dc:creator>vw_dev</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The slave is configured so that when it receive commands frames, it would respond automatically. I only changed the physical jumpers to disable isoSPI communication and enable SPI communication.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the slave board, the uC used is the LTC6804-1, which is indeed daisy-chainable. I know that the slave is also configured so that it transmits the data to a external uC as the nRF. I am only using one slave, so I assumed that the slave would respond only after receiving command frames.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MISO data bus empty on logic Analyser</title><link>https://devzone.nordicsemi.com/thread/370395?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 10:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b37ec960-90db-4382-ae86-964416501cdd</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;fair point, &lt;a href="https://devzone.nordicsemi.com/members/vw_5f00_dev"&gt;vw_dev&lt;/a&gt; could you double check this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MISO data bus empty on logic Analyser</title><link>https://devzone.nordicsemi.com/thread/370285?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 15:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8790718-e1b7-433d-8dfc-fbe7648136ce</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;The picture shows a different waveform on MISO to that on MOSI, which is to be expected and might even be correct. The decode above MISO on the picture seems to indicate the logic analyser has been set to decode MOSI on both traces instead of MISO on the 2nd trace&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MISO data bus empty on logic Analyser</title><link>https://devzone.nordicsemi.com/thread/370246?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 13:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc01817f-976c-4e30-bb26-c5702615e9ca</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I am communicating with it through SPI and sending it the trams of commands necessay to read the voltage of the cells. Through a logic Analyser, I see that I am sending the correct&amp;nbsp;frames on the MOSI bus, the clock is working fine and the Channel Select aswell.[/quote]
&lt;p&gt;Usually, this would indicate that the issue relies with the slave. If the output from the nRF really is correct then the slave should respond as described in the datasheet, if it doesn&amp;#39;t then maybe the slave isn&amp;#39;t configured correctly according to its datasheet?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="vw_dev"]&lt;p&gt;Now it seems that the data in the MISO bus is the same as the MOSI&amp;#39;s as shown in the picture. But no traces of the response... Can you help me with that?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8547.MISO_5F00_copies_5F00_MOSI.PNG" alt=" " style="cursor:zoom-in;" /&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Given the datasheet of the LTC6804-2 a quick read, I saw that the device has the option of daisy chaining. Which would explain why it&amp;#39;s replicating the data that is sent on MOSI onto MISO. Most likely the slave is configured to be SPI master for daisy chaining, I suggest that you doublecheck the datasheet and verify if it&amp;#39;s configured correct or not. Also the internal pull-up on the nRF is 13k.&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: SPI MISO data bus empty on logic Analyser</title><link>https://devzone.nordicsemi.com/thread/370137?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 08:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2f79dbd-1251-43ca-a868-c877867517f0</guid><dc:creator>vw_dev</dc:creator><description>&lt;p&gt;Thank for the answer!&lt;/p&gt;
&lt;p&gt;I added in my setup a pull-up resistor powered by the VDD of the DK, on every SPI buses, and I configured in&amp;nbsp;the sdk_config.h :&lt;/p&gt;
&lt;p&gt;&lt;em&gt;NRF_SPI_DRV_MISO_PULLUP_CFG 3&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Which configure the MISO GPIO pin into pull-up.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now it seems that the data in the MISO bus is the same as the MOSI&amp;#39;s as shown in the picture. But no traces of the response... Can you help me with that?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/MISO_5F00_copies_5F00_MOSI.PNG" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MISO data bus empty on logic Analyser</title><link>https://devzone.nordicsemi.com/thread/370056?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 23:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aadbb01c-13ed-44b4-81bc-41dcb6c3c96e</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;I think MISO should be high - regardless of whether the PEC is calculated correctly - when a tx frame from the host nRF52 is started; since it is shown as low on the logic analyser this implies there is no pull-up fitted (pedantic: or no pin connection or incorrect nRF52 pin config or pin short to ground):&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;em&gt;Connecting ISOMD to V&amp;ndash; configures serial Port A for 4-wire SPI. The SDO pin is an open drain output which requires a pull-up resistor tied to the appropriate supply voltage&lt;/em&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>