Creating sinusoidal waves with frequency taken from a keypad and using a DAC (Digital to Analog Converter)