EasyManua.ls Logo

NXP Semiconductors PXN2020 - Page 805

NXP Semiconductors PXN2020
1376 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Media Local Bus (MLB)
PXN20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor 27-33
Figure 27-19. Asynchronous/Control Packet Buffering Example
27.4.6.1.1 Packet Reception
When multi-packet buffering is used for receiving 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 CNBCRn[BSA] is loaded into CCBCRn[BCA]. Additionally, the end of the
Next Buffer becomes the end of the Current Buffer, as CNBCRn[BEA] is loaded into
CCBCRn[BFA] (See Note 1 in Figure 27-19).
•A Buffer Start interrupt is generated (CSCRn[STS[3]] set), which informs software that hardware
has updated CCBCRn, cleared the local channel CSCRn[RDY] bit, and is available to accept the
next buffer. Software may then prepare the Next Buffer by writing CNBCRn[BSA],
CNBCRn[BEA], and CSCRn[RDY]. (See Note 2 in Figure 27-19).
Packet 1
(First Packet)
Packet 2
Packet 3
Packet N
(Last Packet)
0
BS
BD
BCA
BFABEA
BFABEA
BSA BCA
internal register
Note 3
* RX handling only
Note 5A
* RX handling only
Note 4
Note 1
Note 5B
* TX handling only
Note 6
Note 2
Legend
= 16-bit address pointer
= channel interrupt
(Shows RX/TX handling of Asynchronous/Control Packets using the Current Buffer)
Multi-Packet Buffering Example

Table of Contents

Related product manuals