Difference between revisions of "HANcoder/STM32/Blocks/PWM Duty Cycle"
From OpenMBD
(Created page with "{{HANcoder/block| info= A 'PWM Duty Cycle' block allows the duty cycle of the generated PWM signal to changed. Note that this only works properly if a 'PWM Init' block is als...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
|maskImage= | |maskImage= | ||
PWMDutyCycleMask.png | PWMDutyCycleMask.png | ||
− | |||
− | |||
|SampleTime= Default | |SampleTime= Default | ||
Line 17: | Line 15: | ||
|SeeAlso =[[HANcoder/PWM_Init|PWM Init]] | |SeeAlso =[[HANcoder/PWM_Init|PWM Init]] | ||
+ | }} | ||
+ | |||
+ | == Block inputs (inports) == | ||
+ | Input: The value of the duty cycle in 100/1023[%].(512=50%, 1023=100%).(uint16)<br/> | ||
+ | |||
+ | == Block parameters == | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! style="width:150px" | Parameter | ||
+ | ! Description | ||
+ | |- | ||
+ | | Output pin | ||
+ | | Select the output pin where the PWM signal should be generated. | ||
+ | |- | ||
+ | | Sample time | ||
+ | | Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model. | ||
+ | |} | ||
+ | |||
+ | {{HANcoder/BlockFooter| | ||
+ | |SeeAlso = [[HANcoder/STM32/Blocks/PWM_Init|PWM Init]] | ||
}} | }} |
Latest revision as of 11:31, 5 May 2017
Supported Targets: Olimexino, E407, P405
Contents
General information about PWM Duty Cycle
A 'PWM Duty Cycle' block allows the duty cycle of the generated PWM signal to changed. Note that this only works properly if a 'PWM Init' block is also present for initializing the related PWM module.
Block
Mask
Block inputs (inports)
Input: The value of the duty cycle in 100/1023[%].(512=50%, 1023=100%).(uint16)
Block parameters
Parameter | Description |
---|---|
Output pin | Select the output pin where the PWM signal should be generated. |
Sample time | Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model. |