Author Topic: Will this setup work for programming a pic12f683?  (Read 6922 times)

0 Members and 1 Guest are viewing this topic.

Offline wheelyneilTopic starter

  • Robot Overlord
  • ****
  • Posts: 153
  • Helpful? 1
  • FOR GET ABOUT IT
Will this setup work for programming a pic12f683?
« on: February 12, 2010, 04:23:34 PM »
Hi Forum
I am starting to dig into the PIC world. I have ordered a Pickit2 programmer and would like to use my proto typing board to set up ICSP.

I would be using a Computer Power supply 5v+

In the picture below is what I am trying to do.

 But sure would be nice to have someone say that it is correctly wirered.

I hate seeing smoke :o

Thanks in advance for your help ;)
Take care
Neil

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Will this setup work for programming a pic12f683?
« Reply #1 on: February 12, 2010, 04:52:06 PM »
Yep, that is the correct wiring of the 12F683 to the PICKit2.

Just a note, for programming and debugging the PICKit2 will power the processor so no need for connecting a power supply.

I hate smoke too so another hint: use a DMM to double check any power connections before inserting your PIC into the board. This has saved me from dumb mistakes a few times.

Offline wheelyneilTopic starter

  • Robot Overlord
  • ****
  • Posts: 153
  • Helpful? 1
  • FOR GET ABOUT IT
Re: Will this setup work for programming a pic12f683?
« Reply #2 on: February 12, 2010, 05:26:58 PM »
Hello Forum
Hey Waltr or Forum

Am I getting this right?

So what your saying is the MCLR is not needed until the PIC is in a working circuit, where a ON or VDD is applied then it will start the first command?

Just getting my ducks in a row :P
Take care
Neil

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Will this setup work for programming a pic12f683?
« Reply #3 on: February 12, 2010, 08:36:58 PM »
When programming or debugging with the PICKit2 only the 5 connections between the PIC and the PICKit2 are needed as in your diagram. You do not need the connect your +5 volt supply to the PIC if the PICKit2 is connected.

The PICkit2 will supply the 5V the power the PIC and control MCLR as needed to program, debug or allow the PIC to run.

Without the PICkit2, in a circuit by itself you need to connect the 5V power supply ( the +5 and the ground symbol in your diagram).

MCLR (pin 4) can be a digital input or an external reset depending on the setting of the configuration bit MCLRE (see page 84 of the PIC12F863 data sheet). I have always used this pin as an input on the 8 pin PICs and set the config bit MCLRE = 0. Then the code will start after applying 5V.

Have much reading have you done on PICs? Have you downloaded and installed MPLAB? If not do that. With MPLAB you can write code before you have any hardware and run the code in the MPLAB simulator.
I can post links to tutorials and other information sources if you want them.

Offline wheelyneilTopic starter

  • Robot Overlord
  • ****
  • Posts: 153
  • Helpful? 1
  • FOR GET ABOUT IT
Re: Will this setup work for programming a pic12f683?
« Reply #4 on: February 13, 2010, 01:01:14 PM »
Thanks waltr

Let me see what I can dig up off the micro chip site. ;D
Take care
Neil

 


Get Your Ad Here

data_list