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

code following main(){ in LST

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



Joined: 19 Feb 2004
Posts: 15

View user's profile Send private message

code following main(){ in LST
PostPosted: Sun Jan 22, 2006 5:08 pm     Reply with quote

the LST file contains a chunck at the start of the main that I like to figure why is there

seems to address the FSR and ADCON but I even disabled all the refrences to the ADC and it still is there.

What is this?


void main()
.................... {
0017: CLRF 04
0018: MOVLW 1F
0019: ANDWF 03,F
001A: BSF 03.5
001B: BCF 1F.4
001C: BCF 1F.5
001D: MOVF 1B,W
001E: ANDLW 80
001F: MOVWF 1B
0020: MOVLW 07
0021: MOVWF 1C
0022: MOVF 1C,W
0023: BCF 03.5
0024: BCF 0D.6
0025: MOVLW 70
0026: BSF 03.5
0027: MOVWF 0F
_________________
McMaster Solar Car Project
http://www.solarcar.mcmaster.ca
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 22, 2006 5:22 pm     Reply with quote

This is the CCS start-up code. It will typically set Port A to all digital,
turn off the comparators, disable Vref generator, etc.
This is done regardless of whether or not you use these modules.
Also, if you are using the hardware UART, code will be inserted to setup
the baud rate, etc.
Amin



Joined: 19 Feb 2004
Posts: 15

View user's profile Send private message

PostPosted: Sun Jan 22, 2006 6:43 pm     Reply with quote

Thanks,

is there anyway to turn this off? I get easily annoyed by automatically added things.

I address all these issues manually and I need to have the process do a startup task immediately.
_________________
McMaster Solar Car Project
http://www.solarcar.mcmaster.ca
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 22, 2006 8:00 pm     Reply with quote

I don't think it can be disabled.
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