SPRUIR8B april 2020 – july 2023
This example extends the features of example 1 to ensure an active high complementary pair PWM configuration always operates with a minimum value of dead-band irrespective of how the generating PWM module is configured. The example illustrates the configuration of four separate PWM tiles to implement PWM protection on four PWM modules. The outputs of PWM modules 1 to 4 are operated on by CLB tiles 1 to 4, respectively.
The protection functionality is enabled by the program variable “mode”. When set to 0 (the default condition), PWM signals are passed un-modified to the output pins. When set to 1, the PWM outputs are modified by the CLB to ensure dead-band.
To run the example, follow this procedure:
In the description that follows, it is assumed the C2000Ware directory above is in use.
PWM | Tile | F28379D LaunchPad | F280049 LaunchPad | F28388 Dock Station |
---|---|---|---|---|
1A | 1 | J4/40 | J8/60 | 49 |
1B | 1 | J4/39 | J8/59 | 51 |
2A | 2 | J4/38 | J8/56 | 53 |
2B | 2 | J4/37 | J8/55 | 55 |
3A | 3 | J4/36 | J4/36 | 50 |
3B | 3 | J4/35 | J4/35 | 52 |
4A | 4 | J8/80 | J8/58 | 54 |
4B | 4 | J8/79 | J8/57 | 56 |