Author |
Message |
Topic: can_set_mode problem in can18fxx8.c driver. |
jguarin2002
Replies: 2
Views: 4720
|
Forum: General CCS C Discussion Posted: Wed Dec 05, 2007 7:57 pm Subject: can_set_mode problem in can18fxx8.c driver. |
Yes but Im trying to go from normal op to config op. Besides Im usign 18f258 that issues a built-in can module no need for 2515 can host.
So it is different that topic. But thanks anyway.
What i ... |
Topic: two pic's talking in the internet? |
jguarin2002
Replies: 8
Views: 6673
|
Forum: General CCS C Discussion Posted: Wed Dec 05, 2007 3:14 pm Subject: two pic's talking in the internet? |
Well i guees there are more questions to make...
For example ... are you going to write the UDP protocol for your PIC?... also, that protocol should be supported by an IP stack as well as Data Link ... |
Topic: can_set_mode problem in can18fxx8.c driver. |
jguarin2002
Replies: 2
Views: 4720
|
Forum: General CCS C Discussion Posted: Wed Dec 05, 2007 2:48 pm Subject: can_set_mode problem in can18fxx8.c driver. |
The set_can_mode function goes like this:
void can_set_mode(CAN_OP_MODE mode){
CANCON.reqop=mode;
while( (CANSTAT.opmode) != mode );
}
Som ... |
Topic: i2c_write(), problem |
jguarin2002
Replies: 7
Views: 7842
|
Forum: General CCS C Discussion Posted: Sun Nov 11, 2007 8:16 pm Subject: i2c_write(), problem |
Ok version is 3.236
The #define statement is
#define hi(x) *(&x+1)
which i think is right.
anyway im not using this define or any other macro defined in the driver file (24128.c) cause ... |
Topic: i2c_write(), problem |
jguarin2002
Replies: 7
Views: 7842
|
Forum: General CCS C Discussion Posted: Sun Nov 11, 2007 7:30 pm Subject: i2c_write(), problem |
Ok here it is. Im trying to write data to this device (24lc128 a 16k serial eeprom) through a i2c bus... but it doesnt work. I used the 24c128.c and started to debug it. Finally I hacked this little c ... |
|