Author |
Message |
Topic: CANBus ID filtering |
ll.luca
Replies: 27
Views: 42696
|
Forum: General CCS C Discussion Posted: Fri Feb 02, 2007 12:15 pm Subject: CANBus ID filtering |
Hi
As you suggested I changed the float dato_filtrato to int16 but the problem remains..
About can_is_one_of_the_TX_buffers_empty Do you mean: can_tbe()?
reducing or Deleting the delay_ms ... |
Topic: CANBus ID filtering |
ll.luca
Replies: 27
Views: 42696
|
Forum: General CCS C Discussion Posted: Thu Feb 01, 2007 2:40 pm Subject: CANBus ID filtering |
Thanks for the very fast reply, and sorry if I only wrote now, but I wasn?t at home,
It isn't easy to explain for me what is happened with the code you suggested.
I'm trying to do my ... |
Topic: CANBus ID filtering |
ll.luca
Replies: 27
Views: 42696
|
Forum: General CCS C Discussion Posted: Thu Jan 25, 2007 10:09 am Subject: CANBus ID filtering |
hi
the filter only works with the first transmission.
the TX code is
while(TRUE)
{
can_putd(0x0074, &ppp, 8, 1, 1, 0); //first transmission
delay_ms& ... |
Topic: CANBus ID filtering |
ll.luca
Replies: 27
Views: 42696
|
Forum: General CCS C Discussion Posted: Thu Jan 25, 2007 8:04 am Subject: CANBus ID filtering |
for be compete the tx side is:
//cut//
while(TRUE)
{
can_putd(0x0074, &ppp, 8, 1, 1, 0);
delay_ms(200);
can_putd(0x0222, & ... |
Topic: CANBus ID filtering |
ll.luca
Replies: 27
Views: 42696
|
Forum: General CCS C Discussion Posted: Thu Jan 25, 2007 7:56 am Subject: CANBus ID filtering |
on HyperTerminal I receive:
FAIL ON CAN_GETD(): NO MESSAGE IN BUFFER
# TEST OK =>: 0.00
It mean I don't receive nothing!
without the filter I receive a ... |
Topic: CANBus ID filtering |
ll.luca
Replies: 27
Views: 42696
|
Forum: General CCS C Discussion Posted: Wed Jan 24, 2007 9:24 am Subject: CANBus ID filtering |
Hi
if I change my mind and I want to use Extended Id
void set_my_can_filters(void) {
can_set_mode(CAN_OP_CONFIG);
can_set_id(RX0MASK, CAN_MASK_ACCEPT_ALL, C ... |
Topic: CANBus ID filtering |
ll.luca
Replies: 27
Views: 42696
|
Forum: General CCS C Discussion Posted: Tue Jan 23, 2007 11:03 am Subject: CANBus ID filtering |
many thanks for the help you gave me,
and for a very fast replay
But By now I have an other question,
I thing the problem is about
struct rx_stat rxstat;
stat - structure holding some i ... |
Topic: CANBus ID filtering |
ll.luca
Replies: 27
Views: 42696
|
Forum: General CCS C Discussion Posted: Sun Jan 21, 2007 7:04 am Subject: CANBus ID filtering |
Thank you very much,
The code you gave me works very well.
I have a new idea:
In your opinion, to improve the pic performance,
is it possible to trigger the pic when it recives ... |
Topic: CANBus ID filtering |
ll.luca
Replies: 27
Views: 42696
|
Forum: General CCS C Discussion Posted: Sat Jan 20, 2007 3:12 pm Subject: CANBus ID filtering |
Thanks for the reply,
But I need some more help please.
Can I write a Filter having different configuration like one in 18xxx8.h ?
#define RX0FILTER0
#define RX0FILTER1
... |
Topic: CANBus ID filtering |
ll.luca
Replies: 27
Views: 42696
|
Forum: General CCS C Discussion Posted: Thu Jan 18, 2007 12:14 pm Subject: CANBus ID filtering |
Hello
I'm very new with CCS and I'm still testing it.
I ' m looking for Can Bus and 18F458.
I'm using this code:
//cut//
#define AA11 0x333
can_init();
printf("\r ... |
|