Using the QuickUSB Library
Addr Name
Description
Values
7 SETTING_SLAVEFIFOFLAG
S
Returns Slave FIFO flag
status.
Note: These flags are only
significant when the FX2 is
in slave FIFO mode. These
flags do not reflect the
polarity of the Slave Output
Flags on FLAGA, FLAGB,
FLAGC, and FLAGD since
the polarity can be
changed with the
SETTING_FIFO_CONFIG
register.
Bit 15-12: Reserved for future use
Bit 11: RDY0 Pin Status
Bit 10: Reserved for future use
Bit 9: Empty Flag for EP6
(QuickUsbReadData) FIFO.
Active high signal
Bit 8: Full Flag for EP6
(QuickUsbReadData) FIFO.
Active high signal
Bit 7-4: Reserved for future use
Bit 3: RDY1 pin status
Bit 2: Reserved for future use
Bit 1: Empty flag for EP2
(QuickUsbWriteData) FIFO.
Active high signal
Bit 0: Full Flag for EP2
(QuickUsbWriteData) FIFO.
Active high signal.
8
SETTING_I2CTL
Configures I2C peripheral MSB = Last I2C I/O status, read
only
Bits 15-8:
00000110 Bus error
00000111 No Ack
00001000 Normal completion
00001010 Slave wait
00001011 Timeout
LSB=I2CTL – I2C Compatible Bus
Control Bit definitions
Bit 7-2: Reserved for future use
Bit 1: Reserved – Do not change
Bit 0: 400KHz – Sets I2C bus clock
speed
0=Approx 100KHz
1=Approx 400KHz
9
SETTING_PORTA
Configures Port A default
state. Reading a bit from
IOA returns the logic level
of the port pin that is two
CLKOUT-clocks old.
Writing a register bit to IOA
writes to the port pin latch.
The port latch value
appears on the I/O pin if
the corresponding OEA bit
is set high.
MSB = OEA – Port A Output
Enable Bit Definitions
0 = Disables output buffer
1 = Enables output buffer
LSB = IOA – Port A I/O
0 = Low logic level
1 = High logic level
10 SETTING_PORTB
Configures Port B default
state. Reading a bit from
IOB returns the logic level
of the port pin that is two
CLKOUT-clocks old.
Writing a register bit to IOB
writes to the port pin latch.
The port latch value
appears on the I/O pin if
the corresponding OEB bit
is set high.
MSB = OEB – Port B Output
Enable Bit Definitions
0 = Disables output buffer
1 = Enables output buffer
LSB = IOB – Port B I/O
0 = Low logic level
1 = High logic level
48
QuickUSB Settings