PWM Pin Element

The PWM pin element is used to drive the pulse-width modifier (PWM) level of a valid PWM pin.

The PWM pin element is located in the Element Toolbox within Studio’s Embedded View.

Element Icon
PWM Pin Element

Properties

The following properties can be changed for the PWM pin element:

Name

The name of the element.

PWM Instance

The PWM driver instance number to use. If unsure, leave it set to the default value.

PWM Pin

The hardware’s PWM pin the element is connected to.

Frequency (Hz)

The frequency (in Hz) the PWM is set to.

Duty Cycle

The percentage the pin’s duty cycle operates at from 0-100%.

Triggers

The following triggers are available to execute events from within the PWM pin element:

Triggered

Execute an event when the source element connected to the PWM pin triggers.

Duty Cycle Set

Execute an event when the PWM’s duty cycle percentage is set.

Abilities

The following abilities are available for the PWM pin element when its source element triggers:

Trigger

Trigger the element(s) that follow the PWM pin element.

Set Duty Cycle

Set the pin’s duty cycle percentage.