Analog Devices SHARC ADSP-214 Series Hardware Reference Manual page 780

Table of Contents

Advertisement

Programming Models
Listing 22-3. VCO Programming: First Method
ustat2 = dm(PMCTL);
bit clr ustat2 PLLM63|PLLD16;
bit set ustat2 DIVEN | PLLD4 |PLLM16;
dm(PMCTL) = ustat2;
bit set ustat2 PLLBP;
bit clr ustat2 DIVEN;
dm(PMCTL) = ustat2;
waiting_loop:
r0 = 4096;
lcntr = r0, do pllwait until lce;
pllwait: nop;
ustat2 = dm(PMCTL);
bit clr ustat2 PLLBP;
dm(PMCTL) = ustat2;
lcntr = 15, do pllwait1 until lce;
pllwait1: nop;
Listing 22-4. VCO Programming: Second Method
ustat2 = dm(PMCTL);
bit clr ustat2 PLLM63| PLLD16;
22-16
www.BDTIC.com/ADI
/* Clear the old multiplier
/* Put PLL in bypass mode. */
/* clear the DIVEN bit */
/* The DIVEN bit should be cleared
while placing the PLL in bypass mode */
/* wait for PLL to lock at new rate
(requirement for VCO change) */
/* Reading the PMCTL register value
returns the DIVEN bit value as zero */
/* take PLL out of Bypass, PLL is now at
new CCLK) */
/* The DIVEN bit should be cleared while
taking the PLL out of bypass mode */
ADSP-214xx SHARC Processor Hardware Reference
and divider values */
/* set a multiplier of
16 and a divider of 4 */
/* Clear the old multiplier
and divider values */

Advertisement

Table of Contents
loading

Table of Contents