This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Where are these defined? Which document.

Other Parts Discussed in Thread: TMS320VC5505

I have searched ti long and hard and can't find librarys or macros.

Where can Infind these documents?

SYS_EXBUSSEL |= 0x0020;

// Select A20/GPIO26 as GPIO26

USBSTK5505_GPIO_init();

USBSTK5505_GPIO_setDirection(GPIO26, GPIO_OUT);

USBSTK5505_GPIO_setOutput( GPIO26, 1 );

 

// Take AIC3201 chip out of reset

USBSTK5505_I2C_init( );

 

// Initialize I2C

 

 

/* Codec tests */

Martin Potts

  • Martin,

    What problem are you having?  I'm not exactly sure what you are looking for.  Can you give more details?

    If you are looking for the BSL library it is located in the \lib folder under the \usbstk5505 installation folder.

    Regards.

  • Thanks for the reply

    I assume usbstk5505_ic2 init() initialzes i2c but what are the details.

    Where are the details of these "macros?" , what other macros are available.

    In the software for the other ez stick boards ie "eZ430-RF2500" there is a document to to document

    the softwear. Example sprufp0 has cpu word addresses and acronyms, are there other documents for usbstk5505_ic2_init ();  

  • Martin,

    I don't think there are any detailed documentation of the SW except for the comments in the code.  If you haven't found it, the code is located in the \bsl folder.  I will contact the C5505 IC Team to see if anything is planned.

    Regards.

  • Hi Martin,

    The entire code that we have provided with the USB Stick is meant to be illustrative examples.  The explanations are embedded within the code.  The structure we have followed is to have an explanation of a given function, followed by that function in the code.  You have a good suggestion to have a separate document also to provide the explanation.  Thanks for the suggestions.  We will certainly follow up on it.

    Here is an example of how the explanations are provided in the code.  As i2c_init is rather trivial, I used i2c_write instead.  This example is from the file usbstk5505_i2c.c

    Here is the explanation of the function:

    /* ------------------------------------------------------------------------ *
     *                                                                          *
     *  _I2C_write( i2c_addr, data, len )                                       *
     *                                                                          *
     *      I2C write in Master mode                                            *
     *                                                                          *
     *      i2c_addr    <- I2C slave address                                    *
     *      data        <- I2C data ptr                                         *
     *      len         <- # of bytes to write                                  *
     *                                                                          *
     * ------------------------------------------------------------------------ */

    This is followed by the following function itself:

    Int16 USBSTK5505_I2C_write( Uint16 i2c_addr, Uint8* data, Uint16 len )
    {
        Int32 timeout, i;

      //I2C_IER = 0x0000;
            I2C_CNT = len;                    // Set length
            I2C_SAR = i2c_addr;               // Set I2C slave address
            I2C_MDR = MDR_STT                 // Set for Master Write
                      | MDR_TRX
                      | MDR_MST
                      | MDR_IRS
                      | MDR_FREE;

            USBSTK5505_wait(10);              // Short delay

            for ( i = 0 ; i < len ; i++ )
            {
                I2C_DXR = data[i];            // Write

                timeout = i2c_timeout;
                do
                {
                    if ( timeout-- < 0  )
                    {
                        USBSTK5505_I2C_reset( );
                        return -1;
                    }
                } while ( ( I2C_STR & STR_XRDY ) == 0 );// Wait for Tx Ready
            }

            I2C_MDR |= MDR_STP;             // Generate STOP

      USBSTK5505_waitusec(100);

            return 0;

    }

    Best regards, Vishal

     

  • Here are comments in spcs503a at the bottom of page 2.

    Are you saying this library is not available? 

     

     

    TMS320VC5505
    Fixed-Point Digital Signal Processor
    SPRS503A–JUNE 2009–REVISED JULY 2009

    The VC5505 is also supported by the C55x DSP Library which features more than 50
    foundational software kernels (FIR filters, IIR filters, FFTs, and various math functions) as well as chip
    support libraries.

     

    Thanks

    Martin

  • Hi Martin,

    The functions that we discussed in the previous posts, whose names begin with USBSTK5505_ are provided specifically for the USB Stick as their names imply.  SPRS503A is referring to more general DSP Library (DSPLIB) and Chip Support Library (CSL) functions that you can use with C5505 anywhere.  Just FYI, here is the link for DSPLIB:

    http://focus.ti.com/docs/toolsw/folders/print/sprc100.html

    C5505 CSL is close to being released.  We are working through our approval process now before releasing it.

    I hope this helps.  If you have any other questions please let me know.

    Best regards, Vishal