
ADSP-2126x SHARC Processor Hardware Reference
8-23
Parallel Port
Generally, interrupts are the best choice for DMA-driven parallel port
transfers rather than core-driven transfers.
Parallel Port Programming Examples
This section provides two programming examples written for the
ADSP-21262 processor. The first,
transfer a buffer to 16-bit external memory using DMA. The second
example
, uses the parallel port to transfer a buffer to 8-bit
external memory using status driven core writes. The last example, shows a
calculated duration example of core driven parallel port access.
Listing 8-1. Parallel Port DMA Buffer Transfer
/* Register Definitions */
#define PPCTL
0x1800
#define EIPP
0x1810
#define EMPP
0x1811
#define ECPP
0x1812
#define IIPP
0x1818
#define IMPP
0x1819
#define ICPP
0x181a
/* Register Bit Definitions */
#define PPEN
0x00000001
#define PPDUR20
0x00000026
#define PPBHC
0x00000040
#define PP16
0x00000080
#define PPDEN
0x00000100
#define PPTRAN
0x00000200
#define PPBS
0x00020000
/* Source Buffer */
Summary of Contents for ADSP-21261 SHARC
Page 30: ...Contents xxx ADSP 2126x SHARC Processor Hardware Reference ...
Page 40: ...Register Diagram Conventions xl ADSP 2126x SHARC Processor Hardware Reference ...
Page 58: ...Differences From Previous SHARCs 1 18 ADSP 2126x SHARC Processor Hardware Reference ...
Page 112: ...Secondary Processing Element PEy 2 54 ADSP 2126x SHARC Processor Hardware Reference ...
Page 178: ...Summary 3 66 ADSP 2126x SHARC Processor Hardware Reference ...
Page 204: ...DAG Instruction Summary 4 26 ADSP 2126x SHARC Processor Hardware Reference ...
Page 322: ...Setting Up DMA 7 32 ADSP 2126x SHARC Processor Hardware Reference ...
Page 436: ...SPORT Programming Examples 9 86 ADSP 2126x SHARC Processor Hardware Reference ...
Page 521: ...ADSP 2126x SHARC Processor Hardware Reference 11 31 Input Data Port rts IDP_ISR end ...
Page 522: ...Input Data Port Programming Example 11 32 ADSP 2126x SHARC Processor Hardware Reference ...
Page 590: ...Timer Programming Examples 14 20 ADSP 2126x SHARC Processor Hardware Reference ...
Page 796: ...I O Processor Registers A 174 ADSP 2126x SHARC Processor Hardware Reference ...
Page 800: ...B 4 ADSP 2126x SHARC Processor Core Manual ...
Page 846: ...Index I 36 ADSP 2126x SHARC Processor Hardware Reference ...