I have received the following answer from the PEx development team (waiting for LOCK must be done in application code if there are time sensitive operation, see also the reference manual MC9S08PT60RM, rev4, Chapter 8 Clock management):
There is no requirement in the manual to wait for the LOCK flag and the recommended initialization sequences do not include this check. If an application requires it, this check can be placed in the user code. Most applications don't need this check and would be impacted by the increased initialization time.
I can't reproduce any issue with the loss of lock interrupt. I activated it but the interrupt is not triggered. According to the manual "LOLS is set when lock detection is enabled and after acquiring lock, the FLL output frequency has fallen outside the lock exit frequency tolerance". So there will be no interrupt triggered before acquiring lock for the first time. Also changing the clock settings will cause the FLL to reacquire lock, but will not trigger the interrupt. Please provide more details on reproducing this issue or provide a test project.
Fiona Kuang
Technical Information & Commercial Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------