2.90.28 PWM_PeriodSet Function

C

inline static void PWM_PeriodSet(PWM_GENERATOR genNum,uint32_t period)

Summary

Sets the period for a specific PWM generator's Time Base.

Description

This function sets the period for a specific PWM generator, which controls the timing of the PWM signal generated by the generator.

Precondition

Refer datasheet for valid size of data bits.

Parameters

ParamDescription
genNumPWM generator number
periodPWM generator period value in count

Returns

None

Example

uint16_t period;
period = 0xFFFF;
PWM_PeriodSet(PWM_GENERATOR_1, period);

Remarks

None