forked from tanchou/Verilog
Enhance DHT11 interface and update measurement delay in top module
This commit is contained in:
@@ -60,9 +60,11 @@ initial begin
|
||||
leds = 6'b000000;
|
||||
end
|
||||
|
||||
// 2s counter
|
||||
localparam MESURE_DELAY = 5; // 5 seconds delay for measurement
|
||||
|
||||
// xs counter
|
||||
always_ff @(posedge clk) begin
|
||||
if (delay_counter == CLK_FREQ * 2 - 1) begin
|
||||
if (delay_counter == CLK_FREQ * MESURE_DELAY - 1) begin
|
||||
delay_counter <= 0;
|
||||
strobe2s <= 1;
|
||||
end else begin
|
||||
|
||||
Reference in New Issue
Block a user