|
|
View previous topic :: View next topic |
Author |
Message |
hkartadi
Joined: 25 Jul 2008 Posts: 3 Location: Singapore
|
CCS support PIC16F72X? |
Posted: Fri Jul 25, 2008 3:00 am |
|
|
HI all,
Sorry... newbie here
Does CCS C Compiler PCM version 4.038 support PIC16F72X device?
I can work on the library/header, but I am not sure whether it can compile correctly using CCS.
I am trying to experiment the new Mtouch device from Microchip.
Thanks for your help! |
|
|
Ttelmah Guest
|
|
Posted: Fri Jul 25, 2008 3:25 am |
|
|
Not directly.
If you look at the data sheet for (say) the 16F722, this wasn't even printed by Microchip, till the end of December 2007. The earliest compiler 'after this', was about 4.066.
If you can find another chip with similar 'basic' peripherals, you can always rename this and use it's settings, but you will have to drive any specialist components yourself.
Best Wishes |
|
|
hkartadi
Joined: 25 Jul 2008 Posts: 3 Location: Singapore
|
|
Posted: Fri Jul 25, 2008 6:37 am |
|
|
Is that possible for me to map the register address directly (similar to Hitech compiler .h file)?
Because CCS has compiler directive #byte (if I am not wrong).
On MPLAB IDE, Configuration -> Device. Which device that I need to choose since there is no option to select PIC16F72X.
Thanks for the help. |
|
|
Ttelmah Guest
|
|
Posted: Fri Jul 25, 2008 8:40 am |
|
|
Yes, totally.
You can program _any_ 16 chip, with any of the CCS PCM compilers. All you can't do, is use the internal pre-defined functions. Best thing to do, is to find a chip that is supported, that has the same basic memory layout. Any peripherals in common, can be used with the standard code, but any 'extras', will just require you to write your own code. Back in the days when CCS, were much slower adding support than they are now, most of the 'old hands', will have done this.
If you have the 'W' version of the compiler, then in fact you are better off choosing a target that has as may peripherals as possible in common, rather than worrying about the memory size, since the device editor in this version, allows you to configure the latter.
There are off the shelf byte definitions for almost all the registers on the devices, that have been posted here in the past. A search should find them.
Best Wishes |
|
|
hkartadi
Joined: 25 Jul 2008 Posts: 3 Location: Singapore
|
|
Posted: Fri Jul 25, 2008 10:07 am |
|
|
Thanks for the detail explanation |
|
|
|
|
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
|