Sorry I did not even look at your code, but it might be advisable to take one step back at verify that both your programmer and you target hardware are operating properly. My page at http://www.voti.nl/wisp628 has blink-a-led .hex files and circuit diagrams for most flash pics, try the appropriate one, then (when it works) start worrying again about your own program (or maybe switch to Jal?). Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- 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