Synchronized PWM System Definition

This MotoHawk™ block allows Synchronized PWM Channel Definition blocks to be grouped together to form a system that will be synchronized with one another and can be updated coherently via the Synchronized PWM System Set block.

Block ID

Synchronized PWM System Defn

Library

motohawk_MotorControl_lib

Description

This MotoHawk™ block allows Synchronized PWM Channel Definition blocks to be grouped together to form a system that will be synchronized with one another and can be updated coherently via the Synchronized PWM System Set block.

Synchronized ADC sampling can be achieved using the related Synchronized PWM ADC Queue Group Definition

Block Parameters

Parameter Field Values Comments/Description
Name Single quote enclosed alpha-numeric text A unique, C-legal name that will be used to identify the system. Blocks like the Synchronized PWM System Set reference this name in order to manipulate the system.
Resource Drop down Selects the system resource that this block is to define. Different systems may have restrictions on the Synchronized PWM Channels that can be associated to this system, which this resource encodes.
PWM Channel Alignment Drop down Specifes how the Synchronized PWM Channels are synchronized with one another, which is typically referred to as their alignment. Center aligned is where each channel's assertion point is aligned about the middle point of the period. Other options are Left and Right justified.

This option is only visible when the system supports multiple alignment options.
Minimum Frequency (Hz) Non-zero positive integer Specifes the minimum frequency that the Synchronized PWM Channels assigned to this system will be required to support. The attribute is used to assist in setting clock pre-scalers optimally so that the desired frequency can be delivered whilst maximizing the achievable duty cycle granularity.
PWM Channel Reference Name(s) Cell array of single quote enclosed alpha-numeric text entries The names of the Synchronized PWM Channels that are to be used by this system arranged as a cell array.

e.g. {'PWM1Name','PWM2Name'} specifies that the system will consist of two Synchronized PWM Channels that have names of 'PWM1Name' and 'PWM2Name'.