This Application Note describes a simple method of generating sine waves over four decades from a square wave input. Furthermore, a method of interfacing and reading a digital encoder is described which allows the period of the sine wave to be controlled.