lamorak
Newbie level 3
Hello,
I am working on a project for class where our robot follows a line on the ground. when the inputs H&C = "00" the robot is supposed to increment its counter by 1 and display the number on the seven segment display. However my counter is not working and i dont have a clue how to make it work.
This is the counter code i am using.
Any help would be greatly appreciated!
I am working on a project for class where our robot follows a line on the ground. when the inputs H&C = "00" the robot is supposed to increment its counter by 1 and display the number on the seven segment display. However my counter is not working and i dont have a clue how to make it work.
Code:
process
begin
if (RST='0') then
ABUS <= "0000";
elsif (HC="00" and CLK='1') then
ABUS <= ABUS + 1;
end if;
end process;
with ABUS select
SEG7 <= "11111110000001" WHEN B"0000",
"11111111001111" WHEN B"0001",
"11111110010010" WHEN B"0010",
This is the counter code i am using.
Any help would be greatly appreciated!