How do I view the contents of sfr's in the UV2 debugger?
Yes. For "standard" SFRs, you can just type the name like "R0" or "DPTR;" For "extended" SFRs, you may have to resort to looking up absolute hardware addresses (that's what I had to do for the Triscend)
So, I think it must work by writing the adress of the specific SFR. Just by looking on the datasheet of the component.
From the Peripherals menu, you can select the on-chip peripheral whose SFRs you want to watch. This opens a dialog box showing those SFRs. Jon
might not work for SFRs outside the "standard" 8051 set; ie, extra SFRs provided by specific 8051 extensions/variations. See the thread "uVision2 Debug Fn: Access to Extended Registers" http://www.keil.com/forum/msgpage.asp?MsgID=1185
In the Watch window, select "Watch #1" or "Watch #2" and press F2. Now, just type the name of the sfr.
View all questions in Keil forum