> Did you select DEBUG mode when Assembling the program? YES, I did >=20 > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf = Of > jana1972@centrum.cz > Sent: Saturday, October 22, 2011 11:59 AM > To: Microcontroller discussion list - Public. > Subject: Re: [PIC] The simplest connection >=20 > Chris , > Thanks. > Now Pickit3 can power demo board without external power > Thanks again. >=20 > But still I can not DEBUG a program.I have this very simple program >=20 > #include > CONFIG FOSC =3D INTIO7 > =09 > org 0 > Start: > BSF STATUS,1; select Register Bank 1 > BCF TRISD,0 ; make IO Pin RD0 an output > BCF STATUS,0; back to Register Bank 0 > BSF PORTD,0 ; turn on LED RD0 (DS0) >=20 > END >=20 > It works, LED is ON, but can not debug. > I receive the error >=20 > PK3Err0040: The target device is not ready for debugging.Please check you= r > configuration=20 > bit settings and programthe device before proceeding >=20 > Can anyone help? > Thanks >=20 > L. >=20 >=20 > > Select Debugger Menu. > > Settings... > > Power Tab > > Tick "Power target circuit from PICkit3" > >=20 > > Have fun :) > >=20 > > 2011/10/22 : > > > =A0Chris , > > > Thank you for your reply. > > > > > >> You should be able to power the PIC with the PICKit3. > > > I am not sure of that. > > > If I =A0connect PICkit3 only to a board with PIC, ( and no external p= ower > is there), > > > MPLAB( I am using) does NOT recognise any target device being connect= ed. > > > ( I tested that =A0with 44 pin demo mainboard by Microchip ) > > > But as soon as I connect the external power to the mainboard, target > device is recognignised > > > > > > > > > > > > > > >> Look at the pin outs for the PIC16F628A and connect them to the > > >> corresponding pins on the PICKit3 and you should be good to go, as > > >> long as the PICKit3 is connected and is Powering the PIC. > > >> If you need to run the PIC with the PICKit3 disconnected, you will > > >> have to then provide external power and also hold MCR high, refer > > >> again to the PIC =A0PDF. > > >> > > >> > > >> On 22 October 2011 15:22, =A0 wrote: > > >> > Thanks for your reply > > >> > I thought that PICkit3 works as > > >> > a debugger and a programmer > > >> > > > >> > So, when I compile a sample program > > >> > I must upload to ( program) a microchip, in my case to PIC16F628A. > > >> > Only after that I can debug it. > > >> > Is it so? Or working with PICkit3 is different? > > >> > > > >> >> The simplest is that it has just power. > > >> > Do you mean only + and - and that is ALL? > > >> > > > >> >> Use the internal oscillator > > >> >> and disable MCLR > > >> > But do you think that internal oscilator is important for PICkit3 = to > recognise PIC16F628A? > > >> > I thought that =A0MCLR is set up in config and has not any influen= ce on > PICkit3 in finding the > > >> > PIC16F628A. > > >> > > > >> > > > >> > PICkit3 requires only these signals > > >> > Vpp > > >> > VDD Target > > >> > Vss > > >> > PGD > > >> > PGC > > >> > PGM > > >> > > > >> > Does it mean that if I connect these 6 signals to PICkit3 and powe= r > to PIC16F628A , > > >> > PIC16F628A must work? > > >> > > > >> > Thanks > > >> > L. > > >> > > > >> > > > >> >> > Can anyone suggest the simplest connection of PIC16F628A? > > >> >> > > >> >> The simplest is that it has just power. Use the internal oscillat= or > > >> >> and disable MCLR > > >> >> > > >> >> > Target Device ID (00000000) does not match expected DeviceID > (00001120). > > >> >> > > >> >> Are you connecting to the correct pins for programming ? Double > > >> >> check. How you have the 628 configured for run-time shouldn't > > >> >> affect the programmer (as long as any circuitry isn't interfering > with > > >> >> the programming) > > >> >> > > >> >> > so I am not sure if the PIC is faulty > > >> >> > > >> >> Unlikely, but not impossible of course > > >> >> > > >> >> > or the schematic is =A0faulty > > >> >> > > >> >> Hmmmm > > >> >> > > >> >> > Is 3.6V as power supply enough? > > >> >> > > >> >> Yes. Vdd is 3V - 5.5V > > >> >> -- > > >> >> http://www.piclist.com PIC/SX FAQ & list archive > > >> >> View/change your membership options at > > >> >> http://mailman.mit.edu/mailman/listinfo/piclist > > >> > > > >> > > > >> > -- > > >> > http://www.piclist.com PIC/SX FAQ & list archive > > >> > View/change your membership options at > > >> > http://mailman.mit.edu/mailman/listinfo/piclist > > >> > > > >> > > >> -- > > >> http://www.piclist.com PIC/SX FAQ & list archive > > >> View/change your membership options at > > >> http://mailman.mit.edu/mailman/listinfo/piclist > > > > > > > > > > > > -- > > > http://www.piclist.com PIC/SX FAQ & list archive > > > View/change your membership options at > > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > >=20 > > --=20 > > http://www.piclist.com PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist >=20 >=20 >=20 > --=20 > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist >=20 >=20 > --=20 > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .