Skip to main content
2 of 2
Minor fixes
Greenonline
  • 3.2k
  • 7
  • 37
  • 49

Write PWM with only 8 bit? (Timer2)

I have a problem with the Servo library.

I need to read a PPM signal and create a PWM signal of each channel. The problem is that PPM has a higher resolution than PWM so I want to use the 16 bit Timer1 for reading PPM. However the Servo library that writes the PWM signal also uses Timer1.

Is it possible to generate a PWM signal with 8 bit / Timer2? And has someone made an example, or an explanation about, how to do that?

betion
  • 115
  • 2
  • 6