EasyManua.ls Logo

NXP Semiconductors PXN2020 - 27.5.3 Initialize Channel

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
27-42 Freescale Semiconductor
27.5.3 Initialize Channel
Figure 27-25. Initialize Channel
Isochronous
Determine channel direction
InitDmaBuffer(n)
ReturnDmaBuffer
InitChan(n)
ReturnInitChan
channel?
CECRn[TR]
Determinechannel type
CECRn[CT[1:0]]
Determine IO/DMA mode
CECRn[26]
Determine interrupt mask
CECRn[15:8]
Determine channel address
CECRn[CA[8:1]]
Write data to CECRn
at PBI address 0x10 + 4 * n
Determine isochronous flow control
mechanism CECRn[FSE]
Determine isochronouspacket length
CECRn[IPL[7:0]]
For DMA Mode (ping-pong buffering), the
interrupt mask bits could be set as follows:
4: 0 – Sync RX/TX
1 Control RX/TX, Async RX/TX
3: 0 – All channel types/directions
2: 0 – All channel types/directions
1: 1 – All channel types/directions
0: 1 – All channel types/directions
For DMA Mode (circular buffering), the
interrupt mask bits could be set as follows:
4: 0 – Sync RX/TX
3: 1 – Synchronous only
2: 1 – Synchronous only
1: 0 – Synchronous only
0: 0 – Synchronous only
yes
no

Table of Contents

Related product manuals