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

Can EVENT register go above 1

Hi, 

If event is not handled (or handled but EVENT register not cleared), will it go above 1 or is it binary?

In other words, can the value be used to detected missed interrupts (in case a softdevice is running)

Thanks

Parents
  • No, EVENTS are always 1 or 0.

    Side note: In the nRF52832 Product Specification v1.4
    Section 15.8.1 Peripheral Interface, Interrupt clearing

    Explains why a volatile dummy read is required after clearing an interrupt.

    But to the larger question: How do I detect missed events or can they be detected?

    I don't think you can detect dropped events directly through the EVENT (or TASK) registers.

    You would have to infer the drop due to other register or state context.

Reply
  • No, EVENTS are always 1 or 0.

    Side note: In the nRF52832 Product Specification v1.4
    Section 15.8.1 Peripheral Interface, Interrupt clearing

    Explains why a volatile dummy read is required after clearing an interrupt.

    But to the larger question: How do I detect missed events or can they be detected?

    I don't think you can detect dropped events directly through the EVENT (or TASK) registers.

    You would have to infer the drop due to other register or state context.

Children
No Data
Related