SFR Setup window
What do you want to do?
Learn about:
Learn how to:
Get reference information about the SFR Setup window, see below the line.

The SFR Setup window is available from the Project menu.

This window displays ....
To quickly find an SFR, drag a text or hexadecimal number string and drop in this window. If what you drop starts with a 0 (zero), the Address column is searched, otherwise the Name column is searched.
Any custom-defined SFRs are added to a dedicated register group called Custom, which you can choose to display in the Registers window. Your custom-defined SFRs are saved in projectCustomSFR.sfr. This file is automatically loaded in the IDE when you start C-SPY with a project whose name matches the prefix of the filename of the sfr file.
You can only add or modify SFRs when the C-SPY debugger is not running.
Requirements
Can be used with all C-SPY debugger drivers and debug probes.
Display area
This area contains these columns:
- Status
A character that signals the status of the SFR, which can be one of:
blank, a factory-defined SFR.
C, a factory-defined SFR that has been modified.
+, a custom-defined SFR.
?, an SFR that is ignored for some reason. An SFR can be ignored when a factory-defined SFR has been modified, but the SFR is no longer available, or it is located somewhere else or with a different size. Typically, this might happen if you change to another device.
- Name
A unique name of the SFR.
- Address
The memory address of the SFR.
- Zone
Selects a memory zone, see C-SPY memory zones.
- Size
The size of the register, which can be any of 8, 16, 32, or 64.
- Access
The access type of the register, which can be one of Read/Write, Read only, Write only, or None.
You can click a name or an address to change the value. The hexadecimal 0x prefix for the address can be omitted, the value you enter will still be interpreted as hexadecimal. For example, if you enter 4567, you will get 0x4567.
You can click a column header to sort the SFRs according to the column property.
Color coding used in the display area:
Green, which indicates that the corresponding value has changed
Red, which indicates an ignored SFR.
Context menu
This context menu is available:

These commands are available:
- Add
Displays the Edit SFR dialog box where you can add a new SFR, see Edit SFR dialog box.
- Edit
Displays the Edit SFR dialog box where you can edit an SFR, see Edit SFR dialog box.
- Delete
Deletes an SFR. This command only works on custom-defined SFRs.
- 8|16|32|64 bits
Selects display format for the selected SFR, which can be 8, 16, 32, or 64 bits. Note that the display format can only be changed for custom-defined SFRs.
- Read/Write|Read only|Write only|None
Selects the access type of the selected SFR, which can be Read/Write, Read only, Write only, or None. Note that for factory-defined SFRs, the default access type is indicated.