Datasheet
V850ES/JG3-H, V850ES/JH3-H CHAPTER 20 CAN CONTROLLER
R01UH0042EJ0500 Rev.5.00 Page 971 of 1513
Aug 12, 2011
(20) CAN0 message data length register m (C0MDLCm)
The C0MDLCm register is used to set the number of bytes of the data field of a message buffer.
After reset: 0000xxxxB R/W Address: See Table 20-16.
7 6 5 4 3 2 1 0
C0MDLCm 0 0 0 0 MDLC3 MDLC2 MDLC1 MDLC0
MDLC3 MDLC2 MDLC1 MDLC0 Data length of transmit/receive message
0 0 0 0 0 bytes
0 0 0 1 1 byte
0 0 1 0 2 bytes
0 0 1 1 3 bytes
0 1 0 0 4 bytes
0 1 0 1 5 bytes
0 1 1 0 6 bytes
0 1 1 1 7 bytes
1 0 0 0 8 bytes
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
Setting prohibited
(If these bits are set during transmission, 8-byte data is transmitted
regardless of the set DLC value when a data frame is transmitted.
However, the DLC actually transmitted to the CAN bus is the DLC
value set to this register.)
Note
Note The data and DLC value actually transmitted to CAN bus are as follows.
Type of transmit frame Length of transmit data DLC transmitted
Data frame
Number of bytes specified by DLC
(However, 8 bytes if DLC ≥ 8)
Remote frame 0 bytes
MDLC3 to MDLC0 bits
Cautions 1. Be sure to set bits 7 to 4 to 0000B.
2. Receive data is stored in as many C0MDATAxm register as the number of bytes (however,
the upper limit is 8) corresponding to DLC of receive frame. The C0MDATAxm register in
which no data is stored is undefined.
3. Be sure to set bits 4 to 7 to “0”.