Component: Output PWM (DSP)

From Flowcode Help
Revision as of 09:11, 12 October 2020 by BenR (talk | contribs) (XML import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Author Matrix Ltd
Version 1.2 (Release)
Category DSP


Image Output PWM component

Allows the values from a buffer to be passed directly to an internal PWM output.

Examples

No additional examples


Downloadable macro reference

OutputPWM

Outputs a single value from the input buffer appropriatley scaled to suit the PWM.

Parameters

This macro has no parameters


Return value

This call does not return a value


OutputPWMArray

Outputs an array of values from the input buffer appropriatley scaled to suit the PWM.

Parameters

UINT Delay
Delay in microseconds between outputting each sample.


Return value

This call does not return a value


ControlPWM

Enable or disable the PWM output,

Disabled by default.

Parameters

BOOL State
0=Disable, 1=Enable


Return value

This call does not return a value


Simulation macro reference

This component does not contain any simulation macros


Property reference

Connect To

This property is of type Panel object and can be referenced with the variable name ConnectTo.

No additional information


Channel

This property is of type Fixed list of ints and can be referenced with the variable name cal_pwm1::CHANNEL.

PWM Channel selector

Alt Pin Enable

This property is of type Fixed list of ints and can be referenced with the variable name cal_pwm1::HWALT.

Alternative Pin Enable (if available on target device)

Port

This property is of type Single digital pin and can be referenced with the variable name cal_pwm1::PORT.

No additional information


Period Register

This property is of type Signed integer and can be referenced with the variable name cal_pwm1::PERIOD.

PWM Period Register value

Prescaler Divide

This property is of type Fixed list of ints and can be referenced with the variable name cal_pwm1::PRESCALE.

Prescaler Divider value

PWM Timer

This property is of type Fixed list of ints and can be referenced with the variable name cal_pwm1::timer.

Timer associated with PWM to drive the output.

Warning - All PWM channels linked to the same timer will share the same period and prescaler settings.

Period (uS)

This property is of type Floating point and can be referenced with the variable name cal_pwm1::CALC_PERIOD.

No additional information


Frequency (KHz)

This property is of type Floating point and can be referenced with the variable name cal_pwm1::CALC_FREQ.

No additional information