Jump to main content

# Control Registers

The DCR, DCW, and DCM commands allow the user to read and write (modify) the metrology control registers. The DCW command is used to write one register and the DCM command is used to write multiple registers. Examples:

    ; Read the metrology control register 15
    DCR[15]
    15 CREEP_THR_P
    2E9A

    ; Write value 0xD599 to the metrology control register 15
    DCW[15](D599)
    Set Is Ok !

    ; Read back the register to check the modification
    DCR[15]
    15 CREEP_THR_P
    D599

    ; Read all the metrology control registers
    DCR00 STATE_CTRL      01 FEATURE_CTRL    02 AFE_SELECTION   03 CHANNEL_MATRIX
    2                  700                0                  F5432106
    04 HARMONIC_CTRL   05 METER_TYPE      06 M               07 N_MAX
    0                  CCC                0                  1130
    08 PULSE0_CTRL     09 PULSE0_K_t      10 PULSE1_CTRL     11 PULSE1_K_t
    810001D0           500000             810201D0           500000
    12 PULSE2_CTRL     13 PULSE2_K_t      14 SYNTH_ADDR      15 CREEP_THR_P
    1D0                500000             0                  2E9A
    16 CREEP_THR_P_A   17 CREEP_THR_P_B   18 CREEP_THR_P_C   19 CREEP_THR_Q
    2E9A               2E9A               2E9A               2E9A
    20 CREEP_THR_Q_A   21 CREEP_THR_Q_B   22 CREEP_THR_Q_C   23 CREEP_THR_I
    2E9A               2E9A               2E9A               212D
    24 CREEP_THR_I_A   25 CREEP_THR_I_B   26 CREEP_THR_I_C   27 CREEP_THR_S
    212D               212D               212D               2E9A
    28 PWR_OFFS_CTRL   29 PWR_OFFS_P      30 PWR_OFFS_Q      31 PWR_OFFS_S
    0                  0                  0                  0
    32 SWELL_THR_VA    33 SWELL_THR_VB    34 SWELL_THR_VC    35 SAG_THR_VA
    5E84F62            5E84F62            5E84F62            1A2EC26
    36 SAG_THR_VB      37 SAG_THR_VC      38 INT_THR_VA      39 INT_THR_VB
    1A2EC26            1A2EC26            68BB0A             68BB0A
    40 INT_THR_VC      41 RESERVED_C41    42 RESERVED_C42    43 RESERVED_C43
    68BB0A             0                  0                  0
    44 K_IA            45 K_VA            46 K_IB            47 K_VB
    9A523              19CC00             9A523              19CC00
    48 K_IC            49 K_VC            50 K_IN            51 K_VD
    9A523              19CC00             9A523              0
    52 CAL_M_IA        53 CAL_M_VA        54 CAL_M_IB        55 CAL_M_VB
    20000000           20000000           20000000           20000000
    56 CAL_M_IC        57 CAL_M_VC        58 CAL_M_IN        59 CAL_M_VD
    20000000           20000000           20000000           20000000
    60 CAL_PH_IA       61 CAL_PH_VA       62 CAL_PH_IB       63 CAL_PH_VB
    0                  0                  0                  0
    64 CAL_PH_IC       65 CAL_PH_VC       66 CAL_PH_IN       67 RESERVED_C67
    0                  0                  0                  0
    68 CPTR_CTRL       69 CPTR_BUFF_SIZE  70 CPTR_ADDR       71 RESERVED_C71
    0                  0                  0                  0
    72 RESERVED_C72    73 RESERVED_C73    74 AFE_CTRL        75 RESERVED_C75
    0                  0                  0                  0
    76 RESERVED_C76    77 RESERVED_C77    78 PWR_OFFS_P_A    79 PWR_OFFS_P_B
    0                  0                  0                  0
    80 PWR_OFFS_P_C    81 PWR_OFFS_Q_A    82 PWR_OFFS_Q_B    83 PWR_OFFS_Q_C
    0                  0                  0                  0

    ; Write registers 38 to 41
    DCM(38:7B6310; 39:0; 40:51B7E89; 41:4A9D4CA)
    Set Is Ok !

Rev: E