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

When can the PACKETPTR register be updated?

I am using the radio in the nRF52832 to support a custom protocol. I would like to send two packets in a row, each with different payloads, on the same frequency. When can I safely update the PACKETPTR register to point to the new packet contents? After the PAYLOAD event or after the END event?

After the PAYLOAD event would be ideal, as this would allow me to use the END->START shortcut, provided I can update the PACKETPTR register in the time it takes to transmit the CRC. The datasheet actually says to wait until after the DISABLED event, but I am hoping that is not the case.

Thanks!

Parents
  • One update though, The CRC is calculated on the fly in the hardware while TX/RX, So for TX even though we are sure that getting PAYLOAD, ADDRESS or END event marks for sure that EasyDMA is finished but that does not mark the it is safe to update the PACKETPTR because can still be CRC pending.

    I think we will stick to what PS says that we need to wait for the DISABLED event and not rely on theories. We would not achieve any significant throughput or power advantages on taking this risk.

Reply
  • One update though, The CRC is calculated on the fly in the hardware while TX/RX, So for TX even though we are sure that getting PAYLOAD, ADDRESS or END event marks for sure that EasyDMA is finished but that does not mark the it is safe to update the PACKETPTR because can still be CRC pending.

    I think we will stick to what PS says that we need to wait for the DISABLED event and not rely on theories. We would not achieve any significant throughput or power advantages on taking this risk.

Children
No Data
Related