From 0f963bbd68c35a3c550a82cc23590f46e667ebdf Mon Sep 17 00:00:00 2001 From: Martin Prudek Date: Sat, 2 May 2015 13:52:16 +0200 Subject: [PATCH] Bug fix: Added data propagation to MISO on falling edge of SE signal. --- pmsm-control/rpi_pmsm_control.vhdl | 1 + 1 file changed, 1 insertion(+) diff --git a/pmsm-control/rpi_pmsm_control.vhdl b/pmsm-control/rpi_pmsm_control.vhdl index 749c585..2127d2e 100644 --- a/pmsm-control/rpi_pmsm_control.vhdl +++ b/pmsm-control/rpi_pmsm_control.vhdl @@ -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'; -- 2.39.2