pulseOut?

why not use the servo library that is distributed with Arduino : Servo - Arduino Reference