External Sync

Purpose

External synchronization port for HRTIM and PWM blocks

Library

STM32

Description

../../_images/external_sync.svg

The External Sync block allows to synchronize the start of connected HRTIM and PWM blocks based on an external signal. In addition, the External Sync block allows to reset the internal counter of the connected HRTIM and PWM block to zero when a rising or falling edge was detected on the external signal connect to the specified pin. The External Sync block can also be used to generate an external synchronization signal.

Parameters

Synchronization

Specifies if the External Sync block should act as master or slave. If set to react to external SYNC signal (slave) the External Sync block reads in an external synchronization signal and allows synchronizing HRTIM and PWM blocks to an external signal. If set to generate external SYNC signal (master) the External Sync block generates a synchronization signal at the specified pin. This generated signal can be used on a different MCU board in order to synchronize the PWM signals together.

Synchronization behaviour (slave)

Specifies if the External Sync block should only start the connected HRTIM or PWM counter (Start on sync) or should also reset them (Start and reset on sync).

Synchronization behaviour (master)

If set to Output positive pulse the External Sync block will generate a synchronization pulse changing from 0V towards the positive voltage reference. If set to Output negative pulse the External Sync block will generate a falling edge synchronization pulse changing from the positive voltage reference towards 0V.

Port

Selects the port name.

Pin

Defines the pin number.

Input characteristic

Specifies whether an internal pull-up or pull-down resistor is connected to the input. If high impedance is selected no internal pull resistor is connected.

Output characteristic

Specifies whether an internal pull-pull or open drain resistor is connected to the output.