Hi,
If you set PTPER to 51 with the prescaler set to 1:1 and 8MHz clock you'll get a PWM period of 26us which 38461Hz, set it to 52 and you'll get 37736Hz.
Just remember that the resolution won't be 14 or even 10 bits at that PWM frequency and oscillator frequency. Forumla says you'll get 7.7bits which would be a dutycycle value of 0 to 246 or there abouts.
/Henrik.
EDIT: Oh, and the highest frequency possible would be when you set PTPER to 1 which would give you a PWM frequency of 1MHz. The resolution will be 2 bits.
Bookmarks