
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
Содержание PXN2020
Страница 1: ...PXN20 Microcontroller Reference Manual Devices Supported PXN2020 PXN2120 PXN20RM Rev 1 06 2011...
Страница 42: ...PXN20 Microcontroller Reference Manual Rev 1 lxiv Freescale Semiconductor...
Страница 64: ...Introduction PXN20 Microcontroller Reference Manual Rev 1 1 22 Freescale Semiconductor...
Страница 112: ...Signal Description PXN20 Microcontroller Reference Manual Rev 1 3 44 Freescale Semiconductor...
Страница 118: ...Resets PXN20 Microcontroller Reference Manual Rev 1 4 6 Freescale Semiconductor...
Страница 162: ...Clocks Reset and Power CRP PXN20 Microcontroller Reference Manual Rev 1 6 30 Freescale Semiconductor...
Страница 182: ...Frequency Modulated Phase Locked Loop FMPLL PXN20 Microcontroller Reference Manual Rev 1 7 20 Freescale Semiconductor...
Страница 268: ...Boot Assist Module BAM PXN20 Microcontroller Reference Manual Rev 1 9 14 Freescale Semiconductor...
Страница 318: ...Interrupts and Interrupt Controller INTC PXN20 Microcontroller Reference Manual Rev 1 10 50 Freescale Semiconductor...
Страница 326: ...General Purpose Static RAM SRAM PXN20 Microcontroller Reference Manual Rev 1 11 8 Freescale Semiconductor...
Страница 372: ...e200z6 Core Z6 PXN20 Microcontroller Reference Manual Rev 1 13 8 Freescale Semiconductor...
Страница 412: ...e200z0 Core Z0 PXN20 Microcontroller Reference Manual Rev 1 14 14 Freescale Semiconductor...
Страница 460: ...Memory Protection Unit MPU PXN20 Microcontroller Reference Manual Rev 1 18 20 Freescale Semiconductor...
Страница 478: ...Error Correction Status Module ECSM PXN20 Microcontroller Reference Manual Rev 1 19 18 Freescale Semiconductor...
Страница 488: ...Software Watchdog Timer SWT PXN20 Microcontroller Reference Manual Rev 1 20 10 Freescale Semiconductor...
Страница 494: ...System Timer Module STM PXN20 Microcontroller Reference Manual Rev 1 21 6 Freescale Semiconductor...
Страница 821: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 Freescale Semiconductor 27 49...
Страница 822: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 27 50 Freescale Semiconductor...
Страница 926: ...Controller Area Network FlexCAN PXN20 Microcontroller Reference Manual Rev 1 29 42 Freescale Semiconductor...
Страница 990: ...Deserial Serial Peripheral Interface DSPI PXN20 Microcontroller Reference Manual Rev 1 30 64 Freescale Semiconductor...
Страница 1044: ...Enhanced Serial Communication Interface eSCI PXN20 Microcontroller Reference Manual Rev 1 31 54 Freescale Semiconductor...
Страница 1080: ...Cross Triggering Unit CTU PXN20 Microcontroller Reference Manual Rev 1 33 12 Freescale Semiconductor...
Страница 1134: ...Analog to Digital Converter ADC PXN20 Microcontroller Reference Manual Rev 1 34 54 Freescale Semiconductor...
Страница 1150: ...IEEE 1149 1 Test Access Port Controller JTAGC PXN20 Microcontroller Reference Manual Rev 1 35 16 Freescale Semiconductor...
Страница 1257: ...Nexus Development Interface NDI PXN20 Microcontroller Reference Manual Rev 1 Freescale Semiconductor 36 107...
Страница 1258: ...Nexus Development Interface NDI PXN20 Microcontroller Reference Manual Rev 1 36 108 Freescale Semiconductor...
Страница 1376: ...Memory Map PXN20 Microcontroller Reference Manual Rev 1 A 118 Freescale Semiconductor...