29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Controller area network (bxCAN)<br />

RM0008<br />

CAN mailbox data length control <strong>and</strong> 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: undefined<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 />

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<br />

Reserved<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 <strong>and</strong> TIME[15:8] in data byte 6, replacing the data written in<br />

CAN_TDHxR[31:16] register (DATA6[7:0] <strong>and</strong> 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<br />

Reserved<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.<br />

574/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!