Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Reading capture pins

2004-04-05 by bobbruce000

--- In lpc2000@yahoogroups.com, "Bill Knight" <billk7670@c...> wrote:
> Just a though, but what about, in the interrupt routine, switch the
> pin(s) to GPIO input, read the pin state, then switch the pin(s)
> back to the original function?

This will not work reliably.  The value on the pin can change
just after you read the GPIO, but before you re-enable the
capture function.  So you can miss a transition.

    -bob

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.