Hi
I want to use nrf52 LATCH register. I can see the correct bit set in the register, but I am unable to clear this bit. I have tried NRF_P0->LATCH =0xFFFFFFFF; for my understanding this should clear all the bits in the LATCH register.
Please advise
Hi
I want to use nrf52 LATCH register. I can see the correct bit set in the register, but I am unable to clear this bit. I have tried NRF_P0->LATCH =0xFFFFFFFF; for my understanding this should clear all the bits in the LATCH register.
Please advise
Most likely reason is that the DETECT signal for that GPIO is still asserted, in which case clearing the LATCH will do nothing.
Most likely reason is that the DETECT signal for that GPIO is still asserted, in which case clearing the LATCH will do nothing.
+1 to RK
quote
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.