Hi i want to control 15 servos in a robotics project using atmega 16. But here only 4 pins can be used as pwm pins. i.e, i can only control 4 servos as each servo requires a pwm pin. I have heard that other i/o pins of mega 16 can be configured as pwm pins using timer. i want to know that is it possible to generate pwm in other i/o pins in mega 16?
If possible please give me a sample code so that i can understand. I have knowledge on how to configure timer in CTC and PWM mode.