Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PORT interrupt handling, reading LATCH persists previous value #16

Open
natersoz opened this issue Oct 20, 2018 · 1 comment
Open

PORT interrupt handling, reading LATCH persists previous value #16

natersoz opened this issue Oct 20, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@natersoz
Copy link
Owner

This is probably related to the Nordic errata:

     * Errata nRF52832 Rev2, v1.0 3.44 [173]
     * GPIO: Writes to LATCH register take several CPU cycles to take effect
     * Conditions:   Reading the LATCH register right after writing to it.
     * Consequences: Old value of the LATCH register is read.
     * Workaround:   Have at least 3 CPU cycles of delay between the write
     *               and the subsequent read to the LATCH register.
     *               This can be achieved by having 3 dummy reads to the
     *               LATCH register.

The LATCH set of bits contains the bit from the previous interrupt.

@natersoz natersoz added the bug Something isn't working label Oct 20, 2018
@natersoz
Copy link
Owner Author

I've found a work around for this which is now in master.
A better solution would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant