This panel is used to display the contents of the SFR and change the SFR values (see "2.10.3 Display/change the SFR").
This panel appears only when connected to the debug tool.
The SFR that cause the microcontroller to operate when it is read is read-protected and therefore cannot be read ("?" is displayed in the value). |
This panel can be zoomed in and out by in the tool bar, or by moving the mouse wheel forward or backward while holding down the [Ctrl] key. |
When the separator line of each area in this panel is double-clicked, the width of the area changes to the shortest possible size that can display the contents of the area. |
This section describes the following.
This area is used to search for the SFR name.
A hidden SFR name being classified with a category can be searched (the category is opened and the SFR is selected). |
After typing character strings to search, to press the [Enter] key is the same function as clicking the button, and to press the [Shift] + [Enter] key is the same function as clicking the button. |
The types of SFR are classified as categories (folders), and a list of the respective SFR name is displayed.
The meanings of the icons are as follows:
Indicates that the SFR name belonging to this category is displayed. When you double-click on the icon, or click on the "-" mark, the category is closed and the SFR name is hidden. Note that no categories exist by default. Perform Tree editing if you need a category. |
|
Indicates that the SFR name belonging to this category is hidden. When you double-click on the icon, or click on the "+" mark, the category is opened and the SFR name is displayed. Note that no categories exist by default. Perform Tree editing if you need a category. |
|
The category names are sorted in character code order by clicking on the header part of this area (the SFR names in the category are also similarly sorted). |
This area is provided with the following functions.
The each SFR can be categorized (by folders) and displayed in the tree view.
To create a category, Click the button on the toolbar or select [Create Category] from the context menu after moving the caret to a SFR name to create a category, and then input a desired name from the keyboard (up to 1024 characters).
To delete a category, select the category then click the button on the toolbar or select [Delete] from the context menu. However, the categories that can be deleted are only the empty categories.
To rename the created category, select the category then do either one of the following.
By directly dragging and dropping the SFR in the created category, each SFR is displayed in the categorized tree view.
Also, the display order of the categories and the SFR names (upper or lower position) can be changed easily by drag and drop operation.
To clear and restore an edited category, click on the button on the toolbar or select [Clear customization] from the context menu.
SFRs are categorized according to their initial states in CS+ V8.07.00 and later versions. When customization is cleared, SFRs are classified in their default categories. |
Variable names of C language, CPU registers, SFR, and assembler symbols can be registered in the Watch panel as watch-expressions.
See "2.10.6.1 Register a watch-expression" for details on how to operate it.
When you have registered a watch-expression with a category as the object, all of SFR belonging to that category are registered as watch-expressions. |
The value of SFR is displayed and changed.
The radix of a data value can be selected by the button on the toolbar or the context menu item. In addition, a display format adding the value in hexadecimal number constantly can also be selected as well.
The meanings of the marks and colors displayed as SFR values are as follows (character colors and background colors depend on the configuration in the [General - Font and Color] category of the Option dialog box):
An SFR for which the microcontroller ends up being activated by a read operation is shown. |
The timing for acquiring the values differs in the case of a 1 byte/2 bytes SFR and that of 1 bit SFRs that have been allocated to a 1 byte/2 bytes SFR. Owing to this, there are also cases where the values differ even if the value of the same SFR is displayed. |
The values are sorted in ascending order of the numerical values by clicking on the header part of this area. |
This area is provided with the following functions.
To edit the SFR value, select the value to edit, then change the value directly from the keyboard after clicking again on it (press the [Esc] key to cancel the edit mode).
After you edit the value of the SFR, it is written to the register of the debug tool by pressing the [Enter] key, or moving the focus to outside the edit region.
See "2.10.3.4 Modify the SFR contents" for details on the method for changing the SFR value.
The Save As dialog box can be opened by selecting the [File] menu >> [Save SFR Data As...], and all the contents of the SFR can be saved in a text file (*.txt) or CSV file (*.csv).
See "2.10.3.6 Save the SFR contents" for details on the method for saving the contents of the SFR.
The type information of each SFR is displayed in the following formats.
"The case of "SFR [R/W 1.8] (1 byte)" |
"The case of "SFR [R/W 1] (1 bit)" |
The type information is sorted in the character code order by clicking on the header part of this area. |
The address that each SFR is mapped is displayed (hexadecimal number notation fixing).
However, in the case of the bit register, it is displayed by providing a bit offset value like the following examples.
The case of "0xFF40.4" |
The addresses are sorted in ascending order of numerical values by clicking on the header part of this area. |
[[File] menu (SFR panel-dedicated items)]
The following items are exclusive for the [File] menu in the SFR panel (other items are common to all the panels).
Note that all these items are disabled during execution of a program.
Overwrites the contents of this panel to the previously saved text file (*.txt)/CSV file (*.csv) (see "(b) Saving the contents of the SFR"). Note that when the file has never been saved or the file is write disabled, the same operation is applied as the selection in [Save SFR Data As...]. |
|
Opens the Save As dialog box to newly save the contents of this panel to the specified text file (*.txt)/CSV file (*.csv) (see "(b) Saving the contents of the SFR"). |
[[Edit] menu (SFR panel-dedicated items)]
The following items are exclusive for [Edit] menu in the SFR panel (all other items are disabled).
Deletes the selected character string(s) and copies them to the clipboard (it is not possible to cut SFRs/categories). |
|
Copies the contents of the selected range to the clipboard as character string(s). If the SFR(s)/category(s) are selected, copies them to the clipboard. The copied item can be pasted to the Watch panel. |
|
If texts are in editing, pastes the contents of the clipboard to the caret position (it is not possible to paste SFRs/categories). |
|
Deletes the selected character string(s). If an empty category is in a select state, its category is deleted (it is not possible to delete SFRs). |
|
If texts are in editing, selects all the character strings. If texts are not in editing, selects all the SFRs/categories. |
|
Moves the focus to the text box in the Search area. |
|
Opens the Go to the Location dialog box to move the caret to the specified SFR. |
Registers the selected SFR or category to the Watch panel (Watch1). |
||
Acquires the latest data from the debug tool, and updates the contents of this panel. |
||
Opens the Go to the Location dialog box. |
||
Adds a new category (folder). Directly input the category name in the text box. There are no restrictions on the number of categories that can be created anew (however, it is not possible to create a category inside a category). Note that this item is disabled during execution of a program. |
||
Clears the user customization (creation of categories, changing orders, and changing notation). |
||
Copies the contents of the selected range to the clipboard as character string(s). If the SFR(s)/category(s) are selected, copies them to the clipboard. The copied item can be pasted to the Watch panel. |
||
Deletes the selected character string(s). If an empty category is in a select state, its category is deleted (it is not possible to delete SFRs). |
||
The following cascade menus are displayed to specify the notation. |
||
Displays the value of the selected item in hexadecimal number (default). |
||
Displays the value of the selected item in signed decimal number. |
||
Displays the value of the selected item in unsigned decimal number. |
||
Adds the value in hexadecimal number enclosing with "()" at the end of the value of the selected item. |
||
Resets highlighting of the selected SFR whose value has been changed by executing a program. |