4.4.14. System Configuration registers

The following System configuration registers, SYS_CF, exist:

The registers are collectively referred to as SYS_CFG registers.

The registers enable communication between the MCC and Daughterboard Configuration Controller to read and write a variety of system parameters, for example:

To complete a CFG transfer in your application code, implement the following pseudo code:

Config SYS_CFGDATA

The SYS_CFGDATA Register characteristics are:

Purpose

Holds the data value to be written or read during communication across the SPI interface between the MCC and a Daughterboard Configuration Controller.

Usage constraints

There are no usage constraints.

Configurations

Available in all configurations.

Attributes

Table 4.17 shows the register bit assignments.

Table 4.17. SYS_CFGDATA Register bit assignments

BitsNameDescription
[31:0]CFG data32-bit configuration data register

Note

The same interface is accessible from the MCC command line. See Versatile Express Configuration Technical Reference Manual CFG command.

Configuration Control Register

The SYS_CFGCTRL Register characteristics are:

Purpose

Controls the transfer of data across the SPI interface between the MCC and a Daughterboard Configuration Controller.

Usage constraints
Configurations

Available in all configurations.

Attributes

Figure 4.13 shows the register bit assignments.

Figure 4.13. SYS_CFGCTRL Register bit assignments

To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.


Table 4.18 shows the register bit assignments.

Table 4.18. SYS_CFGCTRL Register bit assignments

BitsNameDescription
[31]StartInitiates the transfer.
[30]Write

Read or write data:

b1

Write.

b0

Read.

[29:26]DCC

Daughterboard Configuration Controllers. This is a 4-bit number for the particular Daughterboard Configuration Controller on a board to access. Examples are:

b0000

DCC 0.

b0001

DCC 1.

[25:20]Function6-bit value that describes the function of the device being written to. See SYS_CFGCTRL function values.
[19:18]-Undefined.
[17:16]Site

Describes the board site location of the device written to:

b00

Motherboard.

b01

Daughterboard 1.

b10

Daughterboard 2.

b11

Not used.

[15:12]Position

Describes the board stack position:

4-bit number for the position of the daughterboard in the stack 0-15 on a particular site. 0 represents the bottom of the stack. Set to 0 for the motherboard.

[11:0]Device12-bit number that describes the device number. For example, oscillator 1 would be device 1.

SYS_CFGCTRL function values

Table 4.19 shows the different function values with their range of data values that the SYS_CFGDATA represents.

Table 4.19. SYS_CFGCTRL function values

ValueNameFormatRangeFunction
1SYS_CFG_OSCFrequency, Hz1Hz-4.3GHzOscillator value
2SYS_CFG_VOLTVoltage, µV1µV-4.3kVVoltage value
3SYS_CFG_AMPCurrent, µA1µA-4.3kACurrent value
4SYS_CFG_TEMPTemperature, µC1µC-4.3kCTemperature value
5SYS_CFG_RESET--DB reset register
6SYS_CFG_SCC32-bit register value32-bit valueSCC configuration register
7SYS_CFG_MUXFPGA2-bit board value to select as the DVI source for the Multiplexer FPGA.MB/DB1/DB2

Multiplexer FPGA select:

b00

Motherboard.

b01

Daughterboard 1.

b10

Daughterboard 2.

b11

Not used.

8SYS_CFG_SHUTDOWN--Shutdown system
9SYS_CFG_REBOOT--Reboot system
10---Reserved
11SYS_CFG_DVIMODE3-bit DVI mode valueVGA-UXGA
b000

VGA.

b001

SVGA.

b010

XGA.

b011

SXGA.

b100

UXGA.

12SYS_CFG_POWERPower, µW1µW-4.3kWPower value
13SYS_CFG_ENERGYEnergy, µJ1µJ-2^64µJOn-board energy meter

Configuration Status Register

The SYS_CFGSTAT Register characteristics are:

Purpose

Describes if the transfer between the MCC and a Daughterboard Configuration Controller completes, or if there is an error during the transfer.

Usage constraints

There are no usage constraints.

Configurations

Available in all configurations.

Attributes

Figure 4.14 shows the register bit assignments.

Figure 4.14. SYS_CFGSTAT Register bit assignments

To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.


Table 4.20 shows the register bit assignments.

Table 4.20. SYS_CFGSTAT Register bit assignments

BitsNameDescription
[31:2]Undefined
[1]Error

1: configuration error. This bit is cleared when bit S of SYS_CFGCTRL is set.

[0]Complete1: configuration complete. This bit is cleared when bit S of SYS_CFGCTRL is set.

Example 4.1 shows pseudo code for changing the SYS_CFG registers.

Example 4.1. Pseudo code for changing the SYS_CFG registers

Sys_cfg ( write, function, site, position, dcc, device, data)

    // check if busy
    if (SYS_CFGCTRL & SYS_CFG_START)
       return FAILURE
        // clear the complete bit in the SYS_CFGSTAT status register
    SYS_CFGSTAT = 0

    if (write)
        // write data
        SYS_CFGDATA = data

        // set control register
        SYS_CFGCTRL = SYS_CFG_START | SYS_CFG_WRITE | dcc | function | site | position | device

        // wait for complete flag to be set        while (!(SYS_CFGSTAT & SYS_CFG_COMPLETE)

        // check error status and return error flag if set
        if (SYS_CFGSTAT & SYS_CFG_ERROR)            return FAILURE

     else        // set control register
         SYS_CFGCTRL = SYS_CFG_START | dcc | function | site | position | device

        // wait for complete flag to be set
        while (!(SYS_CFGSTAT  & SYS_CFG_COMPLETE))

        // check error status flag and return error flag if set
        if (SYS_CFGSTAT  & SYS_CFG_ERROR)
            return FAILURE

      else        // read data           data = SYS_CFGDATA

      return SUCCESS

Copyright © 2009-2013, ARM. All rights reserved.ARM DUI 0447H
Non-ConfidentialID040613