Use a timer. This way, your PIC can still do stuff instead of just being stuck waiting for the command to be executed.