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.

MSP430G2533: Using MSP430G2553 with MCP2515 and SN65HVD231D for CAN Communication

Part Number: MSP430G2533
Other Parts Discussed in Thread: MSP430G2553

Hey guys,

I am very new in the topic of CAN communicaiton and I have a question for my project. I want to send and receive data from my MSP430G2553 via CAN, so I use the MCP2515 controller and the SN65HVD231D transceiver. To realize the communication I connected the MCP2515 via SPI. Now I am confused about the Pins I need to use. Of course I will need the Pins for the SPI communication, TXCAN + RXCAN and INT (to use interrupts). But what do I need TX0RTS, TX1RTS, TX2RTS, RX0BF, RX1BF for? In the datasheet I read that these pins can be used as buffers or normal GPIOs, but I don't want to buffer anything, I just want to send and receive the data directly. Do I need these pins? If yes, how many do I need (I have a problem, because I don't have enough pins for my project, but if I don't need to use them all, I could use one of them)

It would be great, if you could provide a very simple send and receive program for me. :)

I would really appreciate your help!


Best regards,

Simon

  • Hello Simon,

    In the MCP2515's datasheet, it says the following about the TX0RTS, TX1RTS, TX2RTS, RX0BF, and RX1BF pins:

    Interrupt pins are provided to allow greater system flexibility. There is one multipurpose interrupt pin (as well as specific interrupt pins) for each of the receive registers that can be used to indicate a valid message has been received and loaded into one of the receive buffers. Use of the specific interrupt pins is optional. The general purpose interrupt pin, as well as status registers (accessed via the SPI interface), can also be used to determine when a valid message has been received.

    Additionally, there are three pins available to initiate immediate transmission of a message that has been loaded into one of the three transmit registers. Use of these pins is optional, as initiating message transmissions can also be accomplished by utilizing control registers accessed via the SPI interface.

    It appears that these pins are not required and that everything can be done over the SPI interface. The following design is not from TI but incorporates the MCP2515 using a SPI-only configuration without these pins.

    Here's another resource that you may find interesting.

    Regards,

    James

    MSP Customer Applications

**Attention** This is a public forum