Thanks friends for giving attention on my thread.I am feeling very happy to say that i have got the solutions from microchip pdf files and prog is working nicely.