Jump to main content

##

# 2.90.30 PWM_PhaseSet Function

## C

    inline static void PWM_PhaseSet(PWM_GENERATOR genNum,uint32_t phase)

## Summary

Sets the phase value in count for the PWM generator specific Time Base.

## Description

This function sets the phase for the specified PWM generator's time base, allowing you to adjust the signal's phase relative to other signals.

## Precondition

Refer datasheet for valid size of data bits.

## Parameters

Param | Description
--- | ---
genNum | PWM generator number
phase | PWM generator phase value in count

## Returns

None

## Example

    uint16_t phase;
    phase = 0xFFFF;
    PWM_PhaseSet(PWM_GENERATOR_1, phase);

## Remarks

None