Author |
Message |
Topic: Error message when case value is > 65535 |
mpfj
Replies: 6
Views: 6626
|
Forum: General CCS C Discussion Posted: Mon Jan 11, 2010 10:09 am Subject: Error message when case value is > 65535 |
I posed the question to CCS Tech Support and they gave this simple answer:
32 bit switch/case arguments are not supported.
Ah well ... I did raise this as a bug, but I guess it's not a show-stop ... |
Topic: Error message when case value is > 65535 |
mpfj
Replies: 6
Views: 6626
|
Forum: General CCS C Discussion Posted: Tue Jan 05, 2010 9:02 am Subject: Error message when case value is > 65535 |
With version 4.099, the following code brings up the error:-
Errormain()
{
int32 a;
a = 0x10000;
switch(a)
{
case 0x10000: break;
}
} ... |
Topic: Perphieral Pin Select support |
mpfj
Replies: 5
Views: 5813
|
Forum: General CCS C Discussion Posted: Wed Mar 11, 2009 9:26 am Subject: Perphieral Pin Select support |
Just got a reply from CCS themselves.
PPS will be supported in 4v088. |
Topic: Perphieral Pin Select support |
mpfj
Replies: 5
Views: 5813
|
Forum: General CCS C Discussion Posted: Wed Mar 11, 2009 8:10 am Subject: Perphieral Pin Select support |
Ah ... I should have stated that I'm using a PIC18F46J11, which isn't covered by PCD.
I'm currently using 4v087. |
Topic: Perphieral Pin Select support |
mpfj
Replies: 5
Views: 5813
|
Forum: General CCS C Discussion Posted: Wed Mar 11, 2009 4:44 am Subject: Perphieral Pin Select support |
Several of the newer devices have the new PPS registers.
By the looks of things, there's no support for these new registers at the moment, so can anyone help me in working out how to specify the #u ... |
Topic: "+OB" command line switch |
mpfj
Replies: 2
Views: 3842
|
Forum: General CCS C Discussion Posted: Mon Jan 15, 2007 9:33 am Subject: "+OB" command line switch |
I don't know if anyone is trying to do too much with V4.x yet
The +OB switch doesn't work with 3v249 either ... I thought I'd try the latest version.
Have you thought about a conversion program bi ... |
Topic: How can i implement two hw interrupt driven Serial ports |
mpfj
Replies: 9
Views: 11552
|
Forum: General CCS C Discussion Posted: Mon Jan 15, 2007 7:16 am Subject: How can i implement two hw interrupt driven Serial ports |
nibu
Is it possible to post the listing file ? |
Topic: "+OB" command line switch |
mpfj
Replies: 2
Views: 3842
|
Forum: General CCS C Discussion Posted: Mon Jan 15, 2007 7:14 am Subject: "+OB" command line switch |
I'm using 4v020, and wish to compile my code to a .bin file, not .hex !!
I use the ocmmand line as follows ...
ccsc +FH +DF +OBbin +STDOUT main.c
The code compiles without any problems, and gener ... |
Topic: Problem using 2nd I2C port on 18F8722 |
mpfj
Replies: 10
Views: 12088
|
Forum: General CCS C Discussion Posted: Sat Dec 02, 2006 6:03 am Subject: Problem using 2nd I2C port on 18F8722 |
I reported this to support a week ago and was issued an identification number.
My original bug report has not yet been answered, and as you can see I reported it back in January this year so ... |
Topic: Strange jumps after printf |
mpfj
Replies: 13
Views: 12390
|
Forum: General CCS C Discussion Posted: Wed Oct 04, 2006 10:28 am Subject: Strange jumps after printf |
Are you sure the listing file matches what's actually programmed inot the PIC ? A couple of times, I've fooled myself by compiling code into one directory, and then loading the COFF file from another ... |
Topic: Is this keypad matrix debouncing OK? |
mpfj
Replies: 9
Views: 13768
|
Forum: General CCS C Discussion Posted: Wed May 31, 2006 2:22 am Subject: Is this keypad matrix debouncing OK? |
but that is necessary for hardware reasons.
You could account for this in the state machine (e.g. adding a "CHARGING" state).
Any use of delays just ties up the CPU and stops it from handling any ... |
Topic: Is this keypad matrix debouncing OK? |
mpfj
Replies: 9
Views: 13768
|
Forum: General CCS C Discussion Posted: Tue May 30, 2006 12:44 pm Subject: Is this keypad matrix debouncing OK? |
I would generally *not* recommend using delay routines in code that is used quite often. A keyboard scanning routine would usually be called several times a second to make sure all keypresses a detec ... |
Topic: Large Array |
mpfj
Replies: 15
Views: 17956
|
Forum: General CCS C Discussion Posted: Thu Apr 13, 2006 6:59 am Subject: Large Array |
How will the FM24C256 have enough memory for this application? It has only 256 kbit.. I think he picked the wrong chip.
As I stated at the start of the thread ...
You need 2 x 650 x 8 = 10,400 bytes ... |
Topic: Large Array |
mpfj
Replies: 15
Views: 17956
|
Forum: General CCS C Discussion Posted: Thu Apr 06, 2006 1:24 pm Subject: Large Array |
Should give you plenty of room for expansion.
Just note that the FM24C256 has *no* 3volt alternative, unlike the SPI version |
Topic: Large Array |
mpfj
Replies: 15
Views: 17956
|
Forum: General CCS C Discussion Posted: Thu Apr 06, 2006 12:57 pm Subject: Large Array |
Almost certainly, yes.
Any PIC device containing an MSSP module can support either SPI or I2C.
The difference between SPI and I2C comes down to number of pins required to communicate, speed and ... |
|