November 09, 2024, 03:57:12 AM

can bus with lpc-h11c14

Started by cybersteve, January 16, 2014, 10:20:46 AM

Previous topic - Next topic

cybersteve

I have bought the Olimex lpc-h11c14 board in order to develop a Can bus application. I use the Keil compiler. I have not found any example project for CAN bus with this processor. Can anyone help, please?

LubOlimex

Hey cybersteve,

There is no example for the CAN since we don't mount CAN connector on LPC-H11C14.

It would be probably helpful to check the CAN example of a board with LPC11C24 that we have. Its schematic also shows the CAN connection needed. The board is LPC-P11C24 https://www.olimex.com/Products/ARM/NXP/LPC-P11C24/. Plaese, refer to the software section of the page. The two microcontrollers LPC11C14 and LPC11C24 share the same datasheet and have pretty close layout (the datasheet is here: http://www.nxp.com/documents/data_sheet/LPC11CX2_CX4.pdf).

You can also check the CAN examples for the LPC1114 boards of Keil and IAR.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

cybersteve

LubOlimex

Thankyou. I plan to use an external CAN transceiver with my lpc-h11c14. Thanks for the links. I have not managed to locate any Keil code for this processor - am I looking in the wrong place :) ?

JohnS

They'll be on the Keil site I expect if not shipped with their product.

John

LubOlimex

I also recommend you this document that is pretty extensive and has special mention for the 3-wire CAN interfaces implemented in the microcontroller (like in the 11C14 case): http://www.keil.com/download/files/canprimer_v2.pdf.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

cybersteve

I am happily using the CAN code that comes with IAR compiler now, rather than Keil. I could not find any sample code on the Keil site, but I eventually was given the exmaple code for CAN that comes with their LPC11C14 development kit. So, I can use either environment.

Everything resolved - thanks. ;)