You can set and reset pin using hpwm Ch,0,freq and hpwm Ch,255,freq.
Or just set CCPxCON to 0 and use portx or latx register.