
User’s Manual
Version 3.0




The GBS Elektronik GmbH is not liable for errors and does not guarantee the specific utility of the MCA166-USB software or firmware. In particular, the GBS Elektronik GmbH is not liable for indirect or subsequent damages due to errors of the MCA166-USB software or firmware.
The information in this manual has been carefully reviewed and is believed to be accurate and reliable. However, the GBS Elektronik GmbH assumes no liabilities for inaccuracies in this manual. This manual is subject to change without notice.
For software updates or problems exceeding the frame of this manual refer to: Internet: http://www.gbs-elektronik.de or send email to: [email protected]



The MiniMCA MCA166-USB is a battery powered high performance 4K Multi-Channel Analyzer/Multi-Channel Scaler module comparable in its performance with laboratory grade MCA. High voltage supply for detector and preamplifier power supply are integrated as well as an internal amplifier and pulse shaping network. Together with a small detector it forms a pocket-size gamma spectroscopy system and timer / counter, which is well suited to the demands of field measurements for international safeguards, environmental monitoring, nuclear waste treatment facilities, radioactive transport control and similar applications.
Furthermore, the MCA166-USB supports a vast number of different detectors and its 4k resolution is adequate to support high resolution gamma spectrometry with HPGe detectors.
The MiniMCA software allows to operate the device as a general purpose multi channel analyzer (SPEC, WinSPEC) and multi scaler analyzer (MCS, WinMCS). Additional user programs which support safeguards specific applications as U-235 enrichment verification, spectral radiation survey meter mode supporting active length determination are available. See chapter 3 for more information.
The device can also be operated with the ORTEC software (MAESTRO, GammaVision, ScintiVision etc.); contact ORTEC for details.
The firmware of the MCA166-USB (software of MCAs internal processor) is described in Appendix 3 and 4. Instructions how to change the firmware can be found in Appendix 5.
Basic software functions

Read all these instructions first!
Save these instructions for later use.
To avoid personal injury or damage of equipment, do not remove the connectors for the High Voltage supply, preamplifier supply, and the input connector until the High Voltage is shut down and the device is switched off at least for 1 minute.
Do not open the device before the power is switched off.
This device is intended to operate from an internal accumulator set (high performance Li-Ion battery) or together with an external wall adapter. Furthermore the device can be powered directly from a high power USB port (up to the maximum nominal input power of 2,5W).
Do not apply more than the specified voltage to the wall adapter. Usually it is 230VAC nominal. The adapter must be in a good condition. Never use a damaged wall adapter!
Make sure that the High Voltage connector and the High Voltage supply cable of the detector are in a good condition before connecting them to the MCA166-USB or before switching the High Voltage on. Do not allow anything to rest on the HV cable.
Never insert objects of any kind into the High Voltage connector as they may touch the dangerous voltage point. This might cause an electric shock or a damage of the device.
The MCA166-USB is an autonomous module. The device has its own battery and provides power supply to radiation detectors. Together with a computer the MCA166-USB forms a multi channel analyzer. The spectra are collected in the memory of the MCA166- USB and are periodically transferred via a serial interface to the computer. The computer is used to setup the MCA166-USB, to display and process the measurement results, and to store the data. The design concept of the MCA166-USB also supports a Multi-Channel Scaler mode.
For operation the MCA166-USB itself has only a power switch and a green LED indicator.

The MCA166-USB works with a built in rechargeable Li-Ion battery, which has no memory effect and is deep discharge and short circuit protected. If the device is working, the remaining battery life time is permanently checked. When the battery voltage has dropped down to 6.8 Volts, while a data collection is in progress, the MCA166-USB gives out a warning to the user (the lamp will flash irregularly and the software will show an error message). The running measurement is automatically stopped and the detector high voltage together with the preamplifier power supply will be switched off.
Now the user can transfer the measured spectrum to the computer, but should switch the device off afterwards or connect the charger. If the user does not respond, and the battery life time is nearly used up (battery voltage 6.5 Volts) , the device switches off automatically. It is made sure, that the set up and the spectrum gathered previously is saved in the memory of the MCA166-USB for at least several month.
The remaining battery life time is sufficient to transfer the measured spectrum to a computer. It is recommended, before reading out the MCA166-USB, to connect it to the charger.
In the case that the battery voltage drops below its lowest value, the battery itself switches off. This can be, for example, the result of a lasting short circuit at the preamplifier power supply. As a consequence the internal setup and the measured values are lost. The MCA166-USB has to be connected to the charger to recharge the battery.
The MCA166-USB is set into operation by turning the power switch on (see Figure 1). After that, the green power ON LED flashes with a frequency of 2.5 Hz if no MMCA software runs on the connected computer. If the power switch is already in position ON (for example after an automatic switch off due to a complete loss of battery power) switch OFF and to ON again. When the power ON LED does not flash, connect the MCA166- USB with the charger and repeat once more. The MCA166-USB is on line with the computer if the LED flashes with 1.2 Hz. Irregular flashing of the lamp indicates an error.

Figure 1:
Front Panel of MCA166- USB

Charging the MCAs battery is usually done by connecting the wall adapter to the ”Charger In” connector and power it from the mains supply. The wall adapter is able to deliver enough power to operate the MCA166-USB stationary under a maximum load condition (HV on, detector draws up to 2W preamplifier power). If the MCA166-USB is operated on a high power USB hub and the wall adapter isn’t connected, the MCA166-USB can be charged from the USB port. But there is a limitation of 2,5W nominal input power which is the maximum power that can be drawn from a high power USB port (real usable input power depends on hub voltage, voltage loss on USB cable and connectors and efficiency of internal charger; it is usually about 2W). This is enough power to operate the MCA166- USB without detector or with a low power detector (e.g. CdZnTe or NaI). If a detector draws to much power from the MCA166-USB (e.g. some HPGe), charging via USB is still working but the battery runs out slowly.
If the MCA166-USB is connected to a working high power USB hub, charging will start after 6 seconds automatically. It is possible to disable USB charging by some newer application programs such as WinSpec. This is very useful if the MCA is operated at a laptop computer which runs on battery. Connecting the wall adapter to the MCA166-USB and supply it with power will always disable USB charging.
The old battery chargers supplied with the MCA166 (3 pin LEMO connector) are not compatible with the MCA166-USB! Don’t try to connect them to the MCA166-USB. The connectors are mechanically different.
Communication between MCA166-USB and host computer is possible via a standard serial connection (RS232) or via USB interface. For RS232 communication the RS232 cable with SUB-D9 connector must be connected between the MCAs PC-socket and the computer, for USB communication the special USB cable with LEMO connector must be used respectively. Two baud rates can be used for communication on both interfaces, 38.400 Baud and 307.200 Baud. Both baud rates are usable on both interfaces but most computers doesn't support 307.200 Baud on the RS232 interface. The firmware of the MCA166-USB is able to detect the baud rate and changes it accordingly. Newer application programs tries to connect the MCA with the higher baud rate first, if it doesn't work they try it with 38.400 Baud. This method guarantees that communication always works on the highest possible baud rate without user interaction and maintains compatibility to older MCAs (supporting only 38.400 Baud). Because the firmware of the MCA166-USB is able to detect the baud rate, it is also possible to control this MCA with older application programs which support only 38.400 Baud.
Running the MCA166-USB on a Palmtop computer or Pocket PC is principal possible but needs a special communication cable. Please contact GBS-Elektronik for availability. For proper wiring see Table 5: Wiring Diagram of the PC Interface Connector (female Lemo 0S-306) on Page 21.

To connect a detector switch the device off. Before connecting the high voltage connector of the detector make sure that the built in High Voltage supply has the correct polarity and that the power consumption of the detector does not exceed the maximum value ( 0.5mA or 0.25 Watt).
On the right side of the MCA166-USB case (front view) the high voltage indicator is located (Figure 1). If it shines red a positive HV module is inserted, if it shines blue a negative HV module is present. If the indicator is black / dark gray no HV module is present. Furthermore, it is possible to check the HV polarity by software; go to the menu setup / high voltage and look at indicated polarity. The correct values for HV, polarity, and power consumption should be found in the detectors manual.
If problems occur, it is possible to check the detector signal and the main amplifier signal (Amplifier Test out, see figure 1) with a scope. A typical signal which should be seen is shown in figure 2.

Typical signals which can be seen at the detector preamplifier out and the amplifier test out. This example: CdZnTe Detector SDP310/Z/60, measuring a Cs137 sample, amplifier setting 200*0.91, negative pulses, 1µs shaping time, pulse height equals to about channel 662 of 1024 channels.

Typical errors which may be observed with the detector preamp signal are:
Because of the changed charging mechanism of the MCA166-USB the older battery packs and power packs cannot be used! The MCA166-USB offers a higher battery capacity, improved efficiency and is able to supply more power on ±24V than the older MCA166. So two main features offered by the battery pack / power pack are now partially integrated in the MCA itself and makes this devices obsolete. If more battery capacity is needed, please contact GBS-Elektronik GmbH.
There are several programs to operate the MCA166-USB. All of them serve a special purpose. There are programs for MS-DOS and Windows (32 Bit). The MS-DOS software was originally developed for the HP 200LX, whose footprint coincident with the footprint of the MCA166. The Windows programs were developed to operate the MCA166 more comfortably. Besides, they are (together with at least Windows 98 or Windows 2000) essential to connect the MCA166-USB via USB cable, for the rest, only RS232 communication is possible.
Furthermore, there are programs and software components to view and evaluate the measured data.
The following sections give brief descriptions of the programs. You can find more detailed information on the CD delivered together with the device. You should also use the online help of each program.
The diagnostics menu of each program shows the primary currents of the preamplifier power supply (±12V and ±24V). This are not the currents that draws the detector. However, this currents can be easily calculated using the following formula:
I out≈0.8⋅I Batt⋅U Batt
U out

These programs are the default programs for measuring spectra. It supports semi- automated measurements of gamma ray spectra with the MCA166-USB. The spectra are stored on mass storage media on a PC. There are two variants of WinSPEC. WinSPEC-I (for Inspectors) was designed for standard use. WinSPEC-A (for Automation) was designed for unattended measurements. Special features of WinSPEC-A are:
These programs support semiautomated measurements of time distributions with any radiation detector (HPGe, NaI, CdTe, CdZnTe and neutron counters. There are two variants of WinMCS. WinMCS-I (for Inspectors) was designed for standard use. WinMCS- A (for Automation) was designed for unattended measurements. It contains the same special features like WinSPEC-A (see above).
These programs support stabilized U-235 enrichment verification measurements with a NaI or CdZnTe detector (PMCN, PMCC). The algorithm bases on absolute intensity measurement of the 186 keV photon energy. It also needs a two point intensity calibration with two standards.
Reevaluation/recalibration using previously recorded spectra is possible. Verification results are documented in a report file, which is automatically saved with the extension *.rep.
Similar to U235 or WinU235, but optimized for HPGe detectors. Only one intensity calibration measurement is necessary.
This program supports semiautomated active length measurement (HM-4) using a miniature NaI or CdZnTe detector.

This program supports measurements of count rates with any radiation detector (HPGe, NaI, CdTe, CdZnTe and neutron counters). In the most convenient mode of operation only the menu button "measurement" needs to be "pressed" to start a measurement and showing the count rates in form of a LCD display and a bar graph.
WinSCAN is used for candu bundle verifications. WinSCAN is in its features somewhere between MCA and MCS. It can measure up to 500 Spectra and save them in one file. Evaluation is similar to MCS, just that there is not only an integral spectrum but one spectrum for every point so it is possible to evaluate courses off arbitrary net or integral ROI areas.
Identify is an intelligent, interactive software tool to evaluate spectra measured with the MCA166-USB or other MCAs. It does peak search and nuclide identification. HPGe, CdZnTe and NaI detector gamma spectra are supported. For correct peak search a starting point for the detector resolution and efficiency is assumed based on detector type and size. Features:

MCAPlot and MCAPrint are programs to view and print spectra recorded with the MCA166-USB. Up to 32 spectra can be viewed at the same time and be printed on one page. Also some evaluation functions are available. MCAPlot is not included in the MCA price. MCAPrint is a free downgraded version of MCAPlot.
MMCAEVAL is a program for evaluating groups of spectra and extracting information to a MS Access style data base.
MCAWand is a program for converting different file formats. Please note that there may be always a loss of information as not all kind of information about the spectrum is supported by every file format. The following information is converted:
The following file formats are supported:
*.spe (MCA166 native) *.spe (MCA166 native)
*.chn (Ortec) *.chn (Ortec)
*.spe (Interwinner) *.spe (Interwinner)
*.spc (Target)
*.de1 (Canberra S100)
*.dat (Silena Gamma 2000)
*.spk (Röntgenanalytik)
*.spa (Sarad)
*.usf (URSA)

For communication and evaluation some libraries for MS Windows and Linux are available. This may help the make own application programs or to integrate the MCA166-USB in an existing system.
This table shall just give an overview of possible settings useful with the MCA166-USB. It is far from being complete. For actual settings with your detector, see the detectors manual.

CdZnTe SDP/Z/60 Ritec +300 x x - - neg 1024 90 1
CdZnTe SDP/Z/20 Ritec +500 x x - - neg 1024 80 1
CdZnTe CZT500 Ritec +600 x x - - pos 1024 128 1
NaI 25825 Scionix +550 x x - - pos 512 90 1
NaI 40*40 Amcrys-h -800 x x pos 512 14 1
CsI Sc1010 Eurorad - x x - - neg 256 160 1
HPGe GMX-20190-S Ortec -3000 x neg 4096 18 2
HPGe GEM 15-190 Ortec +3000 x pos 4096 24 2
HPGe GR 2018 Canberra -3000 neg 4096 11 2
HPGe GL 0310 Canberra -2000 x x x - neg 4096 2.3 2
HPGe EGC 30-190R Eurisys -3000 pos 4096 52 2
HPGe EGPC 25-185 Eurisys +2000 neg 4096 35 2




< 0.5% for 1µs shaping time and count rates from 1000 to 70000cps
< 0.2% for 2µs shaping time and count rates from 1000 to 40000cps
at least 25000cps in memory at 50000cps input rate and 1µs shaping time
at least 13000cps in memory at 30000cps input rate and 2µs shaping time

Standard IAEA NaI detector (ORTEC/SCIONIX): 27 hours
Miniature CdTe detection probe (SDP310, RITEC, Latvia): 25 hours
Standard planar HPGe detector (e.g. Canberra, Ortec): 14 hours








1 see Table 4 2 see Windows DLL description

General Remark:
Before changing anything concerning the hardware, plugging or pulling cables etc. shut down the high voltage and switch off the MCA.
Soldering or manipulating with the SMD boards is strongly not recommended for users. We have specialists for that. If you have a problem which cannot be solved by the table below, contact us. If it is really a hardware fault, we can repair this for a fair price.



The MiniMCA spectral data format is in compliance with the IAEA SPE Spectral Data Format (see SPEDAC PRO User’s Manual Rel. 1.0, IAEA, Feb 1994). All information is stored in a block structured ASCII BSA file so that its content can be viewed with any text editor and the file content can be printed directly.
Each block of the file is identified by a string that starts with the dollar sign ($) and ends with a colon (:). The block name is case sensitive. The structure of the data and the order in which blocks appear in the files is uniquely defined.
There are four general types of blocks used by the MiniMCA software (Release 1998): 1. Data Block 2. ROI information 3. Energy or Enrichment Calibration Data 4. Setup information
$MCA_166_ID: Mini MCA module identification SN# 5 Serial number HW# 9503 Hardware version FW# 9619 Firmware version $SPEC_REM: Notes about the spectrum Mini MCA (MCA166-USB) Remarks from the operator prompted before file save. Spectrum measured in facility C:\DATA\format.spe Original storage location of the file. $DATE_MEA: Start date and time of the measurement. 12/31/1996 16:00:00 mm/dd/yyyy hh:mm:ss $MEAS_TIM: Spectrum measurement time in seconds 120 203 (lifetime, real-time) $DATA: Spectral data 0 4095 First channel (i.e. 0) last channel(i.e. 4095) 0 Channel content 0

$ROI: ROI (Region of Interest) 1 Number of ROI’s 266 332 ROI start (i.e. 266) ROI begin (i.e. 332)

$ENER_FIT: Energy calibration coefficients 0.000000 0.393559 Offset and slope (KeV/channel) $ENER_DATA: E-calibration data 2 n point calibration (in this case n=2) 0.000000 0.000000 Channel energy pair (lower) 2981.000000 1173.199951 Channel energy pair (higher)
Data Block · ROI Information · Energy Calibration Data

FILE CONTENT EXPLANATION $ADC: ADC resolution 4096 Channels 0 LLD (lower level discriminator channel) 3967 ULD (upper level discriminator channel) $PRESETS: MCA Presets Integral Live Time, Real Time, Integral (sum of all counts within a ROI) Area (sum of all net counts within a ROI) 10000 Value 1 ROI number 266 332 ROI begin and end (optional line, depend on the application) $PZC_VALUE: PZC Settings 1232 DAC adjustment value for PZC (0..2499 mV) 15 Pre-defined time parameter for PZC adjustment 15 Pre-defined time parameter for PZC adjustment $FAST_DISCR: Fast discriminator level 400 Factory setting for auto threshold $SLOW_DISCR: Slow discriminator level 400 Factory setting for auto threshold $THR: Threshold value (%) 2 % of ADC channels; 2-60 % possible $GAIN_VALUE: Amplifier gain 200 Coarse gain (2...1000) 1.0261 Fine gain (0.5000...1.5000) $DTC: Shaping Time 1 1, 2 µs3
4.0 Actual shaping time4
$INPUT: ADC input source and polarity Amplifier Amplifier (internal main amplifier), Direct (+3V, -3V), direct input with full range amplitude of 3V Neg pos or neg (amplifier input polarity) $PUR: State of the Pile Up Rejector (PUR) On ”on” or ”off” $STAB: Stabilization On ”on” or ”off” 230 ROI limits of the stabilization peak 370 300 Stabilization target channel $STAB_PARAM Stabilization parameter 10 Stabilization time 25000 Stabilization error $POWER: Preamplifier power supply +12= on ”on” or ”off” -12= on ”on” or ”off” +24=off ”on” or ”off” -24=off ”on” or ”off” $HV: High voltage polarity and value +500V Value Unused HV Inhibit Mode
3 1 and 2 µs are the shaping time of a standard MMCA. By use a modified MMCA: 1 = low shaping time, 2 = high shaping time 4 The actual shaping time (only written by newer applications)
Setup Information

Setup information - continued
$MCS_CHANNELS: Multi Channel Scaler (MCS) Setup 4096 Channels $MCS_INPUT: MCS input Extern TTL Extern TTL (external TTL signal), Input Rate (count rate from the internal amplifier / fast
discriminator) $MCS_TIME: MCS time per channel 10 Time in msec , 0.01 – 655.35 sec $MCS_SWEEPS: Number of sweeps 0 0 65535 0 MCS Repeat Mode Type $MODE: Operation Mode MCA MCA or MCS $MCA_REPEAT: Number of sweeps 1 0 65535 0 MCA Repeat Mode Type $TDF Dead Time Correction Factor 800 100 ... 3000, default 800 nsec $POWER_STATE: Power state at the end of the measurement I+12= 8mA Input current of the DC-DC converters for +12V preamplifier power supply from the battery I-12= 3mA Input current of the DC-DC converters for -12V preamplifier power supply from the battery I+24= 0mA Input current of the DC-DC converters for +24V preamplifier power supply from the battery I-24= 1mA Input current of the DC-DC converters for -24V preamplifier power supply from the battery IBAT= 135mA Total current drawn from battery IHV = 14mA Input current of the HV DC-DC converter drawn from the battery ICHR= 0mA External charger current UBAT=7900mV Battery Voltage UHVs= 418mV Control voltage of the HV module $COUNTS: Integral counts 8370252 Sum of all input counts (from the internal amplifier / fast discriminator) of the whole measurement $PD_COUNTS: Integral peak detector counts 5113594 Sum of all input counts from the peak detector $RT: Real time [s] 203 $DT: Dead time [ms] 883027 $BT: Busy time [ms] of the ADC 64042 $STAB_OFFSET: Current offset 315 $STAB_OFFSET_MIN: Minimal offset 310 $STAB_OFFSET_MAX: Maximal offset 408 $STAB_COUNTER: Stabilization cycles 19

Setup information’s – continued

FILE CONTENT EXPLANATION $REC_COUNTER: Counter of received commands 2823 $REC_ERROR_COUNTER: Counter of received commands with errors 2 $SPEC_INTEGRAL: Counts in the spectrum 4098917 $ROI_INFO: ROI information 1 266 332 299.74 24.19 1233477 1142868 2066 ROI# Begin End Centroid FWHM Integral Area Area_Error
According to the specifications other blocks can be added depending on the type of the application. Almost each application add inspection information to the spectrum file. Following tables show the inspection information of applications written by the Research Center Rossendorf or the GBS Elektronik GmbH.
WinSPEC (Inspection information if no extern analysis application or MGAU is attached)

$WINSPEC_INFO: WinSPEC inspection information ANALYSIS:MGAU Extern analysis application attached with WinSPEC 1999/001 Inspection number 1999/10/31 Inspection date Inspector1/Inspector2 Inspector names DIV1/DIV2 Division or section of the inspectors Facility name Facility name FACC Facility code MBA MBA Stratum Stratum ItemID Item ID 10.000 ± 1.000 wt% Declared enrichment Item description Item description 767 Instrument code 0156 MMCA ID 8289/025 Computer ID NAJ Detector type 9475/020 Detector ID Collimator Collimator Filter Filter

WinSPEC (inspection information if CsRation is attached)
$WINSPEC_INFO: WinSPEC inspection information ANALYSIS:CSRATIO Extern analysis application attached with WinSPEC 1999/001 Inspection number 1969/12/31 Inspection date Inspector1/Inspector2 Inspector names DIV1/DIV2 Division or section of the inspectors FACC Facility code ItemID Item ID 1997/01/01 Date of discharge 0.000 Mwd/tU Burnup 0.000 Neutron rate 0.00E00 Calculated Cs ratio at discharge 0.000 % Initial enrichment ICOD Instrument code 0156 MMCA ID 8289/025 Computer ID NAJ Detector type 9475/020 Detector ID Collimator Collimator Filter Filter
WinSPEC (inspection information if MGA is attached)
$WINSPEC_INFO: WinSPEC inspection information ANALYSIS:MGA Extern analysis application attached with WinSPEC 1999/001 Inspection number 1999/01/01 Inspection date Inspector1/Inspector2 Inspector names DIV1/DIV2 Division or section of the inspectors Facility name Facility name FACC Facility code MBA MBA ItemID Item ID Batch ID Batch ID 1997/01/01 Date of declaration 10.000 wt% ± 1.000 % Decl. isotopic abundance and relative uncertainty for 238 Pu 20.000 wt% ± 2.000 % ... for 239 Pu 20.000 wt% ± 2.000 % ... for 240 Pu 25.000 wt% ± 2.500 % ... for 241 Pu 10.000 wt% ± 1.000 % ... for 242 Pu 5.000 wt% ± 0.500 % ... for 241 Am 1.000 ± 0.100 % U / Pu ratio ICOD Instrument code 0156 MMCA ID 8289/025 Computer ID NAJ Detector type 9475/020 Detector ID Collimator Collimator Filter Filter

$WINSCAN_INFO: WinSCAN inspection information 1999/001 Inspection number 1999/11/01 Inspection date Inspector1/Inspector2 Inspector names DIV1/DIV2 Division or section of the inspectors Facility name Facility name FACC Facility code MBA MBA ItemID Item ID Stratum Stratum Item description Item description ICOD Instrument code 0156 MMCA ID 8289/025 Computer ID NAJ Detector type 9475/029 Detector ID 1234/345 Collimator ID 2356/432 Motor drive ID 3478/384 Motor controller ID 3456/419 System ID 2578/456 External amplifier ID 1000/150 Gain (coarse/fine) 0.000 Time constant OUT Output Good measurement. Remarks
UF6 / WinUF6 (inspection information)

$UF6_INSP_INFO: UF6 / WinUF6 inspection information 123 Inspection number 19991006 Inspection date Inspector ID Inspector ID Facility code Facility code LOT LOT ID MBA MBA 4.6%+10mmAl Sample ID 4.462 Declared enrichment 0.003 Declared enrichment uncertainty wt% Scale unit (wt%=weight percent or At%= atom percent) 1.200 Wall thickness 0.012 Wall thickness uncertainty 0.340 Attenuation 0.000 Attenuation uncertainty 1.014 Material correction factor 0.000 Material correction factor uncertainty
WinSCAN (inspection information)

UF6 / WinUF6 (inspection information) - continued

0156 MMCA ID 8289/025 Computer ID NAJ Detector type 9475/029 Detector ID Collimator Collimator Filter Filter
U235 / WinU235 (inspection information)
$INSP_INFO: U235 / WinU235 inspection information 123 Inspection number 19991006 Inspection date Inspector ID Inspector ID Facility code Facility code MBA MBA LOT LOT ID 4.6%+10mmAl Sample ID 4.462 Declared enrichment 0.003 Declared enrichment uncertainty wt% Scale unit (wt%=weight percent or At%= atom percent) 1.200 Wall thickness 0.012 Wall thickness uncertainty 0.340 Attenuation 0.000 Attenuation uncertainty 1.014 Material correction factor 0.000 Material correction factor uncertainty ICOD Instrument code6
0156 MMCA ID 8289/025 Computer ID NAJ Detector type 9475/029 Detector ID Collimator Collimator Filter Filter
5 From here the items are only written and read by WinUF6 6 From here the items are only written and read by WinU235

This appendix lists the algorithms used by the MiniMCA for the following functions:
The area algorithm calculates the number of counts above the background in a ROI. The background area is determined by averaging 4 points on both sides of the peak (the ROI limit points and 3 outer points) and linear fit:
Area = Integral - Background
= − = + + − 3
ROI i i begin end Spectrum Spectrum ROI ROI
3 * 8 1 end
ROI
= ∑
ROI
Integral = Spectrumi i ROI
( ) Integral Spectrum Spectrum
ROI
ROI ROI
= − ∑ ∑
Spectrumi = the absolute number of counts in channels i ROIbegin = the ROI’s start channel ROI end = the ROI’s stop channel

The peak centroid is the sum of the channel contents7 times the channel number divided by the sum of the channel contents in the range of the channels above the half maximum:
∑
i = channel number Spectrum i = net contents of channel i
The Full Width at Half Maximum (FWHM) is the background corrected peak’s width at one-half of its maximum amplitude. The algorithm first proceeds down one side of the peak until it finds a channel (e.g. 1203) whose counts fall below the half maximum channel. It is now made sure that the following channel (e.g. 1204) also falls below the half maximum channel. The same algorithm is applied for the other side of the peak. The left and the right FWHM points are the interpolated channels between the counts of the channel below and above the half maximum value.
Smooth averages the current spectrum (the original data will be overwritten) using a binomial formula:
3 point smoothing:
+ + − + 1 1 2 4 5 point smoothing:
Spectrum
i i i ' * =
Spectrum
16 * 4 * 6 * 4 2 1 1 2 ' + + − − + = i
Spectrumi - the original contents of channel i Spectrumi
' - the smoothed contents of channel i

Strip subtracts a specified fraction of the spectrum. The Strip factor can be “positive“ or “negative“ :
Spectrum = Spectrum - F*Spectrum y
- Count content of channel i in the resulting spectrum Spectrumy - Count content of channel i in the original spectrum F - Strip factor
Spectrumx - Count content of channel i in the spectrum to be subtracted
The Energy calibration allows to convert the x-axis channel numbers into energy values in KeV. The following formula is used:
E = S Channel + O ∗
where, S - Slope O - Offset
The coefficients can be set as numeric values or by linear fit of two energy channel/peak centroid pairs.

The Dynamic Link Library exists as a 16-bit variant (mca_comm.dll) and as a 32-bit variant (mca32com.dll). The DLL must reside in the system directory of Windows or in the same directory as the calling application. In order to include the DLL in your program, you have to use in Visual Basic the file MCA32COM.BAS (valid only for Win32 applications) or in C/C++ the files MCA_COMM.H and MCA_COMM.LIB or MCA32COM.LIB. All functions and structures are declared in these files.
Before you can use any function, the serial communication port must be initialized. Pass to the function COMM_INIT a string with the name of the serial communication port (e.g. ”COM1”). If the return value is unequal zero, the initialization was successful. The serial communication port is unable to initialize if another device (or program) is already using this one. Before you exit your program, you have to close the serial communication port so that it can be used from other programs now. You can use only one communication port at the same time. If you want to change the communication port, you have to close the used communication port before you can initialize another one.
With the function MCA_COMM you can send single firmware commands9 to the MCA. This function is only intended for testing. For the real work with the MCA you should use the other functions (MMCA ) described in chapter A3.1.3. The function MCA_COMM is declared as follows:
ERROR_FLAG FAR PASCAL MCA_COMM( LPSTR command, LPSTR rec_data, unsigned long param1=0, unsigned long param2=0, unsigned long param3=0, unsigned long param4=0);
Declare Function MCA_COMM Lib "Mca32com" ( ByVal Command$, Received As RECDATA, ByVal Param1&, ByVal Param2&, ByVal Param3&, ByVal Param4&) As Integer
8 MCA_COMM.DLL (16 Bit) and MCA32COM.DLL (32 Bit) Version 1.04.0006 for MCA166 Firmware #9901 MCA_COMX.DLL (16 Bit) and MCA32CMX.DLL (32 Bit) Version 1.00.0006 for MCA166 Firmware #9901 9 The firmware commands are described in Appendix 4.
in C/C++ · in Visual Basic

The first argument is a string with the name of the command. In the following table all available commands (use of capital and small letters is possible), the corresponding firmware specific names and the number of the required parameters are listed.
Name of the command Firmware specific name Number of the parameters INIT CMD_INIT 1 START CMD_START 2 STOP CMD_STOP 0 CLEAR CMD_CLEAR 1 MODE CMD_SET_MODE 1 ADC_RES_DISCR CMD_SET_ADC_RES_DISCR 3 THRESHOLD CMD_SET_THRESHOLD 1 PRESETS CMD_SET_PRESETS 2 ROI CMD_SET_ROI 2 REPEAT CMD_SET_REPEAT 1 TIME_PER_CHANNEL CMD_SET_TIME_PER_CHANNEL 1 GAIN CMD_SET_GAIN 2 STABILISATION CMD_SET_STABILISATION 3 PREAMPLIFIER_POWER CMD_SET_PREAMPLIFIER_POWER 1 BIAS CMD_SET_BIAS 2 FAST CMD_SET_FAST 1 SLOW CMD_SET_SLOW 1 SHAPING_TIME CMD_SET_SHAPING_TIME 1 PUR CMD_SET_PUR 1 MCA_INPUT CMD_SET_MCA_INPUT 1 MCS_INPUT CMD_SET_MCS_INPUT 1 INPUT_POLARITY CMD_SET_INPUT_POLARITY 1 USER_DATA CMD_SET_USER_DATA 2 SET_MEASURE_PZC CMD_SET_MEASURE_PZC 2 QUERY_POWER CMD_QUERY_POWER 0 QUERY_STATE CMD_QUERY_STATE 0 QUERY_SPECTRA CMD_QUERY_SPECTRA 2 QUERY_IMAGE CMD_QUERY_IMAGE 3 QUERY_ENRICHMENT CMD_QUERY_ENRICHMENT 4 QUERY_USER_DATA CMD_QUERY_USER_DATA 1 QUERY_CENTROID CMD_QUERY_CENTROID 2 PZC_TIME_OFFSET CMD_SET_PZC_TIME_OFFSET 2 TDF CMD_SET_TDF 1 QUERY_SYSTEM_DATA CMD_QUERY_SYSTEM_DATA 0 MCS_CHANNEL CMD_SET_MCS_CHANNEL 1 UF6_ROIS CMD_SET_UF6_ROIS 3 QUERY_UF6_ROIS CMD_QUERY_UF6_ROIS 0 QUERY_UF6_INFO CMD_QUERY_UF6_INFO 0 STAB_PARAM CMD_SET_STAB_PARAM 2 QUERY_VOLTAGE_CURRENT CMD_QUERY_VOLTAGE_CURRENT 0
The second argument of MCA_COMM refers to the received data of the command (in Visual Basic always a RECDATA data type, in C/C++ a RECDATA or a command specific structure). Information about the data structures you can find in chapter A3.2 and in the files mca32com.bas (Visual Basic) or mca_comm.h (C/C++). The received data are significant if the command is a QUERY command.

The other arguments are the parameters of the firmware command. These arguments are optional since not all commands use the same number of parameters. Unnecessary arguments you can leave out. Information about the parameters you can find in appendix 4. You can ignore the parameters ”preamble”, ”command” und ”end flag” listed in this document. These parameters are assigned the right value automatically. The parameters that you pass to the function MCA_COMM are always long integer. Within the function these parameters are partially passed on to variables with another data type, therefore it is imperative that the maximum values specified in the document are not exceeded. The return value indicates the result of the data transfer. It can be one of the following values:
ERROR_OK = 0 successful data transfer ERROR_INTERFACE = 1 communication port is not initialized ERROR_INVALID_COMMAND = 2 unknown command ERROR_COMMUNICATION = 3 faulty data transfer ERROR_INVALID_PARAM = 4 invalid parameter
For the work with the MCA a lot of functions are available. You can subdivide all functions in five groups:
The query functions are handed over a reference to a specific data structure. You can derive the name of the structure from the name of the function, by leaving out ”MMCA_” from the function name. (e. g. function MMCA_QUERY_STATE requires the data structur QUERY_STATE). The functions and data structures are listed and described in chapter A3.2. You can also find important information in the files mca32com.bas (Visual Basic) and mca_comm.h (C/C++).
The return value indicates the result of the data transfer. It can be one of the following values:
ERROR_OK = 0 successful data transfer ERROR_INTERFACE = 1 communication port is not initialized ERROR_COMMUNICATION = 3 faulty data transfer ERROR_INVALID_PARAM = 4 invalid parameter

MCA Reset Command:
Description All MCA Parameters will be reset to their initial state and the spectra are cleared. The measurement is aborted, but the states of the preamplifier power and the value of the high voltages are unchanged!
Return Code ERROR_OK = 0 (command accepted successfully)
ERROR_INTERFACE = 1 (communication port not initialised)
ERROR_INVALID_COMMAND = 2 (command not yet implemented)
ERROR_COMMUNICATION = 3 (serial communication error, off line)
ERROR_INVALID_PARAMETER = 4 (parameter out of range)
MCA Acquire Commands:
Description The acquisition is started or continued with the actual parameter (mode, resolution, ...)
integer value 0 leaves spectrum and times unchanged the start time is ignored 1 spectrum and time are cleared 2 Repeat Mode 110 (MCA/MCS) 3 Repeat Mode 211 (MCA) 4 Repeat Mode 312 (MCA) 5 Repeat Mode 413 (MCS)
[2. Parameter] Start time long value if the 1. Parameter ≠ 0, then the value is stored in status field (start_time)
Return Code see MMCA_RESET command
Description The acquisition is stopped
Results The mca_state is set to STATE_STOP
Return Code see MMCA_RESET command
10 Measurement will be stopped if buffer overrun. In MCS mode a differential amplitude spectrum per sweep is collected. 11 Measurement will be resumed, after the buffer is read out. 12 Buffers will be overwritten, even if not read out. 13 MCS Repeat Mode with one integral amplitude spectrum for all MCS sweeps.

MCA Mode Commands:

Description The command sets the acquire mode to Multi-Channel Analyser

Description The command sets the acquire mode to Multi-Channel Scaler
MCA Clear Commands:

Description The acquisition is stopped and the spectrum is cleared

Description The acquisition is stopped and the dead time together with the real time are set to 0

Description The acquisition is stopped and the ROI limits are set to LLD and ULD

Description The command is a combination of MMCA_CLEAR_ROI, MMCA_CLEAR_MEMORY and MMCA_CLEAR_TIME

MCA Measurement Setup Commands:


Description The command sets the time for measurement (dead time corrected).


Description The command sets the value for the ROI integral

Description The command sets the value for the ROI area


Description The command sets the ADC resolution and the software discriminator range.

Description The command sets the begin and end of the ROI for the preset integral and area.

Description The command sets the number of sweeps for repetitive measurement.

Description The command sets the number of channels for the MCS and Rate mode.

Description The command sets the dwell time per channel for the MCS mode.
14 It is the real time per channel multiplied with 10 msec.

Description The command selects the count rate signal as MCS input.
Return Code see MMCA_RESET command
Description The command selects the external TTL signals as MCS input.
Return Code see MMCA_RESET command
Description The command selects the software discrimination of ADC-input pulses as MCS input.
Return Code see MMCA_RESET command

MCA Hardware Setup Commands:

Description The command sets the amplifier coarse and fine gain.

Description The command sets the amplifier input polarity to positive.

Description The command sets the amplifier input polarity to negative.

Description The command sets the ADC input to direct (0 to +3V input range) and PUR to off.

Description The command sets the ADC input to direct (0 to -3V input range) and PUR to off.
15 It is the real fine gain value multiplied with 10000.



Description The command sets the amplifier shaping time (1µs). 16

Description The command sets the amplifier shaping time (2µs). 17

16 The values may be different for some MMCA configurations. 17 The values may be different for some MMCA configurations.



Description The command sets the PZC value and returns the PZC offset.


Description The command sets the time offset for the PZC measurement.
18 Please note that this function may cause a firmware hang up if the following requirements are not meets: - statistical distributed input pulses with a count rate between 500 and 30000 Cps - the significant peak is located above the first quarter of the spectrum 19 The function requires a reference to a pzc result array, but the function has no effect on this array at the moment.

MCA Stabilisation Commands:


MCA Detector Power Commands:


Description The command sets the detector high voltage and controls the HV-inhibit-signal.20
20 The high voltages will ramp up or down by the MMCA.

MCA Data Setup Commands:

Description The command sets the dead time correction parameter.

Description The command stores a 32 bit value in the MCA parameter memory.

Description The command sets the begin and the end of a ROI used by the other UF6 commands.

MCA Query Commands:

Description The command reads 32 user data (32 bit values) from the MCA parameter memory.
Result array User_data[n], ... long or float value 0 ...
Contents of the MMCA User Date memory:21
Byte Offset 022 U235: Enrichment Constant 1 WinSPEC: Index for the analysis program WinSCAN: Scan method and scan parameter
Byte Offset 16 MCA Application Mode: U235, LENG, SPEC, MCS, RATE, UF6, WMCA , WMCS , WSPC, WSCN, WUF6, W235, MCAE
Byte Offset 20 HV Inhibit Mode: 0, 1, 2, -123
Byte Offset 22 HV Preset value: 0 ... 3000
Byte Offset 24 Power Switches
Byte Offset 30 Stab. on/off
Byte Offset 32 Repeat Mode : 0, 1, 2, 3, 4 ,100 (100 means software repeat mode), (Bit 15: 0=inactive, 1=active)
Byte Offset 34 El. Repeats (Software mode)
Byte Offset 36 HV Inhibit Mode: 0, 1, 2, -124
Byte Offset 38 HV Preset value: 0 ... 3000
21 Each program should set and test at least the MCA application mode (Byte offset 16). Developer of new applications for the MCA166-USB should publish the shorthand expression of their application. 22 The bytes 0 ... 15 are used differently by the single applications 23 Actual values (are used for automatic restart in applications for unattended measurements) 24 Values can be used as preset values after the MCA powered on

Byte Offset 64 1. ROI pair (ROI End)25
Byte Offset 66 1. ROI pair (ROI Begin)
Byte Offset 68 2.
Byte Offset 120 15.
Byte Offset 124 16. ROI pair
Byte Offset 12826 U235/UF6: Inspection description WinMCS:16 ROI pairs of the MCA spectrum ( similar the other ROIs )
25 In applications with MCS spectrum the ROIs of the MCS spectrum are saved here. In WinMCS the ROIs of the MCA spectrum are saved behind it. 26 The bytes 128 ... 255 are used differently by the single applications


Byte Offset 4 HV primary current [mA] long value
Byte Offset 8 +12 primary current [mA] long value
Byte Offset 12 -12 primary current [mA] long value
Byte Offset 16 +24 primary current [mA] long value
Byte Offset 20 -24 primary current [mA] long value
Byte Offset 48 Power Switches long value 0X80 -24V ON 0X40 +24V ON 0X20 -12V ON 0X10 +12V ON 0X02 HV ON
Byte Offset 64 Battery current [mA] at stop long value
Byte Offset 68 HV primary current [mA] at stop long value
Byte Offset 72 +12 primary current [mA] at stop long value
Byte Offset 76 -12 primary current [mA] at stop long value
Byte Offset 80 +24 primary current [mA] at stop long value
Byte Offset 84 -24 primary current [mA] at stop long value
Byte Offset 88 Battery voltage [mV] at stop long value
Byte Offset 92 HV [V]28 at stop long value
Byte Offset 116 Charger current [mA] at stop long value
27 multiply value with 1.2 V 28 multiply value with 1.2 V 29 see MMCA_QUERY_SYSTEM_DATA

Description The command reads the MMCA state.
Results array MCA acquire mode MCA_MODE MODE_MCA, MODE_MCS
Byte Offset 2 MCA preset MCA_PRESETS PRESET_NONE PRESET_REAL PRESET_LIVE PRESET_INT PRESET_AREA
Byte Offset 4 Preset value long
Byte Offset 8 Elapsed preset long
Byte Offset 12 Repeat value integer value
Byte Offset 14 Elapsed sweeps integer value
Byte Offset 16 MCS time per channel [∗0.01 sec] integer value
Byte Offset 18 Elapsed time per channel [∗0.01 sec] integer value
Byte Offset 20 Real time [sec] long
Byte Offset 24 Counts per seconds long
Byte Offset 28 Dead time [msec] long
Byte Offset 32 Busy time [msec] long
Byte Offset 36 MCA channels integer value 128, ... , 4096
Byte Offset 38 Threshold integer value 2 .. 60
Byte Offset 40 LLD integer value 0 ...
Byte Offset 42 ULD integer value
Byte Offset 44 ROI begin (preset integral/area) integer value
Byte Offset 46 ROI end (preset integral/area) integer value
Byte Offset 48 Amplifier coarse gain integer value 2, ... , 1000
Byte Offset 50 Amplifier fine gain integer value 5000 ... 15000
Byte Offset 52 Slow discriminator value integer value 0 ... 2499 mV
Byte Offset 54 Fast discriminator value integer value 0 ... 2499 mV
Byte Offset 56 High voltage integer value 0 ... 3000 V
Byte Offset 58 High voltage polarity integer value 0 positive 1 negative
Byte Offset 60 Power switches integer value 0X80 -24V ON 0X40 +24V ON 0X20 -12V ON 0X10 +12V ON 0X02 HV ON
Byte Offset 62 PZC value integer value 0 ... 2499 mV
Byte Offset 64 Time offset for PZC and DTC low30 integer value 0 ... 15
Byte Offset 66 Time offset for PZC and DTC high integer value 0 ... 15
Byte Offset 68 Stabilisation state or channel integer value
Byte Offset 70 Stabilisation result MCA_STAB_RESULT STAB_STARTED, STAB_ACTIVE,
30 value multiplied with 0.4µsec
Name MMCA_QUERY_STATE · Parameter -


Byte Offset 76 ADC input MCA_INPUT_ADC ADC_AMPLIFIER, ADC_ DIRECT_POS, ADC_DIRECT_NEG
Byte Offset 78 ADC input polarity MCA_INPUT_POL INPUT_POLARITY_POSITIVE, INPUT_POLARITY_NEGATIVE
Byte Offset 84 MCS input MCA_INPUT_MCS MCS_INPUT_TTL, MCS_INPUT_RATE, MCS_INPUT_DISCR
Byte Offset 108 Last command parameter 1 integer value
Byte Offset 110 Last command parameter 2 integer value
Byte Offset 112 Last command parameter 3 integer value
Byte Offset 120 Differential dead time [0/00] integer value
31 see MMCA_QUERY_SPECTRA 32 see MMCA_QUERY_SYSTEM_DATA


Byte Offset 2 Peak detect counter 48 Bit integer
Byte Offset 10 Fast detect counter 48 Bit integer
Byte Offset 18 Peak detect counter at time-1 48 Bit integer
Byte Offset 26 Fast detect counter at time-1 48 Bit integer
Byte Offset 32 Busy Time [ms] at time-1 long
Byte Offset 40 Real Time [s] of previous sweep long
Byte Offset 44 Dead Time [ms] of previous sweep long
Byte Offset 48 Start time of previous sweep long
Byte Offset 60 Busy time [ms] of previous sweep long
Byte Offset 66 Peak detect counter of previous sweep 48
Byte Offset 74 Fast detect counter of previous sweep 48
Byte Offset 108 Last command parameter 1 integer value
Byte Offset 110 Last command parameter 2 integer value
Byte Offset 112 Last command parameter 3 integer value
33 see MMCA_QUERY_SPECTRA


Byte Offset 122 Low shaping time34 byte value
Byte Offset 123 High shaping time35 byte value
Byte Offset 128 MMCA state STATE_POWER_ON, STATE_READY, STATE_RUN, STATE_SUSPEND, STATE_FINISH, STATE_ERROR, STATE_FAIL

Description The command read the MMCA spectrum image (120x256).
34 The value must be multiplied with 0.1 µsec 35 The value must be multiplied with 0.1 µsec 36 This command should only be used to display the spectrum in a 120 x 256 pixel window.



Description The command reads the begin and end of the 2 ROIs
37 Read out control Bit[15:12], Channel number: Bit[11:0]
Bit[15:12] = 0x00 Read spectrum Bit[15:12] = 0x01 Read MCS amplitude spectrum Bit[15:12] = 0x02 Read spectrum buffer and unlock buffer Bit[15:12] = 0x03 Read spectrum buffer and lock buffer Bit[15:12] = 0x07 Read MCS amplitude spectrum buffer and lock buffer 38 Read out buffer state
Bit[15] = 1 Buffer filled Bit[14] = 1 Buffer overrun


Description The command reads current dead time, real time the integral, begin and end of the UF6 ROIs

Description The command reads the begin and end of the 3 ROIs

Description The command reads peak centroid of the specified ROI

Description The command checks the communication between the MCA and the PC.

Description The command reads the voltages and currents from the MMCA.
Results array Charger current [mA] long
Byte Offset 4 HV primary current [mA] long
Byte Offset 8 Battery current [mA] long
Byte Offset 12 Battery voltage [mV] long
Byte Offset 16 HV reference voltage [V] long
Byte Offset 20 HV control voltage [V] long
Byte Offset 24 +12V primary current [mA] long
Byte Offset 28 +24V primary current [mA] long
Byte Offset 32 -24V primary current [mA] long
Byte Offset 36 -12V primary current [mA] long
Return Code see MMCA_RESET command
This Dynamic Link Library allows the communication with several MCA166-USB. It can manage the serial communication ports COM1 to COM20.
Die Dynamic Link Library exists as a 16-bit variant (mca_comx.dll) and as a 32-bit variant (mca32cmx.dll). The DLL must reside in the system directory of Windows or in the same directory as the calling application. In order to include the DLL in your program, you have to use the in Visual Basic the file MCA32CMX.BAS (valid only for Win32 applications) or in C/C++ the files MCA_COMX.H and MCA_COMX.LIB or MCA32CXM.LIB. All functions and structures are declared in these files.
The use of the function is analogous to the functions of the DLLs for the comunication with one MCA166-USB (see chapter A3.1). However, following differences exist: The return value of the function COMM_INIT is an index of the communication port. You have to pass this index to each function as first parameter so that you can distinguish the communication ports.
The return value indicates the result of the data transfer. It can be one of the following values:
ERROR_OK = 0 successful data transfer ERROR_INTERFACE = 1 communication port is not initialized ERROR_COMMUNICATION = 3 faulty data transfer ERROR_INVALID_PARAM = 4 invalid parameter ERROR_FORBIDDEN_INDEX = 5 forbidden index
Name MMCA_QUERY_VOLTAGE_CURRENT · Parameter -

MCA Reset Command:

Description All MCA Parameters will be reset to their initial state and the spectra are cleared. The measurement is aborted, but the states of the preamplifier power and the value of the high voltage are unchanged! Command syntax
Byte String (HEX) A5 5A 41 00 B9 9B
MCA Acquire Commands:

Description Depending on the value of the first parameter(cf) the command clears the spectrum and the time or not and then the measurement will be started. If the first parameter is not equal zero, the spectrum and the time where cleared and the second parameter(st) is stored as start time.39
Byte String (HEX) A5 5A 42 00 cf 00 stl sth B9 9B

Description The measurement is stopped immediately. There is no synchronisation with the internal clock or dwell time.
Byte String (HEX) A5 5A 43 00 B9 9B
39 See Appendix 3

MCA Mode Command:

Description Depending on the value of the first parameter (mod): MODE_MCA = 0 MODE_MCS = 1 the command set MMCA to the required mode by activating the previous specified setup parameter. The command will be ignored and responded with a error messages, if a measurement is still running. Command syntax
Byte String (HEX) A5 5A 45 00 mod 00 B9 9B
MCA Clear Command:

Description A running measurement is stopped immediately. Depending on the value of the first parameter (clear): CLEAR_MEMORY = 0 CLEAR_TIME = 1 CLEAR_ROI = 2 CLEAR_ALL = 3 the command clears the spectrum, the time information, the ROI limits exclusively or all together. Command syntax
Byte String (HEX) A5 5A 44 00 clear 00 B9 9B
Affected setup value real time, dead time, ROI begin, ROI end

MCA Measurement Setup Commands:

Description The command set the ADC resolution(res: 128, 256 … 4096), the LLD(Low level discriminator) and the ULD(Upper level discriminator) to the values of its three parameter. The command will be ignored and responded with a error messages, if one ore more parameter are invalid or a measurement is still running.
Byte String (HEX) A5 5A 46 00 resl resh LLDl LLDh ULDl ULDh B9 9B

Description The command sets the choice(pre) PRESET_NONE = 0 PRESET_REAL = 1 PRESET_LIVE = 2 PRESET_INT = 3 PRESET_AREA = 4 and value(val) of the preset. The parameter val must be lower then 65536 for PRESET_REAL and PRESET_LIVE! If a measurement is running, only val can be changed.
Byte String (HEX) A5 5A 48 00 prel preh vall valh B9 9B

Description The command sets the begin and end of the ROI for the preset integral and area.(LLD
Byte String (HEX) A5 5A 49 00 begl begh endl endh 00 00 B9 9B


Description The command sets the number(rep: 0 ... 65535) of sweeps for repetitive measurement.
Byte String (HEX) A5 5A 4A 00 repl reph 00 B9 9B

Description The command set the number of channels(ch: 128 ... 4096) for MCS mode
Byte String (HEX) A5 5A 63 00 chl chh 00 B9 9B

Description The command sets the dwell time(tpc: 1 ... 65535) per channel for the MCS mode40.
Byte String (HEX) A5 5A 4B 00 tpcl tpch 00 B9 9B
40 It is the real time per channel multiplied with 10

MCA Hardware Setup Commands:

Description The command sets the amplifier coarse(cg) and fine gain(fg). cg: 2, 5, 10, 20, 50, 100, 200, 500 or 1000 fg: 5000 ... 15000 (for cg = 1000 fg: 5000 ... 10000)
Byte String (HEX) A5 5A 4C 00 cgl cgh fgl fgh 00 00 B9 9B

Description The command sets the input polarity for the internal amplifier. ip = 0 positive input signals ip = 1 negative input signals
Byte String (HEX) A5 5A 56 00 ip 00 B9 9B

Description The command sets the ADC input to amplifier or to direct. ip = 0 input amplifier ip = 3 input direct (0 ... +3V, PUR OFF) ip = 4 input direct (0 ... -3V, PUR OFF)
Byte String (HEX) A5 5A 54 00 ip 00 B9 9B


Description The command sets the input for the Multi-Channel Scaler. ip = 0 external TTL signals ip = 1 internal count rate signal ip = 2 counts only pulses with amplitude between LLD and ULD threshold Command syntax
Byte String (HEX) A5 5A 55 00 ip 00 B9 9B

Description This command set the analogue threshold value (thr: 2 …60).
Byte String (HEX) A5 5A 47 00 thr 00 B9 9B

Description The command sets the amplifier shaping time(dtc). dtc = 1 shaping time low (1 µsec) dtc = 3 shaping time high (2 or 3 µsec)41
Byte String (HEX) A5 5A 52 00 dtc 00 B9 9B
41 The values may be different for some MCA166-USB configurations.


Command syntax pur = 0 turns PUR off pur ≠ 0 turns PUR on Format integer integer integer long integer
Byte String (HEX) A5 5A 53 00 pur 00 B9 9B

Description This command set the fast discriminator threshold (0 ... 2499, default 400).
Byte String (HEX) A5 5A 50 00 fast 00 B9 9B

Description This command set the slow discriminator threshold (0 ... 2499, default 400).
Byte String (HEX) A5 5A 51 00 slow 00 B9 9B


Description The command performs the Pole Zero Cancellation. pv: 0 ... 2499 PZC control voltage pm = 0 set PCZ only pm > 0 set PZC and measure PZC offset Command syntax
Byte String (HEX) A5 5A 58 00 pml pmh pvl pvh 00 00 B9 9B
Results If pm > 0 the function returns with the number of counts and the - PZC offset.

Description The command sets the time offset for Pole Zero Cancellation. t1: 0 ... 31 Time offset for low shaping time t2: 0 ... 31 Time offset for high shaping time
Byte String (HEX) A5 5A 60 00 t1 00 t2 00 00 00 B9 9B

MCA Stabilisation Commands:

Description The command sets the peak stabilisation. fl: 0 turns stabilisation off 1 turns stabilisation on rb+3
Byte String (HEX) A5 5A 4D 00 fll flh rbl rbh rel reh B9 9B

Description The command sets the stabilisation parameters. st: time interval (default 10) sa: area (default 25000)
Byte String (HEX) A5 5A 67 00 stl sth sal sal sal sah B9 9B

MCA Detector Power Commands:

Description The command sets the preamplifier power(pp). 0X80 -24V on 0X40 +24V on 0X20 -12V on 0X10 +12V on 0XF0 all on 0X00 all off Command syntax
Byte String (HEX) A5 5A 4E 00 pp 00 B9 9B

Description The command sets the detector high voltage42and controls the HV-inhibit-input. hv: 0 ... 3000 i = 0 Inhibit off i = 1 ”Canberra- or DFG-mode”, HV shut down if inhibit input < 0.5V i =-1 ”Ortec-mode”, HV shut down if inhibit input = +5V Command syntax
Byte String (HEX) A5 5A 4F 00 hvl hvh il ih 00 00 B9 9B
42 The high voltages will ramp up or down by the MCA166-USB.

MCA Data Setup Commands:

Description The command sets the TDF parameter. tdf: TDF(100 ... 3000, default 800) Command syntax
Byte String (HEX) A5 5A 61 00 tdfl tdfh 0 B9 9B

Description The command sets the begin and the end of a ROI used by the other UF6 commands. r: ROI number b: LLD
Byte String (HEX) A5 5A 64 00 r 00 bl bh el eh B9 9B

Description The command stores a 32 bit value(f) in the MCA parameter memory(64 entries). e: 0 ... 63 parameter number p: 0 ... long or float parameter Command syntax
Byte String (HEX) A5 5A 57 00 e 00 pl pl ph ph B9 9B

MCA Query Commands:

Byte String (HEX) A5 5A 59 00 B9 9B

Byte String (HEX) A5 5A 5A 00 B9 9B

Description The command reads the spectrum data. n: No. of 1. channel and buffer control (Bit 15 ... 12) c: Compress factor (1 ... 32) Command syntax
Byte String (HEX) A5 5A 5B 00 nl nh cl ch 00 00 B9 9B

Description The command read the MMCA spectrum image (120x256). n: No. of 1. Channel c: Compress factor (1 ... 32) v: Vertical full scale (see MCA_VFS in mca_comm.h) Command syntax
Byte String (HEX) A5 5A 5C 00 nl nh cl ch vh vh B9 9B


Description The command reads a 32 bit value from the MCA parameter memory. e: 0 ... 63parameter number Command syntax
Byte String (HEX) A5 5A 5E 00 e 00 B9 9B

Byte String (HEX) A5 5A 62 00 B9 9B

Description The command reads the centroid of a ROI (beg
Byte String (HEX) A5 5A 5F 00 begl begh endl endh 00 00 B9 9B


Description The command read the integral of two ROIs and the real and dead time. pb: Peak1 begin bb: Peak2 begin pl: Peak1 length (8 ... 250 channels) bl: Peak2 length (8 ... 250 channels)
Byte String (HEX) A5 5A 5D 00 pl bl pbl pbd bbl bbh B9 9B

Description The command reads current dead time, real time the integral, begin and end of the UF6 ROIs
Byte String (HEX) A5 5A 66 00 B9 9B

Description The command reads begin and end of the UF6 ROIs
Byte String (HEX) A5 5A 65 00 B9 9B

The order of changing the switches must be followed exactly,
otherwise the µP will be destroyed!
the working voltage (+5 V) is switched on !!
Each MMCA must be programmed with it’s corresponding
HEX-file (e.g. MMCA #6 with Mca6.hex).
Programming the firmware can be done very easy by using the Firmware Wizard program. It is available from the Internet or from the supplied software CD.
Pages referenced in this manual — manufacturer, support and downloads.
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.