i need to write the code for lpc 2378 for a CAN net work can u please tell me how to start the p[rogramme..i wanted to write in embedded c...
Start the same way everyone else is expected to start.
Look for resources - chip documentation, application notes, sample code, ...
Spend time reading through the above.
See if the sample code can be run on your hardware - if not, try to adapt it.
Decide if you should write a full functionality yourself, or adapt the sample code, or buy functionality.
Implement whatever functionality that is required.
Test.
Fix bugs and retest.
Repeat until it seems to work well enough.
Show customer.
Rewrite based on changed requirements.
Test again.
Show customer again and pray they are happy.
Do you already know 'C' in any form?
If not, then learn 'C' is obviously your first step...
I read one article of CAN Newsletter June 2008. It mentions that:
www.can-cia.de/index.php CAN micro-controller with improved features Holger Zeltwanger (CAN in Automation)
The first ARM-based processors from NXP implemented a new CAN module, designed from the scratch. The first version of these CAN modules has had several bugs, which nobody expected from a company with such a long CAN experience. Now, NXP uses in its new ARM-based processors the Bosch CAN core. Several micro-controller manufacturers use this C-CAN core. Bosch has already introduced the D-CAN core, and is developing the M-CAN core (see insert "Modular CAN module").
I am not so sure, but I suspect that, the CAN Controller of LPC23xx/LPC17xx is an enhancement of the mentioned buggy CAN modules. Does anyone know anything further? (This is just personally curious)
I did some study on the CAN Controller of Fujitsu 16FX MCU (It uses Bosch C-CAN core); and I also did some quick reading on the CAN Controller of Texas Instruments Hercules TMS470M (It uses Bosch D-CAN core, I believe.), the Freescale S12G one, and the NXP LPC1768 one.
I found that the acceptance filtering of NXP LPC1768 CAN core is much different from others, and very difficult to understand to me. (Maybe this is because that I spent too less time on it.)
It seems the NXP LPC11xx MCU uses Bosch C-CAN core.