Hello,
I want to connect the arduino UNO to the TCAN4550 so that I can convert sensor values I am getting in the arduino to the CAN Bus. Essentially I want to get sensor values from a sensor connected to the arduino, send these values to the TCAN4550 so that they can be converted to the CAN BUS get these converted values back from the TCAN4550 to the Arduino UNO to validate and verify if it get converted correctly. I know that the connection from the Arduino UNO to the TCAN 4550 would be through SPI but I need help in Implementing the code in arduino IDE. TI provides a demo code but it is a demo code that uses the TCAN4550 with another MCU board. So I want to implement the TCAN4550 with the Arduino UNO. According to TI, just changing the SPI file and making it compatible with the MCU used should do the trick based on TI's TCAN 4550 Software Guide. Any help would be appreciated. I have attached the TI software guide as well as the Demo Code.
Software Guide: https://www.ti.com/lit/ug/sllu270/sllu270.pdf
Demo Code can be found in this link as a zip file labelled TCAN4550 Demo Software (This is the demo software referenced in the software guide) : https://www.ti.com/tool/TCAN4550EVM