This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello, I need a gateway between my server and a CAN bus. I noticed that the card just wants a transceiver. BUT I have an MCP2515/transcever module. On an Arduino, I would connect this to the SPI bus. How can I accomplish this instead of just using a transceiver? I also will be using interrupts on both the Ethernet and the CAN bus
Hi,
Sorry, I'm not clear with your question. Do you want to replace the Arduino board with the EK-TM4C1294XL? The TM4C1294 device has an onchip CAN controller. All you need is a CAN transceiver to connect to the CAN bus. If you want to reuse the MCP2515 as shown in your picture and replace the Arduino with the Tiva Launchpad then you can just do the same using SPI interface to talk to the MCP2515. Perhaps you can elaborate your question as to what and how you want the Tiva LaunchPad to do.
Hi Charles, Yes I wish to use the Launchpad to replace the Arduino. I know that the Launchpad has a can controller, but I have the MCP2515 modules.
The Arduino is way to slow and getting Ethernet & CAN working together is a pain, as they both use the SPI bus.
This will be a GATEWAY between Ethernet and CAN which will connect to my slaves which could be just listeners, or senders, or both.
If I use the SPI interface on the Launchpad will I have to write a new library?
Hi Cris,
Thanks for your clarification. Just to clarify again, you wanted to use the TM4C129's on chip Ethenet plus its internal PHY but with the external MCP2515 for the CAN controller and transceiver. If this is the case, I don't see any problem. There are multiple SPI interfaces for you to choose on the Tiva device.
Cris Harrison said:If I use the SPI interface on the Launchpad will I have to write a new library?
I quickly glanced through the MCP2515 dataaheet and its SPI is a standard SPI that can interface to most MCU. The TivaWare SPI drivers will work with MCP2515. There is no need for you to write a new library.