always@(posedge clk)beginif(key)beginSSEL<=0;endelse if(cnt==8)//发完8个数据后片选拉高SSEL<=1;end
always@(posedge SCK)beginif(cnt==8||SSEL==1)begincnt<=0;endelse if(!SSEL)begincnt<=cnt+1;//MOSI<=send_date[7]endend
可能是上拉电阻太大,换小一点的上拉电阻试一下