TI E2E Community
Stellaris® ARM® Microcontrollers
Stellaris® ARM® LM3S Microcontrollers Forum
SPI example of Master and Slave mode using transmitte and receive fifo, uDMA and SPI interrupt handler.
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 (firstname.lastname@example.org) 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 email@example.com
Can you please email me you spi slave example files?
Hi friend, I'm work with problem that I need you SPI SLAVE WITH UDMA. Can you send me this file (3632.udma_SSI_demo_SLAVE.c) ? I try download and page didnt give me permission.
My email Chnmartins@gmail.com
Thanks too much
As some of you I can't download the master and slave with udma exemple.
Could someone send me theses exemple at firstname.lastname@example.org?
Endless, repeated requests for such, "personal, email attention" forces extra, repeated effort upon the provider.
Appears neither fun nor efficient.
Might an updated (working) "link" to this oft requested data be provided?
I would like to receive this files too. In my application I use interrupt to receive SPI, but with UDMA will be too much better
If you could either upload the examples again, or send them to me at email@example.com
Its been a while since I've looked at this, so please use this "AS-IS" or modify per your use case...
I have reviewed these codes and am having a problem finding where the SSI0IntHandler is called or registered. Do you include this in the interrupt vector, and if so, where? I'm going to make the base assumption that it's put in the SSI pointer and not the uDMA pointer position... since the documentation seems to contraindicate putting it in the uDMA position.
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.