485
21.4.25 DLC Register x (x = 0 to 15) (DLCRx)
This register is the DLC register for message buffer (x).
■ Register Configuration
Figure 21.4-25 Configuration of the DLC Registers (DLCRx)
■ Register Function
●
Transmission
• Set the data length (byte count) of a transmitted message when a data frame is transmitted (TRTRx of
the transmitting RTR register (TRTRR) is 0).
• Set the data length (byte count) of a requested message when a remote frame is transmitted (TRTRx =
1).
Note:
Setting other than 0000
B
to 1000
B
(0 to 8 bytes) is prohibited.
●
Reception
• Store the data length (byte count) of a received message when a data frame is received (RRTRx of the
remote frame request receiving register (RRTRR) is 0).
• Store the data length (byte count) of a requested message when a remote frame is received (RRTRx =
1).
Note:
A write operation to this register should be performed in words. A write operation in bytes causes
undefined data to be written to the upper byte at writing to the lower byte. Writing to the upper byte is
ignored.
Address bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 DLCR1x(Lower)
CAN1: 007C60
H
+ 2 × x −−−−
DLC3 DLC2 DLC1 DLC0
Reset value
XXXXXXXX
B
−−−−R/W R/W R/W R/W
x = 0, ..., 15
R/W : Read/Write
X : Undefined
− : Unused