Changing Bit Field

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.

  1. In the Registers view, view register details.
  2. Expand the register group that contains the bit field you want to change.
  3. Register details appear in the Registers view.
    Figure 1. Registers View - Register Details
    Registers View - Register Details
  4. 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.

  5. 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.
  6. In the = text box, type the new value that you want to assign to the bit field.
  7. 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.