To change a bit field in a register, you must first start a debugging session and then open the Registers view.
To change a bit field, perform these steps.
- In the Registers view, view register details.
- Expand the register group that contains the bit field you want to change.
- Register details appear in the Registers view.
Figure 1. Registers View - Register Details 
- From the expanded register group above the register details, select the name of the register that contains the bit field that you want to change.
The Bit Fields group displays a graphical representation of the selected bit field. The
Description
group displays explanatory information about the selected bit field and
parent register.
- In the Bit Fields group, click the bit field that you want to change. Alternatively, use the Field list box to specify the bit field that you want to change.
- In the = text box, type the new value that you want to assign to the bit field.
- In the Action group, click the Write button.
Note: The Revert and Write buttons appear enabled if the value in the = field is changed or you reset the values.
The debugger updates the bit-field value. The bit values in the
Value
column and the
Bit Fields
group change to reflect your modification.
Note: Click the Reset button to discard your changes and restore the original bit-field value. Click the Revert button to revert to the last changes made.