MCAN_DBTP

MCAN Data Bit Timing and Prescaler Register

This register can only be written if the bits CCE and INIT are set in MCAN CC Control Register.

The CAN bit time may be programmed in the range of 4 to 25 time quanta. The CAN time quantum may be programmed in the range of 1 to 32 CAN core clock periods. tq = (DBRP + 1) CAN core clock periods.

DTSEG1 is the sum of Prop_Seg and Phase_Seg1. DTSEG2 is Phase_Seg2.

Therefore the length of the bit time is (programmed values) [DTSEG1 + DTSEG2 + 3] tq
or (functional values) [Sync_Seg + Prop_Seg + Phase_Seg1 + Phase_Seg2] tq.

The Information Processing Time (IPT) is zero, meaning the data for the next bit is available at the first clock edge after the sample point.

With a CAN core clock frequency of 8 MHz, the reset value of 0x00000A33 configures the MCAN for a fast bit rate of 500 kbit/s.

The bit rate configured for the CAN FD data phase via MCAN_DBTP must be higher than or equal to the bit rate configured for the arbitration phase via MCAN_NBTP.

  0x0C 32 Read/Write 0x00000A33  

MCAN Data Bit Timing and Prescaler Register

Bit  31 30 29 28 27 26 25 24  
                   
Access                   
Reset                   
Bit  23 22 21 20 19 18 17 16  
  TDC     DBRP[4:0]  
Access  R/W     R/W R/W R/W R/W R/W  
Reset  0     0 0 0 0 0  
Bit  15 14 13 12 11 10 9 8  
        DTSEG1[4:0]  
Access        R/W R/W R/W R/W R/W  
Reset        0 1 0 1 0  
Bit  7 6 5 4 3 2 1 0  
  DTSEG2[3:0]   DSJW[2:0]  
Access  R/W R/W R/W R/W   R/W R/W R/W  
Reset  0 0 1 1   0 1 1  

Bits 2:0 – DSJW[2:0]: Data (Re) Synchronization Jump Width

Data (Re) Synchronization Jump Width

The duration of a synchronization jump is tq x (DSJW + 1).

Bits 7:4 – DTSEG2[3:0]: Data Time Segment After Sample Point

Data Time Segment After Sample Point

The duration of time segment is tq x (DTSEG2 + 1).

Bits 12:8 – DTSEG1[4:0]: Data Time Segment Before Sample Point

Data Time Segment Before Sample Point

0: Forbidden.

1 to 31: The duration of time segment is tq x (DTSEG1 + 1).

Bits 20:16 – DBRP[4:0]: Data Bit Rate Prescaler

Data Bit Rate Prescaler

The value by which the peripheral clock is divided for generating the bit time quanta. The bit time is built up from a multiple of this quanta. Valid values for the Bit Rate Prescaler are  0 to 31. The actual interpretation by the hardware of this value is such that one more than the value programmed here is used.

Bit 23 – TDC: Transmitter Delay Compensation

Transmitter Delay Compensation

0 (DISABLED): Transmitter Delay Compensation disabled.

1 (ENABLED): Transmitter Delay Compensation enabled.