Source code for Frequency Synthesiser - see the post Building a Frequency Synthesiser for more information.