Hall sensors output added to spi frame.
authorMartin Prudek <prudemar@fel.cvut.cz>
Sat, 4 Apr 2015 17:21:32 +0000 (19:21 +0200)
committerMartin Prudek <prudemar@fel.cvut.cz>
Sat, 4 Apr 2015 17:21:32 +0000 (19:21 +0200)
pmsm-control/rpi_mc_simple_dc.vhdl

index 6b5dd4b..93c20f9 100644 (file)
@@ -222,7 +222,8 @@ begin
                --sestupna hrana SS, pripravime data pro prenos-prenos zacina nebo zacatek dalsiho ramce
                if ((ce0_old = "10") ) then 
                        dat_reg(95 downto 64) <= position(31 downto 0); --pozice
-                       dat_reg(63 downto 0) <= (others => '1'); --zbytek zatim nuly
+                       dat_reg(63 downto 61) <= hal_in(1 to 3); --halovy sondy
+                       dat_reg(60 downto 0) <= (others => '1'); --zbytek zatim nuly
 
                end if;
        end process;