CAN 2.0B Controller Module
MPC561/MPC563 Reference Manual, Rev. 1.2
Freescale Semiconductor
16-5
Length (Rx)
Length (in bytes) of the Rx data stored in offset 0x6 through 0xD of the buffer.This field is written by
the TouCAN module, copied from the DLC (data length code) field of the received frame.
Length (Tx)
Length (in bytes) of the data to be transmitted, located in offset 0x6 through 0xD of the buffer. This
field is written by the CPU and is used as the DLC field value. If RTR (remote transmission request)
= 1, the frame is a remote frame and will be transmitted without data field, regardless of the value in
Tx length.
Data
This field can store up to eight data bytes for a frame. For Rx frames, the data is stored as it is
received from the bus. For Tx frames, the CPU provides the data to be transmitted within the frame.
Reserved
The CPU controls access to this word entry field (16 bits).
Table 16-2. Message Buffer Codes for Receive Buffers
Rx Code
Before Rx
New Frame
Description
Rx Code
After Rx
New Frame
Comment
0b0000
NOT ACTIVE — message buffer is not active.
—
—
0b0100
EMPTY — message buffer is active and empty.
0b0010
—
0b0010
FULL — message buffer is full.
0b0110
If a CPU read occurs before
the new frame, new receive
code is 0010.
0b0110
OVERRUN — addtional frame was received into a full
buffer before the CPU read the first one.
0b0XY1
1
1
For Tx message buffers, upon read, the BUSY bit should be ignored.
BUSY — message buffer is now being filled with a new
receive frame. This condition will be cleared within 20
cycles.
0b0010
An empty buffer was filled
(XY was 10).
0b0110
A full/overrun buffer was
filled (Y was 1).
Table 16-3. Message Buffer Codes for Transmit Buffers
RTR
Initial Tx Code
Description
Code After
Successful
Transmission
x
0b1000
Message buffer not ready for transmit.
—
0
0b1100
Data frame to be transmitted once, unconditionally.
0b1000
1
0b1100
Remote frame to be transmitted once, and message buffer
becomes an Rx message buffer for data frames.
0b0100
0
0b1010
1
1
When a matching remote request frame is detected, the code for such a message buffer is changed to be 0b1110.
Data frame to be transmitted only as a response to a remote
frame, always.
0b1010
0
0b1110
Data frame to be transmitted only once, unconditionally, and
then only as a response to remote frame, always.
0b1010
Table 16-1. Common Extended/Standard Format Frames (continued)
Field
Description
Summary of Contents for MPC561
Page 84: ...MPC561 MPC563 Reference Manual Rev 1 2 lxxxiv Freescale Semiconductor...
Page 144: ...Signal Descriptions MPC561 MPC563 Reference Manual Rev 1 2 2 46 Freescale Semiconductor...
Page 206: ...Central Processing Unit MPC561 MPC563 Reference Manual Rev 1 2 3 62 Freescale Semiconductor...
Page 302: ...Reset MPC561 MPC563 Reference Manual Rev 1 2 7 14 Freescale Semiconductor...
Page 854: ...Time Processor Unit 3 MPC561 MPC563 Reference Manual Rev 1 2 19 24 Freescale Semiconductor...
Page 968: ...Development Support MPC561 MPC563 Reference Manual Rev 1 2 23 54 Freescale Semiconductor...
Page 1144: ...Internal Memory Map MPC561 MPC563 Reference Manual Rev 1 2 B 34 Freescale Semiconductor...
Page 1212: ...TPU3 ROM Functions MPC561 MPC563 Reference Manual Rev 1 2 D 60 Freescale Semiconductor...
Page 1216: ...Memory Access Timing MPC561 MPC563 Reference Manual Rev 1 2 E 4 Freescale Semiconductor...