Olimex Support Forum

ARM => NXP => Topic started by: cybersteve on January 16, 2014, 10:20:46 AM

Title: can bus with lpc-h11c14
Post by: cybersteve on January 16, 2014, 10:20:46 AM
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?
Title: Re: can bus with lpc-h11c14
Post by: LubOlimex on January 16, 2014, 11:47:05 AM
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/ (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 (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
Title: Re: can bus with lpc-h11c14
Post by: cybersteve on January 16, 2014, 12:59:18 PM
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 :) ?
Title: Re: can bus with lpc-h11c14
Post by: JohnS on January 16, 2014, 10:25:44 PM
They'll be on the Keil site I expect if not shipped with their product.

John
Title: Re: can bus with lpc-h11c14
Post by: LubOlimex on January 17, 2014, 10:56:28 AM
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 (http://www.keil.com/download/files/canprimer_v2.pdf).

Best regards,
Lub/OLIMEX
Title: can bus with lpc-h11c14 resolved
Post by: cybersteve on January 19, 2014, 11:04:17 AM
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. ;)