square wave filter
Hi
There is little problem with low pass filter ,because when you trying to convert 1000 Hz freq you should use the low band pass filter with max pass freq 1000 Hz , but when the freq changes to 500 Hz this filter will not be able to cut 2nd harmonic from 500 Hz which is 1000 Hz as filter must bypass 1000 Hz . Of course you can uses sophisticated solution - design regulated low bandpasss filter and adjust when changing squarewave freq , but it is complicated .
You can also use EPROM to write the sin values into, with data outputs connected to DAC and connect the address input to digital divider supplied from high freq .
Input freq will be 256 times more than output freq when just 8 address inputs are used (that is for 8 bit sin resolution output ). Then you can very easy filter out harmonics rubbish(cheap low pass filter will be enough ) from DAC output .
On 8th address bit in EPROM
input will be squarewave output the same freq and the same phase as sin on DAC output .