2.62.9 MCPWM_ChannelSecondaryDutySet Function

C

void MCPWM_ChannelSecondaryDutySet(MCPWM_CH_NUM channel, uint16_t duty)

Summary

Writes the secondary duty cycle value of given MCPWM channel

Description

This function writes the secondary duty cycle value

Precondition

MCPWM_Initialize() function must have been called first for the associated instance.

Parameters

ParamDescription
channelMCPWM channel number
dutyduty cycle value which determines ON time of waveform

Returns

None

Example

MCPWM_Initialize();
MCPWM_Start();
MCPWM_ChannelSecondaryDutySet(MCPWM_CH_0, 0x200);

Remarks

In center-aligned asymmetric mode, this specifies the trailing edge of the ON time.