1.2.24.69 1.3.24.69 1.4.25.69 1.5.23.69 1.6.25.69 1.7.26.69 1.29.27.69 1.30.17.69 1.31.17.69 1.33.19.69 1.37.17.69 1.40.24.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.