Text this: An implementation algorithm of a carrier-based PWM technique for three-phase four-leg voltage sag generator with microcontroller

  _____      ___      _____      ___     _    _   
 / ____||   / _ \\   /  ___||   / _ \\  | || | || 
/ //---`'  | / \ || | // __    / //\ \\ | || | || 
\ \\___    | \_/ || | \\_\ || |  ___  ||| \\_/ || 
 \_____||   \___//   \____//  |_||  |_|| \____//  
  `----`    `---`     `---`   `-`   `-`   `---`