14.17.3 Peripherals Window
The Peripherals window displays the contents of the SFRs that relate to the device peripherals. To view only a few SFRs, you may prefer to use a Watch 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 SFRs are updated.
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, such as prescalers.
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.
Peripherals Window Display
You may specify how memory is displayed in the window by selecting from the Format drop-down box on the bottom of the window.
When using a hardware tool for debug, some registers may show an “R” for each nibble of data to represent a reserved resource.
- Individual - View all peripheral registers together.
- Groups - View peripheral registers in functional groups.
Data is displayed for both formats in the following columns.
- Address – SFR physical hexadecimal address.
- Virtual – SFR virtual hexadecimal address as defined by the Bus Matrix.
- Name – Symbolic name for the SFR.
- Radix Information – Hex, Decimal,
Binary, Char.
You may add radix information to the display by right clicking on the column header bar. Hex is shown in 4-byte blocks.
Peripherals Window Icons
Icons are located on the left side of the window.
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. |
Peripherals Window Menu
Right click in the memory window data area to pop up the menu as in the table below.
Item | Description |
---|---|
Find | Find text specified using the Find dialog. |
Output To File | Write the displayed window contents to a text file using the Output to File dialog. |
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. |