Jump to main content

##

# 2.89.23 PWMx_SyncUpdateEnable Function

## C

    /* x = PWM instance number */

    void PWMx_SyncUpdateEnable (void);

## Summary

This sets the synchronous update unlock bit

## Description

This function sets the synchronous update unlock bit which enables update of period, duty and dead-time values from double buffer register to actual register at the next PWM period border.

## Precondition

PWMx_Initialize() function must have been called first for the associated instance. And new period or duty or dead-time value must have been written in a double buffer register.

## Parameters

None

## Returns

None

## Example

    PWM0_Initialize();
    PWM0_SyncUpdateEnable();

## Remarks

In sync mode update method 1 (manual update), this function has to be called to update period, duty and dead-time values to actual register. In sync mode update method 2 (automatic update), this function has to be called to update only period and dead-time. Duty value update happens automatically.