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

SPIM EasyDMA - sending and reading one byte

Hello, I am developing custom HAL driver for SPI in NRF52 (PCA10040). The problem is that using the EasyDMA MAXCNT registers value must be between 1...255. It implicates that sending and receiving 1 Byte of data is impossible. SPIM alway clocks 16bit of data on the SPI bus. I configured the TXD.MAXCNT/RXD.MAXCNT to 0 for receiving/sending, but this solution led me into undefined behavior of SPIM peripheral.

I have a question whether it is possible to clock 1 byte of data using EasyDMA in SPIM.

Related