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.

TI ADS8342: need code examples

Other Parts Discussed in Thread: ADS8342, CCSTUDIO

I have TI ADS8342 EVM board Rev. 2. I am trying to port data to TMS320C6713 DSK Rev D with 225MHz clock using 5-6K Rev B board. I am using CCStudio v3.1. I have tried to follow the Example for C6711 but still I could not make it work. I have checked the CLK is OK and Interrupt also comming but for some reason DSP is not reading any data.
Could any one please help me with any example code?

Thank you very much.
 
Shekhar

  • Hi Shekhar,

    I don't have any code examples written specifically for the ADS8342 connected to the TMS320C6713DSK.  The addressing scheme and external interrupts are a little different between the C6713 and C6711 DSKs though so that is probably part of the problem you are facing.   Can you tell me if the C6713 is responding to the interrupt?  How do you have the jumper set on J-13 of the 5-6K Interface Card? This jumper controls the application of the INT output from the ADS8342 to either EXTINT 4 or EXTINT 5 on the DSP.

  • Hi Tom,

    Thank you very much for your help. I have checked that jumper J13 of 5-6K board covered 1-2 INTb. The interrupt goes to pin 48 of DSK Peripheral expansion pin and it is EXTINT5. I have configured the CDB file for get the interrupt pulse. I have set a break point and found that it goes to the interrupt servive routine once and read 1 data then stay in "if(adc _ready)" line and adc_ready goes to 0 forever.  

    while(1)
     {
       if (adc_ready)
       {
         soft_cnvt(ch);
      adc_ready = 0;
       }
     }

    I am using your example code in slaa176 for C6711. I have updated the CDB file for C7613 and modified the interrupr rout to EXTINT5. The jumper W1 of 5-6K board is closed. Could you please chech if the ADC address needs to be changed for C6713?

    Many thanks,

    Shekhar

  • Hi Shekar,

    The data bus address shifted a little between the hardware for the 6711 and 6713DSKs - try modifying ADS8342.h with these settings:

    #if (W1_Closed)  //W1 is the jumper on the 5-6K Interface that sets the address range
     #define ADC_Base    0xa0000020
     #define _CH0        0xa0000020            /* Channel 0    */
     #define _CH1        0xa0000024            /* Channel 1    */
     #define _CH2        0xa0000028            /* Channel 2    */
     #define _CH3        0xa000002C            /* Channel 3    */

    #else
     #define ADC_Base    0xa0020000
     #define _CH0        0xa0020000            /* Channel 0    */
     #define _CH1        0xa0024000            /* Channel 1    */
     #define _CH2        0xa0028000            /* Channel 2    */
     #define _CH3        0xa002C000            /* Channel 3    */

    You may need to verify the jumper setting on /CS as well - that would be W11.  If you run a loop that simply trys to 'read' or 'write' to the ADS8342, you should see one of the pins on the left side of that jumper block toggling synchronously with the read or write access.