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

lst file query

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



Joined: 26 Mar 2004
Posts: 3

View user's profile Send private message

lst file query
PostPosted: Thu Dec 02, 2004 5:00 am     Reply with quote

hi all
i am using the PCWH compiler
IDE version 3.41

i have a query, regarding where do i get to see the lst file of the #use directive


for eg.
if we write something like i = 29; in the .c file , in its .lst file we can see in which address or location 29 is stored,

like that
if i write #use i2c(Master,Fast,sda=PIN_C4,scl=PIN_C3)
where do i see the lst file for that... in the normal list file it is not there

thanking u in advance
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Thu Dec 02, 2004 4:59 pm     Reply with quote

It will not be there if you don't use any I2C functions in your code. As soon as you use a I2C fucntion, CCS will generate code for the #USE I2C and you will be able to see it in your .LST file.

This is from the .LST of one of my projects:

Code:

#use i2c(Master,Fast,sda=PIN_C4,scl=PIN_C3,FORCE_HW)
*
135C:  BCF    SSPCON.7
135E:  BCF    PIR1.3
1360:  MOVFF  ??65535,SSPBUF
1364:  MOVLW  02
1366:  BTFSC  SSPCON.7
1368:  BRA    1374
136A:  BTFSS  PIR1.3
136C:  BRA    136A
136E:  MOVLW  00
....................
....................
....................
vaishali



Joined: 26 Mar 2004
Posts: 3

View user's profile Send private message

PostPosted: Fri Dec 03, 2004 10:36 pm     Reply with quote

thank you very much, i will try that...... i have another question
in
#use i2c(Master,Fast,sda=PIN_C4,scl=PIN_C3) where have the words, Master, fast etc. been defined????
in the #include <18F258.h> ( i am using PIC 18f258 ) most of the words are defined, but i did not get any refrence for the I2c and even for RS232, could u tell me in which file will i find it?

thanking u in advance
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Fri Dec 03, 2004 11:15 pm     Reply with quote

Look at the help file, and also the Readme.txt file in the \PICC directory.
dyeatman



Joined: 06 Sep 2003
Posts: 1937
Location: Norman, OK

View user's profile Send private message

There is a manual...
PostPosted: Sat Dec 04, 2004 7:38 am     Reply with quote

How about reading the Reference MANUAL?
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