hello guys,
i have started a project based on CAN. i need some direction to proceed..
i have studied basics of CAN like message formats,message frames ,its features.
but cant understand how to proceed next!!! i have to implement CAN both on hardware and software..
but very sad to say that im not getting it.......also there is very short data available on net about CAN.
what shud i do
anyone here have done work on CAN??? if so then please guide me step by step... i really will be very thankful
please if some one have work experience on CAN...then please share !! i need help badly
i have two options 8051 and AVR.
but problem is not with micro part.actually i need guidance about CAN controller and transceiver part.
i will be going to use MCP2515 stand alone controller.
but no info how to interface it with microcontroller.
and how to implement some basic functions using mcp2515????? i.e
when i wana send 11bit ID data frame then what i need to do??
also are all things controllered by CAN controller...like arbitration process and bit stuffing etc??? or i have to control them through my software side??? lot if confusions there
I just got my own 3-node network up and running few weeks ago using the 18F4585.
If having time, tomorrow I could list the steps THAT I FOLLOWED to start from zero.
Please confirm that is of any use for you. For that, please download (or read online) the ECAN part of that micro to see if it is similar to the MCP (which I do not know). Please be sincere and avoid wasting my / yours time.
Have you read the CAN bus specification (at Bosch site is easy to get) for the current 2.0? Esential to understand some of what you ask. Believe me!!!
My understanding is that bit stuffing etc is done at the hardware level; part of the beauty of CAN is supposed to be ease of use for the application because the controller takes care of arbitration, bit stuffing etc etc... I went to a conference and Wilfred Voss from www.esd-electronics.com was a speaker, do not know if he gives out advice to all or just to conference attendees, but he really knows his CAN. He may be able to answer some of the 'undocumented' features of CAN.
@atferrari
sir where are you??
sir i have theoretical knowledge of CAN. now what i have to do is to learn how to program a node...and put it on CAN bus.
i want to use at89c51 with mcp2515 stand alone CAN controller. so i need help in this programming part.
i.e how to implement some basic functions... how to transmit frames and receive frames correctly.
once i have succeeded in doing this..... i will be able to proceed.....and i will try to do something better with CAN!!
i have to start programming part from zero. but i dont know any thing of pic18f4585........ cant i do CANing by using at89c51 and mcp2515???
I am new with CANBUS and I am trying to make work with 18F4680 and Hi-Tech compiler. So far no good results. The compiler always shows error.
Any good starting point?
hi,
first you have knowledge about spi interface
then u choos microcontroller i like atmega16 it has spi interface
you have to read mcp2515 manual you also interface mcp2551 with mcp2515 through pin rx_can(pin 2) and tx_can(pin1) to mcp2551's pin 4(rxd) and pin 1(txd)