On the uno we can pick the kHz we want for our PWM timers
62.5
7.8
1.96
.98
How can i set the mega to run at 62.5 kHz PWM?
Thanks,
Ryan
评论 (2)
#2 – readymotion 于 2018-05-31
So this the UNO’s
#define SPINDLETCCRAINIT_MASK ((1<
Mega’s
// 1/8 Prescaler, 16-bit Fast PWM mode
#define SPINDLETCCRAINIT_MASK ((1<
#1 – chamnit 于 2018-05-31
I think all you have to do is change the prescalars, like the 328p version does. I’m unsure what the macros are for it. They are available in the data sheet though.