In the nRF52840 Product Specification PDF v1.11, on page 323, the third paragraph down states:
1. "If the CPU performs a clear operation on a bit in the LATCH register when the associated PINx.DETECT signal is high, the bit in the LATCH register will not be cleared."
2. "The LATCH register will only be cleared if the CPU explicitly clears it by writing a 1 to the bit that shall be cleared"
This is contradictory. A "clear operation" IS writing a 1 to the bit. In the LATCH register definition, on page 346, it clearly states "Write '1' to clear" - so a "clear operation" IS writing a 1 to the bit.
Therefor, the first and second sentence contradict each other.
Suggested correction:
"Writing 1 to clear a LATCH bit will only succeed if the pin is no longer matching its SENSE condition. If the pin is still matching its SENSE condition, the bit will remain set."
References:
https://docs-be.nordicsemi.com/bundle/ps_nrf52840/attach/nRF52840_PS_v1.11.pdf?_LANG=enus
