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.

memory accessing cycles

Other Parts Discussed in Thread: TMS320C6657

hi sirs,

I try to reduce cycles of memory accessing of TMS320C6657.

I got 56 cycles of accessing uPP configuration memory which I wandered is it cost too much?

If yes, could you teach me how could I reduce cycles?

Part of test code is below.


int t1 = 0;
int t2 = 0;
int diff = 0;

typedef struct
{
    unsigned int FREE: 1;
    unsigned int SOFT: 1;
    unsigned int RTEMU: 1;
    unsigned int EN: 1;
    unsigned int SWRST: 1;
    unsigned int r6_5: 2;
    unsigned int DB: 1;
    unsigned int r31_8: 24;
} UPPCR_BIT;

main
{
    TSCL = 0;

    UPPCR_BIT *uppcr = (UPPCR_BIT *)0x02580004;
    
     t1 = TSCL;

    // Ensure uPP not enabled yet.
    uppcr->EN=0;

     t2 = TSCL;
     diff = t2-t1;
}

Thank you in advance

bai