View previous topic :: View next topic |
Author |
Message |
Guest
|
port to 18f452 |
Posted: Sat Apr 15, 2006 7:46 am |
|
|
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
|
|
Posted: Tue Apr 18, 2006 2:01 am |
|
|
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
|
|
Posted: Tue Apr 18, 2006 2:11 am |
|
|
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
|
|
Posted: Tue Apr 18, 2006 4:38 am |
|
|
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 ! |
|
|
|