
Media Local Bus (MLB)
PXN20 Microcontroller Reference Manual, Rev. 1
27-34
Freescale Semiconductor
•
The CCBCR
n
[BCA] field is loaded into an internal hardware register (not visible to system
software) at the start of each incoming asynchronous or control RX packet. If the packet is later
aborted (caused by
AsyncBreak
,
ControlBreak
,
ReceiverBreak
, or
ReceiverProtocolError
),
CCBCR
n
[BCA] is restored with the address pointer in the internal hardware register. The next
packet then overwrites the aborted RX packet, as aborted RX packets are not stored in system
memory. (See Note 3 in
).
•
During the processing of the
Current Buffer
, CCBCR
n
[BCA] continues to mark which quadlet of
the asynchronous or control RX packet is currently being processed. (See Note 4 in
•
Software is unable to predict the buffer length for asynchronous and control RX channels, since the
length of each RX packet is defined by the packet header (PML) and extracted by hardware as the
packet is received. As a result, there is a possibility that the last packet in the
Current Buffer
may
extend beyond CCBCR
n
[BFA]. System memory must accommodate this by allowing the buffers
to overflow by the worst-case packet length. (See Note 5A in
).
•
A
Buffer Done
interrupt is generated (CSCR
n
[STS[2]] set) when the last quadlet from the last
packet (in the
Current Buffer
) has been successfully received. Software may then begin processing
the buffer. (See Note 6 in
).
NOTE
When the DMA Controller encounters an asynchronous or control packet
that is broken (or has an error), CCBCR
n
[BCA] is reloaded with the start
address of the
last
packet and the broken packet is overwritten. This
mechanism ensures that system software can always calculate the address of
the
next
packet start address within system memory.
Single-packet buffering of asynchronous and control RX packets should be handled in the same manner
described for multi-packet buffering, with the exception that the beginning and end address of the
Next Buffer
should be set to the same address (e.g. CNBCR
n
[BSA] = CNBCR
n
[BEA]).
27.4.6.1.2
Packet Transmission
When multi-packet buffering is used for transmitting asynchronous or control data packets, buffer
processing should be handled in the following manner:
•
At the start of buffer processing, the beginning of the
Next Buffer
becomes the beginning of the
Current Buffer
, as CNBCR
n
[BSA] is loaded into CCBCR
n
[BCA]. Additionally, the end of the
Next Buffer
becomes the end of the
Current Buffer
, as CNBCR
n
[BEA] is loaded into
CCBCR
n
[BFA]. (See Note 1 in
•
A
Buffer Start
interrupt is generated (CSCR
n
[STS[3]] set), which informs software that hardware
has updated CCBCR
n
, cleared the local channel CSCR
n
[RDY] bit, and is available to accept the
next buffer. Software may then prepare the
Next Buffer
by writing: CNBCR
n
[BSA],
CNBCR
n
[BEA], and CSCR
n
•
During the processing of the
Current Buffer
, CCBCR
n
[BCA] continues to mark which quadlet of
the asynchronous or control TX packet is currently being processed. (See Note 4 in
•
System software can determine the exact buffer length for TX channels. As a result, the last packet
in the
Current Buffer
should coincide with CCBCR
n
Summary of Contents for PXN2020
Page 1: ...PXN20 Microcontroller Reference Manual Devices Supported PXN2020 PXN2120 PXN20RM Rev 1 06 2011...
Page 42: ...PXN20 Microcontroller Reference Manual Rev 1 lxiv Freescale Semiconductor...
Page 64: ...Introduction PXN20 Microcontroller Reference Manual Rev 1 1 22 Freescale Semiconductor...
Page 112: ...Signal Description PXN20 Microcontroller Reference Manual Rev 1 3 44 Freescale Semiconductor...
Page 118: ...Resets PXN20 Microcontroller Reference Manual Rev 1 4 6 Freescale Semiconductor...
Page 372: ...e200z6 Core Z6 PXN20 Microcontroller Reference Manual Rev 1 13 8 Freescale Semiconductor...
Page 412: ...e200z0 Core Z0 PXN20 Microcontroller Reference Manual Rev 1 14 14 Freescale Semiconductor...
Page 821: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 Freescale Semiconductor 27 49...
Page 822: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 27 50 Freescale Semiconductor...
Page 1376: ...Memory Map PXN20 Microcontroller Reference Manual Rev 1 A 118 Freescale Semiconductor...