Re: MPLAB® Device Blocks for Simulink® - PWM problem
Hans, you might show datatypes on your model. There is an option to show datatype on simulink lines.
Also, you might show blocks rate using the color (there is an option to color blocks depending on their rate).
If the constant 0.5 is set as an integer, it is likely to be rounded to 0.
Also, such constant has typically a sampling time of 'inf' (pink color with simulink standard color; FYI the PWM duty-tycle setting is set once at startup in such case.)