Jump to content

Component: Output PWM (DSP Outputs)

From Flowcode Help
Revision as of 10:26, 20 October 2023 by Wiki bot (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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
PWM Period Register value 
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)