I am using an IMXRT1020 MCU.
I have configured a GPIO interrupt to be "high-level sensitive" in the ICR1 register.
The documentation for the ISR register states:
"When the active condition has been detected, the corresponding bit remains set until cleared by software. Status flags are cleared by writing a 1 to the corresponding bit position."
However, I am seeing the ISR bit clear automatically when the GPIO level goes low. That is I am not having to write a 1 to clear the interrupt status flag.
I have tested this when the GPIO interrupt is set to "rising-edge sensitive" and indeed I do have to clear the ISR bit by writing a 1 to it in that case.
Question: Why do I not have to clear the ISR bit in software for the "high-level sensitive" interrupt? Is this correct behavior? Is the documentation incorrect?
Thanks.