DC Mode - PWM Frequency¶
The default PWM frequency is 131Hz. Functions F29-F30-F31 are defined to enable other frequencies.
The functions will toggle the bits ON/OFF as shown in the table.
| F31 | F30 | F29 | Nucleo-F4 | ESP32 | Mega | |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 131 | 131 | 131 |
| 0 | 0 | 1 | 1 | 480 | 480 | 490 |
| 0 | 1 | 0 | 2 | 3600 | 3400 | 3400 |
| 0 | 1 | 1 | 3 | 16000 | 16000 | 3400 |
| 1 | 0 | 0 | 4 | 32000 | 32000 | 62500 |
| 1 | 0 | 1 | 5 | 32000 | 32000 | 62500 |
| 1 | 1 | 0 | 6 | 32000 | 32000 | 62500 |
| 1 | 1 | 1 | 7 | 62500 | 32000 | 62500 |
NOTE:
-
The frequency does not change until a powerON command is sent.
-
Tracks are assigned to timers. Throttles are assigned to tracks.
Changing the frequency for one throttle will impact all tracks assigned to the same timer.
more information -
TODO How to effectively use DC mode when using multiple frequencies.