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.

MSP430F5244: PUC occurs when writing to SR with BISX.W

Part Number: MSP430F5244

Hi,

There is a problem with the code for transitioning to LPM.

PUC occurs when writing to SR with BISX.W.

 

In the UG, there is the following sentence.

 - NOTE: Bit manipulations of the SR should be done by the following instructions: MOV, BIS, and BIC.  (page.192)

 

From this sentence, I interpreted it as follows.

"Write to SR using BIS. I cannot write to other commands like BISX and so on."

Is this interpretation of mine correct?

 

If so, why is it prohibited to write to SR using BISX.W? 

The following is the content when C language is converted to assembly.

Thanks

Koki

**Attention** This is a public forum