> Thanks for all the replies. But when I enter the value in, it does not > change(during debug mode), it reset again to 0 when I press enter. > I had downloaded MPLAB about a month ago. When you say "debug mode" do you mean you are using the simulator? If so then you can apply the equivalent of an input signal by using a stimulus file that you write with a text editor. Search for "stimulus" in the help files and you will find information on how to format the file. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.