Author |
Message |
Topic: strcat pointer question |
e
Replies: 3
Views: 7709
|
Forum: General CCS C Discussion Posted: Thu Mar 23, 2006 6:30 pm Subject: strcat pointer question |
that was me ('e'), forum logged me out. to clarify:
char string2[7] = " there";
void displayString(char string) {
strcat(string, string2); // *compil ... |
Topic: strcat pointer question |
e
Replies: 3
Views: 7709
|
Forum: General CCS C Discussion Posted: Wed Mar 22, 2006 4:43 pm Subject: strcat pointer question |
hi, still learning pointers - can someone explain how to use strcat() to append a single character?
strcat(stringA, stringB[i]); doesn't work b/c compiler expects pointer, not a s ... |
Topic: Who wants I2C master/slave code |
e
Replies: 20
Views: 30896
|
Forum: General CCS C Discussion Posted: Wed Mar 02, 2005 3:06 pm Subject: Who wants I2C master/slave code |
yay! i've been struggling with i2c for weeks now, trying to synthesize all the different approaches and caveats found on this forum. my application is an interactive art installation involving a tre ... |
Topic: I2C slave help please, seems to get stuck in the interrupt. |
e
Replies: 6
Views: 11603
|
Forum: General CCS C Discussion Posted: Tue Feb 15, 2005 9:11 pm Subject: I2C slave help please, seems to get stuck in the interrupt. |
rnielsen, just curious, why do you use pins B1 and B4 rather than the C3/C4 hardware port? while on the subject, what are the advantages of those pins and FORCE_HW? |
Topic: i2c problem: double addresses and inconsistent data? |
e
Replies: 7
Views: 10676
|
Forum: General CCS C Discussion Posted: Fri Feb 04, 2005 5:48 pm Subject: i2c problem: double addresses and inconsistent data? |
okay i'm obviously doing something wrong that is very elementary. i have stripped down my hardware to nothing but Pics on a protoboard and 1 MAX233 for RS232 debugging comm. i can't get any of the ... |
Topic: i2c problem: double addresses and inconsistent data? |
e
Replies: 7
Views: 10676
|
Forum: General CCS C Discussion Posted: Thu Feb 03, 2005 10:49 am Subject: i2c problem: double addresses and inconsistent data? |
Mark, this is very useful - thanks. I will go over this in depth before I post any more questions. |
Topic: i2c problem: double addresses and inconsistent data? |
e
Replies: 7
Views: 10676
|
Forum: General CCS C Discussion Posted: Wed Feb 02, 2005 9:18 pm Subject: i2c problem: double addresses and inconsistent data? |
also, i have noticed in looking at i2c examples sometimes people seem to expect the address char and explicitly ignore it in order to wait for the data, and other times people act like the first char ... |
Topic: i2c problem: double addresses and inconsistent data? |
e
Replies: 7
Views: 10676
|
Forum: General CCS C Discussion Posted: Wed Feb 02, 2005 9:12 pm Subject: i2c problem: double addresses and inconsistent data? |
thanks for the reply - but why would i get address/data pairs for a little while, then seem to fall "out of sync"? here is some sample output:
slave starting...
160
0
160
1 ... |
Topic: i2c problem: double addresses and inconsistent data? |
e
Replies: 7
Views: 10676
|
Forum: General CCS C Discussion Posted: Wed Feb 02, 2005 8:56 pm Subject: i2c problem: double addresses and inconsistent data? |
I've been trying to use i2c for the first time. Been playing around for a few days, getting very inconsistent results. Have read everything I could find on this forum, but to no avail. So some newb ... |
|