PWM resolution vs frequency

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PWM resolution vs frequency

Jump to solution
3,046 Views
PW_CTL
Contributor III

Hi, 

 

I see a relation between frequency and resolution in the PWM module. Is there any equation for this with a S08SH? Any way to know how many time I need to reach a desired resolution?

 

I would like to generate a 200KHz PWM with more than 8 bits resolution, is it possible directly with a S08SH?

 

Thanks.  

Labels (1)
0 Kudos
1 Solution
1,134 Views
bigmac
Specialist III

Hello,

 

To achieve 8-bit PWM resolution at 200kHz frequency would require a TPM clock frequency of 256 * 200 kHz, or 51.2 MHz.  This is clearly not feasible with 8-bit MCU devices.

 

Regards,

Mac

 

View solution in original post

0 Kudos
2 Replies
1,135 Views
bigmac
Specialist III

Hello,

 

To achieve 8-bit PWM resolution at 200kHz frequency would require a TPM clock frequency of 256 * 200 kHz, or 51.2 MHz.  This is clearly not feasible with 8-bit MCU devices.

 

Regards,

Mac

 

0 Kudos
1,134 Views
PW_CTL
Contributor III

Ok, thanks for the aclaration. 

0 Kudos