Hi every one, This is Seetaram, i wanted to communicate between sensor and controller using CAN bus. I m confusing to configure register. Please any one have the code send my id.. seetarama.naik@gmail.com I will wait for ur reply. With regards, Seetaram
Code follows:
void CAN_Configuration_to_sensor (void) { // Do initialize CAN controller as I want it to CAN_Init(speed); // Communicate to it in the way that I expect it to CAN_Communicate_To_Sensor(do_what_I_want); // Do not ask any questions (read: read my mind) if (CAN_Read_My_Mind() == FALSE) CAN_Ask_For_Help_On_Forum (); else CAN_Juuuhooo_It_Works(); }
Keil offers CAN library as a part of RL_ARM Library, and NXP offers free examples for CAN which you can use for start.
No, that code is incorrect:
// Communicate to it in the way that I expect it to
What you "expect" is irrelevant - unless it is based upon a thorough understanding of the specifications.
Therefore the prerequisite to all this is to study the specifications - for the sensor, the LPC2129, and the CAN bus in general.
If you haven't done that, then even sample code won't make any sense to you - as it will obviously rely upon that understanding!
See: www.8052.com/.../160143
Please send small CAN working code....
www.standardics.nxp.com/.../code.demo.can.driver.lpc2000.zip
I want to check the temperature of engine using temperature sensor and CAN protocol in LPC2129. and this temperature i have to display on LCD. For this please send me details with working code.
Thank you.
"using temperature sensor"
What temperature sensor?
"please send me details with working code"
I think you'll have to pay for that!
Check your inbox for the code.
The invoice will follow shortly.
Can you ask for details and source code on planet Mars?