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

Migration from F873 to F876, UTI03-Chip from Smartec

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



Joined: 04 Aug 2006
Posts: 1

View user's profile Send private message

Migration from F873 to F876, UTI03-Chip from Smartec
PostPosted: Fri Aug 04, 2006 2:35 am     Reply with quote

Hi,

at the moment we migrate a project from F873 to F876 mainly due to memory limitations. We use a UTI03 chip from Smartec in conjunction with the microcontroller. We also use parts of the Smartec code example to access the UTI chip (http://www.smartec.nl/software/Utikiteval.c).

We use the CCS compiler of version 2.049, MPLAB 7.40 and the Picstart+ programmer with the latest firmware.

After changing the #include statement from #include <16F873> to #include <16F876> the codes works somehow, but all calculations are completly wrong.

Is their any difference between the two types which the ccs compiler disregards?

One think we can imagine is, that the Smartec code (link to code see above) contains some inline assembler code, originally written for the F73, but works still fine with the F873. Maybe after changing to the F876 this could be the problem?

Greetings from Germany

Maximilian
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 04, 2006 2:03 pm     Reply with quote

The compiler uses some of the PIC's RAM for its own scratch variables.
It could be that your ASM code uses some of that RAM.

My advice is to use printf statements to display some intermediate
results in your calculation code. Then you can find the line of code
which is causing the incorrect results.
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