SLAAEQ4 July 2025 MSPM0G1106 , MSPM0G1107 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3518 , MSPM0G3518-Q1 , MSPM0G3519 , MSPM0G3519-Q1
Opcode: 0b0000000000010000
The Bit modify Instruction is used to set or clear individual bits in a specific CAN register. The mask bits determine which bits in the register can be changed. A bit 1 in the mask allows the corresponding bit in the register to change, while a bit 0 prevents the bit from changing.
Opcode: 0b0000000000100000
The Reset instruction resets the CAN module in the SPI – CAN Bridge device. To reset the CAN module, the user needs to send the corresponding opcode through the SPI protocol.
Opcode: 0b0000000000110000
The Power Enable and CAN Configuration Instruction is used to Power enable the CAN module in the Bridge device. Also, the predefined CAN message RAM configurations are done once CAN module is enabled.
Opcode: 0b00000000010000ab
The Load TX Buffer instruction is used to load the CAN frame into the selected Transmit buffers. The transmit buffer selection is encoded in the opcode. One of the four transmit buffer can be selected based on the a, b bits in the instruction field.
| a | b | Buffer |
| 0 | 0 | Buffer – 0 |
| 0 | 1 | Buffer – 1 |
| 1 | 0 | Buffer – 2 |
| 1 | 1 | Buffer – 3 |
Opcode: 0b0000000001010000
The Load TX FIFO instruction is used to load the CAN frame to be transmitted into the Transmit FIFO. User must take care that the transmit FIFO is not full before loading CAN frame into the Transmit FIFO.
Opcode: 0b00000000011000ab
The Request to send TX Buffer Instruction adds the transmission request for one of the four transmit buffers. The transmit buffer selection is encoded in the opcode. One of the four transmit buffer can be selected based on the a, b bits in the instruction field.
| a | b | Buffer |
| 0 | 0 | Buffer – 0 |
| 0 | 1 | Buffer – 1 |
| 1 | 0 | Buffer – 2 |
| 1 | 1 | Buffer – 3 |
Opcode: 0b0000000001110000
The request to send TX FIFO instruction adds the transmission request for one of the transmit FIFO elements based on the Transmit FIFO put index. The user needs to make sure that the Transmit FIFO has a CAN Frame before sending buffer add request.
Opcode: 0b0000000010000000
Offset Address – To point to the register address to write the register data.
The Write Register instruction is used to configure the CAN Registers through the SPI Peripheral. The data is written into the corresponding register based on the Offset address.
Opcode: 0b0000000010000000
Offset Address – To point to the register address to read the Register Data.
Read register data Instruction is used to read the data from the specific CAN register. The Read register data instruction only reads the register but does not transmit. Hence, each Read register data instruction must be followed by a Fetch register data instruction.
Opcode: 0b0000000010100000
The Fetch register data instruction transmits the register value that was read using Read register data instruction.
Opcode: 0b00000000101100xy
When the SPI-CAN bridge receives a new CAN frame from the CAN network, the SPI-CAN bridge toggles the GPIO pin as shown in Figure 2-12 to indicate the reception of the frame to the SPI controller.
To retrieve received CAN frames from the CAN module RX Buffer in the SPI-CAN bridge, the following sequence must be followed:
Each Read RX buffer instruction must be paired with a corresponding Fetch RX Buffer data instruction to complete the data transfer.
The RX buffer selection is encoded in the opcode. One of the four RX buffer can be selected based on the x, y bits in the instruction.
| X | y | Buffer |
| 0 | 0 | Buffer – 0 |
| 0 | 1 | Buffer – 1 |
| 1 | 0 | Buffer – 2 |
| 1 | 1 | Buffer – 3 |
Opcode: 0b0000000011000000
The Fetch RX buffer Data Instruction transmits the RX buffer data that was read using Read RX buffer instruction.
Opcode: 0b0000000011010000
When the SPI-CAN bridge receives a new CAN frame from the CAN network, the SPI-CAN bridge toggles the GPIO pin as shown in Figure 2-14 to indicate the reception of the frame to the SPI controller.
To retrieve received CAN frames from the CAN module's RX FIFO in the SPI-CAN bridge, the following sequence must be followed:
Opcode: 0b0000000011100000
The Fetch RX FIFO Data Instruction transmits the RX FIFO data that was read using Read RX FIFO instruction.
Opcode: 0b0000000011110000
The Read receive status data instruction is used to get status bits of CAN module from SPI to CAN device. The meaning of data bits received as response to this instruction is shown in Figure 2-17.
| LEC Bits [L2, L1, L0] | Error code |
|---|---|
| 000 | No Error |
| 001 | Stuff Error |
| 010 | Form Error |
| 011 | Ack Error |
| 100 | Bit1 Error |
| 101 | Bit0 Error |
| 110 | CRC Error |
| 111 | No change |
Opcode: 0b0000000000001000
The Fetch RX Status Data Instruction is used to receive the RX Status data which has already been read and stored in a variable with Read RX Status data instruction.