Target Category: F281X
Sub-Target Category: PWM
Description: The Full Compare PWM block lets you set up a full compare PWM unit. You can choose to specify the action at initialization and it will not change during execution.
The input pins control the duty cycle of the PWM waveform. They are at scaled 1.16. The input value is multiplied by the PWM period and assigned to the PWM compare register to generate a fractional duty cycle. Thus, an input of 0.5 (fx1.16) yields a 50% duty cycle; an input of 0 yields 0% duty cycle; and an input of 0.99997 (the largest possible positive value in 1.16 notation) yields 100% duty cycle.
Interactive mode: The entire block is inactive in this mode.
Action: Specifies the action to be applied to the selected PWM pin.
Add Enable Pin: Adds an input pin to the block that allows software control to enable or disable the PWM unit.
Add External Action Pin: Defaults to Active High if you do not activate.
CMP Reg Load On: Determines the event that causes the CMP register to be loaded. You have three choices:
CTR=Zero: Loads when counter equals
0
CTR=PRD or Zero: Loads when counter equals period or
0
Immediate: Loads immediately
Count Mode: Specify one of four modes: up and down; up; hold; or TDIR control. Note: Do not specify hold or TDIR control.
Initial Timer Count: Specifies the initial count for the timer. The timers are started in numerical order, one after the other with no intervening instructions. Order placement on screen will have no effect.
PWM Pin: Determines which pin to which an action is to be supplied. There are six pins.
Timer Period: In conjunction with Timer Rate Scaling, determines the base PWM frequency. See Texas Instruments documentation for more information.
Timer Rate Scaling: In conjunction with Timer Period, determines the base PWM frequency. See Texas Instruments documentation for more information.
Timer Source: Specifies the timer source. You can choose either 1 or 3.
Use Deadband, Deadband Prescaling, Deadband Tick Count: Sets the amount of deadband between PWM switching to avoid drawing too much current in a power-controlled circuit.