![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 915](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609915.webp)
BAT32G1x9 user manual | Chapter 22 CAN control
915 / 1149
Rev.1.02
22.7.21
CAN message data length register m (CnMDLCm).
The CnMDLCm register is used to set the number of bytes of the data segment of the message buffer
Figure 22-46
CAN
message data length register
m
format
(CnMDLCm
).
Reset value: 0000xxxxB
R/W
7
6
5
4
3
2
1
0
CnMDLCm
0
0
0
0
MDLC3
MDLC2
MDLC1
MDLC0
MDLC3
MDLC2
MDLC1
MDLC0
The length of the data sent/received packet
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
Set Prohibited
(If these bits are set during transmission, 8 bytes of data are
transferred, regardless of the DLC value set when the data frame
was transmitted.) However, the DLC that is actually transmitted to
the CAN bus is the DLC value set to this register)
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
1The data and DLC values actually transmitted to the CAN bus are as follows.
The type of frame sent
The length of the data sent
DLC transmission
Data frames
The number of bytes specified by
the DLC (in any case, 8 bytes if
DLC
8).
MDLC[3:0]
Remote frames
0 bytes
Note: 1. Be sure to set bit 7 to
40000B
2. The received data is stored in cnMDBxm according to the number of bytes
corresponding to the DLC of the received frame (however, the upper limit is 8).
CnMDBxm
is undefined without data storage.
Note m = 0 to
15