This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

using other transmit buffers in nxp lpc1766

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.