• 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) » C5000 Ultra Low Power DSP » C5000 Ultra Low Power DSP Forum » .ivec opcodes ?
Share
C5000 Ultra Low Power DSP
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Top 6 Wiki Links
  • C5000 Main Wiki
  • C5000 Software
  • C5515 Boot-Image Programmer
  • CSL (including CSL 3.00)
  • C5000 Connected Audio Framework
  • Porting C5000 Teaching ROM to C5535 eZdsp
  • Forums

    .ivec opcodes ?

    This question is answered
    Jon Halland
    Posted by Jon Halland
    on May 03 2012 19:54 PM
    Prodigy180 points

    Hi

    When using the directives:

    _RST:    .ivec    _Reset, USE_RETA  ; Reset / Software Interrupt #0

    NMI:     .ivec    nmi_isr        ; Nonmaskable Interrupt

    The following opcodes are generated

    CA<P24 address>  : a branch or call with 24-bit address encoded

    5E80_5F80            : NOP_16 || NOP_16 

    EA<P24 address>  : a branch or call with 24-bit address encoded

    5E80_5F80            : NOP_16 || NOP_16

    These interrupt vector branch or call instructions do not seem to be ducumented in the C55x v3x instruction guides.

    Where can I find info on them ?

    Cheers

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Archaeologist
      Posted by Archaeologist
      on May 04 2012 09:18 AM
      Mastermind40900 points

      Assembler directives are documented in the Assembly Language Tools User's Guide.  You can find the C55x Assembly Language Tools User's Guide at http://processors.wiki.ti.com/index.php/TI_Compiler_Information#Compiler_Manuals.  See SPRU280I page 113

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jon Halland
      Posted by Jon Halland
      on May 06 2012 18:45 PM
      Prodigy180 points

      Hi Archaeologist,

      First, thanks for the reply. I am aware of the .ivec description in spru280i but it does not cover a description of the instructions inserted by the .ivec directive.

      And when not able to find a description or look-up the op codes in swpu067e the question arise:

      What do these instructions actually do ?

      I ask the question because I never use more memory than necessary (it will always be needed later). Having to branch to another location just to implement a catch

      of a spurious interrupt that could be implemented with a simple goto placed in the interrupt vector table, seem wastefull.

      The instruction in the reset location of the interrupt vector set the stack configuration (swpu073e p44), is there other functionality build in here ?

      The instructions placed at other interrupt locations have a diffrent opcode from an unconditional branch (6A<P24>), is there other functionality build in here ?

      Cheers

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Archaeologist
      Posted by Archaeologist
      on May 07 2012 09:37 AM
      Mastermind40900 points

      SWPU067 is the C55x v3.x CPU Mnemonic Instruction Set Reference Guide. You won't find a description of .ivec there; although the bits in an interrupt vector resemble a branch instruction, the entries are not instructions. You need to look in SWPU073, the C55x v3.x CPU Reference Guide. SWPU073E section 4.2 "Stack Configurations" discusses the stack encoding in .ivec. SWPU073E section 5.2 "Interrupt Vectors and Priorities" paragraph 2 discusses the encoding of the vector table.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jon Halland
      Posted by Jon Halland
      on May 07 2012 19:20 PM
      Prodigy180 points

      Hi Archaeologist

      From my previous post you can see that I'am avare of the stack configuration described in swpu073e.

      The .ivec directive DO place instructions in the interrupt vectortable. If not, how would the CPU be able to branch to an isr ?

      Thats why the <P24> address is encoded there. Try placing a normal branch <P24> in the interrupt vector table and execute it.

      Questions still remain:

      What do these undocumented instructions actually do ?

      Cheers

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Archaeologist
      Posted by Archaeologist
      on May 08 2012 15:27 PM
      Verified Answer
      Verified by Jon Halland
      Mastermind40900 points

      They look like instructions, but they are not really. 

      The first 8 bits of the RESET slot of the interrupt vector are interpreted differently than normal code.  Those bits cannot be used elsewhere.

      On early C5500 prototypes, which had only one stack mode, they really were instructions, but when the new stack modes were added, the hardware was changed to treat those bits as data.  For backward compatibility, the 8-bit bit-pattern for the opcode for 24-bit absolute branch was defined to be one particular stack mode, and a couple of other 8-bit bit-patterns were chosen to represent the other two stack modes.

      If you must think of them as undocumented instructions, they mean "set the stack mode to mode X and branch to this 24-bit address."  Note that this meaning is only valid in the RESET slot of the interrupt vector.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jon Halland
      Posted by Jon Halland
      on May 10 2012 21:44 PM
      Prodigy180 points

      Hi Archaeologist

      Thank you for your answers!  

      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