Sorry for the added noise, I was looking at PIC16F688 not 886. The previous code doesn't seem to be required for disabling comparator in the 886 (I was working with 16F688 yesterday, probably the cause of mistake - eyes read what they want to) 2007/6/28, Ariel Rocholl : > > I do not see in your code you disabling comparators, as per the datasheet: > > > MOVLW H'7' ;Turn off > > MOVWF CMCON0 ; comparators > > > 2007/6/28, Ariel Rocholl : > > > > Kevin's question is whether you use the ICD2 as a programmer or as a > > Debugger. This is unrelated to the build mode. > > > > > > 2007/6/28, Rikard Bosnjakovic : > > > > > > On 6/28/07, Kevin Timmerman wrote: > > > > > > > Are you using an ICD2 to program the PIC? If so, make sure to use > > > the > > > > Program menu in MPLAB, not the Debug menu. If the chip is programmed > > > > with the debug executive, it will take control of RB6 & RB7 (program > > > > clock and data). Also make sure LVP is not enabled, that would > > > disable RB5. > > > > > > I'm using an ICD2-clone. Project->Build configuration (in MPLAB) is > > > set to "release", and LVP is off. > > > > > > I forgot to include the code in the original post, so I'm attaching it > > > here. > > > > > > > Use one resistor/LED. > > > > And where are the values of all components ? > > > > > > Only one LED is on at a time, so there's no need to waste board-space > > > by adding a resistor per LED. The LED-resistors (R2 and R3) are 220 > > > ohms, all other resistors (pull-downs + MCLR) are all 10k each. > > > > > > > > > -- > > > - Rikard - http://bos.hack.org/cv/ > > > > > > -- > > > http://www.piclist.com PIC/SX FAQ & list archive > > > View/change your membership options at > > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > > > > > > > > > > > -- > > Ariel Rocholl > > Madrid, Spain > > > > > > -- > Ariel Rocholl > Madrid, Spain -- Ariel Rocholl Madrid, Spain -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist