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.

DSK6713 HPI expansion connector

Other Parts Discussed in Thread: CCSTUDIO

Dear Ti members,

I am using DSK 6713. I want to use HPI port for digital output. I want to send data at certain time interval irrespective of the address signal, handshaking signals,interrupt signal. In a word I want to use it as a GPIO as paralel output of digital data at a certain interval, which will be controled by program.

I have gone through the the example loacted at C:\CCStudio_v3.1\examples\dsk6713\rtdx, but did not understand whether it is for HPI port or for something else.

If is for HPI port then I am not understanding how to modify the code for the above memtioned purpose. I am giving the code of that example.

I expect your kind help.

CODE:

/*************************************************************************

* FILENAME: $RCSfile: t2h.c,v $

* VERSION : $Revision: 1.1 $

* DATE    : $Date: 2000/11/03 19:12:05 $

* Copyright (c) 1997-2000 Texas Instruments Incorporated

*

* Target-To-Host Test:

*____________________________________________________________________

* - Sends 100 integers, one at a time via RTDX_write().

* - Uses ONE output channel.

*

* - Tests Data transmission from target to host at the User layer.

* - This is the module to be run on the TARGET.

* - This program is meant to be used with the RTDX Diagnostics

*   Control's Target-To-Host test option.

*************************************************************************/

#include <stdio.h>              /* fprintf(), puts()                    */

#include <stdlib.h>             /* abort()                              */

#include <rtdx.h>               /* RTDX                                 */

#include "target.h"             /* TARGET_INITIALIZE()                  */

 

/* Declare and initialize an output channel called "ochan"              */

RTDX_CreateOutputChannel(ochan);

 

#define NUMBER_MESSAGES 100

 

void main( void )

{

    unsigned int data;

 

    /* Target Specific Initialization                                   */

    TARGET_INITIALIZE();

 

    /* Enable the output channel, "ochan"                               */

    RTDX_enableOutput(&ochan);

 

    printf("Sending %d Messages to Host...\n", NUMBER_MESSAGES);

    for ( data = 0; data < NUMBER_MESSAGES; data++ ) 

{

        /* Send the data to the host                                    */

        if ( !RTDX_write( &ochan, &data, sizeof(data) ) ) 

{

            fprintf(stderr, "\nError: RTDX_write() failed!\n");

            abort();

        }

 

        /* Wait for Target-to-Host transfer to complete                 */

        while ( RTDX_writing != NULL ) 

{

#if RTDX_POLLING_IMPLEMENTATION

            /* If polling implementation of RTDX...                     */

            /* ...call RTDX_Poll to do data transfer                    */

            RTDX_Poll();

#endif

        }

 

        /* Display what was sent in the stdout window                   */

        fprintf(stdout, "Value %i was sent to the host\n", data);

    }

 

    /* Disable the output channel, "ochan"                              */

    RTDX_disableOutput(&ochan);

 

    puts("\nTest Completed!"); 

}

Thanking you

Regards

Biprangshu Saha

 

  • RTDX (Real Time Data eXchange) is not implemented over the HPI interface, but rather over the JTAG interface to your emulator/debugger hardware and Code Composer Studio integrated development environment.

    Furthermore, the HPI interface is controlled from an external device not the DSP directly.  This interface is meant for an external host (microcontroller, microprocessor) to have access to the C6713's memory space for processor to processor communications.

    However, some of the HPI pins can be multiplexed to be GPIOs and then controlled by the C6713's GPIO module.  It sounds like that is what you need here.

    The Chip Support Library would provide an example of how to do this.  You can find the link to this software by going to the Product Folder of the TMS320C6713 and looking in the Software and Tools section.

  • Dear Brandon ,

    Thanx a lot. 

     I have already those example here C:\CCStudio_v3.1\examples\dsk6713\csl . The examples under this folder are edma, mcasp, mcbsp,timer.  Plz suggest me which example should I follow.  I think it should be "mcasp" . It will be very helpful if u can provide me any documentation or link to know about mcasp, bcoz I know nothing about this.

    Actually I want to transmit/output discrete analog data & dont want to use reconstruction filter , but I found in the AIC23 codec that there is an reconstruction filter after DAC which made me insist on searching for digital output, followed by my own  DAC circuit without reconstruction filter. For this purpose I am trying to use HPI to serve as GPIO for parallel digital output. If you have some better option rather than using HPI to serve my purpose then plz suggest me.

    Thanking You

    Regards

    Biprangshu Saha

  •  Dear Ti members,

    I request you to please respond. I am not able to move ahead. Please help me out. 

  • Dear Brandon,

    Plz reply, I need your kind help. 

    I have found in     functional block and CPU (DSP core) diagram   of  TMS3206713 that there is a separate GPIO module, But not able understand how to use that GPIO module in DSK6713.

    Going Back to our previous discussion that is HPI to serve as GPIO , I have found in the Physical Specifications of J1 of DSK 6713 in the document 6713_DSK_techref.pdf, that there are some pins named as GP0[0], GP0[2] etc . Can u tell me are these pins for GPIO module of the DSP. If so how to use those GPIO pins. Is there any switch configuration to use GPIO & HPI diffently like switch4 to control McASP & HPI . On more query on pin diagram of J1 I found only 12 GP0 pins & GP0[4], GP0[5], GP0[6], GP0[7] are missing.

    I am looking for ur kind suggestion. I need nothing but a 16 bit parallel digital output & a example program.

    

    

     

    

  • What device are you wanting to connect to outside of the C6713?  What is its interface?  This will help direct the discussion.

  • I want to inteface a 2 8bit DAC which accepts parallel digital input.

  • The digital interface of this 8-bit DAC is a clock and 8-bit wide data bus?  Do you have a part number with a public datasheet?

  • Has this been resolved?  I have a similar requirement for a digital output to drive a switching amp, and am not sure of the most appropriate method to do this on the C6713 DSK.  Advice and/or an example program are much appreciated.

    V/R, Frank H.

  • Most parallel access to D/A or A/D is done on the external memory bus, for example in CE3 address space.  Interrupts usually use the external interrupt pins, which on the C6713 (at least) double as GPIO pins.  The Digital Starter Kits are set up for that usage, via expansion "daughter cards" attached to the busses on 80-pin connectors.  TI's 5-6K Interface Board is a convenient interface for mounting an A/D and D/A "evaluation module" and a couple of DAP signal buffers.  The HPI bus, as was said previously, is meant for communication with an external microprocessor, and would not be the best choice for ordinary A/D or D/A access.