31
Set_Feature_Endpt0 02 03 00 00 xx 00 00 00
02 03 00 00 00 00 00 00
02 03 00 00 80 00 00 00
xx = 00 = Endpt0 OUT
xx = 80 = Endpt0 IN
Default: Stall (unde ned in USB Spec)
Addressed: Stall
Con gured: Stall
Notes: This (tries to) sets the halt bit. The chip always stalls the status stage for this command. The
chip never reports the halt bit set for Endpt0 with the Get_Status_Endpt0 command, as any
new SETUP command will clear Endpt0 stall.
Set_Feature_Endpt1 02 03 00 00 81 00 00 00
Default: Stall (unde ned in USB Spec)
Addressed: Stall
Con gured: Accept
Notes: Sets the halt bit for Endpt1.
Clear_Feature_Device 00 01 01 00 00 00 00 00
Default: Accept (unde ned in USB Spec)
Addressed: Accept
Con gured: Accept
Notes: This clears the remote wakeup bit.
Clear_Feature_Endpt0 02 01 00 00 xx 00 00 00
02 01 00 00 00 00 00 00
02 01 00 00 80 00 00 00
xx = 00 = Endpt0 OUT
xx = 80 = Endpt0 IN
Default: Accept (unde ned in USB Spec)
Addressed: Accept
Con gured: Accept
Notes: The chip does NOT stall like it does for Set_Feature_Endpt0.
Clear_Feature_Endpt1 02 01 00 00 81 00 00 00
Default: Stall (unde ned in USB Spec)
Addressed: Stall
Con gured: Accept
Notes: See Set_Feature_Endpt1.
32
Set_Idle 21 0A xx rr 00 00 00 00
xx = 00 All reports
xx = 01 First report
rr = rate in multiples of 4mS
Default: Accept
Addressed: Accept
Con gured: Accept
Notes: The third byte of the command is to select the Report ID. There is only one for the mouse – so,
using either 00 or 01 will work.
The fourth byte of the command sets the rate in multiples of 4mS. The initial value for mice will
be x00 which means “in nite” – that is packets only come out when there is a change in data.
Data will only be allowed to come out when the device is con gured. However, the chip will
accept the command in Default or Addressed mode and use that value when the device is later
con gured.
Set_Vendor_Test 40 01 00 00 xx yy 00 00
xx = address
yy = data
Default: Accept
Addressed: Accept
Con gured: Accept
Notes: Address range for “xx” should be 0x00 to 0x3F. Addresses above this are reserved for possible
future use. See also Get_Vendor_Test.
33
Poll_Endpt1
Returns: bb xx yy zz tw
bb = button byte
xx = X motion byte
yy = Y motion byte
zz = Z motion byte (if Z-Wheel)
tw = tilt wheel byte
Default: Ignore request
Addressed: Ignore request
Con gured: Accept (NAK if no data; Send packet if available)
Notes: See also Get_HID_Input. Endpt will only stall if halt bit is set by Set_Feature_Endpt1. Details
of data packet are below
Endpt1 should be polled at least every 10 frames (mS). It is typically polled every 8 frames
on Windows machines. For internal testing, Endpt1 can be continuously polled if desired.
The chip will not generate any report packets unless in the Con gured state.
If Endpt1 is currently empty, any motion or button change will be loaded into the Endpt1
bu ers. Once the Endpt1 bu ers are full, any further motion events will get accumulated.
When the Endpt1 bu ers are later polled and emptied, the current accumulated X/Y/Z
values will be loaded into the Endpt1 bu ers. After transferring their data, the accumula-
tion registers are reset so they are ready to start accumulating new motion events.
Button information is handled a bit di erently. If the Endpt1 bu ers are empty, and a
button change event occurs, the new button state is put into the Endpt1 bu ers. At the
same time, the button state that is put in Endpt1 is copied for later use. While Endpt1 is
full, changes in button state are essentially ignored. When Endpt1 is emptied, if the current
button state is di erent than that which was last loaded into Endpt1, then the new state
will be loaded and a new copy saved. Basically, the button state that is loaded into Endpt1
is always the current button state at that point in time. It should also be noted that there is
hardware on the chip to help de-bounce the buttons.
Special note on wLength: The wLength paramater in commands speci es the maximum number of bytes a device
should send back. The commands listed below are not able to handle a wLength of 0 cor-
rectly.
Get_Status_Device
Get_Status_Interface
Get_Status_Endpt0
Get_Status_Endpt1
Get_Con guration
Get_Interface
This chip will send one byte of data rather than none when wLength=0 is requested for the
above commands.

ADNS-5700-H3PB

Mfr. #:
Manufacturer:
Broadcom / Avago
Description:
IC USB OPT MOUSE SENSOR 18-DIP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union