1.11.14.18 MCPWM_ChannelDeadTimeSet Function

C

void MCPWM_ChannelDeadTimeSet (MCPWM_CH_NUM channel, uint16_t deadtime_high, uint16_t deadtime_low)

Summary

Writes dead time values of given MCPWM channel.

Description

This function writes the dead time values

Precondition

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

Parameters

Param Description
channel MCPWM channel number
deadtime_high dead time inserted on high side output waveform
deadtime_low dead time inserted on low side output waveform

Returns

None

Example

MCPWM_Initialize();
MCPWM_Start();
MCPWM_ChannelDeadTimeSet(MCPWM_CH_0, 0x250, 0x50);

Remarks

Dead time is inserted between the edges of the two complementary outputs PWMxH and PWMxL to safely drive the external power control switches.