> > > The ICD demo board from Microchip comes with a 47K (R20) > > > resistor between > > > MCLR and VDD. I've tried it too, without success. > > > > What went wrong with 47k, ICD or starting without ICD? And how do you > > start without the ICD, do you have a reset button? > > > > Wouter van Ooijen snip... > Well, I can program and debug OK with the 47K resistor. Then, I recompile > without the ICD option, reprogram, and the PIC doesn't start at all. > > The start is with a switch that powers the whole system. I have the Power up > Timer enabled. I've measured the rise time of MCLR pin and VDD, and both > seems very clean, and reach +4V in 9us and +5V in 12us (aprox). This seems > OK to me... All works fine now! The problem was I was not unchecking the "Enable debug mode" box in the ICD options window, as Wilfried suggested. I simply unchecked the "Compile for MPLAB-ICD" box in the Project options (HiTechC compiler), and forgot the ICD window. I knew I should do it, and I've done it in the past, but my memory failed (once again)... Thanks Wouter and Wilfried for your time. Alvaro Deibe. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads