Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PAN101B
PAN101B CMOS OPTICAL NAVIGATION SENSOR General Description
The PAN101B is a low cost CMOS process optical navigation sensor with DSP integration chip that serves as a non-mechanical motion estimation engine for implementing a computer mouse.
Features
Single 3.0 volt power supply Optical motion estimation technology Complete 2-D motion sensor No mechanical parts
Key Specification
Power Supply Optical Lens Wide operating supply range 2.7V~3.6V 1:1 18.432 MHz 16+ inches/sec 400/800 cpi 3000 frames/sec <15mA @Mouse moving (Normal) < 5mA @Mouse not moving (sleep1) < 2mA @Mouse not moving (sleep2) < 100uA @Shutdown mode Package Shrunk DIP20
Accurate motion estimation over a wide System Clock range of surfaces High speed motion detection up to 16+ Speed inches/sec Resolution High resolution up to 800cpi Shutdown pin for low power dissipation. Power saving mode during times of no movement Serial Interface for programming and data Operating Current transfer I/O pin 5.0 volt tolerance Frame Rate
Ordering Information Order number PAN101BOI-204 PAN101BOI-208 PAN101BSI-204 PAN101BSI-208 I/O Open-drain output Open-drain output CMOS output CMOS output Resolution 400 cpi 800 cpi 400 cpi 800 cpi
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
1. Pin Description
Pin No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Name VSS_LED LED OSCOUT OSCIN VSSD VSSA VDDD VDDA VRB VRT VAY XA NC XB YA NC YB SCLK SDIO PD Type GND I/O OUT IN GND GND PWR PWR BYPASS BYPASS BYPASS Open-drain OUT (PAN101BOI) CMOS OUT (PAN101BSI) Open-drain OUT (PAN101BOI) CMOS OUT (PAN101BSI) Open-drain OUT (PAN101BOI) CMOS OUT (PAN101BSI) Open-drain OUT (PAN101BOI) CMOS OUT (PAN101BSI) IN Open-drain I/O (PAN101BOI) CMOS I/O (PAN101BSI) IN Definition LED ground LED control Resonator output Resonator input Chip digital ground Chip analog ground Chip digital power VDD, 3.0V Chip analog power VDD, 3.0V Analog voltage reference Analog voltage reference Analog voltage reference XA quadrature output No connection XB quadrature output YA quadrature output No connection YB quadrature output Serial interface clock Serial interface bi-direction data Power down pin, active high
20
LB
RB
+Y
20
10
11
10
Figure 1. Top View Pinout
11
+X Figure 2. Top View of Mouse
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
3V POWER
VOLTAGE REFERENCE
SERIAL INTERFACE
SCLK SDIO
SERIAL INTERFACE
CONTROL REGISTER
OSCILLATOR
OSCIN OSCOUT
RESONATOR
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
3.1 Registers
Address 0x00 0x01 0x02 0x03 0x04 0x05 Name Product_ID Reserved Motion_Status Delta_X Delta_Y Operation_Mode R/W R R R R R/W Default 0x02 Data Type Eight bits number with the product identifier. Reserved for future. Bit field Eight bits 2s complement number. Eight bits 2s complement number. Bit field
The value in this register can not change, it can be used to verify that the serial communications link is OK. Reserved 3 2 1 0
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
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.
Notes
Field Name Motion Reserved Reserved DYOVF DXOVF Reserved Reserved RES
Description Motion since last report or PD 0 = No motion (Default) 1 = Motion occurred, data ready for reading in Delta_X and Delta_Y registers Reserved for future Reserved for future Motion Delta Y overflow, Y buffer has overflowed since last report 0 = no overflow (Default) 1 = Overflow has occurred Motion Delta X overflow, X buffer has overflowed since last report 0 = no overflow (Default) 1 = Overflow has occurred Reserved for future Reserved for future Resolution in counts per inch 0 = 800 (Default @ PAN101BXX-208) 1 = 400 (Default @ PAN101BXX-204) Delta_X 6 X6 5 X5 4 X4 3 X3 2 X2 1 X1 0 X0
X movement is counts since last report. Absolute value is determined by resolution. Reading clears the register. Report range 128~+127. Delta_Y 3 Y3 2 Y2 1 Y1 0 Y0
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.
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 90 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 Sleep1 Sleep2 Sampling rate @3000frame/sec 30/sec 3/sec Active duty cycle @3000frame/sec 20% 2%
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. Notes Field Name
Reserved
Description Reserved for future, Please set Reserved= 0 (Default) XY quadrature output enable/disable 0=disable 1= enable (Default) Resolution in counts per inch 0 = 800 (Default @ PAN101BXX-208) 1 = 400 (Default @ PAN101BXX-204) Sleep mode enable/disable 0 = Disable 1 = Enable (Default) Automatic enter sleep2 mode enable/disable 0 = Disable 1 = Enable (Default) Manual enter sleep2 mode, set 1 will enter sleep2 and this bit will be reset to 0 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 reset to 0 6 V1.4, FEB. 2003
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
4. Specifications
Absolute Maximum Ratings Symbol TSTG TA Parameter Storage temperature Operating Temperature Lead Solder Temp VDD ESD VIN DC input voltage -0.5 DC supply voltage -0.5 Min -40 -15 Max 85 55 260 4.0 2 5.5 Unit C C V kV V All pins, human body model MIL 883 Method 3015 PD, SDIO, SCLK, XA, XB, YA, YB For 10 seconds, 1.6mm below seating plane. Notes
Recommend Operating Condition Symbol Parameter Min. Operating 0 TA Temperature VDD Power supply voltage 2.7 VN FCLK FR SCLK Z S A R Supply noise Clock Frequency Frame Rate Serial Port Clock Frequency Distance from lens reference plane to surface Speed Acceleration Resolution
Typ.
Max. 40
Notes
2.1 0
2.2 16
2.3
Refer to Figure 4.
g cpi
AC Operating Condition Electrical Characteristics over recommended operating conditions. Typical values at 25 C, VDD =3.0 V Symbol Parameter Min. Typ. Notes Max. Unit tPD tPDW tPUPD tPU tHOLD Power Down PD Pulse Width Power Up from PD Power Up from VDD SDIO read hold time 3 1 42.8 41.7 0.5 From PD. (Refer to Figure 5.) Pulse width to reset the serial interface. us (Refer to Figure 5.) From PD to valid quad signals ms 200usec + 128frames. (Refer to Figure 5.) From VDD to valid quad signals. ms 400usec + 124frames. Minimum hold time for valid data. (Refer to us Figure 14.) After tCOMPUTE, all registers contain valid data from first image after PD. Note that an additional 128 frames for Auto-Exposure ms (AE) stabilization may be required if mouse movement occurred while PD was high. (Refer to Figure 8.) ns Pull-up 10Kohm (PAN101BOI) ns ns ns ns CL = 30pf CL = 30pf (PAN101BSI) (PAN101BSI) Pull-up 10Kohm (PAN101BOI) LED bin:N ; R1=100ohm us
tCOMPUTE
Rise and Fall Times: SDIO Rise and Fall Times: XA, XB, YA, YB Rise and Fall Times: ILED
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
DC Electrical Characteristics
Electrical Characteristics over recommended operating conditions. Typical values at 25 C, V DD =3.0 V
Symbol
Parameter
Min.
Typ. 15 5 2 100
Max.
Unit mA XA, XB, YA, YB, SCLK, SDIO = no load mA mA uA PD, SCLK, SDIO = high
Type: PWR Supply Current IDD Mouse moving (Normal) Supply Current IDD Mouse not moving (sleep1) Supply Current IDD Mouse not moving (sleep2) Supply Current IDDPD (Power Down) Type: SCLK, SDIO, PD VIH VIL VOH VOL VIH VIL VOL VOH VOL Input voltage HIGH Input voltage LOW Output voltage HIGH Output voltage LOW Input voltage HIGH Input voltage LOW Output voltage LOW Output voltage HIGH Output voltage LOW 0.8 VDD 2 0.8 VDD 2
0.8 0.2VDD
V V V V @I OH = 3mA (SDIO only) @I OL = 3mA (SDIO only) When driving from an external source When driving from an external source
Type: LED mV @I OL = 25mA V 0.2VDD V @I OH = 3mA @I OL = 3mA Type: XA, XB, YA, YB
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
5. PD Pin Timing
PD IDD tPD 0.5us 200us tCOMPUTE 4ms,min tPUPD 42.8ms 128frames tPDW 1us,min
PD SCLK SDIO
tPDW 1us,min
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6
Hi-Z
ADDRESS(R/W)
DATA
ADDRESS(R/W)
DATA
Figure 7. Forcing PAN101B full chip reset and SDIO line to the Hi-Z state
PD SCLK
1 2 3 4 5 6 7 8 9 1 1 0 1 1 2 1 3 1 1 4 5 1 6
tPDW 1us,min
1 2 3 4 5 6 7 8 9 1 1 0 1 1 2 1 3 1 4 1 5 1 6
Address=0x04 SDIO
Data=0xFF
Address=0x02
Data=0x80
tCOMPUTE 4ms,min
6. Quadrature Mode
The quadrature state of the PAN101B 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. PAN101B support 400cpi, 800cpi, two types of resolution. The following diagrams show the timing for positive X motion, to the right or positive Y motion, up.
FOUR
XB/YB
83.3us
83.3us
83.3us
83.3us
XA/YA
THREE
XB/YB
83.3us
83.3us
166.7us
XA/YA
TWO
XB/YB
83.3us
250us
XA/YA
ONE
XB/YB
333.3us
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.
D IR EC -D TI IR O N EC TI O N
N O TI EC N IR O D TI + EC IR -D
PD
STATE 1 (0,1)
STATE 3 (1,0)
STATE 2 (1,1) PD
XA/YA
XB/YB STATE3 (1,0) STATE0 (0,0) STATE1 (0,1) STATE2 (1,1) STATE3 (1,0) STATE0 (0,0)
-D IR EC + TI D O IR N EC TI O N
N O TI EC IR N O -D TI EC IR D
+ 1
+
+ 1
+ 1
+ 1
+ 1
MOTION COUNT
XA/YA
XB/YB STATE1 (0,1) STATE0 (0,0) STATE3 (1,0) STATE2 (1,1) STATE1 (0,1) STATE0 (0,0)
MOTION COUNT
7. Serial Interface
The synchronous serial port is used to set and read parameters in the PAN101B, 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 PAN101B in a low power mode to meet USB suspend specification. PD can also be used to force resynchronization between the micro-controller and the PAN101B in case of an error.
MSB
LSB
MSB
LSB
1 1
2 A6
3 A5
4 A4
5 A3
6 A2
7 A1
8 A0
9 D7
10 D6
11 D5
12 D4
13 D3
14 D2
15 D1
16 D0
DON'T CARE
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
9 D7
10 D6
11 D5
12 D4
13 D3
14 D2
15 D1
16 D0
Hi-z R/W bit of next address
A1 A0
Note "A"
SCLK SDIO
1. Micro-controller send address to PAN101B. 2. Micro-controller release and set SDIO to Hi-Z after the last address bit. 7 A1 A0 t HOLD 3us,min 8 Hi-Z 9 D7
Note "B"
1. PAN101B send data to Micro-controller . 2. PAN101B release and set SDIO to Hi-Z after the last data bit. 16 Hi-Z D0
SCLK SDIO
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
Power on reset to resync PAN101B => Reset full chip and SDIO line set to Hi-Z state)
VDD PD SCLK SDIO Hi-Z
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1us,min
ADDRESS(R/W)
DATA
Figure 15. Power on reset to resync. PAN101B 7.3 Collision detection on SDIO
The only time that the PAN101B drives the SDIO line is during a READ operation. To avoid data collisions, the micro-controller should release SDIO before the falling edge of SCLK after the last address bit. The PAN101B begins to drive SDIO after the next falling edge of SCLK. The PAN101B release SDIO of the rising SCLK edge after the last data bit. The micro-controller can begin driving SDIO any time after that. In order to maintain low power consumption in normal operation or when the PD pin is pulled high, the micro-controller should not leave SDIO floating until the next transmission (although that will not cause any communication difficulties).
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
R1
U1
DGND
1 VSS_LED LED OSCOUT OSCIN + VSSD VSSA D+/SCLK 2 3 4 7 VDDD VDDA VPP 9 VRB VRT VAY P0.7 A COM P1.0 P1.1 B 9 XTALIN XTALOUT 10 14 5 15 11 P0.0 1 XA VSS 12 6 7 NC 13 VREG 8 XB D-/SDATA 14 12 13 YA 15 VCC 1 11 NC 16 YB 17 SCLK 18 P0.3 P0.4 4 18 SDIO 19 P0.2 P0.5 3 17 PD P0.1 P0.6 2 3 20 2 16
R2 300K SW1 SW2 SW3 DGND C9 10uF VCC_5V D+/SCLK D-/SDATA GND R6 1.3K C8 0.1uF R M L
U2
PAN101B
D1
C1
LED
4 5
C2
10pF
X1 18.432MHz
VIN PAD
DGND
10pF
JP1
VIN
GND
VOUT
Q1(AIC1722)
6
DGND AGND C3
8
DGND DGND
3.3V REGULATOR
C7 0.1uF
+
C4
VIN
GND
VOUT
AGND
VRT VAY
C6
AGND
1uF 1uF
10uF
AGND C6 0.1uF
PAN101BOI
ENCODER
AGND
DGND AGND
CY7C63723-PC
R1
U1
DGND
1 VSS_LED LED OSCOUT OSCIN VSSD VSSA VDDD VDDA VRB 11 XA 12 1 5 NC 13 XB 14 YA 15 NC 16 YB 17 SCLK 18 4 SDIO 19 3 P0.2 P0.3 PD P0.1 2 3 4 5 20 2
U2
P0.6 P0.5 P0.4 16 17 18
L M R C8 0.1uF
VCC D+/SCLK 11 13 D-/SDATA VREG VPP 12 8 7 VSS 6
D1
C1
LED
C2
10pF
DGND
+
X1 18.432MHz
VIN PAD
DGND DGND
6 7 8 9
10pF
JP1
1 2 3 4
3.3V REGULATOR
C7
C4
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
1uF 1uF
10uF
HEADER 4
ENSW1
P0.0 P0.7 P1.0 P1.1 9 XTALIN XTALOUT 15 14 10 A COM B
0.1uF
PAN101BSI
ENCODER
DGND AGND
CY7C63723-PC
16
Figure 18. Example printed circuit board layout. (PAN101BOI 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.
R1
U1 U2
PD 20 5
DGND
1 VSS_LED
PAN101B
D1
2 LED OSCOUT OSCIN + VSSD VSSA D+/SCLK 7 VDDD VDDA VPP 9 VRB XA VAY P0.7 A COM B 15 14 10 11 P0.3 VSS 12 4 6 7 NC 13 VREG 8 XB P0.2 D-/SDATA 14 3 12 13 YA 15 P0.1 2 VCC 11 NC 16 YB 17 P0.0 SCLK 18 SDIO P0.5 19 17 18
P1.0 P0.6
16
SW1 M R C8 0.1uF
C1 LED
3
C2
4 5 1
R2
P0.4
R3
R5
R4
VIN PAD
DGND
10pF
JP1
VIN
GND
VOUT
Q1(AIC1722)
6
DGND DGND
3.3V REGULATOR
C7 0.1uF
+
C4
VIN
GND
VOUT
AGND
VRT VAY
C6 AGND
1uF 1uF
10uF
AGND C6 0.1uF
PAN101BOI
P1.1 9 XTALIN XTALOUT
AGND
ENCODER
DGND AGND
CY7C63723-PC
Figure 19. Application circuit using quadrature output pins with PAN101BOI
R1
U1
DGND
1 VSS_LED PD 20 5
U2
VCC_5V
19 18 17 16 15 14 13 12 4 2 3 VCC P0.1 D+/SCLK P0.2 D-/SDATA VREG VPP 11 13 12 8 7 P0.3 VSS 6 1 P1.0 P0.6 P0.5 P0.4 P0.0 16 17 18
L M R C8 0.1uF DGND
+
D1
2 LED OSCOUT OSCIN VSSD VSSA YA XB NC XA VDDD VDDA VRB NC YB SCLK SDIO
C1 LED
3 4 5
C2
10pF X1 18.432MHz
VIN PAD
DGND DGND
6 7 8 9
10pF
JP1
1 2 3 4
3.3V REGULATOR
C7
C4
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
1uF
10uF
HEADER 4
ENSW 1
P0.7 15 14 P1.1 9 XTALIN XTALOUT 10 A COM B
0.1uF
PAN101BSI
ENCODER
DGND AGND
CY7C63723-PC
Figure 20. Application circuit using quadrature output pins with PAN101BSI
18
Figure 21. Example printed circuit board layout. (PAN101BOI 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.
R1
DGND
1 VSS_LED PD 20
U1
D1 10K 10K 10K 10K
2 LED SDIO 19
PAN101B
R2 R3 R5 R4
LED
3 OSCOUT OSCIN VSSD R 6 VSSA VDDD XB VDD 8 VDDA VRB XA VAY 7 OPT OSCR VSS 8 11 OSC.OUT 2 Z1 B 3 X2 12 COM + 13 Z2 A 4 NC 13 1 14 X1 12 CLK 5 YA Y2 DATA 15 15 6 9 NC 16 M 10 YB 17 Y1 L 14 11 SCLK 18
DGND
DGND
4
C1 10pF SW1 SW2 SW3 DATA CLK ENSW1 C8 0.1uF 10uF C9 VCC_5V GND
1 2 3 4
X1 18.432MHz L M R JP1
5
U2
VIN PAD
VIN
GND
VOUT
Q1(AIC1722)
C7
C4
VIN
GND
VOUT
10uF
EM84510FP
DGND
AGND
DGND
R1
DGND
1 VSS_LED LED SDIO 19 PD 2 20
U1
D1 LED
3 OSCOUT OSCIN VSSD VSSA YA XB NC XA 12 13 13 2 7 16 Z2 X2 Z1 OSC.OUT OPT OSCR VSS 8 3 B 4 14 VDDD VDDA VRB 15 NC 16 15 12 YB 17 14 Y1 SCLK 4 5 18
DGND
DGND
C1 10pF
X1 18.432MHz
U2
L M R 11 10 9 Y2 X1 VDD DATA CLK 6 5 1
VIN PAD
C2 10pF DGND
6 7 8 9
JP1
1 2
3.3V REGULATOR
C7
C4
3 4
1uF
10uF
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
C9 10uF HEADER 4 R6 51K DGND
EM84510FP
DGND
AGND
20
Figure 24. Example printed circuit board layout. (PAN101BOI 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.
PIN1 (VSS_LED)
PIN5 (VSSD)
PIN6 (VSSA)
AGND
Figure 25. PCB layout consideration 8.5 Recommended value for R1 Radiometric intensity of LED Bin limits (mW/Sr at 20mA)
Bin N P Q R S T Min 14.7 17.7 21.2 25.4 30.5 36.6 Max 17.7 21.2 25.4 30.5 36.6 43.9
@5V:
LED bin R1 value (ohm) N 100 P 100 Q 100 R 120 S 120 T 120
10
19.30 0.760
3.20 0.126
9.98 0.393
1.02 0.040
0.457 0.018
1.778 0.070
1.46 0.0575
5 - 12 14.22 0.560
5.080 0.200
4.55 0.179 20 19 18 17 16 15 14 13 12 11
NOTES: 1. All dimensions in MM/INCH. 2. All dimensions tolerance: +/- 0.10mm 3. Maxmumflash: +0.2mm
5.56 0.2189
0.800 0.031
26.010 1.024
7.544 0.297
0 ref.
3.251 0.128
7.544 0.297
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.