I am not able to access the data sheet from the link you posted, so I don't know what ultrasonic module you are trying to use. I have used the utrasonic sensors from Parallax and found them very easy to use. With this module you use the same pin for trigger and echo. You start out with the PIC pin set up as an output (TRIS bit set to 0), pulse the triggerpin, then change the PIC pin to be an input (TRIS bit set to 1), then determine the time period required for the return of the echo pulse. I used the CAPTURE/COMPARE peripheral on the PIC to read the echo pulse timing. The PWM peripheral cannot be used to read the echo pulse timing, so I am not clear as to why you want to use it.