• 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 » Microcontrollers » Hercules™ Safety Microcontrollers » Hercules™ Safety Microcontrollers Forum » MibSPI
Share
Hercules™ Safety Microcontrollers
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

MibSPI

This question has suggested answer(s)
ajay reddy1
Posted by ajay reddy1
on May 03 2012 09:16 AM
Prodigy200 points

Hi,

On my board for SPI1 two slaves are connected (HI3593 and HI6121). Here my slaves support 8-bit data format.  From my master (TMS570) if am sending 5 bytes (1 opcode + 4 bytes) to the slave, will the CS of the controller holds LOW till the transmission (for all 5 bytes) complete? Here "CSHOLD" bit  (28th bit) of Multi-buffer RAM transmit data register says "CSHOLD bit is supported in compatibility mode of MibSPI".

And I configured "CHARLEN[4:0]" as 8-bits in SPIFMT register. I want to know does CSHOLD bit usefull in MibSPI or not? And If TG0 (transfer group0) is having 32 bytes of data can I transmit all 32 bytes of data in oneshot without CS going high between byte to byte (when CHARLEN[4:0] is configured for 8 bit data length).

 

Thanks & Regards.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Chuck Davenport
    Posted by Chuck Davenport
    on May 03 2012 10:13 AM
    Suggested Answer
    Expert6445 points

    Hello Ajay,

    For the MibSPI in master mode, the CS will remain asserted when the CSHOLD bit is set in the first transmission and subsequent transmitted words indicate the same CS regardless of the state of the CSHOLD bit in the subsequent messages. When this is done, any T2CDELAY or C2TDELAY settings will be ignored but WDELAY will still be honored. CSHOLD works as described in both compatibility and buffered modes.

    Note:

    T2CDELAY = chip select hold after a transaction

    C2TDELAY = chip select setup time delay prior to a transaction

    WDELAY = delay between transactions

    If this answers your question, please indicate so by validating the answer.

    Thanks and Regards,

    Chuck Davenport

    Thanks and Regards,

    Chuck Davenport


    If this response answers your question, please indicate it by verifying the suggested answer when provided.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jean-Marc Mifsud
    Posted by Jean-Marc Mifsud
    on May 04 2012 13:23 PM
    Expert8985 points

    Ajay,

    I will try to reply to the second part of your question.

    The buffer in MIBSPI mode are 32bits. That does not mean that the transmission will always be 32bits.
    It depends on the way the format for a given transfer group is programmed.

    In your case, if the format is 8 bits, that the transmission will be 8 bits.
    The data you have to write in the MIBSPI transmit buffers will have to be right aligned. (bit 0 to bit 7)
    If you have defined n buffers for a transfer group, and are using CS, the CS will stay asserted low for the transmission of the n buffer as explained by Chuck.

    Best Regards,

    Jean-Marc

    Best regards,

    Jean-Marc

    Application Engineer


    If my reply answers your question please click on the green button "Verify Answer".

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ajay reddy1
    Posted by ajay reddy1
    on May 06 2012 23:29 PM
    Prodigy200 points

    Hi Chuck,

    If my understanding is right, In Multi-Buffer mode CS will stay LOW till complete Transfer Group is transferred, if CSHOL bit is SET. But as per TRM CSHOLD description says, CSHOLD bit is supproted in master mode only in compatibility-mode of MibSPI.

    Thanks & Regards,

    Ajay.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chuck Davenport
    Posted by Chuck Davenport
    on May 07 2012 08:31 AM
    Expert6445 points

    Hello Ajay,

    Can you provide the part number of the specific TMS570 device you are using and also the TI literature number (SPNUxxx)  you are referencing?

     

    Thanks,

    Chuck D.

    Thanks and Regards,

    Chuck Davenport


    If this response answers your question, please indicate it by verifying the suggested answer when provided.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jean-Marc Mifsud
    Posted by Jean-Marc Mifsud
    on May 30 2012 09:08 AM
    Expert8985 points

    Ajay,

    Can you provide the requested information?
    This thread is open for more than 2 weeks and we need to close it if your question has been answered.

    Thanks and Regards,

    Jean-Marc

    Best regards,

    Jean-Marc

    Application Engineer


    If my reply answers your question please click on the green button "Verify Answer".

    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