View previous topic :: View next topic |
Author |
Message |
Regular Guy
Joined: 04 Jun 2017 Posts: 110
|
PCW Compiler and PCM and PCH Samples |
Posted: Tue Oct 06, 2020 8:10 pm |
|
|
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: 19504
|
|
Posted: Wed Oct 07, 2020 1:11 am |
|
|
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
|
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19504
|
|
Posted: Wed Oct 07, 2020 10:04 am |
|
|
So you are using PCH. |
|
|
Regular Guy
Joined: 04 Jun 2017 Posts: 110
|
|
Posted: Wed Oct 07, 2020 11:01 am |
|
|
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! _________________ 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: 19504
|
|
Posted: Wed Oct 07, 2020 12:41 pm |
|
|
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
|
|
Posted: Wed Oct 07, 2020 3:17 pm |
|
|
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: 19504
|
|
Posted: Thu Oct 08, 2020 12:52 am |
|
|
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
|
|
Posted: Thu Oct 08, 2020 10:34 am |
|
|
Thank you Ttelmah
Okay.
We will test it.
Thanks! _________________ PIC Hobbyist |
|
|
|