Skip to content

Commit

Permalink
Update analog.rst (#1756)
Browse files Browse the repository at this point in the history
Added text about specific dependencies between analogWriteRange and analogWriteFreq
  • Loading branch information
palmerr23 authored Oct 7, 2023
1 parent 7868dde commit f6a5ef0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/analog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ Analog Output Restrictions
--------------------------

The PWM generator source clock restricts the legal combinations of
frequency and ranges. For example, at 1MHz only about 6 bits of range
frequency and ranges.
At a CPU frequency of 133MHz, the 16 bit maximum range decreases by 1 bit for every doubling of the default PWM frequency of 1 kHz.
For example, at 1MHz only about 6 bits of range
are possible. When you define an ``analogWriteFreq`` and ``analogWriteRange``
that can't be fulfilled by the hardware, the frequency will be preserved
but the accuracy (range) will be reduced automatically. Your code will
Expand Down

0 comments on commit f6a5ef0

Please sign in to comment.