This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problems with the SPI SCK on the nRF51822 in SPI Slave Mode

Hi,

I'm trying to connect my nRF51822 PCA100001 development board to a ARM M3 processor via the SPI. In this case the ARM M3 is the SPI master and the nRF51822 is the SPI slave. I'm using the spi_slave_pca10028 SPI example as my starting point for setting up the nRF51822 as the SPI Slave. I do not have a SoftDevice programmed on the nRF51822.

When I enable the nRF51822 SPI by setting the NRF_SPIS1->ENABLE and send a SPI packet from the Master to the Slave my SCK seems to get cut in half when viewing it on the scope.

When the nRF51822 SPI Slave is disabled and I send a SPI packet from the master to the slave my SCK clock range is from 0V - 3V.

When the nRF51822 SPI Slave is enabled and I send a SPI packet from the master to the slave my SCK clock range is from 1.3V - 3V. So it looks like enabling the SPI slave on the nRF51822 is messing with my SPI SCK.

Have you encountered this problem?

Thanks!

Parents
  • Hi Stefan,

    Thanks for taking a look at my question. I checked my nRF51822 chip markings and I have the following nRF51 chip on my development board.

    N51822 QFAACA 1230AA

    From looking at the compatibility matrix and reading the nRF51822 PS v1.3 associated with this nRF51 chip revision it looks like this chip is Revision 1. So it doesn't have the SPI Slave peripheral. Can you please confirm this?

    Thanks!

Reply
  • Hi Stefan,

    Thanks for taking a look at my question. I checked my nRF51822 chip markings and I have the following nRF51 chip on my development board.

    N51822 QFAACA 1230AA

    From looking at the compatibility matrix and reading the nRF51822 PS v1.3 associated with this nRF51 chip revision it looks like this chip is Revision 1. So it doesn't have the SPI Slave peripheral. Can you please confirm this?

    Thanks!

Children
Related