14.15.5 I/O Memory (SFRs) Window

The I/O Memory window displays the contents of the Special Function Registers (SFRs) for the selected AT processor. The format provided by this window is more useful for viewing the SFRs than the normal SRAM Data Memory Window, since each SFR name is included and several number formats are presented. To view only a few SFRs, you might want to use a Watches Window, which may help with speed issues when using hardware debug tools (i.e., faster window update rate).

Whenever a break occurs, the contents of the Special Function Registers are updated.

When using a hardware tool for debug, some registers may show an R for each nibble of data to represent a reserved resource.

Visible Registers

If a data memory register is not physically implemented on a device, it may not appear in the SFR list. Some tools, such as simulators, may allow you to see registers that do not exist on the actual device.

Single Stepping

If Freeze Peripherals On Halt is selected, the I/O port bits in the SFR or the Watches windows will not update when single stepping. The pin will be modified, but the read request to retrieve the new value is blocked by the freeze and cannot be updated until the next step or run command.

Figure 14-36. I/O Memory Window with Content

I/O Memory Window Displays

You may specify how memory is displayed in the window by selecting from the Format drop-down box on the bottom of the window.

Individual

In this display, SFRs are listed by address.

Data is displayed in the following columns.

  • Address – SFR hexadecimal address.
  • Name – Symbolic name for the SFR.
  • Radix Information – Hex, Decimal, Binary, Char.

    Radix information is displayed in these four columns. Hex is shown in 1-byte blocks.

Peripheral

In this display, SFRs are grouped according to their related device peripherals.

Data is displayed in the following columns:

  • Address – SFR hexadecimal address.
  • Name – Name of peripheral or symbolic name for the SFR.
  • Radix Information – Hex, Decimal, Binary, Char.

    Radix information is displayed in these four columns. Hex is shown in 1-byte blocks.

Click the Filter Peripheral icon to view the SFRs for only the peripherals selected.

CPU Registers

In this display, CPU registers (PC and working registers Rn) are listed by address.

Data is displayed in the following columns:

  • Address – SFR hexadecimal address.
  • Name – Name of peripheral or symbolic name for the SFR.
  • Radix Information – Hex, Decimal, Binary, Char.

    Radix information is displayed in these four columns. Hex is shown in 1-byte blocks.

I/O Memory Window Icons

Icons are located on the left side of the window.

Table 14-29. I/O Memory Window Icons
Icon Icon Text Function
Find Specify a string to find in the window. Select to match whole word or case.
Find Next Find next instance of string from Find.
Find Previous Find previous instance of string from Find.
Go To Go to specified line number or address.
Filter Peripherals

Peripheral Format Only

Filter by peripherals available in view.

Click icon to open the Select dialog. Select peripherals using Shift-click (range) or Ctrl-click (individually).

Filter Select All Peripherals.

Peripheral Format Only

Filter Select All Peripherals.

I/O Memory Window Menu

Right click in the memory window data area to pop up this menu.

Table 14-30. I/O Memory Window Context Menu
Item Description
Go To Go to the address/function specified using the Go To dialog.
Find Find text specified using the Find dialog.
Show Register Tooltips Show or hide tooltips for a register. Hover over the register name for pop-up information.
Output To File Write the displayed window contents to a text file using the Output to File dialog.
Print Print the contents of this window using the Print dialog.
Note: If you have a large memory device, the number of pages printed can become very large. A suggestion is to print the window contents to a file (Print dialog, General tab, “Print to File” check box) and then select which pages from the file you need to print.
Adjust Table Columns Adjust the columns automatically.