Skip to content
Discussion options

You must be logged in to vote

Q1. Is it possible to bias the clocking of the PIO so that inaccuracies can be made in real time, but only by adding or subtracting clock pulses every so often?

You may change the divider in real time, including its fractional part. This will result in some single clock pulses introduced in the effective PIO clock so that the PIO clock effectively has the f_sys / (integer_div + fractional_div/256) frequency.
If the resulting frequency resolution is not precise enough you might regularly switch between different dividers, preferably between neighboring fractional values of the divider.
The resulting PIO clock will be effectively (i.e. in the long run) more precise and adjustable in finer…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@mungewell
Comment options

@mungewell
Comment options

Comment options

You must be logged in to vote
4 replies
@rkompass
Comment options

Answer selected by mungewell
@mungewell
Comment options

@mungewell
Comment options

@mungewell
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants