Author |
Message |
Topic: To override the compiler's intent on disabling interrupts? |
kaz
Replies: 11
Views: 9600
|
Forum: General CCS C Discussion Posted: Sat Jul 04, 2009 1:00 pm Subject: To override the compiler's intent on disabling interrupts? |
The CCS compiler would make a table for me :) ?
Before, it used to be an even larger switch-statement, but I tried to cut it down and use that table of pointers to variables. But it makes perfect s ... |
Topic: To override the compiler's intent on disabling interrupts? |
kaz
Replies: 11
Views: 9600
|
Forum: General CCS C Discussion Posted: Sat Jul 04, 2009 1:44 am Subject: To override the compiler's intent on disabling interrupts? |
I removed the GUI_Handler() from the timer2 ISR and put it in main, so now it has no chance to execute within the main loop code (which probably spends 50% of its time in DIV3232 or send_byte() ).
... |
Topic: To override the compiler's intent on disabling interrupts? |
kaz
Replies: 11
Views: 9600
|
Forum: General CCS C Discussion Posted: Fri Jul 03, 2009 11:46 pm Subject: To override the compiler's intent on disabling interrupts? |
I am almost 99% certain I do not. I will however post the code (and the sub-children possible of calling) in here. I admire your patience for reading these :) .
Although reflecting upon what's bee ... |
Topic: To override the compiler's intent on disabling interrupts? |
kaz
Replies: 11
Views: 9600
|
Forum: General CCS C Discussion Posted: Fri Jul 03, 2009 3:54 pm Subject: To override the compiler's intent on disabling interrupts? |
Err. I don't use any division/multiplication in my interrupts, ever. Especially the 32-bit variation. Or I'm fairly certain I don't. Just about 99% of the heavy code occurs in the main program/loop, a ... |
Topic: To override the compiler's intent on disabling interrupts? |
kaz
Replies: 11
Views: 9600
|
Forum: General CCS C Discussion Posted: Thu Jul 02, 2009 7:13 pm Subject: To override the compiler's intent on disabling interrupts? |
Chip: PIC16F886
Version: 4.093
IDE: MPLAB 8.33
I keep getting these messages:
>>> Warning 216 "Main.c" Line 322(0,1): Interrupts disabled during call to prevent ... |
Topic: Chip runs with ICD=TRUE, but code only compiles without it. |
kaz
Replies: 4
Views: 7253
|
Forum: General CCS C Discussion Posted: Wed Jul 01, 2009 2:47 pm Subject: Chip runs with ICD=TRUE, but code only compiles without it. |
Bah. Test program worked in stand-alone mode. I guess it really is a problem with the large program. Thanks for your time.
Edit: Suddenly it works? You fixed it! Or more distressingly, the break is ... |
Topic: Chip runs with ICD=TRUE, but code only compiles without it. |
kaz
Replies: 4
Views: 7253
|
Forum: General CCS C Discussion Posted: Wed Jul 01, 2009 2:12 pm Subject: Chip runs with ICD=TRUE, but code only compiles without it. |
You want to make it work in Standalone mode.
2. Go into the MPLAB Project Build Options menu, and "untick" the
box for "Compile for use with ICD Debugger".
Compiler Ve ... |
Topic: Chip runs with ICD=TRUE, but code only compiles without it. |
kaz
Replies: 4
Views: 7253
|
Forum: General CCS C Discussion Posted: Wed Jul 01, 2009 1:47 pm Subject: Chip runs with ICD=TRUE, but code only compiles without it. |
Chip: PIC16F886
Compiler Version: 4.095
IDE: MPLAB 8.33
I'm very curious as to the details of what "#fuses ICD=TRUE" does exactly.
When programming with an ICD2, I need "ICD=TR ... |
Topic: Copying by an array of pointers to const char[] doesn't work |
kaz
Replies: 3
Views: 4770
|
Forum: General CCS C Discussion Posted: Tue Jun 30, 2009 10:48 am Subject: Copying by an array of pointers to const char[] doesn't work |
Nuts. I thought it was the same problem. I'll try the 2-dimensional array then.
Thanks for the information. |
Topic: Copying by an array of pointers to const char[] doesn't work |
kaz
Replies: 3
Views: 4770
|
Forum: General CCS C Discussion Posted: Tue Jun 30, 2009 9:53 am Subject: Copying by an array of pointers to const char[] doesn't work |
I think it's broken, and I'd greatly enjoy this over the alternative switch statement:
Compiler version: 4.095
Chip: PIC16F886
/*---Code example---*/
#include <stdio.h>
char *Greeti ... |
Topic: Timer2 runs at 960kHz, but should be 4MHz. |
kaz
Replies: 3
Views: 6805
|
Forum: General CCS C Discussion Posted: Fri May 15, 2009 12:34 pm Subject: Timer2 runs at 960kHz, but should be 4MHz. |
The PIC15F886 datasheet can clarify your doubts. In the timer2 block diagram, you see, that the system clock is divided by 4, before the specified divider is applied. 960 kHz is slightly below the exp ... |
Topic: Timer2 runs at 960kHz, but should be 4MHz. |
kaz
Replies: 3
Views: 6805
|
Forum: General CCS C Discussion Posted: Fri May 15, 2009 11:53 am Subject: Timer2 runs at 960kHz, but should be 4MHz. |
Hardware: PIC16F886, PIC16F690
Compiler version 4.005
Intention: To have timer2 interrupt every 10 milliseconds.
I'm working on a periodic interrupt that eventually scales into measuring minutes, ... |
|