I'm using an LPC1768 and looking for some advise on setting up and using the CAN ports for a CAN data logger. There will be two CAN ports with incoming data at 500K and 125K. I need to grab all messages on both ports and log the data to an SD Card. I have the SD card read/writes working.
My question is about the best way to setup CAN. From reading the user manual, I'm not getting a good feeling for how to setup the CAN system.
It seems that the LPC1768 only has a Rx CAN buffer of size 2. I'm afraid that I will miss some messages when writing to the SD card. I also see that there is a Full CAN mode. It looks like in this mode an Interrupt is generated when the CAN buffer is full. Will this cause me to potentially interrupt the SD card writes.
What is the best CAN mode to use for this type of application? Is there any recommended reading or sample code.
Thanks.
Sorry..my english is not well..
but i really want to know how can I do to increase the communication speed of CAN...
I tried can ferquency 125kps 500kps 1mps....but have not changed at all...