Author |
Message |
Topic: #ASM directives |
Schmobol
Replies: 23
Views: 26984
|
Forum: General CCS C Discussion Posted: Mon Aug 02, 2004 6:01 am Subject: #ASM directives |
I have a doubt all of a sudden. What I want to do here is to load FSR0L with the lowwer part of ee_block[0] address and FSR0H with the upper part of it.
MOVFF &ex_block[0]+1, FSR0H is going to ... |
Topic: #ASM directives |
Schmobol
Replies: 23
Views: 26984
|
Forum: General CCS C Discussion Posted: Mon Aug 02, 2004 5:52 am Subject: #ASM directives |
Thank you for your cooperation |
Topic: #ASM directives |
Schmobol
Replies: 23
Views: 26984
|
Forum: General CCS C Discussion Posted: Mon Aug 02, 2004 12:37 am Subject: #ASM directives |
Here is the routine (it hasn't been cleaned up). When I use &ee_block I get an error at compiling saying"expecting an identifier"
#BYTE TBLPTRU = 0xff8
#BYTE TBLPTRH = 0xff7
#BYTE TBLPTRL = ... |
Topic: #ASM directives |
Schmobol
Replies: 23
Views: 26984
|
Forum: General CCS C Discussion Posted: Fri Jul 30, 2004 12:36 am Subject: #ASM directives |
That's right. I just wrote those lines as an example but in the original file the declaration of the variables are right. |
Topic: #ASM directives |
Schmobol
Replies: 23
Views: 26984
|
Forum: General CCS C Discussion Posted: Thu Jul 29, 2004 9:12 am Subject: #ASM directives |
I tried MOVLW &ee_block +1 already but the compiler says expecting an identifier and gives an error |
Topic: #ASM directives |
Schmobol
Replies: 23
Views: 26984
|
Forum: General CCS C Discussion Posted: Thu Jul 29, 2004 6:44 am Subject: #ASM directives |
I still have big troubles while writing in FLASH memory with a 18F442 and had to implement assembly language routine specifyied by microchip datasheet but this is not the debate right now.
My quest ... |
Topic: Bug with write_program_memory() still in CCS 3.206 ? |
Schmobol
Replies: 7
Views: 15797
|
Forum: General CCS C Discussion Posted: Wed Jul 21, 2004 12:27 am Subject: Bug with write_program_memory() still in CCS 3.206 ? |
The magic is a small detail ! If you use the routine as it is in the datasheet on a 18F442 it doesn't work. You just have to change the way the GIE bit is handled. I clear the bit GIE just before the ... |
Topic: Bug with write_program_memory() still in CCS 3.206 ? |
Schmobol
Replies: 7
Views: 15797
|
Forum: General CCS C Discussion Posted: Tue Jul 20, 2004 8:31 am Subject: Bug with write_program_memory() still in CCS 3.206 ? |
Thank you very much. In the meantime I figured out a solution by modifying the write routine in the 18FXX2 datasheet. And now everything works ! I'll clean up my code when I get out of the rush situat ... |
Topic: Bug with write_program_memory() still in CCS 3.206 ? |
Schmobol
Replies: 7
Views: 15797
|
Forum: General CCS C Discussion Posted: Mon Jul 19, 2004 9:22 am Subject: Bug with write_program_memory() still in CCS 3.206 ? |
Hi,
I've just read a message of a bug, present last year on CCS 3.177, http://www.ccsinfo.com/forum/viewtopic.php?t=17281&highlight=writeprogrammemory , that has similar symptoms as the one I' ... |
Topic: Bug in write_program_memory? |
Schmobol
Replies: 3
Views: 10201
|
Forum: General CCS C Discussion Posted: Mon Jul 19, 2004 7:45 am Subject: Bug in write_program_memory? Is it still in CCS 3.206 |
Hi,
I've just read a message of a bug, present last year on CCS 3.177, that has similar symptoms as the one I'm experiencing whatever version up to the last one 3.206.
In fact, when using the w ... |
Topic: Isn't it a bug ? CCS 3.202 version |
Schmobol
Replies: 13
Views: 28379
|
Forum: General CCS C Discussion Posted: Thu Jun 03, 2004 4:10 am Subject: Not a bug |
I missed something int he calculation of the relative jump. As specified by the datasheet the relative jump is calculated by the following formula 2n+2. And the BRA instruction previoulsy mentionned i ... |
Topic: Isn't it a bug ? CCS 3.202 version |
Schmobol
Replies: 13
Views: 28379
|
Forum: General CCS C Discussion Posted: Thu Jun 03, 2004 3:39 am Subject: Bug identified |
Bug has been reported to CCS. For those of you who are experiencing the same problem, I solved this specific problem by adding #opt 5 while keeping 3.202 version.
Thanks to C-H Wu for this good adv ... |
Topic: Isn't it a bug ? CCS 3.202 version |
Schmobol
Replies: 13
Views: 28379
|
Forum: General CCS C Discussion Posted: Thu Jun 03, 2004 3:25 am Subject: bug identified |
I think I finally found a problem. Hereafter is a Branch instruction at the end of a for(;;) loop
Address Opcode Disassembly
1B9E D277 BRA 0x208E
The code optimization replaces a ... |
Topic: Isn't it a bug ? CCS 3.202 version |
Schmobol
Replies: 13
Views: 28379
|
Forum: General CCS C Discussion Posted: Wed Jun 02, 2004 8:52 am Subject: Additional information |
I've just tested version 3.202 with the #opt 5 you mentionned. And now icons are displayed perfectly well. I had a look at the lst file and find GOTO instructions instead of BRA at the end of for(;;) ... |
Topic: Isn't it a bug ? CCS 3.202 version |
Schmobol
Replies: 13
Views: 28379
|
Forum: General CCS C Discussion Posted: Wed Jun 02, 2004 8:45 am Subject: False alarm |
Thank you for your help
Yes, I tested it. It doesn't work. I have a subroutine tha displays graphic icons on LCD. No icon displayed. This is probably the visible part of the iceberg, I didn't track ... |
|