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

t6963c LCD + 16F877a

 
Post new topic   Reply to topic    CCS Forum Index -> Code Library
View previous topic :: View next topic  
Author Message
Mark Weir



Joined: 11 Sep 2003
Posts: 51
Location: New Zealand

View user's profile Send private message

Wont Compile
PostPosted: Tue Aug 22, 2006 9:37 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Aug 22, 2006 10:35 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Oct 29, 2006 9:49 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Oct 29, 2006 11:28 am     Reply with quote

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

View user's profile Send private message

port c
PostPosted: Mon Dec 11, 2006 10:55 pm     Reply with quote

what is the code for TRIS c and PORT c
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> Code Library 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