]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/commitdiff
Bug fix: Added data propagation to MISO on falling edge of SE signal.
authorMartin Prudek <prudemar@fel.cvut.cz>
Sat, 2 May 2015 11:52:16 +0000 (13:52 +0200)
committerMartin Prudek <prudemar@fel.cvut.cz>
Sat, 2 May 2015 11:52:16 +0000 (13:52 +0200)
pmsm-control/rpi_pmsm_control.vhdl

index 749c585642b2b42ea452bde778a914c755a60caa..2127d2e93554f937e4c39db52f6a437f94a7aa38 100644 (file)
@@ -388,6 +388,7 @@ begin
                        dat_reg(80 downto 72) <=adc_m_count(8 downto 0);        --count of measurments
                        --data order schould be: ch2 downto ch0 downto ch1
                        dat_reg(71 downto 0) <= adc_channels(71 downto 0);      --current mesurments
+                       spi_miso <= position(31);               --prepare the first bit on SE activation
                        adc_reset<='0'; --remove reset flag, and wait on its rising edge
                elsif (ce0_old = "01") then --rising edge of SS, we should read the data
                        adc_reset<='1';