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

RP2040 datasheet Appendix A, 'WC' field type #434

Open
arg08 opened this issue Dec 13, 2024 · 0 comments
Open

RP2040 datasheet Appendix A, 'WC' field type #434

arg08 opened this issue Dec 13, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation pdf rp2040 Concerning the RP2040 chip

Comments

@arg08
Copy link

arg08 commented Dec 13, 2024

In the description of the WC field type it correctly says:

The bit is cleared by writing a 1,

But then goes on to say:

using either a normal write or the clear alias. See Section 2.1.2 for more information about the clear alias.

The reference to the clear alias is just plain wrong - you can't write a zero using the clear alias. You could potentially do it using the set alias, but there's no point as the whole reason for having write-1-to-clear registers is that you can just write the value to them without affecting other bits.

Note: this issue being raised as a result of assisting confused users on the forums who had tried and failed to use the clear alias; while I understood the WC fields myself based on prior experience, I have to agree that the documentation is misleading.

Note also that this is RP2040-only: the RP2350 datasheet has the same appendix but with a much more straightforward (and correct!) description.

@lurch lurch added documentation Improvements or additions to documentation rp2040 Concerning the RP2040 chip pdf labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation pdf rp2040 Concerning the RP2040 chip
Projects
None yet
Development

No branches or pull requests

2 participants