Stress ratings above those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress rating only and operation of the
device at these or any other conditions above those indicated in the operational sections of the specification is not implied. Exposure to absolute maximum rating conditions for
extended periods may affect device reliability.
Note 2:
The shortest allowable S clock period = 1/f
SK
(as shown under the f
SK
parameter). Maximum SK clock speed (minimum SK period) is determined by the interaction of
several AC parameters stated in the datasheet. Within this SK period, both t
SKH
and t
SKL
limits must be observed. Therefore, it is not allowable to set 1/f
SK
= t
SKH
(minimum) +
t
SKL
(minimum) for shorter SK cycle time operation.
Note 3:
CS (Chip Select) must be brought low (to V
IL
) for an interval of t
CS
in order to reset all internal device registers (device reset) prior to beginning another opcode cycle.
(This is shown in the opcode diagrams in the following pages.)
USB100 rev.D
3
www.fairchildsemi.com
USB100 Programmable Low-Cost USB Machine (PLUM)
Interface Pin Descriptions
H1, H2, H3, H4, V1, V2 (Roller/Joystick inputs)
When configured as roller inputs these pins function in pairs, H1
and H2, H3 and H4, V1 and V2 to allow photo diodes to be
attached in a mouse or trackball application. See the section
“Roller Movement Reporting” for a more detailed description.
When configured for a joystick only one of the inputs pairs is used.
A potentiometer is attached to track the movements of a joystick
lever. When these inputs are configured as buttons they all act
independently as active low button inputs. All of them have
internal pull-ups and debounce circuitry which can be programmed
using the ICB registers. These inputs also contain current sink
features so no external resistor is needed to sink current from the
photo diode.
O1, O2 Functionality. ICB register 1[3:2]
IOM[1:0]
00
01
11
Function
Both O1 and O2 function as programmable
outputs.
O1 is a programmable output but O2 is a
standard button input.
Both O1 and O2 are standard inputs.
In case these are selected as outputs, their state (1 or 0) can be
set using the USB set_report command. These outputs are open-
collector. A typical use of these outputs is using them to drive LEDs
(for example, a drag-lock function in a trackball). These pins have
a programmable current sink capability.
B1, B2, B3, B4, B5, B6, B7, B8/F (Button inputs)
The button inputs to the USB100 have internal pull up resistors,
with active low inputs to the chip. These inputs also contain
debounce circuitry which can be programmed by the ICB regis-
ters.
B8/F
When this pin is configured as an input it will behave as a standard
button input. But if the pin is disabled in the ICB registers then this
pin can be used to control the roller LEDS in powersave mode.
Using the B8/F pin to control the LEDs
Key Debounce Select Table (ICB register3[3:2])
KD[1:0]
00
01
10
11
15 ms
30 ms
45 ms
60 ms
VDD
USB100
F
This allows the LEDs to be shut off during powersave mode which
allows the USB100 to draw very little current. The official name for
powersave mode on a USB device is known as suspend mode
which is discussed in the section labeled Suspend Mode Opera-
tion.
USBD -, USBD +
These inputs are the serial bus lines which USB data is commu-
nicated. These bi – directional lines connect to the host, through
a USB type A or type B connector, and are used to communicate
all USB information to and from the host. The two lines must both
be wired through a 27 ohm resistor before being attached to the
USB connector. See Recommended Configuration for a detailed
diagram.
OSC1, OSC2
These two pins are the clock inputs into the USB100. The speed
at which the chip runs at is 6MHz. The clock sign can be generated
two ways. The first is to use a parallel resonant, fundamental mode
crystal circuit or a ceramic resonator circuit connected to the
OSC1 and OSC2 inputs. The other method is to use a crystal
oscillator connected to the OSC2 input and leaving the OSC1
input unconnected
Reset
This pin is used to reset the entire chip. It must be held high for
more than 10ns, to reset the chip and then brought low for the reset
of normal chip operation.
O1, O2
These two pins are wired to internal registers which can be
programmed with either a “1” or a “0” by a USB request. If this
command is sent to the USB100. INSERT COMMAND FROM
INSPECTOR. Then the O1 and O2 pins will be programmed with
the values that are in the second data package. These two pins
can also be configured as standard button inputs by one of the ICB
registers.
USB modes of operation
The USB100 loads up its configuration from the EEPROM on
power-on reset, or when a USB reset command is issued. Upon
completion of reset, the device is in a operational mode, and
responds correctly to the various commands described in the USB
spec rev 1.0. The USB100 supports two endpoints – the default
endpoint (endpoint 0) and the interrupt endpoint (endpoint 1). The
supported packet size on both endpoints is 8 bytes. The endpoint
1 is an “IN” endpoint.
USB100 rev.D
4
www.fairchildsemi.com
USB100 Programmable Low-Cost USB Machine (PLUM)
Standard Requests
The USB100 supports all of the required standard requests.
These requests are sent to the device using control transfers to
endpoint 0.
In USB terminology, the data transmitted by the mouse when
movement is detected is called a report. The reports are gener-
ated by the USB100 device in accordance to the USB HID spec
1.0 Final.
IS[3:0]
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
Current
0.1 mA
0.2 mA
0.3 mA
0.4 mA
0.5 mA
0.6 mA
0.7 mA
0.8 mA
0.9mA
1.0mA
Programming the EEPROM
The on-chip EEPROM can be programmed in a special mode
which defines some of the button inputs/output as a microwire
port.. In this mode, these inputs behave as a conventional Microwire
serial port. Data can be easily programmed and verified, by
executing simple EEPROM programming commands.
Initial Configuration Bytes (ICB) register
description
The first five bytes in the EEPROM are used to configure the
physical characteristics of the USB100 device, and are called the
Initial configuration Byte registers. Some of the bits in these
registers are reserved, and are referred to as RFU (reserved for
future use) in the following section.
Input Pin Configuration Byte 0 (ICB0) (Address 1)
D7
B8
D6
B7
D5
B6
D4
B5
D3
B4
D2
B3
D1
B2
D0
B1
Roller Configuration Byte (Address 0)
D7
IS3
B[7:0]:
Input Pin Report Generator. A ‘1’ causes this bit to be
reported in the corresponding report generated when the device
is polled for the status. The device accepts only the following bit
patterns as valid. B[7:0] control the functionality for pin inputs
B[8:1] respectively.
00000000
00000001
00000011
00000111
00001111
00011111
00111111
01111111
11111111
D6
IS2
D5
IS1
D4
IS0
D3
D2
D1
R1
D0
R0
IOM1 IOM0
R[1:0]:
No of roller pairs. This pair of bits configure the function-
ality of the three roller pair inputs – <H1, H2>, <V1,V2> and <H3,
H4>.
00: No rollers on this device, all roller inputs are available as
general purpose inputs
01: H1, H2 are the only roller mechanism active. The other
roller inputs are available as general purpose inputs.
10: H1, H2 and V1 and V2 are defined as roller mechanism
pairs. The other pair is still available as general purpose
inputs.
11: All the three pairs of roller inputs function as roller inputs.
It must be noted that the reassignment of the rollers must be done
only as follows: If the application needs to use only one roller – use
H1 and H2. Two rollers – use H1, H2 and V1, V2, Three rollers –
use H1, H2, V1, V2 and H3, H4. Any other choice for roller use is
illegal and results in unpredictable device behavior.
IOM[1:0]:
I/O functionality of the O0 and O1 pins. When IOM0 is
set to ‘0’, the O0 bit functions as an output. When set to ‘1’ it
becomes an input. . When IOM1 is set to ‘0’, the O1 bit functions
as an output. When set to ‘1’ it becomes an input. The only valid
combinations for these bits are 00, 01 and 11 respectively.
IS[3:0]:
This 4-bit value is to set the amount of current that an
external device can sink into the H1, H2, V1, V2 and H3 and H4
inputs When these bits are set to 0000 the current sink is set to 0.1
mA on each of the inputs. In can be varied in steps of 0.1mA up
to a max of 1 mA.
Input Pin Configuration Byte 1 (ICB1) (Address 2)
D7
IO1
D6
IO0
D5
EB5
D4
EB4
D3
EB3
D2
EB2
D1
EB1
D0
EB0
EB[5:0]:
Input Pin Report Generator, Extended byte. The func-
tionality of this register is influenced by the roller configuration
byte. A ‘1’ causes this bit to be reported in the corresponding report
generated when the device is polled for the status. EB0 corre-
sponds to H3 and EB1 corresponds to H4. EB2 corresponds to V1
and EB3 corresponds to V2. EB4 corresponds to H1 and EB5