Здесь выделено семь бит в регистре SB_CMD для определения полупериода синхросигнала

This commit is contained in:
sokolovstanislav 2024-06-10 18:25:59 +03:00
parent 2b055193af
commit cd65199ea6

View File

@ -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 =>