53.6.3 MCAN Test Register

Write access to the Test Register has to be enabled by setting bit MCAN_CCCR.TEST to ‘1’.

All MCAN Test Register functions are set to their reset values when bit MCAN_CCCR.TEST is cleared.

Loop Back mode and software control of pin CANTX are hardware test modes. Programming of TX ≠ 0 disturbs the message transfer on the CAN bus.

The reset value for MCAN_TEST.RX is undefined.

Name: MCAN_TEST
Offset: 0x10
Reset: 0x00000000
Property: Read/Write

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
   SVALTXBNS[4:0] 
Access RRRRRR 
Reset 000000 
Bit 15141312111098 
   PVALTXBNP[4:0] 
Access RRRRRR 
Reset 000000 
Bit 76543210 
 RXTX[1:0]LBCK     
Access RR/WR/WR/W 
Reset x000 

Bit 21 – SVAL Started Valid

Monitors the actual value of pin CANRX.

The reset value for this bit is undefined.

ValueDescription
0 (DISABLED)

TXBNS value is not valid.

1 (ENABLED)

TXBNS value is valid.

Bits 20:16 – TXBNS[4:0] TX Buffer Number Started

In TX buffer, number of messages whose transmission was started last. Valid when SVAL is set. Valid values are 0 to 31.

Bit 13 – PVAL Prepared Valid

In TX buffer, number of messages whose transmission was started last. Valid when SVAL is set. Valid values are 0 to 31.

ValueDescription
0 (DISABLED)

TXBNP value is not valid.

1 (ENABLED)

TXBNP value is valid.

Bits 12:8 – TXBNP[4:0] TX Buffer Number Prepared

Five digits. In TX buffer, number of messages that are ready for transmission. Valid when PVAL is set. Valid values are 0 to 31.

Bit 7 – RX Receive Pin

Monitors the actual value of pin CANRX.

The reset value for this bit is undefined.

ValueDescription
0

The CAN bus is dominant (CANRX = ‘0’).

1

The CAN bus is recessive (CANRX = ‘1’).

Bits 6:5 – TX[1:0] Control of Transmit Pin

ValueNameDescription
0 RESET

Reset value, CANTX controlled by the CAN Core, updated at the end of the CAN bit time.

1 SAMPLE_POINT_MONITORING

Sample Point can be monitored at pin CANTX.

2 DOMINANT

Dominant (‘0’) level at pin CANTX.

3 RECESSIVE

Recessive (‘1’) at pin CANTX.

Bit 4 – LBCK Loop Back Mode

0 (DISABLED): Reset value. Loop Back mode is disabled.

1 (ENABLED): Loop Back mode is enabled (see Test Modes).