This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI MISO data bus empty on logic Analyser

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 to read the voltage of the cells. Through a logic Analyser, I see that I am sending the correct frames on the MOSI bus, the clock is working fine and the Channel Select aswell.

The only thing that is always empty is the MISO bus which means that I can't retrieve the data from the LTC6804. I have tried everything that was described in the devzone (Correct Pins, changing SPI mode, pull-up resistors, changing the size of my rx buffer) but nothing worked. 

Do you have any ideas?

Thank you!

The frames I am sending to read the voltage:

My SPI configuration

The logic analyser results:

 

  • Hello, 

    Thank you for your answer. 

    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. 

    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. 

  • 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. 

    The logic analyser is only displaying what data go through the bus, right? So I don't know if the issue is starting from here

  • Something is obviously not correct here, it'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?

  • Hello, 

    I solved the issue. It was at a hardware level: 

    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.

    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.

    Thank you for your help!

Related