Programming Examples
12-74
ADSP-BF537 Blackfin Processor Hardware Reference
Program_SPORT_RECEIVER_Registers:
/* Set P0 to SPORT0 Base Address */
P0.h = hi(SPORT0_RCR1);
P0.l = lo(SPORT0_RCR1);
/* Configure Clock speeds */
R1 = SPORT_RCLK_CONFIG;
/* Divider SCLK/RCLK (value 0 to
65535) */
W[P0 + (SPORT0_RCLKDIV - SPORT0_RCR1)] = R1;
/* RCK divider
register */
/* number of Bitclock between FrameSyncs -1 (value SPORT_SLEN
to 65535) */
R1 = SPORT_RFSDIV_CONFIG;
W[P0 + (SPORT0_RFSDIV - SPORT0_RCR1)] = R1;
/* RFSDIV regis-
ter */
/* Receive configuration */
/* Configuration register 2 (for instance 0x000E for 16-bit
wordlength) */
R1 = SPORT_RECEIVE_CONF_2;
W[P0 + (SPORT0_RCR2 - SPORT0_RCR1)] = R1;
/* Configuration register 1 (for instance 0x4410 for exter-
nal clk and framesync) */
R1 = SPORT_RECEIVE_CONF_1;
W[P0] = R1;
ssync;
/* NOTE: SPORT0 RX NOT enabled yet (bit 0 of RCR1 must
be zero) */
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...