Jump to main content

##

# 2.90.16 PWM_MasterPeriodSet Function

## C

    inline static void PWM_MasterPeriodSet(uint32_t masterPeriod)

## Summary

Sets the period value for the Master Time Base generator.

## Description

This function allows setting the period for the Master Time Base generator, which controls the overall timing of the PWM module.

## Precondition

Refer datasheet for valid size of data bits.

## Parameters

Param | Description
--- | ---
masterPeriod | Period value in count

## Returns

None

## Example

     uint16_t masterPeriod;
     masterPeriod = 0xFF;

     PWM_MasterPeriodSet(masterPeriod);

## Remarks

None