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.

Compiler/TMS320F28377S: TSET instruction does not seem to work.

Part Number: TMS320F28377S

Tool/software: TI C/C++ Compiler

I tried to test the TSET instruction using the following code. I do not see VarA being changed at all. Can someone please help?

Thanks,

Dhammika

-----------------

Uint16 VarA, VarB;

int main(void)
{
    asm("    NOP               ");
    asm("    TSET   @_VarA,#4  ");
    asm("    SB     $10,NTC    ");
    asm("    TSET   @_VarB,#6  ");
    asm("    SB     $20,UNC    ");
    asm("$10:                  ");
    asm("    TCLR   @_VarB,#6  ");
    asm("    NOP               ");
    asm("$20:                  ");

    return 0;
}