Searching \ for '[PIC] The simplest connection' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/devices.htm?key=pic
Search entire site for: 'The simplest connection'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] The simplest connection'
2011\10\22@071736 by jana1972

flavicon
face
Hi,
Can anyone suggest the simplest connection of PIC16F628A?
I bought PIC16F628A to play with it and learn programming.
I used one schematic but when I try to use it with PICkit3,  it says:


PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.26.81
Firmware type......................Midrange
PICkit 3 Connected.Target Detected
Target Device ID (00000000) does not match expected DeviceID (00001120).

so I am not sure if the PIC is faulty or the schematic is  faulty.
Is 3.6V as power supply enough?

Thanks
L.

2011\10\22@074521 by IVP

face picon face
> Can anyone suggest the simplest connection of PIC16F628A?

The simplest is that it has just power. Use the internal oscillator
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  faulty

Hmmmm

> Is 3.6V as power supply enough?

Yes. Vdd is 3V - 5.5

2011\10\22@075828 by Jan-Erik Soderholm

face picon face


spam_OUTjana1972TakeThisOuTspamcentrum.cz wrote 2011-10-22 13:17:
> Hi,
> Can anyone suggest the simplest connection of PIC16F628A?
> I bought PIC16F628A to play with it and learn programming.
> I used one schematic but when I try to use it with PICkit3,  it says:
>

How it is connected right now ? Include bort PICkit3, power and
any other stuff like decoupling capacitors (if any).

{Quote hidden}

Use 5V (while programming).
Later on you will understand why.



> Thanks
> L.

2011\10\22@092222 by jana1972

flavicon
face
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  MCLR is set up in config and has not any influence 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 power to PIC16F628A , PIC16F628A must work?

Thanks
L.


{Quote hidden}

> -

2011\10\22@094425 by Chris Roper

picon face
You should be able to power the PIC with the PICKit3.
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  PDF.


On 22 October 2011 15:22,  <.....jana1972KILLspamspam@spam@centrum.cz> wrote:
{Quote hidden}

>> -

2011\10\22@101122 by jana1972

flavicon
face
Chris ,
Thank you for your reply.

> You should be able to power the PIC with the PICKit3.
I am not sure of that.
If I  connect PICkit3 only to a board with PIC, ( and no external power is there),
MPLAB( I am using) does NOT recognise any target device being connected.
( I tested that  with 44 pin demo mainboard by Microchip )
But as soon as I connect the external power to the mainboard, target device is recognignised



{Quote hidden}

2011\10\22@101834 by Chris Roper

picon face
Select Debugger Menu.
Settings...
Power Tab
Tick "Power target circuit from PICkit3"

Have fun :)

2011/10/22  <.....jana1972KILLspamspam.....centrum.cz>:
{Quote hidden}

>

2011\10\22@103739 by Jan-Erik Soderholm

face picon face
jana1972@centrum.cz wrote 2011-10-22 15:22:

> Thanks for your reply
> I thought that PICkit3 works as
> a debugger and a programmer

Yes, if you have a PIC that has support for in-curcuit debugging.
Do you ?

>
> 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.

I think that most smaller PICs such as the 628A need a special
header (a special version of the processor with extra pins so that
debugging can be done without loosing any standard pins).

Check the docs for the PICkit3 !

2011\10\22@125847 by jana1972

flavicon
face
Chris ,
Thanks.
Now Pickit3 can power demo board without external power
Thanks again.

But still I can not DEBUG a program.I have this very simple program

#include <p18F45k20.inc>
CONFIG FOSC = INTIO7
       
       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)

       END

It works, LED is ON, but can not debug.
I receive the error

PK3Err0040: The target device is not ready for debugging.Please check your configuration bit settings and programthe device before proceeding

Can anyone help?
Thanks

L.


{Quote hidden}

> >

2011\10\22@150835 by jim

flavicon
face
Did you select DEBUG mode when Assembling the program?

-----Original Message-----
From: KILLspampiclist-bouncesKILLspamspammit.edu [RemoveMEpiclist-bouncesTakeThisOuTspammit.edu] On Behalf Of
spamBeGonejana1972spamBeGonespamcentrum.cz
Sent: Saturday, October 22, 2011 11:59 AM
To: Microcontroller discussion list - Public.
Subject: Re: [PIC] The simplest connection

Chris ,
Thanks.
Now Pickit3 can power demo board without external power
Thanks again.

But still I can not DEBUG a program.I have this very simple program

#include <p18F45k20.inc>
CONFIG FOSC = INTIO7
       
       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)

       END

It works, LED is ON, but can not debug.
I receive the error

PK3Err0040: The target device is not ready for debugging.Please check your
configuration bit settings and programthe device before proceeding

Can anyone help?
Thanks

L.


{Quote hidden}

is there),
> > MPLAB( I am using) does NOT recognise any target device being connected..
> > ( I tested that  with 44 pin demo mainboard by Microchip )
> > But as soon as I connect the external power to the mainboard, target
device is recognignised
{Quote hidden}

recognise PIC16F628A?
> >> > I thought that  MCLR is set up in config and has not any influence on
PICkit3 in finding the
{Quote hidden}

to PIC16F628A ,
{Quote hidden}

(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
{Quote hidden}

> >

2011\10\22@160414 by jana1972

flavicon
face

> Did you select DEBUG mode when Assembling the program?

YES, I did




{Quote hidden}

> > >

2011\10\22@174955 by IVP

face picon face
>> I thought that MCLR is set up in config and has not any
>> influence on PICkit3 in finding the PIC16F628A

I'm not familiar with the PICkit3 but for programmers generally
that is true. When the programmer has control of the programming
lines it takes no notice of what's already in the PIC. It might as
well be factory-fresh with that 'new PIC' smell

> The simplest is that it has just power
>> Do you mean only + and - and that is ALL?

Yes. Look at things like the PICAXE, which needs no external
clock (eg crystal) or MCLR pull-u

2011\10\22@194156 by Jan-Erik Soderholm

face picon face
I think you'd better clear some issues out.

In this thread you have earlier asked about the PIC16F628A,
see further down in this post.

*Now* you post a code snipped with an #include for a PIC18,
but the code doesn't seem to be for a PIC18.

You definitely have some homework to do here.

Please explain what you *realy* are trying to do.
And exactly *what* hardware are you using ?
*What* processor are you trying to debug ?

Jan-Erik.



EraseMEjana1972spamspamspamBeGonecentrum.cz wrote 2011-10-22 18:58:
{Quote hidden}

>>

More... (looser matching)
- Last day of these posts
- In 2011 , 2012 only
- Today
- New search...