View previous topic :: View next topic |
Author |
Message |
Francesco
Joined: 19 Feb 2004 Posts: 14
|
Problem using PCWH Version 4.011 |
Posted: Wed Dec 06, 2006 8:35 am |
|
|
Hello,
I writed a code for a PIC16F876A with a CCS compiler V.3.0111 and it's runnig, but now I buy a new version ( PCWH Version 4.011 ) and the code doesn't running.
I haven't a error but it doesn't run.
Why?
Thank in advance. |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Wed Dec 06, 2006 10:10 am |
|
|
Try using the latest version, 4.016. Better, forget about v4.xxx compilers for the next couple of months as they are still considered beta. The latest stable version is v3.249, still available for download from the website. |
|
|
Francesco
Joined: 19 Feb 2004 Posts: 14
|
|
Posted: Thu Dec 07, 2006 1:59 am |
|
|
Thanks ckielstra I downloaded the last version, but my code now doesn't run very good.
Because many function doesn't run...
Why?Why?Why?..... |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Dec 07, 2006 2:26 am |
|
|
Quote: | I writed a code for a PIC16F876A with a CCS compiler V.3.0111 |
There is no version number such as 3.0111.
In a previous post you said you're using vs. 3.180:
http://www.ccsinfo.com/forum/viewtopic.php?t=26565
Quote: | Because many function doesn't run... |
If you have a local copy of the 16F876A.H file in your project directory,
this could cause the problems that you see. The reason is because CCS
changed the constants in the .H file for some of the modules, between
versions 3.180 and 4.016. For example, the A/D functions and the
comparator functions have different constants.
This is done because the compiler code is written in a different way
in the new version. It expects the constants to be in the new format.
If this is your problem, then delete the local copy of 16F876A.H and
let the compiler use the .H file from the c:\Program Files\Picc\Devices
directory. |
|
|
Francesco
Joined: 19 Feb 2004 Posts: 14
|
|
Posted: Thu Dec 07, 2006 2:43 am |
|
|
Thanks for your answer, and sorry because my old version is:
IDE 3.14
PCB 3.099
PCM 3.099
I change the .h file when i installed the new version and i change the constant in my code, and when i compile i haven't any error.
I use in my code the function set_pwmX_duty() Cab i use it in new version? |
|
|
|