PWM Design Parameters
PIC PWM Governing Equations
Tins(μs) = 4 / Fosc(MHz)
T(μs) = Tins × Prescaler × (PR2 + 1)
Ton(μs) = Tins × Prescaler × (CCPR1L:CCP1CON<5:4> / 4)
10-bit DC Val = CCPR1L:CCP1CON<5:4> = Duty% × 4 × (PR2 + 1)
Target Specifications Out of Bounds!
The requested PWM timing cannot be generated with Timer2 for this FOSC.
Interactive PWM Waveform Diagram (2 Cycles)
Hover over the waveform diagram to inspect instantaneous timing parameters & amplitude.
Hardware Register Calculations
Prescaler Comparison Table (1:1, 1:4, 1:16)
3 prescalers| Prescaler | PR2 (Dec / Hex) | CCPR1L | 10-bit Duty | Actual Freq | Status | Action |
|---|---|---|---|---|---|---|
| No calculation performed yet. | ||||||