in reply to Re^4: Where to place POD
in thread Where to place POD
# Add one to $i $i = $i - 1;
Real world example:
This is a microcontroller environment, we are deep in the clock setup code. CPU clock and some other clocks are generated by a PLL, using a quartz as reference clock. Depending on how bits are set, the PLL stops if the lock to the reference clock is lost. If that happens, CPU clock stops.
SYSCTRL->DPLLCTRLB.bit.LBYPASS = 0; // keep running, even if lock is l +ost
Well, the lock lost bypass bit should be set, not cleared, to keep the PLL running (with a slightly wrong frequency) without lock to the reference clock. This is the bugfix:
SYSCTRL->DPLLCTRLB.bit.LBYPASS = 1; // keep running, even if lock is l +ost
Alexander
|
---|