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.

Looking for usbstk5505.h's references...

I'm trying to understand how the aic3204 sample works but I don't konw where I can find the reference document for the usbstk5505.h...can anybody help me?Thanks

  • Hi Andrea,

    On my system, the header file usbstk5505.h is located at C:\Program Files\Texas Instruments\ccsv4\emulation\boards\usbstk5505\include. The directory usbstk5505 has all the files associated withe the usbstk5505. The manufacturer, Spectrum Digital, has a great deal of information on the usbstk5505.

    Lee

  • Hi Andrea,

    If you are interested in the functions referenced by the prototypes, they are located on my system at C:\Program Files\Texas Instruments\ccsv4\emulation\boards\usbstk5505\lib\bsl. They are usbstk5505.c, usbstk5505_gpio.c, usbstk5505_i2c.c, and usbstk5505_led.c.

    Lee

  • One thing to note when stepping through the process that the program uses to setup and output the 1kHz audio signal is that in the

     

    AIC3204 Tone_Headphone.c

     

    There is an error in the documentation at Line 40

     

    It shows

     

    AIC3204_rset( 0, 0 );      // Select page 1

     

    However the code is really selecting page 0 as the next page for the read/write register commands.

     

    Essentially the program uses AIC3204_rset function to talk over the I2C bus.

     

    The first AIC3204_rset calls

     

    AIC3204_rset( 0, 0 );

     

    This tells the AIC3204 that the next AIC3204_rset function is setting registers in Page 0. There are 38 pages of 8-bit registers with up to 128 registers in each page. The first register in all of the pages is the page select register.

     

    Example if you wanted to set Register 16 in Page 1 after a reset or writing to another page you would use

     

    AIC3204_rset( 0, 1 );             // Select Page 1

    AIC3204_rset(16, 0x3a)         // Unmute HPL , -6dB gain

     

     

     

    Another Item to note is that the code switches between decimal and hex values for calling the register numbers.

     

    I found that almost all of the info I needed to follow along with the CODEC setup was in

     

    http://focus.ti.com/lit/ds/slos602a/slos602a.pdf