That may be true as well, but what I have observed (using PicKit3 with MPLAB X under Ubuntu Linux) is that it resets the chip several times each time that it actually wants to reset it. For example, if I click on the "hold in reset" button in MPLAB X, it does not just stop my code but rather stops and restarts (from the RESET vector) several times within 1 or 2 seconds and then finally stops with the chip held in reset. The same thing happens right at the beginning of programming the chip. I do not know if this is specific to MPLAB X or the PicKit3 as I started using both of them at the same time. I had previously used CCS's ICD and the earlier Microchip ICD and I did not observe this same behavior with them. Sean On Sat, Feb 11, 2012 at 4:05 PM, Wouter van Ooijen wrote: >> 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 > programmable regions within a PIC, and sometimes going to the start of a > region too, requires resetting the chip. > > -- > > 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 > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .