Forum Discussion
Altera_Forum
Honored Contributor
13 years agoDAC5672 Sine output
Hi All, I am trying to generate a simple Sine wave from DAC5672 on my Hsmc daughter card from Terasic . The NCO i am using is from Open Cores , i works fine in simulation as shown in screen sho...
Altera_Forum
Honored Contributor
13 years agoHere's how i am changing values in VHDL
ADJUSTING_OFFSET: PROCESS(sys_clk, sin_out_reg) BEGIN IF reset_n = '0' THEN sin_out_adj <= (others=>'0'); ELSIF rising_edge(sys_clk) THEN IF nco_sin_out(13) = '1' THEN sin_out_adj <= NOT(nco_sin_out)+"00000000000001"; ELSE sin_out_adj<= '1'& nco_sin_out(12 downto 0); END IF; END IF; -- END IF; END PROCESS; But i am not getting a clean sine wave out ?? the frequency of generated signal is correct see image attached