Forum Discussion
Altera_Forum
Honored Contributor
9 years agoAltera DE2 frequency division
Greetings everyone,
I am trying to build a program in quartus ii to divide the clock frequency of an altera de2 board by (2, 4, 8). How can I do this?? The clock frequency is 50 mhz. There is a block which is named (freq divider) but when I use it no output is shown on the LEDs. I have attached a file with the block symbol. I don't know what to do. Please help. Thanks and regards3 Replies
- Altera_Forum
Honored Contributor
Hi,
--- Quote Start --- I am trying to build a program in Quartus II to divide the clock frequency of an Altera DE2 board by (2, 4, 8). How can I do this?? --- Quote End --- Just google it, there are plenty of examples. Then try to write your own and then ask more specific questions if you still have problems. Usualy clock divider consists of counter which is incremented every rising edge of your main clock and a signal which is toogled when counter reaches certain value. --- Quote Start --- There is a block which is named (freq Divider) --- Quote End --- How about posting code of that block? --- Quote Start --- but when I use it no output is shown on the LEDs --- Quote End --- Are you using scope to watch led activity? Or you expecting to see led toogling in MHz range (milion times per second!). If you want to use leds to monitor clocks use much bigger divider values, frequency should be in Hz range. - Altera_Forum
Honored Contributor
Did you assign the clock input and output signals to the proper device pins?
- Altera_Forum
Honored Contributor
Thank you very much, you have been most helpful. I will consider every suggestion
you have given.