Author |
Message |
Topic: CANBus ID filtering |
ferrumvir
Replies: 27
Views: 42687
|
Forum: General CCS C Discussion Posted: Tue Feb 05, 2008 10:29 am Subject: CANBus ID filtering |
Hi RatGod,
Yes you can reconfigure the speed at run time though you have to take the bus off line, use the can_set_mode function to take the bus off and on line and set the speed inbetween. Sorry I ... |
Topic: CANBus ID filtering |
ferrumvir
Replies: 27
Views: 42687
|
Forum: General CCS C Discussion Posted: Sun Dec 09, 2007 1:36 pm Subject: CANBus ID filtering |
Once the parameter list for the function call was fixed, i.e. declaring each int16 the routine worked fine.
All the rxids come in to the can_kbhit or the interupts, you need to parse out which ID i ... |
Topic: CANBus ID filtering |
ferrumvir
Replies: 27
Views: 42687
|
Forum: General CCS C Discussion Posted: Sun Aug 05, 2007 2:04 pm Subject: CANBus ID filtering |
can_set_id(RX0MASK, 0x07FFFFFFF, CAN_USE_EXTENDED_ID); //set mask 0
can_set_id(RX0FILTER0, 0x0011, 1); //set filter 0 of mask 0
can_set_id(RX0FILTER1, 0x00FF, 1); ... |
Topic: CAN Bus development kit 18F458 vs 18F4580 |
ferrumvir
Replies: 3
Views: 5426
|
Forum: General CCS C Discussion Posted: Mon Jul 23, 2007 4:37 pm Subject: CAN Bus development kit 18F458 vs 18F4580 |
The above points about more memory and more ADC etc. are all true.
However if you are wondering what changes need to be made to the code to convert PIC18F458 to PIC18F4580, just one, the include fi ... |
Topic: CAN RX interrupts stop after transmission. |
ferrumvir
Replies: 0
Views: 2393
|
Forum: General CCS C Discussion Posted: Mon Jul 23, 2007 10:34 am Subject: CAN RX interrupts stop after transmission. |
Hi,
I've been using a PIC18F2680 with INT_CANRX0 & INT_CANRX1 interrupts enabled and recieve all the filtered messages fine. Until I perform a transmission, then I recieve nothing.
I've a bo ... |
Topic: CAN Filters issue |
ferrumvir
Replies: 2
Views: 5713
|
Forum: General CCS C Discussion Posted: Thu May 31, 2007 12:53 am Subject: CAN Filters issue |
Thanks PCM Prorammer,
It's always something simple... Though I've not tried it, it makes perfect sence.
Cheers Scott |
Topic: Trouble shooting I2C |
ferrumvir
Replies: 2
Views: 4530
|
Forum: General CCS C Discussion Posted: Wed May 30, 2007 3:56 pm Subject: Trouble shooting I2C |
Thanks for the info, I searched the forum before I discovered my errors and failed to find anything, I also searched before I posted, nothing.
This highlights my inability to know what keywords to ... |
Topic: CAN Filters issue |
ferrumvir
Replies: 2
Views: 5713
|
Forum: General CCS C Discussion Posted: Wed May 30, 2007 3:48 pm Subject: CAN Filters issue |
Hi,
With setting the most restictive mask (0x07FF, all 11bits) for RX0MASK, I only recieve messages through RXFILTER0 (i.e. recieve only rxid1), and do not recieve rxid2?
If I set the mask to 0x ... |
Topic: Trouble shooting I2C |
ferrumvir
Replies: 2
Views: 4530
|
Forum: General CCS C Discussion Posted: Wed May 30, 2007 2:53 pm Subject: Trouble shooting I2C |
I found a couple of stumbling blocks using I2C, hopefully this post will stop other people tripping on them like I did.
1/ Don't try the I2C without the pull up resistors (4.7k Ohms), this will eff ... |
Topic: CANBus ID filtering |
ferrumvir
Replies: 27
Views: 42687
|
Forum: General CCS C Discussion Posted: Fri Feb 02, 2007 4:30 pm Subject: CANBus ID filtering |
Hi,
Unfortunately, changing dato_filtrato int16 has moved you're problem in the wrong direction, you need a 64 bit memory space.
Personally I'd just use the "int in_data
int in_data[ ... |
Topic: CANBus ID filtering |
ferrumvir
Replies: 27
Views: 42687
|
Forum: General CCS C Discussion Posted: Thu Feb 01, 2007 4:13 pm Subject: CANBus ID filtering |
Hi,
You use the a pointer to the variable "float dato_filtrato" to return the data back to your main routine, float is 32bits (4 bytes) and the data structure being written is 64 bits (8 ... |
Topic: #inline and variables allocation |
ferrumvir
Replies: 7
Views: 8026
|
Forum: General CCS C Discussion Posted: Tue Jan 30, 2007 2:52 am Subject: #inline and variables allocation |
Hi,
The CCS compiler allocates a location in memory for all the variables in your program. Unlike a PC it does not allocate memory for function variables when functions are called. Therefore when y ... |
Topic: Masked output to port. |
ferrumvir
Replies: 4
Views: 6476
|
Forum: General CCS C Discussion Posted: Mon Jan 29, 2007 7:43 am Subject: Masked output to port. |
Hi Thanks for the help,
Sorry it took me so long to dig through and understand what was going on, very interesting looking at the list file.
It took me considerable amount of time to find the lo ... |
Topic: Masked output to port. |
ferrumvir
Replies: 4
Views: 6476
|
Forum: General CCS C Discussion Posted: Fri Jan 26, 2007 8:42 am Subject: Masked output to port. |
Hi,
I'm wondering that the best solution is. I need to set half the outputs of a port from a data byte, speed is the most important factor.
The following is my current solution to the problem.
... |
Topic: CANBus ID filtering |
ferrumvir
Replies: 27
Views: 42687
|
Forum: General CCS C Discussion Posted: Thu Jan 25, 2007 3:43 pm Subject: CANBus ID filtering |
Hi,
I'm assuming you've got two chips talking to each other, the code above is split between the two, one sending one receiving. It would be helpful to explain which chip the code is on. I'm only s ... |
|