Raspberry Pi Pico ADC changes the sampling rate in Free-running Sampling mode #15816
Answered
by
robert-hh
leezisheng
asked this question in
RP2040 / Pico
-
Beta Was this translation helpful? Give feedback.
Answered by
robert-hh
Sep 9, 2024
Replies: 2 comments 11 replies
-
The right hand expression |
Beta Was this translation helpful? Give feedback.
11 replies
Answer selected by
leezisheng
-
And data bits 31:24 are reserved bits, we should not operate on them, so why my original expression does not work properly, but it does after modification.? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The right hand expression
div_value | (int_part << 8) | frac_part
seems wrong. I would have expected it to be(int_part << 8) | frac_part
. The previous int_part of the DIV register is 0xbfff. So if you OR 100 (0x64) to it, it will still stay 0xbfff.