Commit 7e47245
committed
unoq: modify prescalers for 16bits timers to achieve low frequency PWM signals
timer1 and timer8 are 16bits timers instead of being 32bits as all other timers.In UNO Q overlay, prescaler is set to 4, so it means which is not possible to achieve 50Hz PWM signal frequency on related pins. This frequence is used to control RC Servo motors. By changing to 63, it is now possible to achieve 50Hz, maintaining unchanged 500Hz, used by default by analogWrite. At 500Hz is still possible to use 12bits resolution. Maximum frequency available is 1.25MHz with only 50% duty option.1 parent b3c71df commit 7e47245
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
0 commit comments