Jump to content

Component: Output PWM (DSP Outputs): Difference between revisions

From Flowcode Help
No edit summary
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
Line 26: Line 26:


===ControlPWM===
===ControlPWM===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 45: Line 45:


===OutputPWM===
===OutputPWM===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 59: Line 59:


===OutputPWMArray===
===OutputPWMArray===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
Line 79: Line 79:
==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]

Revision as of 14:15, 13 July 2026

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.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

ControlPWM

ControlPWM
Enable or disable the PWM output, Disabled by default. 
- BOOL State
0=Disable, 1=Enable 
- VOID Return


OutputPWM

OutputPWM
Outputs a single value from the input buffer appropriatley scaled to suit the PWM. 
- VOID Return


OutputPWMArray

OutputPWMArray
Outputs an array of values from the input buffer appropriatley scaled to suit the PWM. 
- UINT Delay
Delay in microseconds between outputting each sample. 
- VOID Return


Property reference

Properties
Connect To
DSP component with output buffer to collect our data from. 
PWM
Channel
PWM Channel selector 
Alt Pin Enable
Alternative Pin Enable (if available on target device) 
Port
 
Period Register
Defines the resolution of the PWM duty mark/space ratio. PWM duty can be between 0 (0%) and period (100%). 
Prescaler Divide
Prescaler Divider value 
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. 
Period (uS)
 
Frequency (KHz)
 

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