Command Reference - ArrowElectronics/AnalogMAX GitHub Wiki
The AnalogMAX-01 interface is not publicly documented but this page describes the command reference for the AnalogMAX-DAQ1, AnalogMAX-DAQ2 and AnalogMAX-DAQ3 products which implement a handler for executing commands. The serial interface speed is based on the USB driver. The serial baud rate setting continues to exist for historical reasons but does not influence the USB transfer rate. The commands consists of a single character in UTF-8 encoding. Each command must be transmitted individually. All data is transmitted in readable ASCII format, and commands are not echoed by the module.
These commands are recognized by AnalogMAX-DAQ1 and AnalogMAX-DAQ2 since module revision 02:
"1" Sets the pre-amplification of the ADC's input to 1
"2" Sets the pre-amplification of the ADC's input to 2
"4" Sets the pre-amplification of the ADC's input to 4
"8" Sets the pre-amplification of the ADC's input to 8
These commands are recognized by AnalogMAX-DQA3 in every module revision:
"0" Deactivates the pre-amplifier
"1" Sets the pre-amplification of the ADC's input to 0.25
"2" Sets the pre-amplification of the ADC's input to 0.5
"3" Sets the pre-amplification of the ADC's input to 1
"4" Sets the pre-amplification of the ADC's input to 2
"5" Sets the pre-amplification of the ADC's input to 4
"6" Sets the pre-amplification of the ADC's input to 8
"8" Sets the pre-amplification of the ADC's input to 16
These commands are recognized by every module:
"t" The ADC measures 1 mega samples and saves the values into its SD-RAM
"x" Instead of ADC values, the value "12345" is stored 1M times into its SD-RAM, values are transmitted via ".", "+" and "*"
"y" Instead of ADC value, hexadecimal values, in ascending order, are generated and stored into the SD-RAM,the values are transmitted in via "." , "+" and "*"
"z" The value "12345" is generated and direct transmitted 256 times
"r" The ADC measure once and transmits this value
"." A single value of stored ADC or generated measurement is transmitted
"+" 128 values of stored ADC or generated measurements are transmitted
"*" 16 kbit values of stored ADC or generated measurements are transmitted
"?" The module returns its ID:
TEI0015 with ADC AD4003 / 2 MSps returns "1"
TEI0016-0x-08-C8A with ADC ADAQ7988 / 0.5 MSps returns "2"
TEI0016-0x-08-C8B with ADC ADAQ7980 / 1 MSps returns "3"
TEI0023A with ADC AD4003 / 2 MSps returns "4"
"F" The module activates a square wave signal,
frequency = 10 kHz and amplitude is +3,3 V / ground
the signal is accessible on the pads
- D5 in normal mode and
- D6 in time inverted mode
"f" Deactivation of the square wave signal
To communicate with the module, a serial comport port with a speed set to 115200 bits needs to be opened.
Commands consists of a single character in UTF-8 encoding.
It is good practice to communication with the module following these steps:
- Open a serial comport
- Clear the PCs serial comport input buffer of the opened comport
- Send the desired commands, each one in a single write operation to the comport
- Close the serial comport as soon as possible
These steps apply also for read operations.
The module provides a method to gather highly accurate consecutive ADC measurements in a single event.
In this mode of operation, one mega sample of ADC values are performed and stored inside the modules SD-RAM.
The following step should be taken in this mode:
- Open a serial comport
- For TEI0015 and TEI0016: Send the command "1", "2", "4" or "8" for the ADC pre-amplification of 1, 2, 4, 8
For TEI0023: Send the command "1", "2", "3", "4", "5", "6" or "7" for the ADC pre-amplification of 0.25, 0.5, 1, 2, 4, 8 and 16 - Send the command "t" to trigger the consecutive measurement.
(The module always measures 1 MSample of data into its SD-RAM) - Clear the PCs serial comport input buffer of the opened comport
- Send the command "+" or "*"to the module, it then transmits 128 or 16384 Samples of ADC values
- Read the amount of ADC values in one chunk of 128 or 16384 samples from the PCs serial input buffer
(Otherwise there is a high possibility of a misalignment of nibbles) - Repeat the reading of chunks to a maximum of 1 mega sample
- Close the comport
After a trigger event, the one mega sample of data is stored until your retrigger. So processing the data can
be done for each chunk individually or the whole one mega sample.
Information to convert the RAW ADC data into standard integer values.
Resolution: 18-bit in 5 nibbles
Maximum sampling rate: 2 MSPS
Order of Values:
Hex | Dec | Hex | Dec | ||
---|---|---|---|---|---|
Mid scale | 0x00000 | 0 | |||
Positive 1 LSB | 0x00001 | 1 | to full scale -1 LSB | 0x1ffff | 131071 |
Negative full scale | 0x20000 | 131072 | to -1 LSB | 0x3FFFF | 262143 |
The layout of the ADC circuit is further described in the Analog Devices circuit note CN-0385.
Resolution: 16-bit in 4 nibbles
Maximum sampling rate: 0.5 MSps / 1 MSps
Order of Values:
Hex | Dec | Hex | Dec | ||
---|---|---|---|---|---|
Negative full scale is | 0x0000 | 0 | to -1 LSB | 0x7fff | 32767 |
Mid scale is | 0x8000 | 32768 | |||
Positive 1 LSB | 0x8001 | 32769 | to full scale | 0xffff | 65536 |
The layout of the ADC circuit is further described in the Analog Devices circuit note CN-0393.
Resolution: 18-bit in 5 nibbles
Maximum sampling rate: 2 MSPS
Order of Values:
Hex | Dec | Hex | Dec | ||
---|---|---|---|---|---|
Mid scale | 0x00000 | 0 | |||
Positive 1 LSB | 0x00001 | 1 | to full scale -1 LSB | 0x1ffff | 131071 |
Negative full scale | 0x20000 | 131072 | to -1 LSB | 0x3FFFF | 262143 |