Component: Output PWM (DSP Outputs)

From Flowcode Help
Jump to navigationJump to search
Author Matrix Ltd
Version 1.2
Category DSP Outputs


Output PWM component

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

Component Source Code

Please click here to download the component source project: FC_Comp_Source_DSP_PWM.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_DSP_PWM.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

ControlPWM

Fc9-comp-macro.png ControlPWM
Enable or disable the PWM output, Disabled by default. 
Fc9-bool-icon.png - BOOL State
0=Disable, 1=Enable 
Fc9-void-icon.png - VOID Return


OutputPWM

Fc9-comp-macro.png OutputPWM
Outputs a single value from the input buffer appropriatley scaled to suit the PWM. 
Fc9-void-icon.png - VOID Return


OutputPWMArray

Fc9-comp-macro.png OutputPWMArray
Outputs an array of values from the input buffer appropriatley scaled to suit the PWM. 
Fc9-u16-icon.png - UINT Delay
Delay in microseconds between outputting each sample. 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-type-16-icon.png Connect To
DSP component with output buffer to collect our data from. 
Fc9-conn-icon.png PWM
Fc9-type-16-icon.png Channel
PWM Channel selector 
Fc9-type-16-icon.png Alt Pin Enable
Alternative Pin Enable (if available on target device) 
Fc9-type-5-icon.png Port
 
Fc9-type-14-icon.png Period Register
PWM Period Register value 
Fc9-type-16-icon.png Prescaler Divide
Prescaler Divider value 
Fc9-type-16-icon.png PWM 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. 
Fc9-type-15-icon.png Period (uS)
 
Fc9-type-15-icon.png Frequency (KHz)