Using the QuickUSB Library
Addr Name
Description
Values
11 SETTING_PORTC
Configures Port C default
state. Reading a bit from
IOC returns the logic level
of the port pin that is two
CLKOUT-clocks old.
Writing a register bit to IOC
writes to the port pin latch.
The port latch value
appears on the I/O pin if
the corresponding OEC bit
is set high.
MSB = OEC – Port C Output
Enable Bit Definitions
0 = Disables output buffer
1 = Enables output buffer
LSB = IOC – Port C I/O
0 = Low logic level
1 = High logic level
12 SETTING_PORTD
Configures Port D default
state. Reading a bit from
IOD returns the logic level
of the port pin that is two
CLKOUT-clocks old.
Writing a register bit to IOD
writes to the port pin latch.
The port latch value
appears on the I/O pin if
the corresponding OED bit
is set high.
MSB = OED – Port D Output
Enable Bit Definitions
0 = Disables output buffer
1 = Enables output buffer
LSB = IOD – Port D I/O
0 = Low logic level
1 = High logic level
13 SETTING_PORTE
Configures Port E default
state. Reading a bit from
IOE returns the logic level
of the port pin that is two
CLKOUT-clocks old.
Writing a register bit to IOE
writes to the port pin latch.
The port latch value
appears on the I/O pin if
the corresponding OEE bit
is set high.
MSB = OEE – Port E Output
Enable Bit Definitions
0 = Disables output buffer
1 = Enables output buffer
LSB = IOE – Port E I/O
0 = Low logic level
1 = High logic level
14 SETTING_PORTACCFG
Sets Port A & C
configuration
MSB=PORTACFG – I/O Port A
Alternate Configuration Pin
Definitions
Bit 15: FLAGD – Flag D Alternate
Configuration
1 = PA7 gives FLAGD status
when in Slave Mode
0 = PA7 does not give FLAGD
status in Slave Mode
Note: If both Bit 15 (FLAGD)
and Bit 14 (SLCS) are set, PA7
will be configured to give the
FLAGD status.
Bit 14: SLCS – Slave FIFO Chip
Select Alternate Configuration
1 = PA7 configured as SLCS
input in Slave Mode
0 = PA7 not configured as
SLCS input in Slave Mode
Note: If both Bit 15 (FLAGD)
and Bit 14 (SLCS) are set, PA7
will be configured to give the
FLAGD status.
Bit 13-10: Unused
Bit 9: INT1 – Interrupt 1 Alternate
Configuration
1 = PA1 configured as interrupt
QuickUSB
Settings
49