URL
https://opencores.org/ocsvn/hd44780_driver/hd44780_driver/trunk
[/] [hd44780_driver/] [trunk/] [example_driver.vhd] - Diff between revs 2 and 4
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 4 |
Line 105... |
Line 105... |
signal goto30 : std_logic;
|
signal goto30 : std_logic;
|
signal busy : std_logic;
|
signal busy : std_logic;
|
|
|
type state_type is (reset, write_char, write_char_wait, update, update_linecount,
|
type state_type is (reset, write_char, write_char_wait, update, update_linecount,
|
update_linecount_wait, write_char_1, write_char_1_wait,
|
update_linecount_wait, write_char_1, write_char_1_wait,
|
write_char_2, write_char_2_wait, write_char_3, write_char_4, hold);
|
write_char_2, write_char_2_wait, write_char_3, write_char_4, hold,
|
|
hold2);
|
signal state : state_type;
|
signal state : state_type;
|
|
|
-- A string of 16 characters
|
-- A string of 16 characters
|
subtype string16_type is string(1 to 16);
|
subtype string16_type is string(1 to 16);
|
-- An array of 4 strings of 16 characters.
|
-- An array of 4 strings of 16 characters.
|
Line 242... |
Line 243... |
state <= write_char;
|
state <= write_char;
|
end if;
|
end if;
|
|
|
-- The "hohouwer"
|
-- The "hohouwer"
|
when hold =>
|
when hold =>
|
state <= hold;
|
--state <= hold;
|
|
state <= hold2;
|
|
home <= '1';
|
|
when hold2 =>
|
|
state <= reset;
|
|
|
when others =>
|
when others =>
|
null;
|
null;
|
|
|
end case;
|
end case;
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.