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.

TMS570LC4357: Checking privilege mode of mcu

Part Number: TMS570LC4357

Tool/software:

Hi

I am reading and clearing the status registers of ESM. Eg  ESM Status Register 1 (ESMSR1)

I would like to clear the channel bits after reading to check if the error happens again. Writing is in privilege mode only. How do I know if the mcu is in privilege mode? I read somewhere that there is a bit in the control register that indicates if the mcu is in privilege mode or user mode. Please let me know which bit , ie which register and which bit. If mcu is in user mode, how to set it back to privilege mode? 

Looking forward to your reply. Thank you