Timer 1 and 2 operation, PWM Principles
Timer 1 Operation
Timer 1 Control Register
Pulse Width Modulation (PWM)
Generating PWM signals in Software
Generating PWM using HW (1)
Generating PWM using HW (2)
Timer 2 Block diagram
Timer 2 Control Register
Capture, Compare, PWM (CCP) There are two CCP modules in the 16F877. Each has two eight bit registers. They modules work in conjunction with either timer1 or timer2. They have three main modes of operation.
CCPxCON Register
Capture Mode Operation
Compare Operation Diagram
PWM Operation Diagram
PWM Output at Pin RC2
PWM Calculations and Setup