View previous topic :: View next topic |
Author |
Message |
vaishali
Joined: 26 Mar 2004 Posts: 3
|
lst file query |
Posted: Thu Dec 02, 2004 5:00 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
|
|
Posted: Thu Dec 02, 2004 4:59 pm |
|
|
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
....................
....................
....................
|
|
|
![](templates/subSilver/images/spacer.gif) |
vaishali
Joined: 26 Mar 2004 Posts: 3
|
|
Posted: Fri Dec 03, 2004 10:36 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
|
|
Posted: Fri Dec 03, 2004 11:15 pm |
|
|
Look at the help file, and also the Readme.txt file in the \PICC directory. |
|
![](templates/subSilver/images/spacer.gif) |
dyeatman
Joined: 06 Sep 2003 Posts: 1924 Location: Norman, OK
|
There is a manual... |
Posted: Sat Dec 04, 2004 7:38 am |
|
|
How about reading the Reference MANUAL? |
|
![](templates/subSilver/images/spacer.gif) |
|