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 CCS Technical Support

port to 18f452

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








port to 18f452
PostPosted: Sat Apr 15, 2006 7:46 am     Reply with quote

a program written for 16f877a using CCS compiler cant be ported "AS IS" onto 18452. Can u suggest any reason. I know this an old query, and i know its pin compatible except for some addressing issues. Id also like to mention the fuses and peripherals used in the program:

#fuses XT,NOWDT,NOLVP,NOPROTECT,BROWNOUT

setup_timer_0(RTCC_INTERNAL| RTCC_DIV_256);
setup_timer_1(T1_INTERNAL | T1_DIV_BY_8);
enable_interrupts(INT_TIMER0);
enable_interrupts(INT_TIMER1);
enable_interrupts(INT_EXT);
enable_interrupts(GLOBAL);

So guyz what dya think ?
Guest








PostPosted: Tue Apr 18, 2006 2:01 am     Reply with quote

Ive searched this forum thoroughly and found a a bunch of relevant problems but to no success. One mentioned :
[/url]
http://www.ccsinfo.com/forum/viewtopic.php?t=19397&postdays=0&postorder=asc&start=15
[url]
My program integrates an NJU RTC and an Atmel 24c eeprom as well. The xtal used is 4mhz. Dougles kennedy wrote:
Quote:

Douglas kennedy writes:

Look at the errata sheets from Microchip....there is a major hardware bug ( or as marketing would say another free feature ) that often occurs as you stuff more code into the 18F452 than your 16F877 can accomodate. CCS may paint over this flaw with software ... personally I thing the chips should be recalled.


Now im stuck here coz this 18f452 works otherwise but this programs fails. I know it should otherwise run with the changing of the headerfile. So ANYBODY who can suggest a possible solution????[/url]
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Apr 18, 2006 2:11 am     Reply with quote

You didn't get any answers because you didn't tell us anything about
the problem.

1. What specific part of the program fails ?

2. Does the part that fails talk to an external chip ?
What pins does it use ?

3. What is your version of PCH ?
Look at the top of the .LST file to find this. It will be
a number such as 3.191, or 3.249, etc.
Guest








PostPosted: Tue Apr 18, 2006 4:38 am     Reply with quote

Thanx for ur reply.

but During this time i ve figured out the problematic part. it was the 4x20LCD and the port addresses werent set according to 18f. That caused the whole program to stop. Thanx for replying, uve got a big heart !
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