This application note shows an example of CAN to an SPI bridge. The document describes the structure and behavior of a CAN to SPI bridge. The document also discusses the software implementation, hardware connection, and application usage. Users can configure the bridge by modifying the predefine. Relevant code is also provided to users.
LaunchPad™ is a trademark of Texas Instruments.
All trademarks are the property of their respective owners.
There are many communication methods between devices depending on the application. MCUs today usually support more than one communication method. For example, MSPM0 can support UART, SPI, CAN, and so on on a specific device. When devices need to transfer data over different communication interfaces, a bridge is constructed.
For CAN and SPI, a CAN-SPI bridge acts as a translator between the two interfaces. A CAN-SPI bridge allows a device to send and receive information on one interface and receive and send the information on the other interface.
This application note describes the software and hardware designs used in creating and using the CAN-SPI bridge. The MSPM0G3507 microcontroller (MCU) can be used by providing CAN and SPI communication interfaces. The accompanying demo uses the MSPM0G3507 with 2Mbps CANFD and 500k bit rate SPI to demonstrate transceiving data between channels.