Author |
Message |
Topic: 16 bit pointer question |
davidd
Replies: 12
Views: 18859
|
Forum: General CCS C Discussion Posted: Fri Feb 26, 2016 6:35 am Subject: 16 bit pointer question |
very good explanation!
Thanks Ttelmah, Thanks everyone! |
Topic: 16 bit pointer question |
davidd
Replies: 12
Views: 18859
|
Forum: General CCS C Discussion Posted: Thu Feb 25, 2016 11:15 am Subject: 16 bit pointer question |
Thanks Jay,
This particular function is servicing clock digits so yes indeed it is handling 00-59 actually.
I guess I'm not understanding the 16 bit pointer usage. I assumed that even though the ... |
Topic: 16 bit pointer question |
davidd
Replies: 12
Views: 18859
|
Forum: General CCS C Discussion Posted: Thu Feb 25, 2016 10:22 am Subject: 16 bit pointer question |
Hello All,
The following function operates normally 1st and 2nd function in. But *tensdigit value is showing 0 with function placed third function in. The function works fine if the pointers are ... |
Topic: passing pointers question |
davidd
Replies: 2
Views: 6515
|
Forum: General CCS C Discussion Posted: Sun Feb 21, 2016 6:43 am Subject: passing pointers question |
Thanks PCM Programmer! |
Topic: passing pointers question |
davidd
Replies: 2
Views: 6515
|
Forum: General CCS C Discussion Posted: Sat Feb 20, 2016 6:49 pm Subject: passing pointers question |
Hello All,
I have constructed a simple function:
void dec_to_2digit(int16 *tensdigit, int16 *onesdigit, int8 dec_number){
if (dec_number >= 10){
for ... |
Topic: Running string loop with external pointer |
davidd
Replies: 9
Views: 13402
|
Forum: General CCS C Discussion Posted: Thu Feb 11, 2016 3:39 pm Subject: Running string loop with external pointer |
Ttelmah thanks for your response.
yes, I realize I could parse it too.
thanks for your help! |
Topic: Running string loop with external pointer |
davidd
Replies: 9
Views: 13402
|
Forum: General CCS C Discussion Posted: Thu Feb 11, 2016 11:57 am Subject: Running string loop with external pointer |
void str_function(char str);
Is saying that str_function is receiving a _single character_. Not a pointer. This needs to be:
void str_function(char *str);
Ttelmah thanks for your resp ... |
Topic: Running string loop with external pointer |
davidd
Replies: 9
Views: 13402
|
Forum: General CCS C Discussion Posted: Thu Feb 11, 2016 10:42 am Subject: Running string loop with external pointer |
After trying many ways, I don't think it is possible to activate the loop mode UNLESS the actual string is hardcoded into the function like this:
void str_function(char str);
str_funct ... |
Topic: Running string loop with external pointer |
davidd
Replies: 9
Views: 13402
|
Forum: General CCS C Discussion Posted: Thu Feb 11, 2016 8:38 am Subject: Running string loop with external pointer |
Thanks PCM Programmer.
Indeed the "address of" operator is used here:
char txt[20];
show_string(&txt);
What im ultimately trying to accomplish is
int8 ... |
Topic: Running string loop with external pointer |
davidd
Replies: 9
Views: 13402
|
Forum: General CCS C Discussion Posted: Wed Feb 10, 2016 5:45 pm Subject: Running string loop with external pointer |
Hello All,
I have a function that takes advantage of the loop mode, it takes a direct string between quotes and sets up a loop to process the entire string.
but If I send it the pointer, it only ... |
Topic: Where is strcpy function located? |
davidd
Replies: 2
Views: 6852
|
Forum: General CCS C Discussion Posted: Wed Feb 10, 2016 3:19 pm Subject: Where is strcpy function located? |
Do not see it in STRING.H, Only see strncpy.
SOLVED:
1. STRING.H is NOT required for for strcpy.
2. Be sure to use STRCPY and NOT STRCOPY
You will get function used but not defined error.
... |
Topic: bootloader |
davidd
Replies: 43
Views: 59714
|
Forum: General CCS C Discussion Posted: Fri Jan 29, 2016 4:35 pm Subject: bootloader |
I am so glad you got it working!
I had the same issue with CCS_Bootloader.exe hanging half way through. but sometimes it would work and everything worked fine. |
Topic: bootloader |
davidd
Replies: 43
Views: 59714
|
Forum: General CCS C Discussion Posted: Fri Jan 29, 2016 3:50 pm Subject: bootloader |
Does your program run without the bootloader?
Make sure whatever fuses you have set in yourproject.c are either moved to the bootloader or the same in each. With the advice from this forum I put f ... |
Topic: bootloader |
davidd
Replies: 43
Views: 59714
|
Forum: General CCS C Discussion Posted: Fri Jan 29, 2016 10:53 am Subject: bootloader |
there are interrupt vectors at 508 and 518 -- sorry about that.
I think what you can do is place a goto in the application(), and place a function after the interrupt vectors
like this:
void ... |
Topic: bootloader |
davidd
Replies: 43
Views: 59714
|
Forum: General CCS C Discussion Posted: Fri Jan 29, 2016 9:43 am Subject: bootloader |
Can you please post the asm file? |
|