begin PrevPwm <= PwmControl if (PwmControl != PrevPwm) begin DeadTimeCounter <= DeadTime; if (PwmControl) PwmLreg <= 0; else PwmHreg <= 0; end else if (DeadTimeCounter != 0) DeadTimeCounter <= DeadTimeCounter - 1; else begin if (PwmControl) PwmHreg <= 1; else PwmLreg <= 1; end end A: 载波比较 B: 生成死区时间 C: 生成三角波信号 D: 生成正弦调制波
begin PrevPwm <= PwmControl if (PwmControl != PrevPwm) begin DeadTimeCounter <= DeadTime; if (PwmControl) PwmLreg <= 0; else PwmHreg <= 0; end else if (DeadTimeCounter != 0) DeadTimeCounter <= DeadTimeCounter - 1; else begin if (PwmControl) PwmHreg <= 1; else PwmLreg <= 1; end end A: 载波比较 B: 生成死区时间 C: 生成三角波信号 D: 生成正弦调制波
1