Professional Documents
Culture Documents
Mouse Controler Mic
Mouse Controler Mic
General Description
The PAN301A is a high performance CMOS process optical mouse sensor with DSP integration chip that serves
as a non-mechanical motion estimation engine for implementing a computer mouse.
Ordering Information
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 1
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
1. Pin Description
1 20 LB RB
+Y 1 20
10 11
10 11
+X
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 2
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
VOLTAGE REGULATOR
AND POWER CONTROL
CMOS VSS
IMAGE
SENSOR
XA PD
QUADRATURE XB
QUADRATURE
OUTPUTS YA
OUTPUT
The PAN301A is a high performance CMOS-process optical mouse sensor with DSP integration chip that
serves as a non-mechanical motion estimation engine for implementing a computer mouse. It is based on
new optical navigation technology, which measures changes in position by optically acquiring sequential
surface images (frames) and mathematically determining the direction and magnitude of movement. The
sensor is in a 20pin optical package. The output format is two-channel quadrature (X and Y direction),
which emulates encoder phototransistors. The current X and Y information are also available in registers
accessed via a serial port.
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 3
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
0x01 Product_ID
Bit 7 6 5 4 3 2 1 0
Field PID[3:0] Reserved [3:0]
The value in this register can’t change. It can be used to verify that the serial communications link is
Usage
OK.
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 4
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
0x02 Motion_Status
Bit 7 6 5 4 3 2 1 0
Field Motion Reserved[6:5] DYOVF DXOVF RES[2:1] Reserved
Usage Register 0x02 allows the user to determine if motion has occurred since the last time it was read. If
so, then the user should read registers 0x03 and 0x04 to get the accumulated motion. It also tells if
the motion buffers have overflowed since the last reading. The current resolution is also shown.
Reading this register freezes the Delta_X and Delta_Y register values. Read this register before
reading the Delta_X and Delta_Y registers. If Delta_X and Delta_Y are not read before the motion
register is read a second time, the data in Delta_X and Delta_Y will be lost.
0x03 Delta_X
Bit 7 6 5 4 3 2 1 0
Field X7 X6 X5 X4 X3 X2 X1 X0
Usage X movement is counts since last report. Absolute value is determined by resolution. Reading clears
the register. Report range –128~+127.
0x04 Delta_Y
Bit 7 6 5 4 3 2 1 0
Field Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
Usage Y movement is counts since last report. Absolute value is determined by resolution. Reading clears
the register. Report range –128~+127.
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 5
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
0x05 Operation_Mode
Bit 7 6 5 4 3 2 1 0
Field LEDsht_enh XY_enh Reserved Slp_enh Slp2au Slp2mu Slp1mu Wakeup
Usage Register 0x05 allows the user to change the operation of the sensor. Shown below are the bits, their
default values, and optional values.
Operation_Mode[4:0]
“0xxxx”=Disable sleep mode
“10xxx”=Enable sleep mode1
“11xxx”=Enable sleep mode2
“1x100”=Force enter sleep23
“1x010”=Force enter sleep13
“1x001”=Force wakeup from sleep mode3
Notes:
1. Enable sleep mode, but disable automatic entering sleep2 mode, that is, only 2 modes will be used,
normal mode and sleep1 mode. After 1 sec not moving during normal mode, the chip will enter
sleep1 mode, and keep on sleep1 mode until moving is detected or wakeup is asserted.
2. Enable sleep mode full function, that is 3 modes will be used, normal mode, sleep1 mode and sleep2
mode. After 1 sec not moving during normal mode, chip will enter sleep1 mode, and keep on sleep1
mode until moving is detected or wakeup is asserted.
And after 60 sec not moving during sleep1 mode, the chip will enter sleep2 mode, and keep on sleep2
mode until detect moving or force wakeup to normal mode.
Mode Sampling rate @3000frame/sec Active duty cycle @3000frame/sec
Sleep1 94/sec 22%
Sleep2 3/sec 2.24%
3. Only one of these three bits slp2mu_enh, slp1mu_enh, and wakeup can be set to 1 at the same time,
others have to be set to 0. After a period of time, the bits, which was set to 1, will be reset to 0 by
internal signal.
Slp1mu Manual enter sleep1 mode, set “1” will enter sleep2 and this bit will be reset to “0”
Manual wake up from sleep mode, set “1” will enter wakeup and this bit will be
Wakeup
reset to “0”
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 6
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
0x06 Configuration
Bit 7 6 5 4 3 2 1 0
Field Reserved[7:4] PD RES[2:1] Reserved
Usage The Configuration register allows the user to change the configuration of the sensor.
Shown below are the bits, their default values, and optional values.
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 7
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
4. Specifications
Absolute Maximum Ratings
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 8
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
Package Lid
Lens
OBJECT SURFACE
+X
+Y
SURFACE IS 0 REF.
Unit: mm
Figure 5. 2D assembly
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 9
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
AC Operating Condition
Electrical Characteristics over recommended operating conditions. Typical values at 25 °C, VDD =5.0 V
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 10
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
DC Electrical Characteristics
Electrical Characteristics over recommended operating conditions. Typical values at 25 °C, VDD =5.0 V
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 11
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
5. Quadrature Mode
The quadrature state of the PAN301A tells mouse controller which direction the mouse is moving in. The
output format is two channels quadrature (X and Y direction), which emulates encoder phototransistors.
The DSP generates the ∆x and ∆y relative displacement values that are converted into two channel
quadrature signals. The following diagrams show the timing for positive X motion, to the right or positive
Y motion, up.
5.1 Quadrature Output Timing
X motion to the right
Y motion up
XA/YA
XB/YB
XA/YA
XB/YB
XA/YA
83.3us 250us
TWO
XB/YB
XA/YA
333.3us
ONE
XB/YB
333.3us @ 3000frames/second
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 12
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
+
TI
D
EC
IR
EC
IR
N
O
D
TI
-D
TI
+
O
X/Y output
EC
IR
N
EC
STATE
IR
-D
TI
XA/YA XB/YB
O
N
0 0 0
STATE 1 STATE 3
PD PD
(0,1) (1,0)
1 0 1
2 1 1
N
O
-D
TI
3 1 0
IR
EC
EC
+
IR
N
TI
D
O
-D
IR
TI
N
EC
EC
TI
IR
O
D
N
STATE 2
(1,1)
PD
XB/YB
+1 +1 +1 +1 +1 MOTION COUNT
XB/YB
-1 -1 -1 -1 -1 MOTION COUNT
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 13
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
6. Serial Interface
The synchronous serial port is used to set and read parameters in the PAN301A, and can be used to read
out the motion information instead of the quadrature data pins.
SCLK: The serial clock line. It is always generated by the host micro-controller.
SDIO: The serial data line used for write and read data.
PD: A third line is sometimes involved. PD(Power Down pin) is usually used to place the PAN301A
in a low power mode to meet USB suspend specification. PD can also be used to force re-
synchronization between the micro-controller and the PAN301A in case of an error.
6.1 Transmission Protocol
The transmission protocol is a two-wire link, half duplex protocol between the micro-controller and
PAN301A. All data changes on SDIO are initiated by the falling edge on SCLK. The host micro-
controller always initiates communication; the PAN301A never initiates data transfers.
The transmission protocol consists of the two operation modes:
- Write Operation.
- Read Operation.
Both of the two operation modes consist of two bytes. The first byte contains the address (seven bits) and
has a bit7 as its MSB to indicate data direction. The second byte contains the data.
FIRST BYTE SECOND BYTE
R /W
ADDRESS (7 BIT) DATA (8 BIT)
(1 BIT)
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 14
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
edges of SCLK and read on every rising edge of SCLK. The micro-controller must go to a high Z state
after the last address data bit. The PAN301A will go to the high Z state after the last data bit.
SCLK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
DON'T Hi-z Hi-z
SDIO CARE 0 A6 A5 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0 R/W bit of next address
tHOLD
3us,min
SCLK 16 1
Hi-Z
SDIO D0 R/W bit of next address
SDIO driven by micro-controller
PD
1us,min
1 1 1 1 1 1 1
SCLK 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6
Hi-Z
SDIO ADDRESS(R/W) DATA
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 15
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
The PAN301A will not write to any register and will reset the serial port (but nothing else) and be
prepared for the beginning of future transmissions after PD goes low.
6.2.2 Firmware Flaws Error, or Others Error
The PAN301A and the micro-controller might get out of synchronization due to micro-controller
firmware flaws. The PD pin can stay high, with the PAN301A in the shutdown state, or the PD pin can be
lowered, returning the PAN301A to normal operation.
If the microprocessor and the PAN301A get out of sync, then the data either written or read from the
registers will be incorrect. In such a case, an easy way to solve this is to raise PD to re-sync the parts after
an incorrect read. The PAN301A will reset the serial port but will not reset the registers and be prepared
for the beginning of a new transmission.
6.2.3 Power On Problem
The problem occurs if the PAN301A powers up before the microprocessor sets the SCLK and SDIO lines
to be output.
6.2.4 ESD Events
The PAN301A and the micro-controller might get out of synchronization due to ESD events.
If the PAN301A and the micro-controller might get out of synchronization due to power on problem or
ESD events. An easy way to solve this is to soft reset the PAN301A.
VDD
1us,min
PD
SCLK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Figure 13. Soft reset the PAN301A (Reset full chip and SDIO line set to Hi-Z state)
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 16
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
tSIWTT
SCLK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
tRESYNC
1us, min Hi-Z
SDIO ADDRESS(R/W) DATA
PD
tPDW
700us,min
IDD
500us 90frames
tPD
500us tPUPD
30.5ms
PD tPDW
700us,min
1 1 1 1 1 1 1
SCLK 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6
Hi-Z
SDIO ADDRESS(R/W) DATA
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 17
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
1 2 3 4 5 6 7 8 9 1 1 1 1 1 1 1
SCLK 0 1 2 3 4 5 6
SDIO DATA
IDD
tPDR
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 18
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
2 19 3
LED SDIO P0.2
LED C1 C2
3
OSCOUT SCLK
18 4
P0.3
0.1uF
+
10uF
JP1
X1 18.432MHz 11 VCC_5V
4 17 VCC 1
OSCIN NC 13 D+/SCLK
D+/SCLK 2
5 16 12 D-/SDATA
NC NC D-/SDATA 3
R2 1.3K GND
8
6 15 VREG 4
VSS NC 7
VPP
7 14 6 HEADER 4
VSS XB VSS
ENSW1
8 13 15 1
VDD XA P0.7 Z2 3
COM
9 12 5 14 2
VREFA YB P1.0 P1.1 Z1
10 11 9 10
ENCODER
VREFB YA XTALIN XTALOUT
C3 C5 C4 C6
+ +
Figure 19. Example printed circuit board layout. (PAN301ASI-20X V.S CY7C63723-PC)
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 19
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
U1 U2
R1 1 20 PD 5 16
SW11 L
2
VSS_LED PD P1.0 P0.6
D1 17
SW21 M
2
2 19 P0.5
LED SDIO 18
SW31 R
2
LED P0.4
3 18
OSCOUT SCLK
C1 C2
X1 18.432MHz 4 17
+
OSCIN NC 0.1uF 10uF JP1
11 VCC_5V
5 16 VCC 1
NC NC 13 D+/SCLK
D+/SCLK 2
6 15 12 D-/SDATA
VSS NC D-/SDATA 3
8
R2 1.3K GND
7 14 XB 1 VREG 4
VSS XB P0.0 7
VPP
8 13 XA 2 6 HEADER 4
VDD XA P0.1 VSS
ENSW1
9 12 YB 3 15 1
VREFA YB P0.2 P0.7 Z2 3
COM
10 11 YA 4 14 2
VREFB YA P0.3 P1.1 Z1
C3 C5 C4 C6
+ + ENCODER
9 10
XTALIN XTALOUT
10uF 0.1uF 1uF 0.1uF PAN301ASI-20X
CY7C63723-PC
Figure 20. Application circuit using quadrature output with PAN301ASI-20X
Figure 21. Example printed circuit board layout. (PAN301ASI-20X V.S CY7C63723-PC)
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 20
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
U1
R1 1 20
VSS_LED PD
D1
2
LED SDIO
19
U2
LED
3 18
OSCOUT SCLK
11
SW11 2
L
X1 18.432MHz 4 17 L
OSCIN NC 10
SW21 2
M
M
5 16 2 9
SW31 2
R
NC NC OSC.OUT R
6 15 7
C2 C1
VSS NC OPT +
JP1
7 14 12 1
0.1uF 10uF VCC_5V
VSS XB X1 VDD 1
5 CLK
8 13 13 CLK 2
VDD XA X2 6 DATA
DATA 3
9 12 14
ENSW1 GND
VREFA YB Y1 4 1 4
Z2 Z2 3
10 11 15 COM
VREFB YA Y2 3 2
HEADER 4
C3 C5 C4 C6 16 Z1 Z1
+ +
OSCR 8
VSS
10uF 0.1uF 1uF 0.1uF PAN301ASI-20X R2 ENCODER
51K
EM84510FP
Figure 23. Example printed circuit board layout. (PAN301ASI-20X V.S EM84510FP)
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 21
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 22
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
8. Package Information
8.1 Package Outline Drawing
20 19 18 17 16 15 14 13 12 11
1 2 3 4 5 6 7 8 9 10
19.30 9.98
0.760 3.20 0.393 1.02
0.126 0.040
5.08
0.200
0.254
1.46 0.010
0.457 1.778 0.0575
0.018 0.070
5 - 12
14.22
13.589 5.715 0.560
0.535 0.225
11.938 4.064
0.470 0.160
1 2 3 4 5 6 7 8 9 10
5.080
0.200
4.55
0.179 NOTES:
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 23
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004
PixArt Imaging Inc.
7.544
6.985 10.998 26.010
0 ref. 0.297
0.275 0.433 16.942 1.024
0.667
4.445
0.175
1.194
0.711 0.047
0.028
Optical Center
0 ref.
1.194
0.047
4.445
0.175
6.985
0.275 0.711
7.544
0.028 3.251 0.297
0.128
9. Update History
Version Update Date
V1.0 Creation, Preliminary 1st version 10/27/2003
3.2 Register Descriptions
4. Specifications - Recommend Operating Condition
V1.1 01/12/2004
Figure5. 2D assembly
4. Specifications - DC Electrical Characteristics
V1.2 3.2 Register Descriptions 01/14/2004
3. Registers and Operation
V1.3 05/06/2004
4. Specifications - AC Operating Condition
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 24
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw V1.3, MAY. 2004