Fixed bug in simulated PLL

See http://forums.parallax.com/showthread.php/157387