MSR (CAN) Register Description
Register Name | MSR |
---|---|
Offset Address | 0x0000000004 |
Absolute Address |
0x00FF060004 (CAN0) 0x00FF070004 (CAN1) |
Width | 32 |
Type | rwNormal read/write |
Reset Value | 0x00000000 |
Description | Mode Select |
Writing to the Mode Select Register (MSR) enables the CAN controller to enter Snoop, Sleep, Loopback, or Normal modes. In Normal mode, the CAN controller participates in normal bus communication. If the SLEEP bit is set to 1, the CAN controller enters Sleep mode. If the LBACK bit is set to 1, the CAN controller enters Loopback mode. If the SNOOP mode is set to '1', the CAN controller enters Snoop mode and does not participate in bus communication but only receives messages. The LBACK and SLEEP bits should never be set to 1 at the same time. At any given point the CAN controller can be either in Loopback mode or Sleep mode, but not both simultaneously. If both bits are set, then LBACK Mode takes priority. SNOOP Mode has least priority. In order for core to enter SNOOP mode LBACK and SLEEP modes should be set to '0'.
MSR (CAN) Register Bit-Field Summary
Field Name | Bits | Type | Reset Value | Description |
---|---|---|---|---|
Reserved | 31:3 | rwNormal read/write | 0x0 | Reserved. |
SNOOP | 2 | rwNormal read/write | 0x0 | Snoop Mode Select The Snoop Mode Select bit. 1: CAN controller is in Snoop mode. 0: CAN controller is in Normal, Loopback, Configuration, or Sleep mode. This bit can be written to only when CEN bit in SRR is 0. |
LBACK | 1 | rwNormal read/write | 0x0 | Loopback Mode Select The Loopback Mode Select bit. 1: CAN controller is in Loopback mode. 0: CAN controller is in Normal, Snoop, Configuration, or Sleep mode. This bit can be written to only when CEN bit in SRR is 0. |
SLEEP | 0 | rwNormal read/write | 0x0 | Sleep Mode Select The Sleep Mode select bit. 1: CAN controller is in Sleep mode. 0: CAN controller is in Normal, Snoop, Configuration or Loopback mode. This bit is cleared when the CAN controller wakes up from the Sleep mode. |