Analog Devices SHARC ADSP-2136 Series Hardware Reference Manual page 432

Table of Contents

Advertisement

Programming Examples
#define PCG_CTLB0
#define PCG_CTLB1
#define PCG_PW
/* SRU Definitions */
#define PCG_CLKA_O
#define PCG_CLKB_P
#define PCG_FSB_P
#define PBEN_HIGH_Of
//Bit Positions
#define PCG_EXTB_I
#define DAI_PB02
#define PCG_PWB
/* Bit Definitions */
#define ENCLKA
#define ENFSB
#define ENCLKB
#define CLKBSOURCE
#define FSBSOURCE
/* Main code section */
.global _main; /* Make main global to be accessed by ISR */
.section/pm seg_pmco;
_main:
/*Route PCG Channel A clock to PCG Channel B Input via SRU*/
r0 = (PCG_CLKA_O<<PCG_EXTB_I);
dm(SRU_CLK4) = r0;
/* Route PCG Channel B clock to DAI Pin 1 via SRU */
/* Route PCG Channel B frame sync to DAI Pin 2 via SRU */
r0 = (PCG_CLKB_P|(PCG_FSB_P<<DAI_PB02));
dm(SRU_PIN0) = r0;
13-24
www.BDTIC.com/ADI
0x24C2
0x24C3
0x24C4
0x1c
0x39
0x3B
0x01
5
6
16
0x80000000
0x40000000
0x80000000
0x80000000
0x40000000
ADSP-2136x SHARC Processor Hardware Reference
for the ADSP-21362/3/4/5/6 Processors

Advertisement

Table of Contents
loading

Table of Contents