11.6.4 Command Register

The CAN controller is set to operate in different modes by setting the command register CAN_COMMAND, as listed in the following table.

Table 11-9. CAN_COMMAND
Bit NumberNameReset ValueFunction
[31:16]Revision_ControlThis field contains the version of the CAN core in the following format. This is a read-only field.

[major version].[minor version].[revision number]

[31:28]: Major version

[27:24]: Minor version

[23:16]: Revision number

[15:4]Reserved0Reserved
[3:0]CAN_COMMAND[3]0SRAM Test mode

0: Normal operation

1: Enable SRAM Test mode

CAN_COMMAND[2]0Loopback-test mode

0: Normal operation

1: Loopback mode is enabled[1]: Listen-only mode

CAN_COMMAND[1]0Listen-only mode

0: Active

1: CAN listen only. The output is held at ‘R’ level. The CAN controller is only listening.

CAN_COMMAND[0]0Run/Stop mode

0: Sets the CAN controller into Stop mode

Returns 0 when stopped

1: Sets the CAN controller into Run mode

Returns 1 when running