How send the larger data,which is more then 300 bytes in spi master example.i am using the Sdk 15.0.how to enable the spi .please send the default pins used for the spi.
How send the larger data,which is more then 300 bytes in spi master example.i am using the Sdk 15.0.how to enable the spi .please send the default pins used for the spi.
Just send the data in two transactions while keeping CS low.
Hi
Have you checked out the SPI example in the SDK?
\nRF5_SDK_15.0.0_a53641a\examples\peripheral\spi\
In this example the SPI pins are set by the SPI_SCK_PIN, SPI_MOSI_PIN, SPI_MISO_PIN and SPI_SS_PIN defines in sdk_config.h
As mentioned by Jörg you can send longer packets by controlling the chip select line manually, and sending multiple transactions while keeping chip select low.
Best regards
Torbjørn