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.

EALLOW and EDIS

This is just a question out of interest.

I don't understand the function of the EALLOW and EDIS commands in the C2000 TMS320 series. I found in the documentation: 

Several control registers are protected from spurious CPU writes by the EALLOW protection mechanism.

However, what is meant with spurious CPU writes? And what prevents me from putting EALLOW in the beginning of the code? Is there something else, other than my code, which can change these registers?

thanks in advance,

Mark 

  • Hi Mark,

    EALLOW protected registers are mainly registers that affect he basic operation of the device. I think they are protected in this way so that they are not affected by data being written to the wrong place, which would happen easily with, for example, boundary exceeding, incorrect pointers, stack overflow or corruption, etc.

    You could set EALLOW at the start of your code and remove this protection, however I think possibly this would not work for code inside ISR's as I *think* the register that stores the EALLOW status is pushed to the stack when the interrupt is raised.

    T