|
MC9S12KG128_10 Datasheet, PDF (307/606 Pages) Freescale Semiconductor, Inc – HCS12 Microcontrollers | |||
|
◁ |
Chapter 9 Freescaleâs Scalable Controller Area Network (S12MSCANV2)
9.3.3.3 Data Length Register (DLR)
This register keeps the data length ï¬eld of the CAN frame.
Module Base + 0x00XB
7
6
5
4
3
2
1
0
R
DLC3
DLC2
DLC1
DLC0
W
Reset:
x
x
x
x
x
x
x
x
= Unused; always read âxâ
Figure 9-34. Data Length Register (DLR) â Extended Identiï¬er Mapping
Table 9-31. DLR Register Field Descriptions
Field
3:0
DLC[3:0]
Description
Data Length Code Bits â The data length code contains the number of bytes (data byte count) of the respective
message. During the transmission of a remote frame, the data length code is transmitted as programmed while
the number of transmitted data bytes is always 0. The data byte count ranges from 0 to 8 for a data frame.
Table 9-32 shows the effect of setting the DLC bits.
DLC3
0
0
0
0
0
0
0
0
1
Table 9-32. Data Length Codes
Data Length Code
DLC2
0
0
0
0
1
1
1
1
0
DLC1
0
0
1
1
0
0
1
1
0
DLC0
0
1
0
1
0
1
0
1
0
Data Byte
Count
0
1
2
3
4
5
6
7
8
9.3.3.4 Transmit Buffer Priority Register (TBPR)
This register deï¬nes the local priority of the associated message buffer. The local priority is used for the
internal prioritization process of the MSCAN and is deï¬ned to be highest for the smallest binary number.
The MSCAN implements the following internal prioritization mechanisms:
⢠All transmission buffers with a cleared TXEx ï¬ag participate in the prioritization immediately
before the SOF (start of frame) is sent.
⢠The transmission buffer with the lowest local priority ï¬eld wins the prioritization.
MC9S12KG128 Data Sheet, Rev. 1.16
Freescale Semiconductor
307
|
▷ |