The Register windows show the values of both CPU registers and the processor's special function or peripheral registers. Because microcontrollers are becoming very highly integrated, it's not unusual for them to have hundreds of special function registers or peripheral registers, so CrossStudio provides four register windows. You can configure each register window to display one or more register groups for the processor being debugged.
A Register window has a toolbar and a main data display.
|Display the CPU, special function register, and peripheral register groups.
|Display the CPU registers.
|Hide the CPU registers.
|Force-read a register, ignoring the access property of the register.
|Update the selected register group.
|Set the active memory window to the address and size of the selected register group.
Both CPU registers and special function registers are shown in the main part of the Registers window. When the program stops at a breakpoint, or is stepped, the Registers windows update to show the current values of the registers. Items that have changed since they were previously displayed are highlighted in red.
Other register windows can be similarly activated.
The values of the CPU registers displayed in the Registers window depend up upon the selected context. The selected context can be:
You can deselect all CPU register groups to allow more space in the display for special function registers or peripheral registers. So, for instance, you can have one register window showing the CPU registers and other register windows showing different peripheral registers.
The Registers window shows the set of register groups defined in the memory-map file the application was built with. If there is no memory-map file associated with a project, the Registers window will show only the CPU registers.
When you select a register in the main part of the display, the display-format button highlighted on the Registers window toolbar changes to show the item's display format.
Modifying the saved register value of a function or thread may not be supported.