Howard Winter wrote: >Paul, > >On Mon, 23 May 2005 10:01:07 +0200, Paul van der Linden wrote: > > > >>Hi, >>I'm just starting with pic-microcontrollers, and have ordered the icd2 >>from microchip. >>But it isn't working, I always get this error after programming the >>device ( I have selected the icd2 as debugger): >>ICD0083: Target not in debug mode, unable to perform operation >>Can anyone help me, what do I wrong? >> >> > >Yes, the ICD2 can act in two modes, as a Programmer or as a Debugger - the latter needs a PIC that supports >debug mode, and it looks like you're just trying to program it. > >The correct procedure to start up is from the top menu to select "Configure" then "Select Device" and choose >the PIC you're using, then "Programmer" then "Select Programmer" from the top menu, then "MPLAB ICD2" and >you'll be set up properly to use it as a programmer. Don't touch "Debugger" unless you want to use it that >way and know how to do so! :-) > >Cheers, > >4 >Howard Winter >St.Albans, England > > > > I was testing if it is running if I selected the icd2 as programmer, and then apply power. It looks like it's not running. If I understand it good this will light a led on the RB0 port: LIST P=18F4550, R=DEC #include "P18F4550.INC" CLRF TRISB BSF PORTB, 0 END -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist