Jump to main content

##

# 2.90.15 PWM_MasterDutyCycleSet Function

## C

    inline static void PWM_MasterDutyCycleSet(uint32_t masterDutyCycle)

## Summary

Sets the PWM master duty cycle register.

## Description

This function sets the duty cycle for the Master Time Base generator, which determines the width of the PWM signal relative to the period.

## Precondition

Refer datasheet for valid size of data bits.

## Parameters

Param | Description
--- | ---
masterDutyCycle | Master Duty Cycle value

## Returns

None

## Example

     uint16_t masterDutyCycle;
     masterDutyCycle = 0xFF;

     PWM_MasterDutyCycleSet(masterDutyCycle);

## Remarks

None