Datasheet

MSCAN08 Controller (MSCAN08)
MC68HC908GZ16 • MC68HC908GZ8 Data Sheet, Rev. 4
140 Freescale Semiconductor
12.12.3 Data Length Register (DLR)
This register keeps the data length field of the CAN frame.
DLC3–DLC0 — Data Length Code Bits
The data length code contains the number of bytes (data byte count) of the respective message. At
transmission of a remote frame, the data length code is transmitted as programmed while the number
of transmitted bytes is always 0. The data byte count ranges from 0 to 8 for a data frame. Table 12-5
shows the effect of setting the DLC bits.
12.12.4 Data Segment Registers (DSRn)
The eight data segment registers contain the data to be transmitted or received. The number of bytes to
be transmitted or being received is determined by the data length code in the corresponding DLR.
12.12.5 Transmit Buffer Priority Registers
PRIO7–PRIO0 — Local Priority
This field defines the local priority of the associated message buffer. The local priority is used for the
internal prioritization process of the MSCAN08 and is defined to be highest for the smallest binary
number. The MSCAN08 implements the following internal prioritization mechanism:
All transmission buffers with a cleared TXE flag participate in the prioritization right before the SOF
is sent.
The transmission buffer with the lowest local priority field wins the prioritization.
In case more than one buffer has the same lowest priority, the message buffer with the lower index
number wins.
Table 12-5. Data Length Codes
Data Length Code
Data Byte
Count
DLC3 DLC2 DLC1 DLC0
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
1000 8
Address: $05bD
Bit 7654321Bit 0
Read:
PRIO7 PRIO6 PRIO5 PRIO4 PRIO3 PRIO2 PRIO1 PRIO0
Write:
Reset: Unaffected by reset
Figure 12-14. Transmit Buffer Priority Register (TBPR)