1.6.25.69 TCCx_PWMDeadTimeSet Function
C
/* x = TCC instance number */
void TCCx_PWMDeadTimeSet(uint8_t deadtime_high, uint8_t deadtime_low);
Summary
Sets the dead time of a given TCC module.
Description
This function updates low-side and high-side dead time. Dead time values are applicable to all the channels of the TCC module.
Precondition
TCCx_PWMInitialize function must have been called first for the given channel. And TCC module is in disabled (stopped) state.
Parameters
Param | Description |
---|---|
deadtime_high | dead-time for high side |
deadtime_low | dead-time for low side |
Returns
none
Example
TCC0_PWMInitialize(); TCC0_PWMDeadTimeSet(0x100U, 0x100U);
Remarks
This function can be called only when TCC module is disabled.