Hi,
■ Request
I want to transfer to LPM by writing a value according to the desired LPM level to the SR register.
■ Inquiry content
Use the breakpoint and stop at line 77 of the C source below.
After that, when the program is restarted and the SR register is written, PUC occurs.
Please tell me how to resolve this error.
(Supplementary explanation)
The write instruction of the SR register described in the assembly code is a 20-bit arithmetic instruction (BISX.W).
From the following description, it seems that the 20-bit write-protection constraint of the SR register is not observed.
CCS version is ver 7.4.0.
Thanks,
Koki