Other Parts Discussed in Thread: CONTROLSUITE
Hi all,
I am using SPI for data transmission, and I have some problem reading SPIFIFO example project in ControlSuite. The main source file in this project is: Example_2833xSpi_FFDLB.c. My question is:
1. How is SPITXFIFOISR and SPIRXFIFOISR triggered? Is SPIRXFIFOISR triggered right after the completion of data reception? Does SPITXINT stands for the completion of data transmission, that CPU will go deal with SPITXFIFOISR after one data transmission?
2. When does SPI data reception and transmission start? Is it running continuously, and what's the time interval? I know that the SPI data reception starts when SPISTEA give the enable signal to the sender. Is this process stopped during RX/TX ISR? After completion of this ISR, when will data transmission or reception restart?
3. Is there any way I can fix data reception and transmission rate(not baud rate of data)? I tried to program SPI(not using SPI interrupt) in internal interrupt generated by CPUTimer0 of which time interval is fixed, but it doesn't work. The problem now is that in the CPUTimer0ISR, SPIINT.FLAG which indicate the completion of data reception will never set high, and the program will get stuck in the while loop iteration like shown below. Is it feasible for me to do so? Can I realize it using SPI interrupt?
Any help is appreciated!
Thanks,
Hezi

