Altera_Forum
Honored Contributor
17 years agoFrequency divider
I am making a circuit that needs a delay block. The clock frequency is 1MHz and I want the delay block to send a HIGH signal after about 10ms so basically I shall have to divide the frequency by 10000 or something. Any Ideas?
What I have done is to make a 7 bit counter and a 3 bit counter so four 7 bit counters and one 3 bit counter connected in series gives me delay of a little more than 10ms. The thing is that the computer gives the message of Clock Skew because the out of the first counter goes into the clock of the second and so on, so the first counter has a clock input but the succeeding counters only get the output of the previouse counter. The output of the Delay block is not used anywhere else except that it is used to enable the state of a state machine to move on to the next and soon the counters in the delay block are reset. Any ideas of making a better good Delay block to get 10ms delay from?