Embedded Systems Lecture Example Code for a Phase Lock Loop (PLL) in the week of  Finite State Machine lectures