View previous topic :: View next topic |
Author |
Message |
Mark Weir
Joined: 11 Sep 2003 Posts: 51 Location: New Zealand
|
Wont Compile |
Posted: Tue Aug 22, 2006 9:37 pm |
|
|
Hi Guys,
Just tried to download this code but I keep getting the following message:
*** Error 160 "E:\Marks D drive\PIC_LIBRARY\C_FILES\Examples\Graphic LCD\T6963CCS\glcdex1.c" Line 297(0,1): External symbol not found DisplayMode
1 Errors, 0 Warnings.
It does not compile. Can anyone spot where I have gone wrong please.
Cheers
Mark |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Aug 22, 2006 10:35 pm |
|
|
He has declared some variables with the 'extern' qualifier.
At the time he wrote his program, the CCS compiler accepted 'extern'
but ignored it. Since then (in late versions of 3.xxx, according to the
readme.txt file), it accepts 'extern'. This was in preparation for vs. 4.0.
Solution:
Find the lines where variables are declared as 'extern' and delete that
keyword only, leaving everything else in those lines unchanged. |
|
|
JoKeR
Joined: 21 Oct 2006 Posts: 2
|
|
Posted: Sun Oct 29, 2006 9:49 am |
|
|
I managed to work with 16F877A I played for little and it's great ... regards...
Now I tried to work with 18F452 but I have problems with this mcu....
I someone know what do I need to change to 18f452 works???
Since I use PORTB for command and PORTD for data
in t6963c.h
Do I need to change #byte TRISB = 0x86 to 0xF81...
I dont understand wath is #byte PORTB = 0x06.
could someone explain to me this... |
|
|
JoKeR
Joined: 21 Oct 2006 Posts: 2
|
|
Posted: Sun Oct 29, 2006 11:28 am |
|
|
resolved
Code: |
#byte PORTB = 0xF81
#byte TRISB = 0xF93
#bit PORTB0 = PORTB.0
#bit PORTB1 = PORTB.1
#bit PORTB2 = PORTB.2
#bit PORTB3 = PORTB.3
#bit PORTB4 = PORTB.4
#bit PORTB5 = PORTB.5
#bit PORTB6 = PORTB.6
#bit PORTB7 = PORTB.7
#bit TRISB0 = TRISB.0
#bit TRISB1 = TRISB.1
#bit TRISB2 = TRISB.2
#bit TRISB3 = TRISB.3
#bit TRISB4 = TRISB.4
#bit TRISB5 = TRISB.5
#bit TRISB6 = TRISB.6
#bit TRISB7 = TRISB.7
#byte PORTD = 0xF83
#byte TRISD = 0xF95
#bit PORTD0 = PORTD.0
#bit PORTD1 = PORTD.1
#bit PORTD2 = PORTD.2
#bit PORTD3 = PORTD.3
#bit PORTD4 = PORTD.4
#bit PORTD5 = PORTD.5
#bit PORTD6 = PORTD.6
#bit PORTD7 = PORTD.7
#bit TRISD0 = TRISD.0
#bit TRISD1 = TRISD.1
#bit TRISD2 = TRISD.2
#bit TRISD3 = TRISD.3
#bit TRISD4 = TRISD.4
#bit TRISD5 = TRISD.5
#bit TRISD6 = TRISD.6
#bit TRISD7 = TRISD.7
|
|
|
|
vi_ni_ta
Joined: 11 Dec 2006 Posts: 7
|
port c |
Posted: Mon Dec 11, 2006 10:55 pm |
|
|
what is the code for TRIS c and PORT c |
|
|
|