The modules TEI0015 and TEI0016 implements a handler for executing commands. The serial interface speed
must be set to 115200 bits, commands consists of a single character in UTF-8 encoding.
Each command must be transmitted individually.
These commands apply since module revision 03.
"1" Sets the pre-amplification of the ADC's input to 1. Firmware dependend
"2" Sets the pre-amplification of the ADC's input to 2. Firmware dependend
"4" Sets the pre-amplification of the ADC's input to 4. Firmware dependend
"8" Sets the pre-amplification of the ADC's input to 8. Firmware dependend
"r" The ADC measure once and transmits this value
"t" The ADC measures 1 mega samples and saves the values into its SD-RAM
"." A single value of stored ADC measurment is transmitted
"+" 128 values of stored ADC measurements are transmitted
"*" 16 kbit values of stored ADC measurements are transmitted
"x" Instead of ADC values the value "12345" is stored 1M times in 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
"?" The module returns its ID, TEI0015 returns "1" and TEI0016 returns "2"
This demo works with the modules TEI0015 and TEI0016. In this example the ADC of the module measures one million samples
and stores them inside its SD-RAM. The data is collected, converted and shown as graph plot, showing its value and
time behaviour and for the second graph a Fourier transformation is performed, showing the Frequency spectrum.
The user can adjust the pre-amplification and length of the data to be processed.
In this demo the general approach on how to communicate with the module and perform high speed measurements with
the ADC are shown.
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:
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:
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 / 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 / 4 nibbles
Maximum sampling rate: 0.5 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.