• 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 » Embedded Software » BIOS » BIOS forum » DSPBIOS timer + edma + spi configuration
Share
BIOS
  • Forum
  • Announcements
Options
  • Subscribe via RSS

DSPBIOS timer + edma + spi configuration

DSPBIOS timer + edma + spi configuration

This question is answered
serdar
Posted by serdar
on May 08 2012 02:48 AM
Prodigy210 points

Hi all,

I've been working on ADC reading part of a project. My ADC is ADS8332 and DSP is L138. My environment is DSP/BIOS version 5.41.11.38, BIOS PSP v 1.30.00.05 and CCSv5.1. L138 SPI0 pins and CS pin are directly connected to ADC. Convst and EOC pins are connected to L138's GPIO pins.

The structure I need to implement is:

--------------------------------------             ----------------------
                          Timer  ->    CONVST Pin      ->  Conversion
                                                                                         |
     SPI   +   EDMA       <-        EOC Pin      <-  ---------

              OMAP-L138             |             |     ADS8332
--------------------------------------             ----------------------

I need to configure BIOS to drive a GPIO pin by timer and trigger EDMA to read via SPI by GPIO pin. I am currently using BIOSPSP SPI driver. Driver uses EDMA but I couldn't connect it to a GPIO.
I consider some ways to implement this.  
- Configuring BIOS if it is possible (the easiest way)
- Developing a new BIOS driver.
- Develop a configuration fxns with CSL. 

Please share your experience. Thanks
Serdar
 
timer EDMA SPI
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • serdar
    Posted by serdar
    on May 08 2012 09:22 AM
    Prodigy210 points

    It seems that it is not possible to control CONVST pin (GP5_6) by timer. I have checked the technical manual and I read that "The timer can generate an output pulse (Figure 31-11) or clock (Figure 31-12) signals on the TM64P_OUT12 pin.". CONVST is not connected to TM64Pn_OUT12.

    How can I control CONVST pin? Any idea, comment ?

    Serdar

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Raghavendra Maddikery
    Posted by Raghavendra Maddikery
    on May 11 2012 09:57 AM
    Verified Answer
    Verified by David Friedland
    Expert5500 points

    Hi Serder,

    I guess I can help you with the BIOS PSP you are using. 

    Firstly, It is preferable to you use BIOS PSP version 01.30.01 which is a GA release. You can download it from here. Also refer the top level User guides and the Release notes of the BIOSPSP package before using it.

    For the Timer configuration and programming, you can use the csl placed in - pspdrivers_xx_xx_xx\packages\ti\pspiom\cslr

    For the GPIO, you can refer to the sample application for programming the pins and registering the interrupts(ISR). And in the ISR, you can simply read/write via SPI.

    A facility to activate/deactivate the chipselect using a GPIO pin is already provided in the SPI driver. Please refer to 'dataparam' structure in the "BIOSPSP_spi.chm" file. Or you can also refer to "Spi_localControlDataConfig" function in the spi driver. "Spi_GPIO_CS" macro is used to enable/disable use of GPIO pin as chipselect..

    serdar uludag
    trigger EDMA to read via SPI by GPIO pin

    Driver uses EDMA but I couldn't connect it to a GPIO.

    Somehow, I am unable to follow these statements. Could you please elaborate.

    Best Regards,

    Raghavendra

    Does this help with your question? If not, please send back more information. If it answers your question, please click the  Verify Answer  button below.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • serdar
    Posted by serdar
    on May 14 2012 07:17 AM
    Prodigy210 points

    Raghavendra, thanks for your reply,

    I studied more on tools and capabilities. I decided to write code with CSL to control hardware (timers, spi etc.). I'll check EDMA_LLD's examples. I plan to use it for programming EDMA. I understand that BIOS PSP spi driver is not suitable for me.

    There are lots of tool to program C6000 and this may cause confusion. My short experience about C6000 programming is (probably you discovered this so long ago), use BIOS to task management, use BIOS PSP drivers if they suits your application, if not, use CSL. That is all.

    Regards,

    Serdar

    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