Description
Clears the Update_CLKS bit.
Parameters
chip
The ID the C Code generated for the chip. This will be something like chipName or an_chipName, depending on the name of the chip and the generation options.
Return Value
None
Remarks
When a reconfiguration that changes clock divisor values is sent, there is a Update_CLKS bit that must also be set for the clocks to actually be updated. All of the clock-setting functions (SetClockDivisor, IncrementClockDivisor, DecrementClockDivisor) ensure that this bit is set. However, for an OkikaVortex chip, after the reconfiguration is sent the bit must be turned off manually using this function. If this function is not called, the clocks will be reset and synchronized every time a reconfiguration is sent.
If the next reconfiguration data that will be sent also changes clock divisors, then it is not necessary to call this function, as the bit will just be turned back on by the clock-setting functions.
Example
/* Send primary configuration data to the chip */
. . .
/* Initialize reconfiguration data before using any CAM function */
InitializeReconfigData(an_chipName);
/* Call some clock settings functions */
SetClockDivisor(an_chipName, ClockDivisor_Clock0, 20);
/* Get a pointer to the reconfiguration data */
int dataSize = 0;
const Byte* pData = GetReconfigData(an_chipName, &dataSize);
/* Send the data to the chip */
. . .
/* Clear the buffer to get ready to call some more CAM functions. */
ClearReconfigData(an_chipName);
/* FIRST THING: We aren’t going to update clocks this next time so make sure and call ClockUpdatesFinished */
ClockUpdatesFinished(an_chipName);