CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CCS CAN Driver

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

View user's profile Send private message Send e-mail

CCS CAN Driver
PostPosted: Mon May 10, 2004 1:54 pm     Reply with quote

In the CCS CAN driver it puts transmit data into buffer 0. If buffer 0 is faull, it then puts it into buffer 1. If buffer 1 is full it then puts it into buffer 2. If all the buffers are full it then exits with an error.

In the Microchip specs it says that it sends data starting with buffer 2, then buffer 1 and then sends buffer 0 last.

So, should the CCS driver be reversed?
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Mon May 10, 2004 2:20 pm     Reply with quote

It would be best if it started with 2 then 1 then 0. And only fill 1 if 0 is empty. Only fill 2 if 1 and 0 are empty. That would insure the buffers are sent FIFO.

Thats "my take on it" not to be confused with "the best solution".

Maybe an option for FIFO or LIFO would be best.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group