hwboxtest
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
hwboxtest [2025/02/20 11:00] – admin | hwboxtest [2025/02/25 14:43] (current) – pklapetek | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Basic testing ====== | ||
+ | |||
+ | |||
After successful login to Red Pitaya' | After successful login to Red Pitaya' | ||
{{ : | {{ : | ||
- | The programs are written in plain C programming language and are quite self explanatory. | + | The programs are written in plain C programming language and are quite self explanatory. |
{{ : | {{ : | ||
Line 12: | Line 15: | ||
* adc[] - field with values for 18-bit ADCs. Values stored in adc[0], adc[1],... correspond to AI1, AI2,... on the Gwyscope box. | * adc[] - field with values for 18-bit ADCs. Values stored in adc[0], adc[1],... correspond to AI1, AI2,... on the Gwyscope box. | ||
* read_adc1, read_adc2 - boolean variables that control whether first or second 8-channel 18-bit ADC should be read. Value of 1 means yes, we should read it. | * read_adc1, read_adc2 - boolean variables that control whether first or second 8-channel 18-bit ADC should be read. Value of 1 means yes, we should read it. | ||
- | * muxA, muxB - setting of multiplexers, | + | * muxA, muxB - setting of multiplexers, |
* adc1, adc2 - store values for Red Pitaya' | * adc1, adc2 - store values for Red Pitaya' | ||
- | Important functions are the following: | + | Important functions are the following |
- | * librp_SetHRDAC1() - sets voltage on the first (most left) 20-bit DAC; Note that the SPI communication is implemented on the FPGA, so this won't work on PCB V4 and older; similar functions exist for the other two DACs | + | * librp_SetHRDAC1() - sets voltage on the first (most left) 20-bit DAC; Note that the SPI communication is implemented on the FPGA, so this is hardware specific and it won't work on PCB V4 and older; similar functions exist for the other two DACs |
- | * librp_SetDAC() - sets voltage on Red Pitaya' | + | * librp_SetDAC() - sets voltage on Red Pitaya' |
+ | * librp_SPICycle() - SPI communication between CPU and other devices. Up to PCB V4 this is used for communication with all ADCs and DACs. Since version V5 the 20-bit DACs are controlled by dedicated functions, see above. | ||
+ | * librp_ReadADC() - reads voltages from RP's fast analog inputs. | ||
{{ : | {{ : | ||
+ | |||
+ | If '' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | To test the functionality of the SPI communication, |
hwboxtest.1740045600.txt.gz · Last modified: 2025/02/20 11:00 by admin