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 support@ccsinfo.com

Problem using PCWH Version 4.011

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



Joined: 19 Feb 2004
Posts: 14

View user's profile Send private message

Problem using PCWH Version 4.011
PostPosted: Wed Dec 06, 2006 8:35 am     Reply with quote

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. Crying or Very sad Crying or Very sad Crying or Very sad
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Dec 06, 2006 10:10 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 07, 2006 1:59 am     Reply with quote

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?..... Crying or Very sad Crying or Very sad Crying or Very sad
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Dec 07, 2006 2:26 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 07, 2006 2:43 am     Reply with quote

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?
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