Author |
Message |
Topic: Use the whole word for storing data |
Miniman
Replies: 6
Views: 6377
|
Forum: General CCS C Discussion Posted: Tue Oct 28, 2008 11:50 am Subject: Use the whole word for storing data |
Ohh, I see. Thanks for the answers! |
Topic: Use the whole word for storing data |
Miniman
Replies: 6
Views: 6377
|
Forum: General CCS C Discussion Posted: Sat Oct 18, 2008 3:00 am Subject: Use the whole word for storing data |
Thanks for the help!
How old is your compiler?
I use 4.038.
PCM programmer, I do not get your program to work.. I get an error on "#rom char DATA_ADD..." Expression must evaluate to a c ... |
Topic: Use the whole word for storing data |
Miniman
Replies: 6
Views: 6377
|
Forum: General CCS C Discussion Posted: Fri Oct 17, 2008 11:03 am Subject: Use the whole word for storing data |
Hi
I wonder if it is possible to use the whole 14-bit word (PIC16F616) to store data in a constant (or some other way)?
Like this:
const int8 list[*] = {0x44, 0xff};
But with values up to 14-bits ... |
Topic: Out of RAM error, strange? |
Miniman
Replies: 1
Views: 3625
|
Forum: General CCS C Discussion Posted: Fri May 09, 2008 3:07 pm Subject: Out of RAM error, strange? |
Hi
I am writing a program using usb_cdc and my home made FAT32 code, but I'm running out of ram.. I can compile the program at one stage and it tells me that I use 85% of the ram, but if I declare an ... |
Topic: big arrays |
Miniman
Replies: 6
Views: 8588
|
Forum: General CCS C Discussion Posted: Thu Jan 03, 2008 4:16 pm Subject: big arrays |
Thanks for all your help! I think I have found the soulution now. I do as you John P said, but changed it a bit have a look:
const int8 data[] = {0x34 .... 6kB of data here};
v ... |
Topic: big arrays |
Miniman
Replies: 6
Views: 8588
|
Forum: General CCS C Discussion Posted: Thu Jan 03, 2008 2:28 pm Subject: big arrays |
thanks for the guidance. But I use a 18F4550 with 32K rom and 2K ram. The array will be more then 256 bytes. It will consist of ~6K of bytes, so only 8bit storage and no text.
Note that the address ... |
Topic: big arrays |
Miniman
Replies: 6
Views: 8588
|
Forum: General CCS C Discussion Posted: Thu Jan 03, 2008 8:40 am Subject: big arrays |
Hi
I want to have a function that can take a big array as parameter. The array is going to be bigger then the ram can fit so it needs to be a constant. I know I can't have pointers to a constant, so ... |
Topic: #define, how? |
Miniman
Replies: 5
Views: 5114
|
Forum: General CCS C Discussion Posted: Tue Dec 04, 2007 9:34 am Subject: #define, how? |
why not do a function
Simply because then I won't be able to use %-statements lite %u %X etc... |
Topic: #define, how? |
Miniman
Replies: 5
Views: 5114
|
Forum: General CCS C Discussion Posted: Mon Dec 03, 2007 11:40 am Subject: #define, how? |
Thank you.
But that willl only work for a string. Isn't there a way of doing it so that there are NO limitations, just lite the printf itself? I guess not.. I can not come up with any way of doing it ... |
Topic: #define, how? |
Miniman
Replies: 5
Views: 5114
|
Forum: General CCS C Discussion Posted: Sun Dec 02, 2007 8:59 am Subject: #define, how? |
Hi
I'm using usb_cdc.h and I do not want to write printf(usb_cdc_putc,"something") every time i want to write to rs232 via USB. Is there a way to make a define so that I only need to write ... |
Topic: RS232 receive help! |
Miniman
Replies: 7
Views: 7183
|
Forum: General CCS C Discussion Posted: Sat Dec 01, 2007 10:44 am Subject: RS232 receive help! |
I have checked that - It is 5v when nothing is sending.. It all works "fine" when I use the strange code above..
/miniman |
Topic: RS232 receive help! |
Miniman
Replies: 7
Views: 7183
|
Forum: General CCS C Discussion Posted: Sat Dec 01, 2007 7:14 am Subject: RS232 receive help! |
I have been able to get it to work a little bit now.. :/
If i use this code, no interrupts:
while(1)
{
while(!RCIF);
rcvChar = RCREG;
printf("-%u-",r ... |
Topic: RS232 receive help! |
Miniman
Replies: 7
Views: 7183
|
Forum: General CCS C Discussion Posted: Sat Dec 01, 2007 3:34 am Subject: RS232 receive help! |
It seams like there is a software problem..
If have tested this code now:
#INT_RDA
void rda_isr()
{
putc('R');
rcvChar = GetC();
printf("%u",rcvC ... |
Topic: RS232 receive help! |
Miniman
Replies: 7
Views: 7183
|
Forum: General CCS C Discussion Posted: Fri Nov 30, 2007 1:42 am Subject: RS232 receive help! |
This is my include and delay
#include <18F4550.h>
#use delay(clock=48M) // 48MHz External Clock
I do not use fuses, the configbits are set once upon programming in the bootloade ... |
Topic: RS232 receive help! |
Miniman
Replies: 7
Views: 7183
|
Forum: General CCS C Discussion Posted: Thu Nov 29, 2007 3:54 pm Subject: RS232 receive help! |
Hello
I'm desperate. I have worked hours with this simple thing. I cant get the PIC to receive anything from the PC via rs232. I have done this before with exactly the same external hardware with a 1 ... |
|