Hello, yet another principal problem of your code is: it is not possible to set the configuration word in runtime. It must be set in compilation time and then programmed ("burned") into the appropriate location. Obviously your config is not set therefore the PIC won't run. Try to set the fuses! Regards, Imre -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics