Programming Examples
20-32
ADSP-BF537 Blackfin Processor Hardware Reference
Listing 20-8. Changing CLKIN to VCO Multiplier (C)
IMASK_reg = cli( ); /* disable interrupts, copy IMASK to
IMASK_reg */
*pPLL_CTL = 0x0400; /* change VCO multiplier to 2x by writing
to PLL_CTL */
idle( ); /* drain pipeline, enter idled state, wait for PLL
wakeup */
sti(IMASK_reg); /* after PLL wakeup occurs, restore interrupts
and IMASK */
/* CLKIN to VCO multiplier is now set to 2x */
Setting Wakeups and Entering Hibernate State
provide code for configuring the regulator
wakeups and placing the regulator in the hibernate state, in Blackfin
assembly and C code, respectively.
Listing 20-9. Configuring Regulator Wakeups and Entering Hibernate
State (ASM)
R1 = W[P0](Z); /* read VR_CTL register */
BITSET (R1, 8); /* enable wakeup from RTC/reset */
BITSET (R1, 15); /* protect SDRAM contents during reset after
wakeup */
BITCLR (R1, 0);
BITCLR (R1, 1); /* clear FREQ bits to powerdown core */
W[P0] = R1; /* write to VR_CTL */
CLI R1; /* disable interrupts, copy IMASK to R1 */
IDLE; /* drain pipeline, enter idled state, wait for VR to
hibernate */
/* Hibernate state: no code executes until wakeup triggers
reset */
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 ...