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

From Flowcode Help
Jump to navigationJump to search
(Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 1.2 |- | width="20%" style="color:gray...")
 
 
Line 14: Line 14:
 
==Output PWM component==
 
==Output PWM component==
 
Allows the values from a buffer to be passed directly to an internal PWM output.
 
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: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_DSP_PWM.fcfx FC_Comp_Source_DSP_PWM.fcfx]
 
 
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_DSP_PWM.fcfx FC_Comp_Source_DSP_PWM.fcfx]
 
  
 
==Detailed description==
 
==Detailed description==
Line 118: Line 112:
 
| width="90%" | Period Register
 
| width="90%" | Period Register
 
|-
 
|-
| colspan="2" | PWM Period Register value 
+
| colspan="2" | Defines the resolution of the PWM duty mark/space ratio.  PWM duty can be between 0 (0%) and period (100%). 
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
Line 140: Line 134:
 
| colspan="2" |  
 
| colspan="2" |  
 
|}
 
|}
 +
 +
==Component Source Code==
 +
 +
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_DSP_PWM.fcfx FC_Comp_Source_DSP_PWM.fcfx]
 +
 +
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_DSP_PWM.fcfx FC_Comp_Source_DSP_PWM.fcfx]

Latest revision as of 11:42, 26 November 2024

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

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
Defines the resolution of the PWM duty mark/space ratio. PWM duty can be between 0 (0%) and period (100%). 
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)
 

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