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/TMS320F28335: TMS320F28335

Part Number: TMS320F28335


Tool/software: TI C/C++ Compiler

Hi 

I am using the below code and How to clear the register value for below code before going to execute .

ECanaShadow.CANGIF1.all = ECanaRegs.CANGIF1.all;
    ECanaShadow.CANGIF1.bit.GMIF1 = 1;
    ECanaRegs.CANGIF1.all = ECanaShadow.CANGIF1.all;

Thanks !

Regards,

Ram

  • Ram,
    Sorry, your question is not clear. Are you asking how to avoid clearing bits inadvertently, especially bits which are cleared by writing a 1? If so, you could initialize the shadow register to 0.

    On a different note, please choose meaningful thread titles. This would make future searches easier. Your posts have the part number as the thread title.