Presentation is loading. Please wait.

Presentation is loading. Please wait.

Timer 1 and 2 operation, PWM Principles. Timer 1 Operation.

Similar presentations


Presentation on theme: "Timer 1 and 2 operation, PWM Principles. Timer 1 Operation."— Presentation transcript:

1 Timer 1 and 2 operation, PWM Principles

2 Timer 1 Operation

3 Timer 1 Control Register

4 Pulse Width Modulation (PWM)

5 Generating PWM signals in Software

6 Generating PWM using HW (1)

7 Generating PWM using HW (2)

8 Timer 2 Block diagram

9 Timer 2 Control Register

10 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.

11 CCPxCON Register

12 Capture Mode Operation

13 Compare Operation Diagram

14 PWM Operation Diagram

15 PWM Output at Pin RC2

16 PWM Calculations and Setup


Download ppt "Timer 1 and 2 operation, PWM Principles. Timer 1 Operation."

Similar presentations


Ads by Google