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.
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
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.
Thankyou
It would be nice if you can show a sample code on how to send the message from one microcontroller to another
But my sample code would look quite similar to the sample code you can already find.
Have you looked at the code bundles available? For some reason, I get an extremely strong feeling that you are doing your best to not spend time with the source code that your chip manufacturer have published specifically to help their customers get up and running with the NXP processors.