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 CCS Technical Support

Setup Microchip PICkit 2 starter kit for C development
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
JustRob



Joined: 27 Aug 2011
Posts: 10
Location: Hudson, MA

View user's profile Send private message

Setup Microchip PICkit 2 starter kit for C development
PostPosted: Sat Aug 27, 2011 3:41 pm     Reply with quote

This is my second micro project; the first was using the microchip dsPIC33FJ32 along with the ICD2 and the Explorer 16 development board and did all my programming in C.

Now I'm using the PICkit 2 starter kit with the PIC16F509 micro. The kit came with a tutorial disk and lessons but the lessons are for assembly programming. I went through lesson 1 and verified that the system is working correctly. Now I'd like to configure it for C development.

I used the project wizard and it came up with the correct micro selected. I clicked next and selected the CCS C Compiler for PIC10/12/14... for the tool suite and located the CCSC.exe file. I finished creating a new project and found the new project only has four folders in the .mcp folder; Source Files, Header Files, Object Files and Other Files. I am missing the Linker Scripts and Library Files folders.

How can I add these folders and is this the correct tool suite to use?

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Aug 27, 2011 6:36 pm     Reply with quote

Quote:
I am missing the Linker Scripts and Library Files folders.

There are no linker scripts with CCS and there are no .lib files.


Quote:
Now I'm using the PICkit 2 starter kit with the PIC16F509 micro

Are you sure you don't mean 12F509 ? That PIC uses the PCB compiler:
http://www.ccsinfo.com/devices.php?page=devices

I assume you're using MPLAB. It comes with a free copy of the PCB
compiler. During the installation, I believe it's listed under Third-Party
tools. I forget if the installation is automatic or if you have to explicitly
select the tickbox to install it.

Or do you have some other version of the CCS compiler ?
JustRob



Joined: 27 Aug 2011
Posts: 10
Location: Hudson, MA

View user's profile Send private message

PostPosted: Sat Aug 27, 2011 7:51 pm     Reply with quote

No, I'm positive it's the PIC16F509

So I don't need the linker scripts folder?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Aug 27, 2011 8:09 pm     Reply with quote

Then how is it that if I search for this with http://www.google.com
Quote:

site:microchip.com PIC16F509

I only get two hits, and one of them is yours on the Microchip forum ?

whereas if I Google this
Quote:

site:microchip.com PIC12F509

I get an estimated 4400 hits.

And the same thing happens if I go to the http://www.microchip.com
website. If I type in PIC16F509 in the search box in the upper right,
I get several hits, but they are all repetitions of your post in their forum.
But if I type in PIC12F509, I get 869 solid hits.
JustRob



Joined: 27 Aug 2011
Posts: 10
Location: Hudson, MA

View user's profile Send private message

PostPosted: Sun Aug 28, 2011 12:29 am     Reply with quote

Okay, thanks!

I put a support request ticket to Microchip on Friday. Tomorrow I'm going to try a simple program to light an LED on the test board and see if it works. If it doesn't it looks like I'll have to wait until Monday for Microchip to get back to me (which they are very good about).
JustRob



Joined: 27 Aug 2011
Posts: 10
Location: Hudson, MA

View user's profile Send private message

PostPosted: Sun Aug 28, 2011 12:55 am     Reply with quote

As to whether I am sure I'm using the 16F509 micro --

The 12F509 micro has 6 I/O pins and a total of 8 pins. The PICkit 2 starter kit and low pin count demo board documentation says it is the 16F509. When I use the project wizard in Matlab it comes up defaulting to the 16F509. And lastly, the micro that is in the socket of the low pin count demo board is most definitely a 20 pin dip.

Thanks for your help and I will post the resolution for anyone else searching for this problem.
gpsmikey



Joined: 16 Nov 2010
Posts: 588
Location: Kirkland, WA

View user's profile Send private message

PostPosted: Sun Aug 28, 2011 6:47 am     Reply with quote

You mean this one?
http://www.microchipdirect.com/productsearch.aspx?Keywords=DV164120
I have several of them - the 20 pin chip is a 16F690 according to their information (and the number on the chip on the boards I have - I just looked).

I purchased mine direct from microchipDIRECT a year or so back. I have several of them with the chip swapped for a 18F14K22, but the initial chip that it comes with is the 16F690

mikey
_________________
mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3
JustRob



Joined: 27 Aug 2011
Posts: 10
Location: Hudson, MA

View user's profile Send private message

PostPosted: Sun Aug 28, 2011 8:15 am     Reply with quote

Yes, your correct; the 16F690!
JustRob



Joined: 27 Aug 2011
Posts: 10
Location: Hudson, MA

View user's profile Send private message

PostPosted: Sun Aug 28, 2011 8:46 am     Reply with quote

Grrrrrr...

Yes, the DV164120 that comes with the 16F690. However, I just went to write a quick little program using the CCS compiler and could not find a header file for the 16F690. I then checked the HI-TECH include path and it does not list a header file for the 16F690.

Any suggestions?
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Sun Aug 28, 2011 10:52 am     Reply with quote

If you just got the kit it should be there. My version 4.114 has the 16F690 in the PICC/devices directory.

If the kit is recent, email CCS and ask them for it... the version in the kit must be old.
_________________
Google and Forum Search are some of your best tools!!!!
JustRob



Joined: 27 Aug 2011
Posts: 10
Location: Hudson, MA

View user's profile Send private message

PostPosted: Sun Aug 28, 2011 11:10 am     Reply with quote

In MPLAB's about it says:
PICkit2 0.0.3.63
Picstart 4.40.0.14

How do I update it?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Aug 28, 2011 11:42 am     Reply with quote

If you never bought or obtained the CCS compiler, and the only thing you
have is MPLAB, then you don't have a CCS compiler that will work with
the 16F690.

You only have the "PCB" version of the CCS compiler, which is included
with MPLAB for free. It supports only the very low-end PICs. It does
not support the 16F690.

The following is from this Microchip page:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023805&part=DV164120
Quote:

Features of PICkit 2 Starter Kit

Low pin count demo board supporting 8/14/20-pin mid range PIC microcontrollers.
20-pin PIC16F690 Midrange microcontroller
Note: Requires the AC162061 ICD Header and AC164110 adapter to debug.
A series of 12 Lessons on assembly programming that cover I/O, A/D
converters, timers, interrupts, and data tables (All source code files are provided).
Getting Started in PICBASIC PRO tutorial on developing and debugging in
BASIC with a FREE microEngineering Labs PICBASIC PRO™ Demo
Compiler(contained on the PICkit 2 CD).
HI-TECH PICC™ LITE C Compiler with MPLAB IDE.
FREE! Microchip’s MPLAB IDE software for a complete code development environment.

It does not include the CCS "PCM" compiler, which is necessary for the 16F690.

I believe that explains your situation.


Last edited by PCM programmer on Sun Aug 28, 2011 12:45 pm; edited 1 time in total
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Sun Aug 28, 2011 12:45 pm     Reply with quote

wow, I guess you are limited to whichever ones of the compilers in the kit
that support the 16F690. It's strange to include the 16F690 and the version
of CCS C that doesn't support it...
_________________
Google and Forum Search are some of your best tools!!!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Aug 28, 2011 12:59 pm     Reply with quote

The PCB compiler is included in all downloads of MPLAB. It's not included
especially for the Pickit 2 Dev kit. It's just there. It's been included in
MPLAB for maybe a few years. It's not necessarily the latest version of
PCB. MPLAB 8.73a includes vs 4.073 of PCB.
JustRob



Joined: 27 Aug 2011
Posts: 10
Location: Hudson, MA

View user's profile Send private message

PostPosted: Sun Aug 28, 2011 2:19 pm     Reply with quote

I checked for updates and it says that version 8.73 is available. How do I update my version?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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