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

Understanding how the Detect signal works and how to clear it

I'm just a bit confused on how gpio detect works.  After setting the sense config for input I realize that a change in voltage will trigger a sense signal that will create a Detect.  Also the detect will set latch.  I understand the latch will not be cleared until it is reset.  What I don't understand is what happens to the detect signal.  I assumed it set the latch, triggered whatever events were tied to it and then cleared.  It does not appear to work like that. 

I read about the detect a pin triggering a latch condition when it is enabled and observed that happen.  I figured that after that occured the detect signal would have passed and I could clear the latch register.  That did not work.  The latch would not clear.  Documentation says the latch will not clear if detect is still high.  Hence my question.  It seems to me that Detect should have cleared and not be high and the latch should have reset but that did not happen.

Would appreciate some insight into how Detect pin is cleared.

Thanks!

Related