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

EVTEN & INTEN nRF52 RTC

The documentation for EVTEN in the manual, showing the RTC Tasks and Events system (Figure 45) led me to believe that if EVTEN for an event is disabled the EVENT will never get signalled (ie set to 1 in the register) nor will an IRQ get triggered, the diagram shows both those things gated on EVTEN. So I expected that having EVTEN disabled would mean the event would never occur, and never get signalled in the register.

What I actually see however is different. If EVTEN is disabled but INTEN is enabled when the TICK or COMPARE happens, the interrupt fires and the EVENT is signalled in the register. So you get an event for which EVTEN is zero.

So it seems more like the event is only disabled if EVTEN and INTEN are both disabled. If either o them are '1' for that event, the event happens.

Am I misreading the diagram??

Related