Author |
Message |
Topic: INT_RTCC Undefined... |
Wipster
Replies: 2
Views: 4893
|
Forum: General CCS C Discussion Posted: Wed Nov 30, 2011 11:10 am Subject: INT_RTCC Undefined... |
Ahha yep, golden. Cheers for that! Going to go over the .h with a fine tooth comb and check everything next time, would have spotted the lack of RTCC. |
Topic: INT_RTCC Undefined... |
Wipster
Replies: 2
Views: 4893
|
Forum: General CCS C Discussion Posted: Wed Nov 30, 2011 10:47 am Subject: INT_RTCC Undefined... |
Here is a little test program which illustrates the issue, zero function to it.
I'm using MPLAB 8.80 and CCS 4.124.
The compiler says, 'Invalid pre-processor directive' and 'Undefined identifier I ... |
Topic: Initialising EEPROM with #ROM |
Wipster
Replies: 3
Views: 5526
|
Forum: General CCS C Discussion Posted: Fri Nov 25, 2011 6:47 pm Subject: Initialising EEPROM with #ROM |
Yes sorry I did mean the "Memory Usage Gauge". I filled the EEPROM in the definition and although the Gauge went up the ROM % used didn't. I guess that confirms that then.
Possibly out of ... |
Topic: Initialising EEPROM with #ROM |
Wipster
Replies: 3
Views: 5526
|
Forum: General CCS C Discussion Posted: Fri Nov 25, 2011 4:33 pm Subject: Initialising EEPROM with #ROM |
Hey all,
I am trying to initialise my EEPROM in my PIC (12F1840) using the code below. However, I notice that when its included the program memory usage counter in MPLAB goes up by the same amount.
... |
Topic: Using CLKIN as output on an 12F1840 |
Wipster
Replies: 4
Views: 7772
|
Forum: General CCS C Discussion Posted: Tue Nov 15, 2011 10:59 am Subject: Using CLKIN as output on an 12F1840 |
Ok progress, connected a new board and flashing light is a go. So it seems there was a problem with the circuit board, typical.
Now on to the UART, some reason that's outputting 'gDg ge @g:g' etc c ... |
Topic: Using CLKIN as output on an 12F1840 |
Wipster
Replies: 4
Views: 7772
|
Forum: General CCS C Discussion Posted: Tue Nov 15, 2011 10:36 am Subject: Using CLKIN as output on an 12F1840 |
Hmmm yeh I did think about that, in that area can be controlled by the APFCON registers but I have tried explicitly stating those and nothing still.
The Electrical specs says max drain current on any ... |
Topic: Using CLKIN as output on an 12F1840 |
Wipster
Replies: 4
Views: 7772
|
Forum: General CCS C Discussion Posted: Tue Nov 15, 2011 10:14 am Subject: Using CLKIN as output on an 12F1840 |
After a bit more poking around, I have found that the pin is sitting at a steady 3.8Vish.
From looking at the status registers LATA is oscillating, however PORTA and the pin voltage are not.
Found ... |
Topic: Using CLKIN as output on an 12F1840 |
Wipster
Replies: 4
Views: 7772
|
Forum: General CCS C Discussion Posted: Tue Nov 15, 2011 8:52 am Subject: Using CLKIN as output on an 12F1840 |
Hi all,
I have been looking at this for half of this afternoon and I cant seem to get it right.
The compiler in use is v4.124.
I am trying to use the CLKIN pin (PIN_A5) as an output on the 12F184 ... |
Topic: Jpeg Decompression |
Wipster
Replies: 1
Views: 3076
|
Forum: General CCS C Discussion Posted: Thu Feb 19, 2009 5:35 pm Subject: Jpeg Decompression |
Do ya recon its possible on a PIC, I have been looking over the net and can't find examples of this, I guess it would need an SD card with a temp file setup - that isn't a problem.
I had a look at co ... |
Topic: Putting stuff in ROM |
Wipster
Replies: 9
Views: 10257
|
Forum: General CCS C Discussion Posted: Fri Feb 06, 2009 2:50 pm Subject: Putting stuff in ROM |
Sorry I can't seem to duplicate my problem, I don't know why it's happening - it's pretty much a non issue because all of the entrys in the menu will be linked with something, but in this testing phas ... |
Topic: Putting stuff in ROM |
Wipster
Replies: 9
Views: 10257
|
Forum: General CCS C Discussion Posted: Wed Feb 04, 2009 8:34 am Subject: Putting stuff in ROM |
Woops forgot to sign in, sorry. |
Topic: Putting stuff in ROM |
Wipster
Replies: 9
Views: 10257
|
Forum: General CCS C Discussion Posted: Mon Feb 02, 2009 1:22 pm Subject: Putting stuff in ROM |
Oh woops sorry, ok here it is in a example - I blind programmed this as my board doesn't have an RS232 but it should illustrate what I want to do (and work).
#include <18F452.h>
#fuses XT,NO ... |
Topic: Putting stuff in ROM |
Wipster
Replies: 9
Views: 10257
|
Forum: General CCS C Discussion Posted: Sat Jan 31, 2009 5:38 pm Subject: Putting stuff in ROM |
Hey all,
I'm trying to make a little menu system for my LCD project is there a way I can get this into ROM seeing as none of it will change, so I can save a bit of space?
void Test(void) ... |
Topic: Datatypes |
Wipster
Replies: 7
Views: 6852
|
Forum: General CCS C Discussion Posted: Wed Dec 10, 2008 7:09 am Subject: Datatypes |
Thanks for linking those threads unfortunately I have already read them, it doesn't look like I can have a pointer to "TEST" because it says it needs to be a constant but you cant have a con ... |
Topic: Datatypes |
Wipster
Replies: 7
Views: 6852
|
Forum: General CCS C Discussion Posted: Mon Dec 08, 2008 6:32 am Subject: Datatypes |
Well I did a bit of thinking and with the error 'Expression must evaluate to a constant' I decided to try:
typedef struct ITEM_STRUCT
{
int8 Type;
const char *Text;
const char ... |
|