8000 Update analog.rst (#1756) · abdukir/arduino-pico@f6a5ef0 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6a5ef0

Browse files
authored
Update analog.rst (earlephilhower#1756)
Added text about specific dependencies between analogWriteRange and analogWriteFreq
1 parent 7868dde commit f6a5ef0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/analog.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ Analog Output Restrictions
4040
--------------------------
4141

4242
The PWM generator source clock restricts the legal combinations of
43-
frequency and ranges. For example, at 1MHz only about 6 bits of range
43+
frequency and ranges.
44+
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.
45+
For example, at 1MHz only about 6 bits of range
4446
are possible. When you define an ``analogWriteFreq`` and ``analogWriteRange``
4547
that can't be fulfilled by the hardware, the frequency will be preserved
4648
but the accuracy (range) will be reduced automatically. Your code will

0 commit comments

Comments
 (0)
0