Using the QuickUSB Library
Addr Name
Description
Values
0=Normal
1=Inverted
Bit 3: ASYNC – GPIF clock mode
select
0=Synchronous GPIF
1=Asynchronous GPIF
Bit 2: Reserved (do not change)
Bit 1-0: IFCFG- HSPP
Configuration
00=I/O ports
01=Reserved
10=GPIF Master mode
11=Slave FIFO mode
4
SETTING_FPGATYPE
Sets the FPGA
configuration scheme
MSB=Reserved (Reads 0, Ignored
if set),
LSB – FPGATYPE
Bit 7-1 : Reserved
Bit 0 : FPGATYPE
0 = Altera Passive Serial
1 = Xilinx Slave Serial
5
SETTING_CPUCONFIG
Sets the CPU
configuration. Controls the
FX2 CPUCS register.
MSB= Misc Settings
Bit 15: USB Bus Speed
0=Force full speed (12Mbps)
1=Allow high speed (480Mbps)
Bit 14-8: Reserved for future use
LSB=CPUCS – Bit definitions:
Bit 7-6: Unused R/O = 0
Bit 5: Reserved (do not change)
Bit 4-3: CLKSPD – CPU clock
speed
00=12MHz
01=24MHz
10=48MHz
11=Reserved
Bit 2: CLKINV – Invert CLKOUT
0=Normal
1=Invert CLKOUT
Bit 1: CLKOE – CLKOUT output
enable
0=Tri-state the CLKOUT pin
1=Drive the CLKOUT pin
6
SETTING_SPICONFIG
Configures the SPI
interface
MSB=PORTECFG – Port E
Alternate Configuration Bit
Definitions:
Bit 15: GPIFA8 – Enable GPIF
Address Pin
1 = Configure PE7 as
GPIFADR[8] output
0 = Configure PE7 as GPIO
Bit 14-8: Reserved, do not change
LSB=SpiConfig – SPI Configuration
Bit definitions:
Bit 7-1: Reserved for future use
Bit 0: SPIENDIAN – Sets SPI bit
order
0=LSBit to MSBit
1=MSBit to LSBit
QuickUSB
Settings
47