Thanks a lot for your reply.I modified my code and am able to rectify my problem. What made it display previous contents after Power reset is….My initialisation code have chipselect, displayON and then clear LCD function.So after power reset,all those functions are executed making old message appear once.. then clearing the LCD.