Difference between revisions of "Component: PWM Free (Peripheral CAL)"
From Flowcode Help
Jump to navigationJump to searchLine 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_PWM_Free.fcfx FC_Comp_Source_PWM_Free.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_PWM_Free.fcfx FC_Comp_Source_PWM_Free.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 78: | Line 78: | ||
Example showing how to build a component using a CAL component [[Using_CAL_Components|Using CAL Components]]. | Example showing how to build a component using a CAL component [[Using_CAL_Components|Using CAL Components]]. | ||
+ | |||
+ | |||
Latest revision as of 13:12, 7 February 2023
Author | Matrix Ltd |
Version | 1.3 |
Category | Peripheral CAL |
Contents
PWM Free component
A low level implementation giving direct access to the CAL
Component Source Code
Please click here to download the component source project: FC_Comp_Source_PWM_Free.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_PWM_Free.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Example showing how to build a component using a CAL component Using CAL Components.
Macro reference
ChangePeriod
![]() |
ChangePeriod |
Change the Period (and prescaler) for this PWM Channel | |
![]() |
period |
period value PIC/AVR: 0-255 16-bit PIC: 0-65535 | |
![]() |
prescaler |
prescaler 1,4,16,64 | |
![]() |
Return |
Disable
![]() |
Disable |
Disable this PWM Channel | |
![]() |
Return |
Enable
![]() |
Enable |
Enable this PWM Channel | |
![]() |
Return |
GetList
![]() |
GetList |
Returns CHANNEL or PRESCALE list from the FCD and updates the internal property | |
![]() |
Name |
![]() |
Return |
GetValue
![]() |
GetValue |
Returns Named property Value | |
![]() |
Name |
![]() |
Return |
SetDuty10Bit
![]() |
SetDuty10Bit |
Set the Duty Cycle for this PWM Channel. PIC/AVR - Range: 0-1023 16-bit PIC - Range: 0-65535 | |
![]() |
duty |
Duty value 0 - 1023 | |
![]() |
Return |
SetDuty8Bit
![]() |
SetDuty8Bit |
Set the Duty cycle (0-255) for this PWM Channel | |
![]() |
duty |
duty value 0 - 255 | |
![]() |
Return |
SetValue
![]() |
SetValue |
Sets the Value of the property PERIOD, PRESCALE or CHANNEL (if CHANNEL also updates the PORT from FCD) | |
![]() |
Name |
![]() |
Value |
![]() |
Return |