SPRUJ55D September 2023 – July 2025 AM263P2 , AM263P2-Q1 , AM263P4 , AM263P4-Q1
Assumptions for this example:
| System clock | = 10 ns (100 MHz) |
| Deadband enabled in half-cycle mode, TBCLK = EPWMCLK | |
| Required PWM frequency |
1.33 MHz (1 / 750 ns) |
| Required PWM duty cycle |
0.5 (50%) |
| Required Deadband Rising Edge Delay | 5% over duty |
| Required Deadband Rising Edge Delay in ns | (0.05 * 375 ns) = 18.75 ns |
Deadband delay values as a function of DBFED and DBRED:
When half-cycle clocking is enabled, the formula to calculate the falling-edge-delay and rising-edge-delay becomes:
FED = DBFED * TBCLK / 2
RED = DBRED * TBCLK / 2
DBRED and DBFED calculated values:
Required Dead band Rising Edge Delay in ns = 18.75 ns
DBRED = RED / (TBCLK / 2)
DBRED = 18.75 ns / 5 ns
DBRED Required = 3.75 ns
With 55 MEP steps per coarse step at 180 ps each:
Step 1: Integer Deadband value conversion for DBREDM register
| Integer DBRED value | = int (RED / (TBCLK / 2)) | |
| = int (3.75) | ||
| DBRED | = 3 | |
Step 2: Fractional value conversion for Deadband high-resolution register DBREDHR
| DBREDHR register value | = (frac(DBRED Required) * MEP_ScaleFactor + 0.5) << 8 (Shifting is to move the value to the high byte of DBREDHR) |
| = (frac (3.75) * 55 + 0.5) << 8 | |
| = (0.75 * 55 + 0.5) << 8 | |
| = (41.75) * 256 Shifting left by 8 is the same as multiplying by 256. | |
| DBREDHR value | = 29C0h MEP Steps |
| Hardware ignores lower 9 bits in the above calculated DBREDHR value |