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