pc-com: dumpen bei zeichen 'A' -- geht mit minicom als auch mit cat
authorBernhard Urban <lewurm@gmail.com>
Fri, 28 May 2010 10:53:08 +0000 (12:53 +0200)
committerBernhard Urban <lewurm@gmail.com>
Fri, 28 May 2010 16:51:25 +0000 (18:51 +0200)
src/pc_communication.vhd

index 290f1fd1914104add23882c7ca13fcd662324270..88a5cf88d9ea0d6f351fb476036319daefa1ff8e 100644 (file)
@@ -80,8 +80,9 @@ begin
                state_next <= state;
                case state is
                        when IDLE =>
-                               --if (rx_new = '1' and rx_data = x"0a") or btn_a = '0' then
-                               if (rx_new = '1' or btn_a = '0') and tx_done_i = '0' then
+                               zeile_next <= 0;
+                               spalte_next <= 1;
+                               if ((rx_new = '1' and rx_data = x"41") or btn_a = '0') and tx_done_i = '0' then
                                        state_next <= PRINT_NO1;
                                end if;
 
@@ -198,8 +199,6 @@ begin
                                end if;
                                if zeile = HZEILE_MAX then
                                        state_next <= IDLE;
-                                       zeile_next <= 0;
-                                       spalte_next <= 1;
                                end if;
                end case;
        end process;