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

CAN Communication between LPC1766 and LPC11C24

Hallo

I am working on an home automation project where my task is to communicate between LPC1766(Cortex M3) and LPC11C24(Cortex M0).

Can anyone tell me or put a sample coding on how to communicate between two different microcontrollers using CAN BUS

Parents
  • If you have usable sample code, then you use it. Just decide what frame identifiers you want to use for the messages you send and have the other side listen for them.

    If you have initialized the CAN controller, it's enough to fill the transmit buffer with the frames you want to send. The CAN controller takes care of bus arbitration and makes sure the frames gets sent. And the CAN controller on the other side can pick them up as long as it is configured for the same bus transfer speeds and you haven't put in a filter to ignore these frame identifiers.

Reply
  • If you have usable sample code, then you use it. Just decide what frame identifiers you want to use for the messages you send and have the other side listen for them.

    If you have initialized the CAN controller, it's enough to fill the transmit buffer with the frames you want to send. The CAN controller takes care of bus arbitration and makes sure the frames gets sent. And the CAN controller on the other side can pick them up as long as it is configured for the same bus transfer speeds and you haven't put in a filter to ignore these frame identifiers.

Children