2.62.10 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

ParamDescription
channelMCPWM channel number
deadtime_highdead time inserted on high side output waveform
deadtime_lowdead 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.