Try to connect your PIC to your PC to see what's happen... Use MCS serial communicator to monitor it.