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

NRF_UARTE0: Can I check received bytes befor generating event EVENTS_ENDRX

Hi all, About the NRF_UARTE0 of nRF52, I want to check the number of received data(example:I set RXD.MAXCNT=16, but I just receive 10 bytes now.Then I want to handler these 10 bytes,how to to?). According to doc,I can't find any way to get the length of received data,just generate event EVENTS_ENDRX when the length received bytes is equal to RXD.MAXCNT.I don't want to trigger STOPRX task to generate event EVENTS_ENDRX,then read RXD.AMOUNT to check this, Maybe lost bytes. So how can I do this?

Parents Reply
  • I'm running into the same issue on my end. With the current peripheral design, I need to setup a periodic timer which triggers TASK_STOPRX, causes the EVENTS_ENDRX interrupt, and the I can read RXD.AMOUNT. This forces me to set a latency value (the period of the timer) and delays all of my messages. I feel like this is a hardware bug and should be listed in the errata.

Children
No Data
Related