This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Inter SPI time

Hello, 

I wish to send SPI message by 2 Bytes per once, total 102 bytes.

Basically SPI works fine.

I wonder if there is way to reduce inter SPI time. It measured 18u sec.

Could it be around 2 u sec?

Below is my source code. 

nbBYtes is 102. TxBuffer and RxBuffer is 102 size buffer.

    for(index = 0; index < (nbBYtes / 2); index++)
    {
        spi1_xfer_done = false;

        err_code = nrf_drv_spi_transfer(&m_spi_ntm, &TxBuffer[2 * index], 2, tempRx, 2);
        RETURN_IF_ERROR(err_code);

        while (!spi1_xfer_done)
        {
            __WFE();
        }

        RxBuffer[2 * index] = tempRx[1];
        RxBuffer[2 * index + 1] = tempRx[0];
    }

Parents Reply Children
No Data
Related