always @( posedge newcome )
begin
case(began)
3'd0:
begin
began <= 3'd1 ;
dout <= 12'b0000_1111_0000_0000_0000_0000 ;//软件完全复位命令
end
3'd1:
begin
began <= 3'd2 ;
dout <= 24'b0000_0100_0000_0010_0000_1000 ;//写入控制寄存器命令
end
3'd2:
begin
began <= 3'd3 ;
dout <= 24'b0000_0100_1100_0010_0000_1000 ;//写入和更新DAC寄存器命令,后面接16位数据
end
endcase
end