> When does your code switch the relays on? I find that some pic > programmers (I am presently using a PicKit 3) reset the pic multiple > times before they actually begin programming. More accurately: *during* programming. Switching between the various=20 programmable regions within a PIC, and sometimes going to the start of a=20 region too, requires resetting the chip. --=20 Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu C++ on uC blog: http://www.voti.nl/erblog --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .