View previous topic :: View next topic |
Author |
Message |
Amin
Joined: 19 Feb 2004 Posts: 15
|
code following main(){ in LST |
Posted: Sun Jan 22, 2006 5:08 pm |
|
|
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
|
|
Posted: Sun Jan 22, 2006 5:22 pm |
|
|
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
|
|
Posted: Sun Jan 22, 2006 6:43 pm |
|
|
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
|
|
Posted: Sun Jan 22, 2006 8:00 pm |
|
|
I don't think it can be disabled. |
|
|
|