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.

how to control read-write operation at a time through EMIF port in TMS320c6713



Dear Friends,

           I am working on TMS320c6713. I haved already used EMIF port as output to interface external device.

It is working successfully and get the expected result with this below sample code ..

#define ADDRESS     0xA0000000
#define GBLCTL 0x01800000
#define CE2 0x01800010

extern int *gblctl = (int *)GBLCTL;
extern int *ce2 = (int *)CE2;
extern int *output11=(int *)ADDRESS;

main()
{

    *ce2=0x22A28A22;

    *output11= 0x08000000;

}

Now i want to read operation with this same EMIF port and also control  the read-write  opeartion with same port at a sequential execution programming time, how i do that ...

If anybody know the solution & sample code, kindly help me.

Your kind reply will be highly appreciated. ..

Thanks ..

Gopal

  • Gopal,

    Gopal Sarkar said:
    Now i want to read operation with this same EMIF port and also control  the read-write  opeartion with same port at a sequential execution programming time, how i do that ...

    I do not understand what you are asking to do. Do you mean that you want to read and write this EMIF port using code like this?

    int A, B;

    A = *ce2;
    *ce2 = A+1;
    B = *ce2;
    *ce2 = B;

    Otherwise, please explain more about what you want to do.

    Regards,
    RandyP

  • Hi RandyP

                     Thanks for your kind response. Basically i mean that in EMIF port, have 32 data pins for input & output.

    I want to use some of data pins as a input & same of as a output at sequential execution time for single program code.

    Basically, these data pins are required to control as a read/write operation as per my program necessary.

    I have seen one of Ti forum that AWE pin are used to control pins for read/write operation. But how it is done, i don't know. Hope that this explanation will help you to understand my actual problem.

    If  not cleared, feel free to ask me.

    Regards

    Gopal

  • Gopal,

    We are not communicating, yet. The best I can do is to offer the EMIF Reference Guide as the document you need to read and understand to be able to use the EMIF properly. It fully explains how the EMIF signals are used. If your requirement for these pins is different from what is described in the EMIF Reference Guide, your requirement may not be covered by this peripheral interface.

    You will also find benefit from searching this forum and the TI Wiki Pages and TI.com for "c6713 training".

    Regards,
    RandyP