I'm having trouble reconciling a couple of lines from this .gel file and the C5515 DSP System User's guide. Section 1.4.3.2.6 says "The recommendation is to
stop all peripheral operation before changing the PLL frequency, with the exception of the device CPU and USB."
As supplied with CCS v5, as the first step in the function ProgramPLL_100MHz, we find
/* Enable clocks to all peripherals */
*(short *)PCGCR1@IO = 0x0;
*(short *)PCGCR2@IO = 0x0;
Is an appropriate way to stop peripheral operations to set the PCGCR registers to all 1s (except SYSCLKDIS and USBCG)?
On a related note the reserved bit in PCGCR1 says you must write 1 to it, but with the reserved bits for PCGCR2 no such requirement is made. Are these reserved bits different or should we be writing 1s to the reserved bits in PCGCR2 as well? The .gel file is writing 0s so isn't it in conflict with the system users's guide here?