As for me, LVP is configured off. RB5 is set to an output also. I set all ports to outputs in a general portion of my init section and then any ports that need to be inputs are then set that way. In doing so, I ensure unused pins are outputs to avoid having floating inputs. No doubt you are aware that even though you set RB5 to an output, it powers up as an input and doesnot change to an output until the point in your code where you explicitly change it to an output. My feeling on how this works (pure speculation here) is that once the ICD2 raises the /mclr line, it no longer matters what the lvp pin is doing. /mclr is at Vpp and rules the roost until it is dropped. All this is my guess but as my experiment with pulling RB5 high showed, there is no problem here, at least for me. Of course, if you do enable lvp and don't set RB5 to an output then you may encounter erratic behaviour after you finish programming - assuming your circuit allows RB5 to go high. YMMV but I don't think so... Tom At 04:00 PM 6/15/04 -0400, you wrote: >What is your configuration word set to? I disable it in my parts. Then in my >initialization code, I set the pin to an output. The pin is getting used for >other functions. > >I also am programming with the ICD2. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads