background image

10

After the following sequence of commands, the wheel report format is enabled.
0xF3, 0xC8  

Set Sampling Rate 200 per second

0xF3, 0x64  

Set Sampling Rate 100 per second

0xF3, 0x32  

Set Sampling Rate 50 per second

0xF2, 0x03  

Read Device Type returns a value of 0x03

After the Read Device Type command returns 0x03 to indicate that this is a Microsoft compatible three button-wheel 

mouse,  the  wheel  report  format  is  enabled.  After  this  initialization  sequence,  the  PS/2  wheel  reporting  format  is 

enabled. The fourth byte represents the wheel data. This byte is assigned 0x01 for forward wheel movement and 0xFF 

for backward wheel movement. When the wheel is idle, this value is 0x00.

 

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

Byte 3

Wheel*

Wheel*

Wheel*

Wheel*

Wheel*

Wheel*

Wheel*

Wheel*

The  PS2  data  transmission  according  to  the  PS/2  Hardware  Interface Technical  Reference  including  eleven  bits  for 

each byte sent. The bits are sent in the following order with data valid on the falling edge of the clock. See the PS/2 

Hardware Interface Technical Reference manual for timing information.

Start Bit 

(Always 0)

Data 

Bit 0

Data 

Bit 1

Data 

Bit 2

Data 

Bit 3

Data 

Bit 4

Data 

Bit 5

Data 

Bit 6

Data 

Bit 7

Odd Parity 

Bit

Stop Bit

 (Always 1)

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.

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...

Отзывы: