diff --git a/projects/daq2/common/daq2_spi.v b/projects/daq2/common/daq2_spi.v index c2e2bb4b9..b04c2581c 100644 --- a/projects/daq2/common/daq2_spi.v +++ b/projects/daq2/common/daq2_spi.v @@ -81,7 +81,7 @@ module daq2_spi ( spi_count <= 6'd0; spi_rd_wr_n <= 1'd0; end else begin - spi_count <= spi_count + 1'b1; + spi_count <= (spi_count < 6'h17) ? spi_count + 1'b1 : spi_count; if (spi_count == 6'd0) begin spi_rd_wr_n <= spi_mosi; end