mirror of
https://github.com/WangXuan95/FpOC.git
synced 2025-01-17 23:22:52 +08:00
fix adc_ad7928.sv, make MISO sampled at SCK's falling edge
This commit is contained in:
parent
8d1eba9415
commit
84188c6653
@ -121,7 +121,7 @@ always @ (posedge clk or negedge rstn)
|
||||
end else begin
|
||||
o_en_adc <= 1'b0;
|
||||
if(cnt>=WAIT_CNT+8'd2 && cnt<WAIT_CNT+8'd32) begin
|
||||
if(~spi_sck)
|
||||
if(spi_sck)
|
||||
data_in_latch <= {data_in_latch[10:0], spi_miso};
|
||||
end else if(cnt==WAIT_CNT+8'd32) begin
|
||||
if(idx=='0) begin
|
||||
|
Loading…
x
Reference in New Issue
Block a user