5.17. Creating a concatenated register

In this part of the tutorial, you create a concatenated register C_R8_R9_concat for the EthernetRouter Debug Configuration. The concatenated register has the following attributes:

To create the C_R8_R9_concat concatenated register:

  1. Right-click on the EthernetRouter Debug Configuration in the Connect to Target window to display the context menu.

  2. Select Properties... from the context menu to display the Connection Properties dialog box.

  3. Click the Advanced button to display the Connection Properties window. The settings group for the Debug Configuration is selected (in this example, CONNECTION=EthernetRouter).

  4. Locate the BCD file where you want to define the custom memory mapped registers:

    1. Right-click on the *BoardChip_name EtherRouter setting in the right pane to display the context menu.

    2. Select Jump to Definition from the context menu.

      The BOARD=EtherRouter group is selected in the BCD file.

  5. Expand the following groups in turn:

    1. BOARD=EtherRouter

    2. *Advanced_Information

    3. *ARM

    4. Concat_Register.

  6. Create the concatenated register as follows:

    1. Rename the Default block to C_R8_R9_concat.

    2. Select C_R8_R9_concat in the left pane.

      The settings for the concatenated register are displayed.

    3. Change the C_R8_R9_concat settings to the values shown in Table 5.1.

      Table 5.1. R8_R9_concat settings

      SettingValue
      Low_nameR8
      Low_shift16 (Ox0010)
      Low_mask0xFFFF
      High_nameR9
      High_shift

      -16 (left shift)

      High_mask0xFFFF0000

  7. Add the concatenated register to the EtherRouter tab:

    1. Expand the Register_Window group in the left pane.

    2. Select EtherRouter to display the related settings.

    3. Right-click on the first Line setting to display the context menu.

    4. Select Edit Value... from the context menu.

    5. Enter C_R8_R9_concat. Remember to press Enter to complete the entry.

  8. Select Save and Close from the File menu to save your changes and close the Connection Properties window.

  9. Click the OK button to close the Connection Properties dialog box.

See also:

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0182K
Non-Confidential