• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » C6000 Single Core DSP » C64x Single Core DSP Forum » DMA Configuration
Share
C6000 Single Core DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS

DMA Configuration

DMA Configuration

This question is not answered
Pedro Lopes
Posted by Pedro Lopes
on Dec 22 2008 11:09 AM
Prodigy100 points

Hi. I'm a student, member of Brazil-IP Network (for more information: http://www.brazilip.org.br/ ) and i am developing a DMA based on TMS320C620x/C670x DMA Controller. More specifically, TMS3206202B/C6203(B)/C6204/C6205 are the target.

We(my team, DMA Team) have doubts about DMA configuration by CPU. The materials we have researched don't explain this process.

We know that CPU comunnicates with DMA through peripheral bus wich have 32bits wide. Thus, CPU have to send one configuration per time: First PRICTL, after SECCTL, after SRC, and so on.

Our doubt are:

-How CPU indicates the DMA channel that it  want to configure?

-How many cycles are needed to configure? My friend suggested 4 cycles per register: First PRICTL, after 4 cycles SECCTL, after 4 cycles SRC, and so on, is this right?

Our material is: SPRU577A

Thanks.

 

 

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • BrandonAzbell
    Posted by BrandonAzbell
    on Dec 22 2008 12:58 PM
    Guru54790 points

    Pedro Lopes

    -How CPU indicates the DMA channel that it  want to configure?

    Table 2-5 of SPRU577 on page 2-32 (or 69 of PDF file) indicates a set of registers for each DMA channel.  Each DMA channel as a PRICTL, SECCTL, SRC, DST and XFRCNT register.

    DMA Channel 0 : PRICTL0, SECCTL0, SRC0, DST0, XFRCNT0
    DMA Channel 1 : PRICTL1, SECCTL1, SRC1, DST1, XFRCNT1
    DMA Channel 2 : PRICTL2, SECCTL2, SRC2, DST2, XFRCNT2
    DMA Channel 2 : PRICTL3, SECCTL3, SRC3, DST3, XFRCNT3

    You need to reference the specific DSP device datasheet to determine the unique address for each of the above 20 registers.  For example the TMS320C6202B datasheet has a section for peripheral registers and in Table 4, the addresses of the DMA registers are defined.

     

    Pedro Lopes

    -How many cycles are needed to configure? My friend suggested 4 cycles per register: First PRICTL, after 4 cycles SECCTL, after 4 cycles SRC, and so on, is this right?

    Table 3-1 of the TMS320C620x/C670x DSP Program & Data Memory Controller/DMA Controller Ref.Guide (SPRU577) indicates the number of cycles required to access peripheral registers, of which the DMA controller registers are a part of.
    For a single access, 5 cycles.

     

    Brandon

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pedro Lopes
    Posted by Pedro Lopes
    on Jan 13 2009 09:35 AM
    Prodigy100 points

    And about synchronization,

    When any action of the selected event is completed, STAT is cleared(Automated Event Clering).

    In this case, to clear the STAT is necessary to set CLR? Or CLR  is set when we want to clear STAT manually?

    Only CPU set CLR?

    Thanks.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Camila Nunes
    Posted by Camila Nunes
    on Jan 14 2009 09:35 AM
    Prodigy135 points

    ow the CPU TMSC6202B configures the DMA?

    I think in this way:
    The CPU sends the address of the register that in the DMA and a write request. After this the CPU sends the data to the PRICTL. This routine continues until all the register is set. Is this???

    Please help me...
    Thanks again!
    :*

    DMA C6202B
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • BrandonAzbell
    Posted by BrandonAzbell
    on Jan 16 2009 21:32 PM
    Guru54790 points

    Camila Nunes

    ow the CPU TMSC6202B configures the DMA?

    I think in this way:
    The CPU sends the address of the register that in the DMA and a write request. After this the CPU sends the data to the PRICTL. This routine continues until all the register is set. Is this???

    Section 2.3 of the TMS320C620x/C670x DSP DMA Controller Reference Guide (SPRU577) discusses the Register access protocol to setup a DMA transfer.

    Brandon

    DMA C6202B
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • BrandonAzbell
    Posted by BrandonAzbell
    on Jan 16 2009 21:52 PM
    Guru54790 points

    Pedro Lopes

    And about synchronization,

    When any action of the selected event is completed, STAT is cleared(Automated Event Clering).

    In this case, to clear the STAT is necessary to set CLR? Or CLR  is set when we want to clear STAT manually?

    Only CPU set CLR?

    Section 2.4.1 of the TMS320C620x/C670x DSP DMA Controller Reference Guide (SPRU577) discusses how to use the WSYNCSTAT, WSYNCCLR, RSYNCSTAT and RSYNCCLR bits.  Writing zeros to these bits does not have any effect.  Writing a 1 to the (R/W)SYNCSTAT has the effect of manually setting the synchronization event.  To clear the (R/W)SYNCSTAT bit, you need to set the (R/W)SYNCCLR bit.  The CPU would do this.

    Brandon

    DMA C6202B
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

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.

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 of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content 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.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use