Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > SPI to control register data transfer using DMA

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



SPI to control register data transfer using DMA
Moderator:
ANCY

Post Reply
Follow this topic



SPI to control register data transfer using DMA

PDES posted on 23 Nov 2011 7:29 AM PST
Member
10 Forum Posts


Could I use DMA for read a 16 bit data from a master SPI and transfer the data on two 8 bit control registers?
Since the SPI works at very low frequency (1MHz), I need to update both registers only at the end of the reading procedure.
It is enough only one DMA channel or the procedure requires two different transfers ( SPI->RAM, RAM->control register), thus two DMA channels?

Thanks in advance
 




Re: SPI to control register data transfer using DMA

kmmankad posted on 23 Nov 2011 09:54 AM PST
Top Contributor
268 Forum Posts

I think there was(is? but I couldnt find it.Maybe one of the employees can direct you to it) appnote on SPI with DMA.I'm not entirely sure,but I faintly recall there was one.



Re: SPI to control register data transfer using DMA

Gautam Das posted on 24 Nov 2011 12:34 AM PST
Cypress Employee
742 Forum Posts

Hi PDES, kmmankad

 

The code example on SPI Transfer using DMA is attached. This should give you a fair understanding on the usage of DMA with SPI.



Re: SPI to control register data transfer using DMA

Gautam Das posted on 24 Nov 2011 12:35 AM PST
Cypress Employee
742 Forum Posts

The associated project is attached.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS 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. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20