spim2、ncs2.6.1
I used SPIM2 to send the string "Hello, SPIM!" and receive data of the same length.
However, on the logic analyzer, I can only see the transmitted signals, and there are no received signals。

spim2、ncs2.6.1
I used SPIM2 to send the string "Hello, SPIM!" and receive data of the same length.
However, on the logic analyzer, I can only see the transmitted signals, and there are no received signals。
Hi,
What is your setup, are you connecting back to the same device as a loopback, or do you connect to an external device (and if so which one?)
Regards,
Terje
So what is connected to MISO?
Kenneth
I think that even if the slave doesn't respond, the master should still generate 13 bytes worth of clock signals.
But it's 13 bytes there, each ascii is 1byte.
Kenneth
All the SPI pins are connected to a logic analyzer: MISO, MOSI, CS, and CLK. The first 13 bytes are sent from the master to the slave. Shouldn't there be 13 bytes of clock signals generated by the master afterward to receive data from the slave?
MISO and MOSI are in parallel, so if you need additional 13bytes from slave, then you need to set the rx buffer to 26.
Kenneth
MISO and MOSI are in parallel, so if you need additional 13bytes from slave, then you need to set the rx buffer to 26.
Kenneth
Thank you for letting me know all this. How can I configure SPI to receive only after transmission, in half-duplex mode, instead of increasing the receive buffer to 26?
Hi,
Afaik that is not possible no. All communication in SPI is bidirectional.
Kenneth