frame sync generated in this example is set for a 50% duty cycle, with no
phase shift.
Listing 13-1. PCG Channel B Output Example
/* Register definitions */
#define SRU_CLK3
#define SRU_PIN0
#define SRU_PBEN0
#define PCG_CTLB1
#define PCG_CTLB0
#define PCG_PW
/* SRU definitions */
#define PCG_CLKB_P
#define PCG_FSB_P
#define PBEN_HIGH_Of
//Bit Positions
#define DAI_PB02
#define PCG_PWB
/* Bit definitions */
#define ENFSB
#define ENCLKB
/* Main code section */
.global _main;
.section/pm seg_pmco;
_main:
/* 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;
ADSP-2126x SHARC Processor Hardware Reference
0x2434
0x2460
0x2478
0x24C3
0x24C2
0x24C4
0x39
0x3B
0x01
6
16
0x40000000
0x80000000
Precision Clock Generator
13-13
Need help?
Do you have a question about the ADSP-21261 SHARC and is the answer not in the manual?
Questions and answers