STI R2;
/* after PLL wakeup occurs, restore interrupts and
IMASK */
/* processor is now in Active mode */
Listing 20-6. Transitioning From Full On Mode to Active Mode (C)
IMASK_reg = cli( );
IMASK_reg */
*pPLL_CTL | = BYPASS;
idle( );
/* drain pipeline, enter idled state, wait for PLL
wakeup */
sti(IMASK_reg);
and IMASK */
/* processor is now in Active mode */
In the Full On Mode, Change CLKIN to VCO
Multiplier From 31x to 2x
Listing 20-7
and
multiplier from 31x to 2x in full on operating mode, in Blackfin assembly
and C code, respectively.
Listing 20-7. Changing CLKIN to VCO Multiplier (ASM)
CLI R2;
/* disable interrupts, copy IMASK to R2 */
R1.L = 0x0400;
W[P0] = R1;
IDLE;
/* drain pipeline, enter idled state, wait for PLL wakeup
*/
STI R2;
/* after PLL wakeup occurs, restore interrupts and
IMASK */
/* CLKIN to VCO multiplier is now set to 2x */
ADSP-BF537 Blackfin Processor Hardware Reference
/* disable interrupts, copy IMASK to
/* set BYPASS bit and write to PLL_CTL */
/* after PLL wakeup occurs, restore interrupts
Listing 20-7
provide code for changing the
/* change VCO multiplier to 2x */
/* by writing to PLL_CTL */
Dynamic Power Management
to
CLKIN
VCO
20-31