Quick USB device Labview access 1222020 1 Quick
Quick. USB device & Labview access 12/2/2020 1
Quick. USB (QUSB) device 12/2/2020 2
QUSB device The target interface consists of: • One 8 or 16 -bit High-Speed Parallel Port (HSPP) • Up to five general-purpose 8 -bit parallel I/O ports • Two RS-232 compatible ports • One I 2 C master port • One soft SPI master port supporting up to 10 slave devices • One FPGA configuration port (Altera PS or Xilinx SS) 12/2/2020 3
Evaluation board • QUSB plug-in module • FPGA ( Altera Cyclone II EP 2 C 20) • Connectors to access IO pins of FPGA and QUSB buses 12/2/2020 4
Labview access There are 8 access in the Labview control panel: 1. QUSB device INFO 2. Memory access (Registers, RAM, FIFO) 3. I 2 C 4. FPGA firmware configuration 5. RS 232 6. SPI (Serial peripherial bus) 7. SETTING (QUSB device settings) 8. GPIO (QUSB GPIOs) 12/2/2020 5
QUSB device information This access will show the information of the QUSB module: Device ID, hardware revision, manufacturer, Serial number. 12/2/2020 6
Memory access In this access, you can write and read the Register, RAM or FIFO in the FPGA. 12/2/2020 7
FPGA firmware configuration Config FPGA In this access, you can download the FPGA configuration file (Altera binary files are of type RBF and Xilinx are of type BIT. ) to the FPGA. 12/2/2020 8
FPGA firmware configuration 12/2/2020 STEP: 1. Apply FPGA Power by press the button of “FPGA Power”; 2. Select the FPGA configuration file by the “FGPA configuration File path”; 3. Click the “Write” button and it will program the FPGA. The Labview message dialog box will display “FPGA was successfully configured” if the FPGA was successfully configured and display the reason if the FPGA 9 was failed.
FPGA firmware configuration “failed” A B Config FPGA failed for these reasons. 12/2/2020 C 10
QUSB GPIO access In the access, you can read and write the direction and value of the Quick. USB port. The Quick. USB module has five 8 -bits generalpurpose I/O ports named port A~E. Of those, some may be used for other purposes. So you must be careful of the operation. 12/2/2020 11
QUSB device SETTING access In the access, you can read and write the Quick. USB Setting. The Quick. USB module has certain settings that control the behavior of the module. These functions manipulate those setting in order to customize the module’s behavior for your particular needs. 12/2/2020 12
SPI access 12/2/2020 13
RS 232 access In the access, you can read and write data by the RS 232. 12/2/2020 14
I 2 C access In this access, the user can read and write by the I 2 C bus. The QUSB module has an EEPROM connected to the I 2 C bus, and the address of the EEPROM is 0 d 81. So the address 0 d 81 is forbidden to write. 12/2/2020 15
Configuration of Hard. Roc studies Set the 571 slow controls parameters. 12/2/2020 16
Memory—reg, fifo, ram This is the memory map in the FPGA: • 5 16 bits Register • 4 16 bitsx 512 Ram • 1 16 bitsx 128 FIFO 12/2/2020 17
12/2/2020 18
- Slides: 18