Forum Discussion
Altera_Forum
Honored Contributor
14 years agoURGENT PLEASE FREQUENCY DIVIDER FROM 50MHz to 1Hz
I tried to test my design of 50MHz to 1Hz on the altera board so that it can cover 50,000,000 cycle in 10 sec or 1 sec but not indicating that on the board. I need help on how to make it perform this...
Altera_Forum
Honored Contributor
14 years ago --- Quote Start ---
count := count + 1;
if count = 50000000-1 then
count := 0;
end if;
if count <25000000 then
clk_out <= '1';
else
clk_out <= '0';
end if;
--- Quote End --- thanks. its really helpful...thanks again.