CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

programming 16f630 with pickit

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
doguhanpala



Joined: 05 Oct 2016
Posts: 120

View user's profile Send private message

programming 16f630 with pickit
PostPosted: Tue Apr 18, 2017 5:29 am     Reply with quote

Hello,

I want to upload a program to 16f630 but the Pickit does not have it on device family section. I searched a bit and found this:

http://jared.geek.nz/2013/jan/adding-extra-chips-to-the-pickit-2

It says I should use the device file data editor and edit the properties of device. According to this I should change:

1. PartName
2. DeviceID
3. ProgramMem

But i don't know what these values should be, or how should i search them. Can anyone help me who has encountered this problem before?

Thank you very much!

Note: if there is an easier way to add the device library, i will take it Smile

best wishes

Doğuhan

Edit: i forgot to add my pickit version. I use Pickit 2, v2.61.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Apr 18, 2017 10:27 am     Reply with quote

The 16F630 is supported by MPLAB 8.92. It's in this file:
Quote:
PK2DeviceFile.dat

That file is in the Microchip directory, in this sub-directory:
Quote:
PICkit 2 v2


I don't know if the above file is compatible with the one for the
standalone programmer application. But you could always install
MPLAB vs. 8.92 and use that to program your PIC.

MPLAB installation file archives:
http://www.microchip.com/development-tools/downloads-archive
doguhanpala



Joined: 05 Oct 2016
Posts: 120

View user's profile Send private message

PostPosted: Wed Apr 19, 2017 2:20 am     Reply with quote

PCM programmer wrote:
The 16F630 is supported by MPLAB 8.92. It's in this file:
Quote:
PK2DeviceFile.dat

That file is in the Microchip directory, in this sub-directory:
Quote:
PICkit 2 v2


I don't know if the above file is compatible with the one for the
standalone programmer application. But you could always install
MPLAB vs. 8.92 and use that to program your PIC.

MPLAB installation file archives:
http://www.microchip.com/development-tools/downloads-archive


Thanks for your reply. I tried to copy the 16f630.dev file to pickit 2 folder but in the pickit2 the devices are in one 'P2deviceFile.dat' file. I don't know if i tried something logical but it did not work.

I have a question.

The mplab can't find my programmer device. In the 'select programmer' section there is no Pickit 2. Should i get a pickit 3 to use mplab?
temtronic



Joined: 01 Jul 2010
Posts: 9081
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Apr 19, 2017 5:00 am     Reply with quote

I've been using MPLAB v8.86 for years and it has PicKit2 as option #9. I suspect you have an older version of MPLAB?
Jay
doguhanpala



Joined: 05 Oct 2016
Posts: 120

View user's profile Send private message

PostPosted: Wed Apr 19, 2017 6:54 am     Reply with quote

temtronic wrote:
I've been using MPLAB v8.86 for years and it has PicKit2 as option #9. I suspect you have an older version of MPLAB?
Jay


i use version 8.92 and i have 7 option. i will download your version and try it.

thank you so much!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Apr 19, 2017 7:02 am     Reply with quote

Are you sure you have vs. 8.92, and that you have 16F630 selected in
the Configure / Select Device menu ?

I have vs. 8.92 and I select 16F630, and Pickit 2 is listed in the
Programmer / Select Programmer menu.
doguhanpala



Joined: 05 Oct 2016
Posts: 120

View user's profile Send private message

PostPosted: Thu Apr 20, 2017 8:40 am     Reply with quote

PCM programmer wrote:
Are you sure you have vs. 8.92, and that you have 16F630 selected in
the Configure / Select Device menu ?

I have vs. 8.92 and I select 16F630, and Pickit 2 is listed in the
Programmer / Select Programmer menu.


it is vs 8.92. it says on the shortcut and i checked the version in "help/about mplap ide". i selected 16f630 and i see that pickit2 has a green dot right of it in the device section.

after i click programmer/select programmer there are 7 option. and pickit2 is not among them.

the list is

1) MPLAB ICD 2
2) Licensed Debugger
3) Starter kit on board
4) PICkit 3
5) MPLAB ICD 3
6) AN 851 Quick programmer Beta
7) REAL ICE

edit: i tried version 8.86 also. still no luck.
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Thu Apr 20, 2017 8:46 am     Reply with quote

You have to use the separate PICkit2 software.
MPLAB only knows about the PICkit2 as a debugger not a programmer.
doguhanpala



Joined: 05 Oct 2016
Posts: 120

View user's profile Send private message

PostPosted: Thu Apr 20, 2017 8:49 am     Reply with quote

Ttelmah wrote:
You have to use the separate PICkit2 software.
MPLAB only knows about the PICkit2 as a debugger not a programmer.


i have pickit2 software also. it is pickit 2v2.61. the problem is it doesn't have 16f630 on the devices.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Apr 20, 2017 9:55 am     Reply with quote

That's not true Ttelmah. In vs. 8.92 if you go to the Configure / Select
device menu, it shows a green dot for 16F630 in both the Programmer
and the Debugger sections of that window.

I think he just didn't install Pickit 2 as a device during the installation
of MPLAB.
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Thu Apr 20, 2017 10:27 am     Reply with quote

It's a known problem.
MPLAB 8.92, only accepts a 'subset' of the chips the PICkit2 supports for programming. For all others it doesn't allow them to be selected as a programmer, only as a debugger. Several chips are missing....
It changed at about 8.61, and all the IDE's after this behave like this for a whole lot of supported chips.

He should be able to tell by setting for a chip that definitely works like the 16F877. If it then works, the problem is the MPLAB one in this regard. If it remains the same, then it is the installation one you mention.

I hit the MPLAB one a while ago, and was told by Microchip that they didn't intend to fix it...
doguhanpala



Joined: 05 Oct 2016
Posts: 120

View user's profile Send private message

PostPosted: Thu Apr 20, 2017 12:05 pm     Reply with quote

PCM programmer wrote:

I think he just didn't install Pickit 2 as a device during the installation
of MPLAB.


That is it. such a silly mistake. Thank you so much!

I will try to program with mplab tomorrow. but i have a question. Why doesn't pickit2 support this device ? I tried to edit the dat file and saw that the file contains 16f630.

In this link it shows the pics that pickit 2 supports:

http://ww1.microchip.com/downloads/en/DeviceDoc/PICkit%202%20Readme%20v2-61-00%20(a).txt

I can't see 16f630 as a single device. Should i choose midrange/standard devices? Can i program every pic under that headline by choosing midrange/standard device?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group