does any one has code example that shows use of SPI Master and Slave mode using transmitte and receive fifo, uDMA and SPI interrupt handler? If yes can you provide me the post or application note etc. to accomplish this. Thanks.
Please see attached examples that use SSI interrupt handler. To test this, you can just add these files to an existing CCS project like:C:\StellarisWare\boards\dk-lm3s9b96\udma_demoThe uDMA project above uses DMA interrupt handler using UART, so if you wanted to use DMA interrupt handler, you can just use the exisiting stellarisware example (uDMA_demo) and add SPI initialization there.2260.udma_SSI_demo_MSTR.c3632.udma_SSI_demo_SLAVE.c
These files are tested but provided "AS-IS", so please conduct some testing on your own to make sure this works on your boards by using a simple setup with two DK-LM3S9B96 boards.
For SSI RX with uDMA, is it possible to filter out the dummy bytes that was used for SSI TX with uDMA? Is disabling the RX part using SSIDMAEnable() or uDMAChannelEnable() API call enough? It looks like I have to clean out the SSI RX FIFO when I'm transmitting or just manage where the start of valid RX data after uDMA transfers
I am not able to download these 2 files. Can you please send them to my mail id (email@example.com) or re-post it again please. Thanks in advance..
danny57964For SSI RX with uDMA, is it possible to filter out the dummy bytes that was used for SSI TX with uDMA?
I would assume the answer is no, since the hardware has no way of knowing which transmissions or receptions are "real" and which are "dummy".
Can i have your full spi working code my mail id is firstname.lastname@example.org
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.