1.10.13.11 1.11.14.11 1.12.14.11 1.13.13.11 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

Param Description
channel MCPWM channel number
duty duty 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.