We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi there is a sample code in C:\Keil\ARM\Boards\Keil\MCB1700\CAN about using can controller of nxp lpc1766. but it use transmit buffer 1 for sending the data. i want to use other buffers (like 2 ,3) for sending the data. can any one tell me how i should change the code?
Doesn't that follow from the datasheet for the processor? It was most probably the documentation from the datasheet that was used to create the example you are looking at in the first place.
A traditional way of using multiple send buffers is to either decide that some CAN frames should use some buffers, or to let the code check for the first empty send buffer.
i did all of them i enabled all of buffer interrupts and put the necessary value for them such as (TIF,TID,TDI). but the default buffer is still buffer 1 and when i disabled buffer 1 or clear its registers, the receiver regs are empty.