Hey Guys,
I have used the basic SPI Example from the nordic website, where a SPI Master is configured and a Text can be sent via SPI.
I used this code to send only one byte (the letter 'T') via the MOSI lane (i need it to send one byte later for in a project).
My Hardware is the Nordic evaluation board PCA10040 V1.2.1.
I have used default configuration for the SPI like in the example. When i execute the following code and m_length is 1, then the SPI transfers 2 Bytes instead of one, while the second byte is 0xFF.
nrf_drv_spi_transfer(&spi, m_tx_buf, m_length, m_rx_buf, m_length);
The decoded waveform is shown in the picture below. My problem is the second byte, where the MOSI Lane is always high.
I only want to send the first byte. I have no idea, why the clock doesn't stop after the first byte. Can Anybody help me out, with this problem?
Thank you very much :)