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

PCW Compiler and PCM and PCH Samples

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



Joined: 04 Jun 2017
Posts: 110

View user's profile Send private message

PCW Compiler and PCM and PCH Samples
PostPosted: Tue Oct 06, 2020 8:10 pm     Reply with quote

In the comments section of first example it says

'Works with PCM and PCH compilers'.

Doubtful CCS put the sample in there by mistake.

Will it work with the PCW compiler?

Thanks!
_________________
PIC Hobbyist
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Wed Oct 07, 2020 1:11 am     Reply with quote

PCW, isn't a compiler!.....

PCW, is the 'windowed' 'front end' for the CCS compilers. The three
compilers are PCB (for basically PIC12's), PCM (for some of the bigger
PIC12's, and the PIC16's), and PCH (for the PIC18's). (and then PCD
for the PIC24/30/33, but this is significantly different).

When you run PCW, there is a 'selector' at the centre top of the window,
with a pull down which says PCB 12bit, PCM 14bit, PCH 16bit (and if you
have PCD, PCD 24bit). It is this selector, which selects the physical
compiler that is to be used.

So you don't have a compiler called PCW. The PIC16F877, uses PCM.
Regular Guy



Joined: 04 Jun 2017
Posts: 110

View user's profile Send private message

PostPosted: Wed Oct 07, 2020 9:35 am     Reply with quote

Thank you Ttelmah

Okay.

Ours says 'Microchip 14 bit' and 'Microchip PIC18

[img]https://drive.google.com/file/d/1ILZuVK3G0TbJhPv24yOvNE1jTEA9s3La/view?usp=sharing[/img]

https://drive.google.com/file/d/1ILZuVK3G0TbJhPv24yOvNE1jTEA9s3La/view?usp=sharing
_________________
PIC Hobbyist
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Wed Oct 07, 2020 10:04 am     Reply with quote

So you are using PCH. Smile
Regular Guy



Joined: 04 Jun 2017
Posts: 110

View user's profile Send private message

PostPosted: Wed Oct 07, 2020 11:01 am     Reply with quote

Thank you Ttelmah

Why are 'Device Editor' and 'Device Selector' in Tools greyed out please?

Question #2

We own a PCB compiler.

Can we get it to work within this PCW editor?

Thanks! Smile
_________________
PIC Hobbyist


Last edited by Regular Guy on Wed Oct 07, 2020 3:18 pm; edited 1 time in total
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Wed Oct 07, 2020 12:41 pm     Reply with quote

Because you only have the 'sample' version. Like the cut down version
available for free for a few chips, the package is limited. One of those
limitations is the device editor, and since it is done for only specific
chips the device selector is also disabled.
I don't think you do. Same comment, limited version.
Regular Guy



Joined: 04 Jun 2017
Posts: 110

View user's profile Send private message

PostPosted: Wed Oct 07, 2020 3:17 pm     Reply with quote

Thanks Ttelmah

It is an Evaluation Compiler.

It supports 16F877 and 18F458 PIC's.

Included in book 'Embedded C Programming and the Microchip PIC'.

How do you select between the two PIC's?

That is with the 'Device Selector' being greyed out.

Question 2

Let me restate the question.

Since this is a 'front end' or IDE for CCS compilers.

Can we use it with our command line full version of PCB compiler?

It will run from within MPLAB as a plug in.

Will the PCB run with this PCW?

Or is it 'sealed up' when it is written or coded?
_________________
PIC Hobbyist
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Thu Oct 08, 2020 12:52 am     Reply with quote

As I said the evaluation version is limited so won't allow you to do things
like add another compiler.

Just load a file with the header being loaded for the other chip. It should
automatically switch when you compile this.
Regular Guy



Joined: 04 Jun 2017
Posts: 110

View user's profile Send private message

PostPosted: Thu Oct 08, 2020 10:34 am     Reply with quote

Thank you Ttelmah

Okay.

We will test it.

Thanks! Smile
_________________
PIC Hobbyist
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