dsPIC Phase lock example