nRF52832 SPIM Extra Clock

Dear Nordic team

I have the following code for testing the SPIM function of nRF52832.

NRF_SPIM1->EVENTS_END = 0U;
NRF_SPIM1->ENABLE = 0;
NRF_SPIM1->ENABLE = (SPIM_ENABLE_ENABLE_Enabled << SPIM_ENABLE_ENABLE_Pos);

dataout= 0x05;
NRF_SPIM1->EVENTS_END = 0;
NRF_SPIM1->TXD.PTR = (uint32_t)&dataout;
NRF_SPIM1->TXD.MAXCNT = 1;
NRF_SPIM1->RXD.PTR = (uint32_t)&datain;
NRF_SPIM1->RXD.MAXCNT = 1;

NRF_SPIM1->TASKS_START = 1;
while (!NRF_SPIM1->EVENTS_END);

After running the code and capturing the signal, we found that there are extra clock pulse appears after sending the data.

Device: nRF52832

SDK 15.3.0

softdevice: S332 v6.1.1

Would you help?

Best Regards

dtt

Related