09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Controller area network (bxCAN) <strong>RM0090</strong><br />

CAN mailbox data length control and time stamp register (CAN_TDTxR)<br />

(x=0..2)<br />

All bits of this register are write protected when the mailbox is not in empty state.<br />

Address offsets: 0x184, 0x194, 0x1A4<br />

Reset value: 0xXXXX XXXX<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16<br />

TIME[15:0]<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Reserved<br />

691/1416 Doc ID 018909 Rev 3<br />

TGT<br />

DLC[3:0]<br />

Reserved<br />

rw rw rw rw rw<br />

Bits 31:16 TIME[15:0]: Message time stamp<br />

This field contains the 16-bit timer value captured at the SOF transmission.<br />

Bits 15:9 Reserved, must be kept at reset value.<br />

Bit 8 TGT: Transmit global time<br />

This bit is active only when the hardware is in the Time Trigger Communication mode, TTCM<br />

bit of the CAN_MCR register is set.<br />

0: Time stamp TIME[15:0] is not sent.<br />

1: Time stamp TIME[15:0] value is sent in the last two data bytes of the 8-byte message:<br />

TIME[7:0] in data byte 7 and TIME[15:8] in data byte 6, replacing the data written in<br />

CAN_TDHxR[31:16] register (DATA6[7:0] and DATA7[7:0]). DLC must be programmed as 8<br />

in order these two bytes to be sent over the CAN bus.<br />

Bits 7:4 Reserved, must be kept at reset value.<br />

Bits 3:0 DLC[3:0]: Data length code<br />

This field defines the number of data bytes a data frame contains or a remote frame request.<br />

A message can contain from 0 to 8 data bytes, depending on the value in the DLC field.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!