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 10:17] – 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' | ||
| - | {{ :wiki:hw:mobaxterm_edit.png?400 }} | + | {{ :wiki:hw:mobaxterm_edit1.png?400 }} |
| - | 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. |
| - | {{ :wiki:hw:mobaxterm_vim.png?400 }} | + | {{ :wiki:hw:mobaxterm_vim1.png?400 }} |
| Analog inputs and outputs can be easily tested with the mentioned '' | Analog inputs and outputs can be easily tested with the mentioned '' | ||
| * hrdac1, hrdac2, hrdac3 - values that are to be set on the 20-bit DACs | * hrdac1, hrdac2, hrdac3 - values that are to be set on the 20-bit DACs | ||
| * lrdac[i] - field with values for 16-bit DACs. Note that //i// variable goes from 0 to 15. Values stored in lrdac[0], lrdac[1], | * lrdac[i] - field with values for 16-bit DACs. Note that //i// variable goes from 0 to 15. Values stored in lrdac[0], lrdac[1], | ||
| - | * adc[] | + | * 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. | ||
| + | * muxA, muxB - setting of multiplexers, | ||
| + | * adc1, adc2 - store values for Red Pitaya' | ||
| + | |||
| + | Important functions are the following ones: | ||
| + | * 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_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.1740043078.txt.gz · Last modified: 2025/02/20 10:17 by admin
