forked from tanchou/Verilog
Code FPGA fonctionnel
This commit is contained in:
@@ -120,10 +120,8 @@ module dht11_interface #(
|
||||
timer <= timer + 1;
|
||||
|
||||
if (sig_in == 1 ) begin
|
||||
|
||||
timer <= 0;
|
||||
state <= RESPONSE_HIGH;
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -132,8 +130,8 @@ module dht11_interface #(
|
||||
o_state <= state;
|
||||
if (sig_in == 0) begin
|
||||
|
||||
timer <= 0;
|
||||
state <= READ_BITS_LOW;
|
||||
timer <= 0;
|
||||
state <= READ_BITS_LOW;
|
||||
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user