RB3 isn't really needed for ICD on 16F87x as long as low voltage programming has been disabled on the chip. If LVP has not been disabled then you just have to be sure RB3 reads low when set as an input by the PIC. You're connections to RB6 and RB7 are probably Ok, with the exception of the cap, that might give you trouble with rise times on the ICD signals. For simple switch inputs your conditioning this is probably overkill (unless the swithces are on long wires or have some other issue around them). I'd be tempted to go with just 1K series and the built in PORTB pullups for switches. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads