Hi
You properly use a counter to generate the sinus?
If you take the most significant bit of this counter will you have a "square wave".
The counter itself could be a sawtooth wave.
lets say the counter 8 bits. b7..b0
then take <b6..b0> directly if b7=0
if b7=1 then calculate output as 128-<b6..b0>
and voula - you got a triangle wave.
Jeppe
---------------------------------------------------------------------------------------------------------------
Hi again
In general can you only get multipla of the max frequency like:
50MHz/2 = 25 MHz
50MHz/3 = 16.67 MHz
...
50MHZ/1000 = 50 kHz
etc
But if you could include an external variable frequency could you get a "true" variable frq.
As for the scale -
Check this example
http://www.jjmk.dk/MMMI/Exercises/05...elta/index.htm
Best regards
Jeppe