Author |
Message |
Topic: Variables in EEPROM |
mayler
Replies: 6
Views: 5933
|
Forum: General CCS C Discussion Posted: Tue Feb 03, 2009 5:09 pm Subject: Variables in EEPROM |
And try to update. This version is too bugged. |
Topic: Complex code made up with struct not working? |
mayler
Replies: 2
Views: 3453
|
Forum: General CCS C Discussion Posted: Tue Feb 03, 2009 5:02 pm Subject: Complex code made up with struct not working? |
I agree with PCM. This is not gcc/Visual C/Turbo C/ whatever pc compiler C. There´s no sense make a programming "made to a computer" for a microcontroller with a limited arch. Altough the s ... |
Topic: Efficient storage of text |
mayler
Replies: 13
Views: 13122
|
Forum: General CCS C Discussion Posted: Thu Jan 22, 2009 1:53 pm Subject: Efficient storage of text |
My method is interesting if you want to access one specific line at time. The [][*] in previous versions doesnt work... (4.049). The difference of 8% its the overhead ( very little), the for and the i ... |
Topic: Efficient storage of text |
mayler
Replies: 13
Views: 13122
|
Forum: General CCS C Discussion Posted: Wed Jan 21, 2009 8:00 pm Subject: Efficient storage of text |
You can try with an array of strings...
int i;
const char menu[22][*] ={
"! - Factory default settings",
"TAB - Toggle temperature monitor updat ... |
Topic: Efficient storage of text |
mayler
Replies: 13
Views: 13122
|
Forum: General CCS C Discussion Posted: Wed Jan 21, 2009 6:49 am Subject: Efficient storage of text |
How fvm said you can make a array of strings or You can make all calls in one line of fprintf, like that:
fprintf(TERM,"! - Factory default settings\r\n$ - Terminal Mode\r\n (other strings her ... |
Topic: Fixed Point Decimal - How to use ? (_fixed(n)) |
mayler
Replies: 2
Views: 5824
|
Forum: General CCS C Discussion Posted: Fri Jan 16, 2009 9:53 am Subject: Fixed Point Decimal - How to use ? (_fixed(n)) |
You can use a normal number and use %w in printf to generate a formatted output. See in printf manual. |
Topic: _fixed(n) bugged? |
mayler
Replies: 10
Views: 12227
|
Forum: General CCS C Discussion Posted: Sat Nov 15, 2008 7:02 pm Subject: _fixed(n) bugged? |
Yeah... When i used the 4.037, the _fixed was working properly... Now is totally broken...
I found another bug, when I used (int var[8]) as parameter... It´s pointing to wrong address and making e ... |
Topic: _fixed(n) bugged? |
mayler
Replies: 10
Views: 12227
|
Forum: General CCS C Discussion Posted: Thu Nov 13, 2008 6:16 pm Subject: _fixed(n) bugged? |
So, it´s bugged (much more in newer versions). I transformed all variables in table in long and adapted some parts to continue my program. I am using %w (still working )
Thanks PCM! |
Topic: _fixed(n) bugged? |
mayler
Replies: 10
Views: 12227
|
Forum: General CCS C Discussion Posted: Thu Nov 13, 2008 5:54 pm Subject: _fixed(n) bugged? |
Thanks for the reply PCM
Here is the code :
main.h
#include <18F452.h>
#device adc=8
#case
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Wat ... |
Topic: _fixed(n) bugged? |
mayler
Replies: 10
Views: 12227
|
Forum: General CCS C Discussion Posted: Thu Nov 13, 2008 4:20 pm Subject: _fixed(n) bugged? |
Hi,
I'm trying to use the _fixed(n) qualifier but I'm having serious problems. When I declare the variable in main(), it works normally. When I use a variable in a function, simply the values are n ... |
|