Programming Examples
20-34
ADSP-BF537 Blackfin Processor Hardware Reference
R2 = DEPOSIT(R1, R7); /* R2 contains previous VR_CTL value with
new VLEV field */
W[P0] = R2; /* write new value to VR_CTL */
CLI R1; /* disable interrupts, copy IMASK to R1 */
IDLE; /* drain pipeline, enter idled state, wait for PLL wakeup
*/
STI R1; /* after PLL wakeup occurs, restore interrupts and
IMASK */
/* internal voltage now at 1.15V (-5% - +10%) */
Listing 20-12. Changing Core Voltage via the On-Chip Regulator (C)
VLEV_field = 0xC; /* 0xC = 1.15V (-5% - +10%) in VLEV */
VR_reg = *pVR_CTL; /* read VR_CTL into temporary data */
VR_reg &= 0xFF0F; /* clear out current VLEV field data */
VLEV_field <<= 4; /* shift VLEV field into proper position */
VR_reg |= VLEV_field; /* deposit new VLEV field into VR_CTL
word */
*pVR_CTL = VR_reg; /* write new value to VR_CTL */
IMASK_reg = cli( ); /* disable interrupts, copy IMASK to
IMASK_reg */
idle( ); /* drain pipeline, enter idled state, wait for PLL
wakeup */
sti(IMASK_reg); /* after PLL wakeup occurs, restore interrupts
and IMASK */
/* internal voltage now at 1.15V (-5% - +10%) */
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 ...