Здесь выделено семь бит в регистре SB_CMD для определения полупериода синхросигнала
This commit is contained in:
parent
2b055193af
commit
cd65199ea6
@ -111,7 +111,6 @@ begin
|
|||||||
process(clk) is
|
process(clk) is
|
||||||
variable count : integer range 0 to 255 := 0;
|
variable count : integer range 0 to 255 := 0;
|
||||||
variable halfPeriod : integer range 0 to 255 := 50;
|
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 pause : integer range 0 to 255 := 200;
|
||||||
variable state : integer range 0 to 1 := 1;
|
variable state : integer range 0 to 1 := 1;
|
||||||
variable bitCnt : integer range -1 to 31 := 0;
|
variable bitCnt : integer range -1 to 31 := 0;
|
||||||
@ -135,6 +134,7 @@ begin
|
|||||||
dataToTransmit <= dataBufIn;
|
dataToTransmit <= dataBufIn;
|
||||||
dataCRC(15 downto 0) <= 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;
|
CommunicationState <= TransmitAddress;
|
||||||
end if;
|
end if;
|
||||||
when Timeout =>
|
when Timeout =>
|
||||||
|
Loading…
Reference in New Issue
Block a user