How to produce 1hz from 4mhz clock
The problem is to implement the counter in FPGA kit that uses 4 mhz. But the requirement is the counter should increment exactly at 1 second that is the counter should use 1 hz clock frequency.
Can anyone help me in reducing the 4 Mhz clock signal to 1 Hz clock signal by using less circuit component to implement in FPGA kit.
Can anyone help me in reducing the 4 Mhz clock signal to 1 Hz clock signal by using less circuit component to implement in FPGA kit.
Replies
-
silverscorpionWell, you can try to get frequencies like 2 MHz or 1 MHz from a clock of 4 MHz. But getting it down to 1 Hz is way too difficult.
Instead of trying to do so, you can try to generate a separate clock of 1 Hz with an external circuit and use it with your fpga kit. That would be the best way, I can say..
Use a simple oscillator like using 555 to generate a 1 Hz clock.. -
debu@elavarasan: Its very simple. In Verilog you would:
module oneHertzFromFour (input clk4M, output reg clk1Hz) reg [22:0]cnt; always @(posedge(clk4M) begin cnt=cnt+1; if(cnt==2000000) clk1Hz=~clk1Hz; end end module
Hope that helps.
Regards,
Debu ๐ -
elavarasanThanks Debu but can you give some ideas in gate level modelling
-
debu@elavarasan: If you synthesize the above verilog code, you will get the gate level diagram. It will be a little different for each FPGA and synthesis tool.
Regards,
Debu ๐ -
elavarasanThank you Mr.Devesh.๐
You are reading an archived discussion.
Related Posts
Hi there,
I have an idea that some company is interested in...
And I think I have developed the product quite well but I need somebody who could finally check...
I ;-)AM HAVING A HARDWARE CONTEST DURING SEPTEMBER. I want to do a hardware involving microcontroller.please suggest a suitable plausible idea for the same as soon as possible.
HERE I ATTACHED THE 2 DIGIT BCD COUNTER TESTBENCH .CAN SOMEONE HELP ME SEE WHETHER GOT ERROR OR NOT ?
[B][FONT=Times New Roman]module tb_two_digits_bcd_counter[/FONT]
[FONT=Times New Roman]#(parameter REPEAT_TIME = 100)[/FONT]...
anyone have idea where can i get high torque high speed motors? or maybe just high torque. ๐
Hi,
I am doing the project of water preheater for a thermal oil heater under my factory.
Could anyone kindly share with me how to calculate the heat transfer area...