Part Number: TMS320F2812
In my application ,F2812 works as a SPI slave whose baudrate is 500k。Every 4ms a master talks with it once by exchanging 6 words.FIFO of F2812's SPI is enabled to save cpu's load.The reception fifo is checked every 1 ms,all reception fifo are read out after successful reception and transmission fifo is reset and reloaded with 1~6。word "0" is written to SPIDAT as the first transmission data,it just works fine as 1~5 will be transmitted afterwards when the cpu runs freely.When the code is loaded with a usb emulator and executed afterwards,data transmitted out are 2~6.It seems that data are transmitted from the second FIFO when the code is runned via usb emulator.What would be my problem?How to fix it?
Thanks for your time!