Avago ADNK-5023-HTP2 Скачать руководство пользователя страница 9

Appendix F: Kit Components

The PS/2 portion of the firmware handles the following requests and commands listed in the table below.

Hex Code

Command

Action

0xFF

Reset

Resets mouse to default states

0xFE 

Resend 

Resends last data to host

0xF6

Set Default

Sets mouse to use default parameters

0xF5

Disable

Disables the mouse

0xF4

Enable

Enables the mouse

0xF3

Set Sampling Rate

Set sampling rate to 10,20,40,60,80,100,200/second

0xF2

Read Device Type

Returns 0x00 to host, indicating the device is a mouse

0xF0

Set Remote Mode

Sets remote mode so data values are only reported after a read data command

0xEE

Set Wrap Mode

Set wrap mode until 0xFF or 0xEC is received

0xEC

Reset Wrap Mode

Reset to previous mode of operation.

0xEB

Read Data

Responds by sending a mouse report packet to host

0xEA

Set Stream Mode

Sets stream mode

0xE9

Status Request

Returns current mode, en/disabled, scaling, button, resolution, and sampling rate 

information to the host.

0xE8

Set Resolution

Sets resolution to 1,2,4,8 counts/mm

0xE7

Set Scaling 2:1

Sets scaling to 2:1

0xE6

Reset Scaling

Resets scaling to 1:1

0xAA 

Completion Code

Command completion code

0xFA

Peripheral ACK

Sent to acknowledge host requests

The  PS/2  specification  calls  out  the  following  default  mouse  report  format.  Byte  0  is  the  button  data  (1=pressed, 

0=released), X and Y optics sign bits, and X and Y overflow bits. Byte 1 is the X optics data in 2’s complement format. 

Byte  2  has  the Y  optics  data  in  2’s  complement  format.  At  reset  or  power-on  the  standard  PS/2  reporting  format  is 

enabled.

 

Bit 7

 

 

 

 

 

 

Bit 0

Byte 0

Y Overflow

X Overflow

Y sign

X sign

Always 1

Middle 

Button

Right button Left button

Byte 1

X

X

X

X

X

X

X

X

Byte 2

Y

Y

Y

Y

Y

Y

Y

Y

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Содержание ADNK-5023-HTP2

Страница 1: ...nce design PS 2 protocol is used to provide a standard way of reporting mouse movement and button presses to the PC Introduction to ADNS 5020EN Optical Mouse Sensor Avago s ADNS 5020EN optical sensor...

Страница 2: ...heel is mechanical ly designed to block the infrared light such that the pho totransistors are turned on and off in a quadrature output pattern Every change in the phototransistor outputs rep resents...

Страница 3: ...unicate with external SPI compatible hardware in this case the ADNS 5020EN Hardware Implementation The standard hardware to implement a mouse is shown in Figure 3 For X and Y movement the optical sens...

Страница 4: ...s contained in the ADNS 5020EN Data Sheet Lens The lens technical information is contained in the ADNS 5100 5100 001 Data Sheet The flange on the standard ADNS 5100 lens is for ESD protection LED Asse...

Страница 5: ...it levelblockdiagramforADNK 5023 HTP2designer skitopticalmouseusingtheAvagoADNS 5020ENopticalmousesensorandHoltekHT82M35A 1002Controller Downloaded from Arrow com Downloaded from Arrow com Downloaded...

Страница 6: ...SMD C3 1 Tantalum Cap 100UF 16V Case D SMD C1 1 Diode 1N4148 Axial Diode D2 1 Mouse Optical Sensor ADNS 5020EN ADNS 5020EN U2 1 Molex 5P Header Pin 2 54mm J1 1 Pin Header 40P 2 54mm J2 J3 J4 1 Connect...

Страница 7: ...ilkscreen Overlay Figure C3 PCB Schematic Bottom Layer Figure C4 PCB Schematic Bottom Silkscreen Overlay Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from A...

Страница 8: ...view of PCB assembly highlighting all optical mouse components optical mouse sensor clip lens LED PCB and base plate Sensor LED Clip PCB Surface Base Plate Lens Light Pipe Downloaded from Arrow com Do...

Страница 9: ...t mode en disabled scaling button resolution and sampling rate information to the host 0xE8 Set Resolution Sets resolution to 1 2 4 8 counts mm 0xE7 Set Scaling 2 1 Sets scaling to 2 1 0xE6 Reset Scal...

Страница 10: ...Y Overflow X Overflow Y sign X sign Always 1 Middle Button Right button Left button Byte 1 X X X X X X X X Byte 2 Y Y Y Y Y Y Y Y Byte 3 Wheel Wheel Wheel Wheel Wheel Wheel Wheel Wheel The PS2 data t...

Страница 11: ...Sheet Hardware Support Files a ADNK 5023 HTP2 BOM List b ADNK 5023 HTP2 Schematic c IGES Base Plate Feature File d Gerber File Software Support Files a Microcontroller OTP code which can be programme...

Отзывы: