]> jspc29.x-matter.uni-frankfurt.de Git - trb3sc.git/commitdiff
Strange behavior of LCD entity solved
authorJan Michel <j.michel@gsi.de>
Wed, 6 Jul 2016 12:53:10 +0000 (14:53 +0200)
committerJan Michel <j.michel@gsi.de>
Wed, 6 Jul 2016 12:53:10 +0000 (14:53 +0200)
code/lcd.vhd

index 371562fcff7ffc1e60225ff772750404c424fe68..d98cfeb4fc6ed870326cfac7c4369b7920f00906 100644 (file)
@@ -390,9 +390,9 @@ fsm : process begin
     when GETNIBBLE =>
       state <= GETHEX;
       if nibble < x"0a" then
-        nibble <= nibble + x"30";
+        nibble <= nibble + x"30" - x"20";
       else
-        nibble <= nibble + x"57";
+        nibble <= nibble + x"57" - x"20";
       end if;
       
     when GETHEX =>
@@ -400,7 +400,7 @@ fsm : process begin
       cnt     <= 0;
       colcnt  <= 0;
       bytecnt <= 0;
-      fontpos <= (to_integer(nibble) - 32)*20;
+      fontpos <= (to_integer(nibble))*20;
     
     when SETWINDOW =>
       if cnt < 11 then