Digital SPWM sampling algorithm based on TMS320F28335