MCE commands

From MCEWiki
Related topics:

This document lists the commands used to communicate with the MCE over the fibre-optic interface. These are low-level commands sent directly to the cards in command packets. In general, MAS abstracts these commands, providing a higher-level interface to MCE commanding. In MAS, mce_cmd is used to issue commands to the MCE, and the MCE commands and their encodings are defined in the hardware description file: mce.cfg.

Firmware version 6 updates

Firmware version 6 increases the maximum number of rows supported from 41 to 64. Unfortunately, the MCE protocol command packet has a fixed size, allowing at most 58 parameter elements to be written at once. To enable parameters with 64 elements in a backwards-compatible way, firmware version six adds upper Card IDs which can be used to address the top portion of the parameter array. Upper card IDs exist for the readout cards, bias cards and address card only. An upper card IDs are is the original (lower) Card ID with 0x10 added (so, for RC1, whose lower card ID is 0x03, the upper card ID is 0x13). Accessing an upper card ID has the effect of offsetting the parameter element index by 32 (e.g. writing, say, five values to an upper card ID will store them in elements 32 through 36 of the specified parameter).

Parameters which have more than 58 parameter elements, and so require the upper Card ID to write the upper portion of the data, are marked in the table below with an asterisk in the Data column.

Note: When commanding via MAS, the library handles splitting commands across the lower and upper card IDs. Users need not worry about which underlying card ID is used (unless using raw commanding via bare numeric addresses).

Command list

The following list omits unimplemented commands and commands obsoleted before firmware version 5. In the lists below, in general, the type column indicates whether the parameter can be read from (rb) or written to (wb) or both (rb,wb). A few commands are interacted with in other ways (indicated by rs or go,st); for these special commands see the discussion of low-level MCE commands in the mce_cmd description.

The command ID listed here is the name given to the command by MAS in the hardware description file (mce.cfg). These IDs are not used in the command packets; only the register address (given in the Addr. column) is used to identify commands in the command packet. As a result, these IDs are not part of the low-level MCE command protocol and other MCE documentation may refer to any given command register by a different name. Because the MCE command protocol deals only with register addresses, changing the name does not affect the purpose or action associated with the register.

The Data column indicates the data consumed by a write (wb) or returned by a read (rb). A few commands only permit a single word with a value of 1 for the command data. These are indicated by a bold-faced 1. The Version 6 Firmware increases the size of row-sized parameters to 64 from 41. This is noted in the tables below with an asterisk in this column.

In general, the FW Rev. provides the range of firmware release supporting the command. It may omit a few pre-v5 firmware releases.

General card commands

These commands can be issued to any card in the MCE (cc, rc1 to rc4, bc1, bc2, bc3, ac).

IDAddr.TypeDataDescriptionFW Rev.
fpga_temp0x91rbFPGA temp.Return the FPGA temperature of a cardall
card_temp0x92rbcard temp.Return the card temperature from a IC sensorall
card_id0x93rbcard IDReturn card ID from on-board silicon-ID chipall
card_type0x94rbcard typeReturn Card Type and PCB revision:
  • Bit 31 to 16: unused
  • Bit 15 to 8: PCB revision: 1=A, 2=B, 3=C, &c.
  • Bit 7 to 3: unused
  • Bit 2 to 0: Card type: 0=AC, including BAC, 1=BC, 2=RC, 3=CC, 4=PSUC
Early firmware and hardware revisions do not report PCB revision.
all
slot_id0x95rbslot IDReturn slot ID: all
fw_rev0x96rbrevisionReturn firmware revision, eg 0x0501000D for rev.5.1.d:
  • Bit 31 to 24: major revision number (e.g., for rev.5.1.d: 0x05)
  • Bit 23 to 16: minor revision number (e.g., for rev.5.1.d: 0x01)
  • Bit 15 to 0: build number (e.g., for rev.5.1.d: 0x000D)
all
led0x99rb,wbstatusSet and return the status of the front-panel LEDs. When writing to the LEDs, the value supplied is XOR’d with the current value of the LED status to produce the new status (i.e. a 1 bit toggles the corresponding LED). So, passing 0 will return the value of the LEDs without changing them.all
scratch0x9Arb,wbword[0..7]These are read/write registers to be used for arbitrary purposes. An example is to use one to detect undesired reset of MCE.all
critical_error_rst0x9Bwb1Writing to this register triggers a reconfiguration of the FPGA from it's configuration device and therefore the card is unresponsive for a few seconds.≥5.2.0
fpga_clr0x9Cwb1Writing to this register clears all the registers in firmware, but not the RAM blocks in the FPGA.≥5.2.0

System Commands

These commands affect the timing of the system – which means that they must be issued to all cards in the MCE at the same time. They are addressed to every card in the MCE by using the "sys" card address.

IDAddr.TypeDataDescriptionFW Rev.
row_len0x30rb,wb# cyclesnumber of 50MHz clock cycles that are spent per row during multiplexing. Default = 64. Maximum = 65,535all
num_rows0x31rb,wb# rowsnumber of rows to be multiplexed. Default = 41. Maximum = 2147483647/row_len, although version 5 firmware cannot servo more than 64 rows (41 in v5 firmware)all

Clock card commands

IDAddr.TypeDataDescriptionFW Rev.
config_app0x52rs1Configure the FPGA with the image in the application configuration device (EPC16).≥3.0.1
config_fac0x51rs1Configure the FPGA with the image in the factory configuration device (EPC16).≥3.0.1
ret_dat_s0x53rb,wbstart, stopSpecify the starting and ending sequence-numbers for data frames that the MCE is to return. Each frame of data will have a sequence number affixed to it. Sequence numbers will be assigned to data frames in increasing order, beginning with the starting sequence number, and finishing with the ending sequence number. Both parameters may range between 0x00000000 and 0xFFFFFFFF. If both starting and ending sequence numbers are the same, then a single frame of data will be returned. If the starting sequence number is larger than the ending sequence number, then frames will be returned until the sequence number has wrapped around and reached the stopping sequence number. Starting and stopping sequence numbers are expected for all modes of data acquisition—including for DV pulses.all
use_dv0x54rb,wbmodeSet the DV mode. The Clock Card can return data frames at an internal rate specified by data_rate, or in response to Data-Valid pulses from the Sync Box manchester input. Default = 0. Allowed values:
  • mode=0: internal DV generated by the MCE
  • mode=2: external DV on the "SYNC IN" input fibre
all
array_id0x58rbarray IDRead the ID of the sub-array that a MCE box is connected to, if equipped with an IR array ID reader.all
box_id0x59rbbox IDRead the identification of the sub-rack. Each production sub-rack has a unique Silicon ID IC mounted on the Bus Backplane.all
sram_data0x5Crb,wbword[0..n]Read/write a block of 32-bit data to SRAM at address specified by the sram_addr parameter.≥4.0.9
sram_addr0x5Erb,wbaddressSpecify the starting address for subsequent read/write operation to the 1024k x 32-bit SRAM. The, physical addresses range between 0x00000000 and 0x000FFFFF≥4.0.9
data_rate0xA0rb,wb# periodsSpecify the rate at which data frames are collected by the MCE if DV pulses are not being used (see use_dv). The rate is specified as the time between data packets measured in frame periods, i.e. a value of 11 will return one data packet every 11 frame periods. A frame period is the amount of time required for the multiplexer to address all the rows on a MUX. Default = 47all
mce_bclr0xABrs1Clear the registers on all the cards in the MCE, including the Clock Card≥3.0.4
cc_bclr0xACrs1Clear the registers on the clock card only≥3.0.4
box_temp0xA8rbbox temp.Return the temperature measured by the sensor on the bus backplane.all
crc_err_en0xA9rb,wbmodeSet the reply packet CRC mode:
  • mode=0: Normal CRC calculation performed
  • mode=1: CRC word forced to be 0xFFFFFFFF
≥3.0.1
use_sync0xA1rb,wbmodeSpecify the sync mode. The Clock Card can return to address 0 using its internal timing, or in response to sync pulses from the Manchester input. Default = 0. Allowed values:
  • mode=0: internal timing generated by the MCE
  • mode=2: external timing on the "SYNC IN" input fibre
all
select_clk0xA2rb,wbsourceSelect the source of the clock input to the Clock Card's PLL, either the Manchester input clock, or the on-board crystal clock. Both are nominally 25 MHz. Default = 0. Allowed values:
  • source=0: internally generated by the MCE
  • source=1: externally input on the "SYNC IN" input fibre
When source=1, and the external Manchester Clock disappears, the firmware automatically switches back to the internal clock. After the switch-back, reading back select_clk will return 0. Writing the same value to select_clk as what it is does not cause a clock glitch. Writing a different value causes a realignment of the PLL output clock to the new input, which takes two 25MHz clock cycles, or 80ns. See Altera Application Note 313.
all
internal_cmd_mode0xB0rb,wbmodeEnable or disable internal housekeeping/ramping commands. Default = 0. Allowed values:
  • mode=0: internal commands disabled
  • mode=1: housekeeping commands enabled
  • mode=2: ramp commands enabled
  • mode=3: arbitrary waveform (AWG) commands enabled
≥4.0.0
ramp_step_period0xB1rb,wb# periodsSpecify the number of frame periods between each ramp step.≥4.0.0
ramp_min_val0xB2rb,wbvalueSpecify the minimum value of the ramp that is to be applied. Must be less than ramp_max_val≥4.0.0
ramp_step_size0xB3rb,wbstepSpecify the ramp step size. If step = ramp_max_val – ramp_min_val, then the ramp will be a square wave≥4.0.0
ramp_max_val0xB4rb,wbvalueSpecify the maximum value of the ramp that is to be applied. Must be greater than ramp_min_val≥4.0.0
ramp_param_id0xB5rb,wbaddressSpecify the parameter ID (register address) of the register to be ramped≥4.0.0
ramp_card_addr0xB6rb,wbaddressSpecify the card address of the register to be ramped≥4.0.0
ramp_step_data_num0xB7rb,wbcountSpecify the number of data that are to be written per ramp command≥4.0.0
ramp_step_phase0xBBrb,wboffsetSpecify the phase offset of the start of the ramp≥5.0.b
awg_sequence_len0xB9rb,wblengthSpecify the length of the Arbitrary Waveform Generator (AWG) sequence that is loaded in RAM. This parameter tells the internal commanding FSM how many values to apply before restarting at the beginning≥5.0.3
awg_data0xBArb,wbdatum[0..n]Load the Arbitrary Waveform Generator (AWG) sequence into RAM on the Clock Card. The RAM has 8192 indices. This may be expanded later if there are enough resources still available on the Clock Card≥5.0.3
awg_addr0xBCrb,wbaddressSpecify the starting address for reading from or writing to the Arbitrary Waveform Generator (AWG) RAM. This parameter also affects the memory address of the internal commanding FSM≥5.0.3
cards_present0x5Arbcard listReport which cards are present in the MCE:
  • Bit 9: Address card
  • Bit 8: Bias card #1
  • Bit 7: Bias card #2
  • Bit 6: Bias card #3
  • Bit 5: Readout card #1
  • Bit 4: Readout card #2
  • Bit 3: Readout card #3
  • Bit 2: Readout card #4
  • Bit 1: Clock card
  • Bit 0: unused
≥4.0.8
cards_to_report0x5Brb,wbcard listSpecify which cards are present in the MCE subrack, and will return data over the bus backplane. This command can be used in situations where certain cards are not present in the subrack, and should not return data in replies. The default value for this register is 1 for every possible card. To stop a card from returning data, set its corresponding bit to 0. See cards_present for bit assignments≥4.0.a
rcs_to_report_data0x5Frb,wbcard listThis command is not redundant with cards_to_report. It applies only to Readout Cards, and only for data taking (ret_dat) commands. This register sets which Readout Cards return data during a data run. This command allows the selective return of data without affecting which cards respond to all other commands, which is useful if a data run fails. See cards_present for bit assignments, but note that only RC bits are honoured≥4.0.a
stop_dly0xB8rb,wbdelaySpecify the time delay between the return of the next data frame and the return of the reply to a stop command. The time specified is in microseconds. This command is used to test the robustness of the PCI card to replies following immediately on the heels of a data packet.≥4.0.a
num_rows_reported0x55rb,wb# rowsnumber of rows of data that are reported in a data packet. This parameter is set also available on readout cards; see: rc num_rows_reported. See also num_cols_reported. Default = 41≥4.0.0
run_id0x56rb,wbvalueSpecify an ID number that will be stored in every data packet header returned to the PC. On ACT, the ID number corresponds to the C time at which data acquisition began. ACT's data files are also named by the same C time, so that the data pipeline can easily track which files the data are from≥4.0.2
user_word0x57rb,wbvalueSpecify a value that will be stored in every data packet header returned to the PC. This register is used by ACT to store a combination of array_id and data_mode information. At Caltech, it is used during IV curves to store the value of the TES bias applied.≥4.0.2
upload_fw0x50wbcount, datum[0..n]Specify count (≤57) doublets of packed JTAG data. The first word of the command specifies the total number of [TMS,TDI] doublets contained in the rest of the data. The rest of the words consist of count [TMS,TDI] doublets starting from the LSB. The TCK signal is implied. The JTAG FSM automatically runs through a TCK cycle after asserting each new doublet consisting of one TMS and one TDI bit. Command execution:
  1. Apply [TMS,TDI] doublet to JTAG interface,
  2. Assert TCK (automatic) and wait for tck_half_period. While waiting, store TDO (automatic) after tdo_sample_dly cycles after the assertion of TCK,
  3. De-assert TCK (automatic) and wait for tck_half_period
≥5.0.5
config_jtag0xAArbdatum[0..n]Read back ≤57 bits of packed JTAG data. Unlike the upload_fw command above, the first word returned does not contain the number of bits read out. It is assumed that following every upload_fw command, this command will be called and will thus return the same number of single bits as there were doublets of [TMS,TDI] data transmitted. Every new upload_fw command overwrites the TDO data from the previous upload_fw command. The mce_jam player can ignore TDO data that is not important.≥5.0.5
num_cols_reported0xADwb# columnsnumber of columns of data that are reported in a data packet. This parameter is also available on readout cards; see: rc num_cols_reported. See also num_rows_reported. Default = 8≥5.0.0
tdo_sample_dly0xAErb,wbdelaySpecify the number of clock cycles after the assertion of TCK that TDO should be sampled. Default = 2. The default value is tuned to the MCE, so leave this as is≥5.0.5
tck_half_period0xAFrb,wb½ periodSpecify the number of clock cycles that TCK should remain high, and then remain low. Default = 8. The default value is tuned to the MCE, so leave this as is≥5.0.5
: If select_clk=0, then the user must set use_sync=0 and use_dv=0, otherwise timing artifacts will appear in data. The following combinations are OK:
select_clk use_sync use_dv
0 0 0
1 2 0
1 0 0
1 2 2
1 0 2

Readout card commands

Similar to the sys card used to issue commands to all cards, MAS provides the special physical card rca which can be used to issue rb or wb commands to all installed readout cards. The firmware also implements the special physical card rcs which is used to issue commands to the ret_dat register on all cards.


IDAddr.TypeDataDescriptionFW Rev.
sa_bias0x10rb,wbbias[0..7]Read/write the SA bias values for all columns on a readout cardall
offset0x11rb,wboffset[0..7]Read/write the SA offset values for all columns on a readout cardall
gainp00x70rb,wbgainp[0..40]Read/write the Readout Card's P coefficients for any given column. P gains are signed 10-bit valuesall
gainp10x71
gainp20x72
gainp30x73
gainp40x74gainp[0..63]*≥6.0.0
gainp50x75
gainp60x76
gainp70x77
gaini00x78rb,wbgaini[0..40]Read/write the Readout Card's I coefficients for any given column. I gains are signed 10-bit valuesall
gaini10x79
gaini20x7A
gaini30x7B
gaini40x7Cgaini[0..63]*≥6.0.0
gaini50x7D
gaini60x7E
gaini70x7F
flx_quanta00x80rb,wbquantum[0..40]Read/write the Readout Card's flux quanta for any given column. Flux Quanta are used to calculate the SQ1 feedback valueall
flx_quanta10x81
flx_quanta20x82
flx_quanta30x83
flx_quanta40x84quantum[0..63]*≥6.0.0
flx_quanta50x85
flx_quanta60x86
flx_quanta70x87
gaind00x88rb,wbgaind[0..40]Read/write the Readout Card's D coefficients for any given column. D gains are signed 10-bit valuesall
gaind10x89
gaind20x8A
gaind30x8B
gaind40x8Cgaind[0..63]*≥6.0.0
gaind50x8D
gaind60x8E
gaind70x8F
adc_offset00x68rb,wboffset[0..40]Read/write the Readout Card's ADC offsets for any given column. The ADC Offset coefficients are used to digitally offset each 50 MHz ADC sample on the Readout Cardsall
adc_offset10x69
adc_offset20x6A
adc_offset30x6B
adc_offset40x6Coffset[0..63]*≥6.0.0
adc_offset50x6D
adc_offset60x6E
adc_offset70x6F
readout_row_index0x13rb,wbindexSpecify the starting row index of data to be returned in a data block. Default = 0. Note: if num_rows_reported > num_rowsreadout_row_index – 1, then the readout row index will wrap around to 0 during readout≥4.0.0
ret_dat0x16go,st1Return data frames. Prior to this command, the Clock Card expects a ret_dat_s command to set up how many frames are to be collected and what sequence numbers to assign. Following that, a single ret_dat command triggers the return of all requested data frames. To simultaneously start or stop data return for all cards, this parameter should be accessed via the special rcs card.all
en_fb_jump0x15rb,wbenabledEnable (=1) or disable (=0) flux jumping on the Readout Card. The size of flux jumps is specified by the flx_quanta# commandsall
data_mode0x17rb,wbmodeSet/return data mode. Not all data modes are supported by all firmware revisions.all
captr_raw0x18rb,wbenabledCapture (=1) a 64k timestream snapshot of the error signal when Address-Return-to-Zero is asserted. 65,536 50MHz ADC samples from the channel specified by readout_col_index are stored in the raw-data buffer on the Readout Card≥5.0.1
servo_mode0x1Brb,wbmode[0..7]Set the per-column servo mode on the Readout Cards. Available modes are:
  • mode=0 or 1: constant feedback mode as specified by fb_const parameter
  • mode=2: ramp mode
  • mode=3: PID-loop lock mode
all
ramp_dly0x1Crb,wb# framesSpecify the number of frame-periods before the next step in a ramp function. This delay can be tuned to the data-frame readout rate (data_rate), so that one frame of data is read out per ramp stepall
ramp_amp0x1Drb,wbvalueSpecify the maximum ramp value, in 14-bitsall
ramp_step0x1Erb,wbstepSpecify what the step size of each step in the ramp is, max 14-bitall
fb_const0x1Frb,wbfb_const[0..7]Specify the constant feedback DAC value for a each column when the servo is in constant mode (see servo_mode). Applied to SQ1 feedback. Range: -8192 to 8191. The constant value is applied to the Readout Card DAC repetitively for every new rowall
sample_dly0x32rb,wb# cyclesSpecify the number of 50MHz clock cycles from the start of a row during which ADC samples do not contribute to a co-added value on the Readout Cardsall
sample_num0x33rb,wbcountSpecify the number of 50MHz samples which are co-added during a row-period on the Readout Cards. Co-addition begins after the sample delay, and one value is co-added per 50MHz clock cycle. Note that default is 0 and therefore you need to explicitly set this parameterall
fb_dly0x34rb,wb# cyclesSpecify the number of 50MHz clock-cycles between the start of a row and the assertion of the row's feed-back value on the Readout Cards. (minimum is 7 with flux-jumping off, 10 or 18 (depending on firmware revision) when flux-jumping is on).all
flx_lp_init0x37wb1Initialize/reset the PID loop calculations on the Readout Cards for new PID parameters to take effectall
readout_col_index0x19rb,wbcolumnSpecify the starting column index of data to be returned in a data block. Default = 0. Note: if num_rows_reported > num_rowsreadout_row_index – 1, then the readout row index will wrap around to 0 during readout. During raw readout, this parameter specifies the index of the column for which raw data is stored≥5.0.1
num_rows_reported0x55rb,wb# rowsnumber of rows of data that are reported in a data packet. This parameter is set in conjunction with the readout_row_index. This parameter is also available on clock cards; see: cc num_rows_reported. See also num_cols_reported, readout_col_index. Default = 41≥4.0.0
num_cols_reported0xADwb# columnsnumber of columns of data that are reported in a data packet. This parameter is set in conjunction with the readout_col_index. This parameter is also available on clock cards; see: cc num_cols_reported. See also num_rows_reported, readout_row_index. Default = 8≥5.0.0
integral_clamp0x66rb,wbvalueThis parameter is used to clamp the integral term used in SQ1 feedback calculation. Once this value is reached, the integral term is permanently clamped and can only be reset by issuing a flx_lp_init command or reset. This is invented to prevent ramping of unlocked pixels and mitigate the adverse effects of the ramping pixels on locked pixels. See integral clamp.≥5.0.9
servo_rst_arm0xF8wb1When set to 1, the flux-loop servo on all detectors flagged by servo_rst_col# are reset; see Flux-loop reset per detector≥5.2.0
servo_rst_col00xF0rb,wbreset_row[0..40]A per-detector flag indicating which pixels to reset when servo_rst_arm is set to 1; see Flux-loop reset per detector≥5.2.0
servo_rst_col10xF1
servo_rst_col20xF2
servo_rst_col30xF3
servo_rst_col40xF4reset_row[0..63]*≥6.0.0
servo_rst_col50xF5
servo_rst_col60xF6
servo_rst_col70xF7
fltr_rst0x14wb1Reset the filter data pipeline. Triggering flx_lp_init also automatically triggers fltr_rstall
fltr_coeff0x1Arb,wbb11, b12, b21, b22, k1, k2Specifies a set of 6 filter parameters for the low-pass Butterworth filter, the first 4 are the biquad coefficients followed by k1 and k2; see Digital 4-pole Butterworth Low-pass filter≥5.1.0
fltr_type0x65rb,wbtypeSpecify the filter type. Default is 1. Allowed values:
  • type=1: fcutoff / fsamp = 122.226Hz / 15151Hz
  • type=2: fcutoff / fsamp = 75Hz / 30000Hz
  • type=255: filter specified by fltr_coeff
≥5.0.a
pterm_decay_bits0x64rb,wbbit countThis is the value k in the p-term calculation: <math>p_n = \mathrm{err}_n + \left(1 - \frac{1}{2^k}\right) p_{n-1}</math>. Setting this to zero (the default) disables the decay, which is the behaviour in older firmwares.≥5.1.a

Bias card commands

IDAddr.TypeDataDescriptionFW Rev.
flux_fb0x20rb,wbflux_fb[0..31]Specify the flux feedback for all 32 16-bit DAC channels on the Bias Cards. The mapping between DAC channels and SQUIDs is hardware dependent. For 32-column systems (72-HP subracks):
  • BC1 flux_fb[0..31] ↔ SA feedback
  • BC2 flux_fb[0..31] ↔ SQ2 feedback
  • BC3 flux_fb[0..31] ↔ SQ2 bias

For most 16-column systems (48-HP subracks):

  • BC1 flux_fb[0..15] ↔ SA feedback
  • BC1 flux_fb[16..31] ↔ SQ2 bias
  • BC2 flux_fb[0..15] ↔ SQ2 feedback
  • BC3 flux_fb[0..15] ↔ TES bias

For 16-column systems with only two bias cards, the TES bias mapping is, instead:

  • BC2 flux_fb[16..31] ↔ TES bias
These maps are abstracted in MAS by the sa, sq1, sq2, and tes virtual cards. MAS supports any arbitrary mapping.
all
bias0x21rb,wbbias[0..11]Read/Write the low-noise LVDS 16-bit DACs that are typically used to supply TES bias or pixel heater currents. Rev. E and later Bias Cards have 12 low-noise bias lines while Rev D. and earlier have only one, with the nominal mapping of [BC1 bias ↔ Pixel Heater] and [BC2 bias ↔ TES Bias] Firmware revisions before 5.0.4 support only one value for this register.all
flux_fb_upper0x24rb,wbflux_fb[16..31]Specify the flux feedback for 16 upper 16-bit DACs, i.e. channel 16 to 31 on bias cards. This command was implemented to match the cryostat wiring for the MCEv2 subracks, which use the upper 16 channels of BC1 to supply the SQ2 Bias. See flux_fb above.≥1.4.0
fb_col00xC0rb,wbfb_row[0..40]When enbl_mux = 1 or multiplexing mode is enabled, then these commands specify the per-row multiplexing values for each of the 32 DAC channels (fb_col#) on the bias card≥5.0.3
fb_col10xC1
fb_col20xC2
fb_col30xC3
fb_col40xC4
fb_col50xC5
fb_col60xC6
fb_col70xC7
fb_col80xC8
fb_col90xC9
fb_col100xCA
fb_col110xCB
fb_col120xCC
fb_col130xCD
fb_col140xCE
fb_col150xCF
fb_col160xD0fb_row[0..63]*≥6.0.0
fb_col170xD1
fb_col180xD2
fb_col190xD3
fb_col200xD4
fb_col210xD5
fb_col220xD6
fb_col230xD7
fb_col240xD8
fb_col250xD9
fb_col260xDA
fb_col270xDB
fb_col280xDC
fb_col290xDD
fb_col300xDE
fb_col310xDF
enbl_mux0x05rb,wbmode[0..31]enable/disable per-column multiplexing DAC values. Default = 0. Allowed values:
  • mode=0: disables multiplexing on the particular column. The column DAC is updated only once when a new value is commanded by issuing a flux_fb command. This is the legacy behavior prior to introducing enbl_mux and fb_col# parameters.
  • mode=1: enables multiplexing on the particular column. The column DAC is updated at every row visit by values specified through fb_col# parameters
≥5.0.3
enbl_flux_fb_mod0x25rb,wbenabled[0..31]Enable (=1) or disable (=0) the per-column addition of mod_val to flux_fb values for regular DACs≥5.3.0
enbl_bias_mod0x26rb,wbenabled[0..31]Enable (=1) or disable (=0) the per-column addition of mod_val to bias values for low-noise bias DACs≥5.3.0
mod_val0x27rb,wbvalueModulation value to be added to either of flux_fb or bias values depending on whether modulation is enabled or not. (see enbl_flux_fb_mod and enbl_bias_mod)≥5.3.0
num_rows_idle0x28rb,wb# rowsnumber of rows at the start of each ARZ that no bias is applied, only valid when multiplexing is enabled or (enbl_mux is 1).≥5.3.5

Address card commands

IDAddr.TypeDataDescriptionFW Rev.
row_order0x01rb,wbrow_num[0..40]This command is relevant when enbl_mux = 1 or 2. Read/write the row-addressing order. A sequence of up to 41 (v5 firmware) or 64 (v6 firmware) rows is specified at once. The row numbers that are specified with this command refer to the physical channel numbers on the Address Card. Note: After this command is issued, a flx_lp_init command must be issued to all the readout cards to discard previous PID-loop calculations and to clean out the rest of the data pipeline. Default = 0,0,0,...all
row_num[0..63]*≥6.0.0
on_bias0x02rb,wbbias_row[0..40]Applies when enbl_mux = 1 or 3. Read/write the14-bit on-bias values for all 41 channels of the DACs on the Address Card. Bias values are stored in the order of physical channels on the Address card – which is not necessarily the multiplexing order specified with row_order. This command is nominally is used to specify the SQ1 "on" biases, and are applied one at a time in the sequence specified by row_order. Default = 0,0,0,...all
off_bias0x03rb,wbbias_row[0..40]Applies when enbl_mux = 1 or 3. Read/write the 14-bit off-bias values for all 41 channels of the row-addressing DACs on the Address Card. Bias values are stored in the order of physical channels on the Address card – which is not necessarily the multiplexing order specified with row_order. This command is nominally is used to specify the SQ1 "off" biases. Default = 0,0,0,...all
enbl_mux0x05rb,wbmodeStart/stop array multiplexing. Default: 0. Allowed values:
  • mode=0: Multiplexing off. This is the default value.
  • mode=1: Multiplexing on. The Address Card turns one DAC "on" and one DAC "off" at every row switch. The multiplexed values are specified by on_bias and off_bias. The values are applied in the first two clock cycles after a row switch.
  • mode=2: Multiplexing on. The Address Card changes the values on all the DACs at every row switch. The multiplexed values are specified by fb_col#. All 41 DAC values are applied in the first 4 clock cycles after a row switch. This mode is only used by Biasing Address Cards.
  • mode=3: Special multiplexing on. In the first heater_bias_len clock cycles of each row visit, the heater_bias values are applied to the DACs, the remaining time, the on_bias values are applied
all
bias_start0x09rb,wbstart[0..40]Applies only when enbl_mux = 1. Specify the point during each row dwell period when the SQ1 bias is applied. This is specified on a row-by-row basis so that SCUBA2 can do differential bias heating across the rows of their arrays.≥5.0.1
heater_bias0x0Arb,wbbias[0..40]When enbl_mux=3, specify the magnitude of the SQ1-bias heating pulse in DAC units (0 to 16383) during the initial heater_bias_len period of each row visit.≥5.0.2
heater_bias_len0x0Brb,wb# cyclesWhen enbl_mux=3, specify the length of the SQ1 bias heating pulses at the beginning of every new row period.≥5.0.2
fb_col00xE3rb,wbfb_row[0..40]These commands are relevant when enbl_mux = 2. Specifies the 41 multiplexing values for each DAC channel on the Address Card, and for each row that the channel is to multiplex. There are 41 channels on the Address Card, and up to 41 rows per channel that need to be specified. These commands are used only when the address card is used from a bias card slot (see Biasing Address Card).≥2.0.5
fb_col10xE1
fb_col20xDF
fb_col30xDD
fb_col40xDB
fb_col50xD9
fb_col60xD7
fb_col70xD5
fb_col80xD3
fb_col90xD1
fb_col100xCF
fb_col110xCD
fb_col120xCB
fb_col130xC9
fb_col140xC7
fb_col150xC5
fb_col160xE2
fb_col170xE0
fb_col180xDE
fb_col190xDC
fb_col200xDA
fb_col210xD8
fb_col220xD6
fb_col230xD4
fb_col240xD2
fb_col250xD0
fb_col260xCE
fb_col270xCC
fb_col280xCA
fb_col290xC8
fb_col300xC6
fb_col310xC4
const_mode0x06rb,wbmode[0..40]Specify which DAC channels are held at a constant value regardless of the value of enbl_mux. A constant value is applied once only, and is specified by const_val. In addition, DACs for which const_mode=1 do not receive data strobes during multiplexing – so that there are no glitches or excess noise on the DAC outputs.
  • mode=0: this DAC channel is multiplexed when enbl_mux = 1, 2, or 3
  • mode=1: this DAC channel is held at a constant value and not strobed when enbl_mux = 1, or 2 (Biasing Address Card only)
≥2.0.6
const_val0x07rb,wbval[0..40]Specify values for the DACs that are held constant. val[n] is asserted by DAC n when const_mode[n] = 1. In addition, all constant values are applied to each respective DAC when enbl_mux = 0. When enbl_mux, const_mode, or const_val values are changed, all the DACs that are being held constant have their values re-strobed (Biasing Address Card only)≥2.0.6

Legacy documents

The document linked below provides the same information as this page, except that it includes obsolete and unimplemented commands. It was last updated in April of 2013, an does not list any command added after that time. In some instances the command names listed in the following document are different than the command names used by MAS (which are listed above). The description of some commands may be obsolete.