Re: Strange problem with Simulink-Matlab HS-PWM block
The warning is ok. The Dead time width is limited by the peripheral hardware. the max dead time allowed should be noticed in the block GUI. The value depends on the clock. If value is set above, the blockset will saturate to the max value and provide such warning.
Regarding issue with deadtime, you might have a look at chip erratas. With some chip, when dead time is used, the PWM duty cycle must remains in a certain limit otherwise issue might happends. The PWM block let the user performs any required limitation on its input value. Thus make sure the PWM duty cycle update value is within a correct range (Check also that initial PWM duty cycle set in the GUI is ok).
You might test DeadTime using a fixed a 50% duty cycle PWM.