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

SPI Slave max RX Bytes

I am using the SPI Slave peripheral and attempting to send the nrf51822 bytes from another MCU.

Am I right to assume that there is, basically, a 256 byte max per transaction? I am basing this off the fact that the AMOUNTRX register is 8 bits. In practice (I tried), if I try to send more than 256 bytes of data, the value rolls over after 256 (so if I send 258 bytes, the AMOUNTRX register tells me 2).

If that is the case, is it documented somewhere? I didn't see it in the SDK documentation. Wouldn't it make sense to warn the user or even error out if they try to hand in more than a 256 byte buffer?

I am currently using S120 2.0 with SDK 8.0. My hardware is the new 32K RAM version of the nrf51822.

Related