hello , i made a program on PIC to generate a pwm signal to control the MOSFETs on a H bridge to control a DC motor , that was the entire point behind the H bridge but our teacher told me that i must have a dead time or there will be a short circuit , which means that when i control the mosfets 1 & 3 i should turn them off then start mosfets 2 & 4 , but with my PWMs this is done simultaneously which will cause a short circuit according to my teacher , any idea how to make this dead time in PIC ???