This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do you change SFR in debugger?

Has anyone successfully changed a peripheral SFR value
during a debug session with uVision3? I am developing an
application on a Silicon Labs C8051F046 and need to change a
comparator control register during testing (CPT1CN). I have
the "Comparators" window enabled from the "Peripherals"
menu.

The manual says I can enter a command line directive:

CPT1CN=0x75

which the debugger accepts, but nothing changes up in the
"Comparators" window. CPT1CN is located on SFR page 2, and
I have seen hints in the past that if you don't place a 2 in
the SFRPAGE SFR before executing such a command, the
debugger will access the wrong register, but this time, it
doesn't work, even when SFRPAGE has a 2 in it.

Ideas, comments, other approaches?

============================================================
Gary Lynch           |  To send mail, no$spam in domain name
lynchg@no$spam.com   |  must be changed to stacoenergy.

0