MCU  FPGA调试 MCU(dsPIC33) SPI调试a. MOSI output/Data change at rising edge, and slave sample at falling edgevoidInitSPI2(void){// since sending only, no need for INTS.FPGA_CS_N_OUT_LED16_En;//FPGA_CS# selectFPGA_CS_N_LED16_En1;//FPGA_CS# highIFS2bits.SPI2IF0;//Clear the interrupt flagIFS2bits.SPI2EIF0;//0-Dis Int, 1--EnSPI2CON1bits.DISSCK0;// 0-enable clkSPI2CON1bits.DISSDO0;// 0-enable SDOSPI2CON1bits.MODE160;// 1--16bits transfer.0--8 bitSPI2CON1bits.SMP0;//0--sample during data; 1--sample end of data//Data change at rising edge, and slave sample at falling edgeSPI2CON1bits.CKE1;//1--Data shift out at clk from work to idleSPI2CON1bits.CKP1;// 1--CLK is 1 at idle state and clk is 0 at workSPI2CON1bits.SSEN0;//0--Not use CS pinSPI2CON1bits.MSTEN1;//1--Master modeSPI2CON1bits.SPRE0x06;//b110--Sub clock 2:1 presaleSPI2CON1bits.PPRE0x10;//b10--main clock 4:1 prescale b01-16:1SPI2BUF0x0000;// SPI1CON1 0x057A; // 0000 0000 0111 1111SPI2STATbits.SPIROV0;// Clear Overflow bitSPI2STATbits.SPIEN1;// Enable the peripheralIEC2bits.SPI2IE0;//0-- Dis SPI INT, 1-EnFPGA_CS_N_LED16_En0;//Enable FPGA CS#}**现在问题怎么MCU读取FPGA数据 Via MISO**FPGA调试a: FPGA收到的数据是正确的 via MOSI 通过FPGA Reveal analyzer抓取的数据。b. 但是发送出的数据是错误的 via miso发送8’h44, 现在FPGA代码是错误的