Updates the duty cycle of a PWM signal
Description
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.
InputThe duty cycle is taken as the input. It has a 10-bit resolution so a
value of 256 equals 25% duty cycle, 512 equals 50% duty cycle, etc.
The used datatype is of uint16.