From cd65199ea63b268c72fe25012c43c032e35c4b3f Mon Sep 17 00:00:00 2001 From: sokolovstanislav Date: Mon, 10 Jun 2024 18:25:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B4=D0=B5=D1=81=D1=8C=20=D0=B2=D1=8B?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=BE=20=D1=81=D0=B5=D0=BC=D1=8C?= =?UTF-8?q?=20=D0=B1=D0=B8=D1=82=20=D0=B2=20=D1=80=D0=B5=D0=B3=D0=B8=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=B5=20SB=5FCMD=20=D0=B4=D0=BB=D1=8F=20=D0=BE?= =?UTF-8?q?=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=83=D0=BF=D0=B5=D1=80=D0=B8=D0=BE=D0=B4?= =?UTF-8?q?=D0=B0=20=D1=81=D0=B8=D0=BD=D1=85=D1=80=D0=BE=D1=81=D0=B8=D0=B3?= =?UTF-8?q?=D0=BD=D0=B0=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainController/RAM9X8_SerialBusMaster.vhd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MainController/RAM9X8_SerialBusMaster.vhd b/MainController/RAM9X8_SerialBusMaster.vhd index 673d80c..72adc1b 100644 --- a/MainController/RAM9X8_SerialBusMaster.vhd +++ b/MainController/RAM9X8_SerialBusMaster.vhd @@ -111,7 +111,6 @@ begin process(clk) is variable count : integer range 0 to 255 := 0; variable halfPeriod : integer range 0 to 255 := 50; - variable countPause : integer range 0 to 255 := 0; variable pause : integer range 0 to 255 := 200; variable state : integer range 0 to 1 := 1; variable bitCnt : integer range -1 to 31 := 0; @@ -134,7 +133,8 @@ begin dataCRC(23 downto 16) <= cmdBuf(7 downto 0); dataToTransmit <= dataBufIn; dataCRC(15 downto 0) <= dataBufIn; - controlBuf(15 downto 0) <= (others => '0'); + controlBuf(15 downto 0) <= (others => '0'); + halfPeriod := conv_integer(cmdBuf(14 downto 8)); CommunicationState <= TransmitAddress; end if; when Timeout =>