PIXART PAN3101

PAN3101
PAN3101 LOW COST CMOS OPTICAL MOUSE SENSOR
General Description
The PAN3101 is a low cost CMOS process optical mouse sensor with DSP integration chip that serves as a nonmechanical motion estimation engine for implementing a computer mouse.
Features
Key Specification
‰
Single 5.0 volt power supply
‰
Precise optical motion estimation technology
‰
Complete 2-D motion sensor
‰
No mechanical parts
‰
Accurate motion estimation over a wide range of
System Clock
surfaces
18.432 MHz
‰
High speed motion detection up to 21 inches/sec
Speed
21 inches/sec
‰
High resolution up to 800cpi
‰
Register setting for low power dissipation
Resolution
400/800cpi
‰
Power saving mode during times of no movement
‰
‰
Power Supply
Wide operating supply range
4.25V~5.5V
Optical Lens
1:1
Frame Rate
Serial Interface for programming and data
Operating
transfer
Current
I/O pin 5.0 volt tolerance
Package
3000 frames/sec
10mA @Mouse moving (Normal)
5mA @Mouse not moving (Sleep)
100uA @Power down mode
Staggered DIP8
Ordering Information
Order number
PAN3101DB
I/O
CMOS output
Resolution
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
PixArt Imaging Inc.
E-mail: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
1. Pin Description
Pin No.
Name
Type
Definition
1
2
3
4
5
6
7
8
OSCIN
OSCOUT
SDIO
SCLK
LED
VSS
VDD
VREF
IN
OUT
I/O
IN
OUT
GND
PWR
BYPASS
Resonator input
Resonator output
Serial interface bi-direction data
Serial interface clock
LED control
Chip ground
Chip power, 5V power supply
Voltage reference
Pin Assign
LB
RB
8
1
7
+Y
2
6
7
2
3
5
4
8
1
6
3
5
4
+X
Figure 1. Top View Pinout
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.
2
PixArt Imaging Inc.
E-mail: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
2. Block Diagram and Operation
POWER ON
RESET
SERIAL
INTERFACE
SCLK
SDIO
SERIAL
INTERFACE
CMOS
IMAGE
SENSOR
DIGITAL
SIGNAL
PROCESSOR
CONTROL REGISTER
AND POWER CONTROL
LED
VDD
VOLTAGE REGULATOR
LED
DRIVER
OSCILLATOR
5V POWER
VSS
VREF
OSCIN
OSCOUT
VOLTAGE
REFERENCE
RESONATOR
Figure 3. Block diagram
The PAN3101 is a low cost 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 8pin optical package. The current X and Y information are 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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
3. Registers and Operation
The PAN3101 can be programmed through registers, via the serial port, and DSP configuration and
motion data can be read from these registers. All registers not listed are reserved, and should never be
written by firmware.
3.1 Registers
Address
0x00
0x01
0x02
0x03
0x04
0x05
|
0x13
0x14
Name
R/W Reset Value
Operation_Mode1 R/W
0x00
Product_ID1
R
0x01
Delta_Y
R
Delta_X
R
Image_Quality
R
-
Data Type
Bit field
Bit field
Eight bits 2’s complement number
Eight bits 2’s complement number
Eight bits unsigned integer
-
-
-
Reserve for future use
Product_ID2
R
0x10
0x15
Product_ID2
R
0x1N
0x16
0x17
0x18
0x19
0x1A
0x1B
0x1C
|
0x3F
0x40
0x41
0x42
0x43
0x44
Motion_Status
Delta_X
Delta_Y
Image_Quality
Operation_Mode2
Configuration
R
R
R
R
R/W
R/W
-
Eight bits [11:4] number with the product identifier
Four bits [3:0] number with the product identifier
Reserved [3:0] number is reserved for future
Bit field
Eight bits 2’s complement number
Eight bits 2’s complement number
Eight bits unsigned integer
Bit field
Bit field
-
-
Reserve for future use
R/W
R
R
R
R
0x20
0x41
-
Operation_Mode3
Product_ID3
Delta_Y
Delta_X
Image_Quality
Bit field
Bit field
Eight bits 2’s complement number
Eight bits 2’s complement number
Eight bits unsigned integer
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
3.2 Register Descriptions
0x00
Operation_Mode1
Bit
7
6
Field
Usage
Reset
PD_enh
5
4
3
2
1
0
Slp_enl
Reserve [5:1]
Register 0x00 allows the user to change the operation of the sensor. Shown below are the bits, their
default values, and optional values.
If Slp_enl=0, After 1 sec not moving during normal mode, the chip will enter sleep mode, and keep
on sleep mode until moving is detected or wakeup is asserted.
Notes
Field Name
Description
Reset
Full chip reset
0 = Normal operation mode (Default)
1 = Full chip reset
PD_enh
Power down mode
0 = Normal operation mode (Default)
1 = Power down mode
Reserved [5:1]
Reserved for future
Slp_enl
Sleep mode enable/disable
0 = Enable (Default)
1 = Disable
0x01
Bit
Product_ID1
7
Field
6
5
4
3
PID [7:5]
2
1
Reserve [4:1]
Usage
Product ID of PAN3101 and operation state of the mouse.
Notes
Field Name
Description
PID [7:5]
The product ID is 000
Reserved [4:1]
Reserved for future
Opstate
Operation state
0 = Sleep state
1 = Normal state
0x02
0
Opstate
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
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
Bit
Image_Quality
7
6
5
4
3
Field
2
1
0
Imgqa[7:0]
Usage
Image Quality is a quality level of the sensor in the current frame. Report range 0~255.
Notes
Field Name
Description
Imgqa[7:0]
Image quality report range: 0(worst) ~ 255(best).
0x14
Bit
Product_ID2
7
6
5
4
3
2
1
0
Field
PID[11:4]
Usage
The value in this register can’t change. It can be used to verify that the serial communications link is
OK.
0x15
Product_ID2
Bit
7
Field
Usage
6
5
PID[3:0]
4
3
2
1
0
Reserved [3:0]
The value in this register can’t change. PID[3:0] can be used to verify that the serial
communications link is OK. Reserved [3:0] is a value between 0x0 and 0xF, it can’t be used to
verify that the serial communications.
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
0x16
Motion_Status
Bit
7
Field
Motion
Usage
6
5
Reserved[6:5]
4
3
DYOVF
DXOVF
2
1
0
Reserved[2:1]
RES
Register 0x16 allows the user to determine if motion has occurred since the last time it was read. If
so, then the user should read registers 0x17 and 0x18 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
Description
Motion
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[6:5]
Reserved for future
DYOVF
Motion Delta Y overflow, ∆Y buffer has overflowed since last report
0 = No overflow (Default)
1 = Overflow has occurred
DXOVF
Motion Delta X overflow, ∆X buffer has overflowed since last report
0 = No overflow (Default)
1 = Overflow has occurred
Reserved [2:1]
Reserved for future
RES
Resolution in counts per inch
0 = 800 (Default)
1 = 400
0x17
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.
0x18
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.
7
PixArt Imaging Inc.
E-mail: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
0x19
Bit
Image_Quality
7
6
5
4
Field
3
2
1
0
Imgqa[7:0]
Usage
Image Quality is a quality level of the sensor in the current frame. Report range 0~255.
Notes
Field Name
Description
Imgqa[7:0]
Image quality report range: 0(worst) ~ 255(best).
0x1A
Operation_Mode2
Bit
7
6
Field
Usage
Reset
PD_enh
Notes
5
4
Reserved[5:4]
3
2
1
0
LEDsht_enh
Slp_enh
Slpmu_enh
Wakeup
Register 0x1A allows the user to change the operation of the sensor. Shown below are the bits, their
default values, and optional values.
Operation_Mode2[2:0]
“0xx”=Disable sleep mode
“110”=Force enter sleep
“101”=Force wakeup from sleep mode
Notes:
1. After 1 sec not moving during normal mode, chip will enter sleep mode, and keep on sleep mode
until moving is detected or wakeup is asserted.
2. Only one of these two bits Slpmu_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.
Field Name
Description
Reset
Full chip reset
0 = Normal operation mode (Default)
1 = Full chip reset
PD_enh
Power down mode
0 = Normal operation mode (Default)
1 = Power down mode
Reserved[5:4]
Reserved for future
Ledsht_enh
LED shutter enable / disable
0 = Disable
1 = Enable (Default)
Slp_enh
Sleep mode enable/disable
0 = Disable
1 = Enable (Default)
Slpmu_enh
Manual enter sleep mode, set “1” will enter sleep and this bit will be reset to “0”
Wakeup
Manual wake up from sleep mode, set “1” will enter wakeup and this bit will be
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.
8
PixArt Imaging Inc.
E-mail: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
0x1B
Configuration
Bit
7
6
Field
RES
5
4
3
2
1
0
Reserved[6:0]
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.
Notes
Field Name
Description
RES
Output resolution setting
0 = 800 (Default)
1 = 400
Reserved[6:0]
Reserved for future
0x40
Operation_Mode3
Bit
7
6
5
Field
Usage
Reset
PD_enh
Ledsht_enh
Notes
4
3
2
1
Reserve [4:1]
0
Slp_enl
Register 0x40 allows the user to change the operation of the sensor. Shown below are the bits, their
default values, and optional values.
If Slp_enl=0, After 1 sec not moving during normal mode, the chip will enter sleep mode, and keep
on sleep mode until moving is detected or wakeup is asserted.
Field Name
Description
Reset
Full chip reset
0 = Normal operation mode (Default)
1 = Full chip reset
PD_enh
Power down mode
0 = Normal operation mode (Default)
1 = Power down mode
Ledsht_enh
LED shutter enable / disable
0 = Disable
1 = Enable (Default)
Reserved [4:1]
Reserved for future
Slp_enl
Sleep mode enable/disable
0 = Enable (Default)
1 = Disable
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
0x41
Bit
Product_ID3
7
Field
6
5
4
3
PID [7:5]
2
1
0
Reserve [4:1]
Usage
Product ID of PAN3101 and operation state of the mouse.
Notes
Field Name
Description
PID [7:5]
The product ID is 010
Reserved [4:1]
Reserved for future
Opstate
Operation state
0 = Sleep state
1 = Normal state
0x42
Opstate
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.
0x43
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.
0x44
Bit
Image_Quality
7
6
Field
5
4
3
2
1
0
Imgqa[7:0]
Usage
Image Quality is a quality level of the sensor in the current frame. Report range 0~255.
Notes
Field Name
Description
Imgqa[7:0]
Image quality report range: 0(worst) ~ 255(best).
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
4. Specifications
Absolute Maximum Ratings
Symbol
Parameter
Min
Max
Unit
Notes
TSTG
Storage temperature
-40
85
℃
TA
Operating Temperature
-15
55
°C
260
°C
5.5
V
2
kV
All pins, human body model MIL
883 Method 3015
-0.5
5.5
V
SDIO, SCLK, VDD
Typ.
Max.
Unit
40
°C
5.5
V
100
mV
Peak to peak within 0-100 MHz
18.432
24.576
MHz
Set by ceramic resonator
3000
4000
Lead Solder Temp
VDD
DC supply voltage
-0.5
ESD
VIN
DC input voltage
For 10 seconds, 1.6mm below
seating plane.
Recommend Operating Condition
Symbol
Parameter
TA
Operating
Temperature
VDD
Power supply voltage
VN
Supply noise
FCLK
Clock Frequency
FR
Frame Rate
SCLK
Serial Port Clock
Frequency
Z
Distance from lens
reference plane to
surface
S
Speed
A
Acceleration
R
Resolution
Min.
0
4.25
5.0
MHz
mm
2.4
2.5
0
21
28
0.1
Frames/s 4000Frames/s @ FCLK=24.567MHz
10
2.3
Notes
Refer to Figure 5.
Inches/sec 28inches/sec @ FCLK=24.567MHz
20
g
800
cpi
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
Package Lid
Lens
Z
OBJECT SURFACE
Figure 4. Distance from Lens Reference Plane to Surface
+X
+Y
ESD LENS RING
CLIP
PLASTIC SPRING
BASE PLATE
LED
SURFACE IS 0 REF.
PCB
SENSOR
BASE PLATE ALIGNMENT POST
Unit: mm
Figure 5. PCB assembly
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
AC Operating Condition
Electrical Characteristics over recommended operating conditions. Typical values at 25 °C, VDD =5.0 V,
FCLK=18.432MHz
Symbol
Parameter
Min. Typ. Max. Unit
tHOLD
SDIO read hold time
3
tRESYNC
Serial Interface RESYNC.
1
tSIWTT
Serial Interface Watchdog
Timer Timeout
1.7
tPDR
PD Pulse Register
Notes
us
Minimum hold time for valid data. (Refer to
Figure 8)
us
@3000frame/sec (Refer to Figure 9)
ms @3000frame/sec (Refer to Figure 9)
333
us
One frame time maximum after setting bit 6
in the Operation_Mode register
@3000frame/sec. (Refer to Figure 10)
tPUPD
Power Up from deactivate
the Power Down mode
3
30.5
From deactivate power down mode to valid
quad signals. After tPUPD, all registers contain
valid data from first image after deactivate
ms power down mode. Note that an additional 90
frames for Auto-Exposure (AE) stabilization
may be required if mouse movement occurred
while PD was high.
tPU
Power Up from VDD↑
3
30.5
ms
From VDD↑ to valid quad signals.
500usec + 90frames.
tr,tf
Rise and Fall Times: SDIO
25,
20
ns
CL = 30pf
tr,tf
Rise and Fall Times: ILED
10,
10
ns
LED bin grade: R; R1=100ohm
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
DC Electrical Characteristics
Electrical Characteristics over recommended operating conditions. Typical values at 25 °C, VDD =5.0 V,
FCLK=18.432MHz
Symbol
Parameter
Min. Typ. Max. Unit
Type: PWR
IDD
Supply Current
Mouse moving (Normal)
10
mA SCLK, SDIO = no load
IDD
Supply Current
Mouse not moving (sleep1)
5
mA
IDDPD
Supply Current
(Power Down)
100
uA SCLK, SDIO = high
Type: SCLK, SDIO
VIH
Input voltage HIGH
VIL
Input voltage LOW
VOH
Output voltage HIGH
VOL
Output voltage LOW
2.0
0.7
2.4
0.6
V
V
@I OH = 2mA (SDIO only)
V
@I OL = 2mA (SDIO only)
V
When driving from an external source
V
When driving from an external source
Type: OSCIN
VIH
Input voltage HIGH
VIL
Input voltage LOW
2.0
0.7
Type: LED
VOL
Output voltage LOW
150
mV @I OL = 25mA
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
5. Serial Interface
The synchronous serial port is used to set and read parameters in the PAN3101, 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.
5.1 Transmission Protocol
The transmission protocol is a two-wire link, half duplex protocol between the micro-controller and
PAN3101. All data changes on SDIO are initiated by the falling edge on SCLK. The host microcontroller always initiates communication; the PAN3101 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.
SECOND BYTE
FIRST BYTE
R /W
(1 BIT)
ADDRESS (7 BIT)
MSB
DATA (8 BIT)
LSB
LSB
MSB
Figure 6. Transmission protocol
5.1.1 Write Operation
A write operation, which means that data is going from the micro-controller to the PAN3101, is always
initiated by the micro-controller and consists of two bytes. The first byte contains the address (seven bits)
and has a “1” as its MSB to indicate data direction. The second byte contains the data. The transfer is
synchronized by SCLK. The micro-controller changes SDIO on falling edges of SCLK. The PAN3101
reads SDIO on rising edges of SCLK.
SCLK
SDIO
DON'T
CARE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
1
A6
A5
A4
A3
A2
A1
A0
D7
D6
D5
D4
D3
D2
D1
D0
DON'T
CARE
SDIO driven by Micro-controller
Figure 7. Write operation
5.1.2 Read Operation
A read operation, which means that data is going from the PAN3101 to the micro-controller, is always
initiated by the micro-controller and consists of two bytes. The first byte contains the address, is written
by the micro-controller, and has a “0” as its MSB to indicate data direction. The second byte contains the
data and is driven by the PAN3101. The transfer is synchronized by SCLK. SDIO is changed on falling
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 PAN3101 will go to the high Z state after the last data bit.
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
SCLK
DON'T
CARE
SDIO
1
2
3
4
5
6
0
A6
A5
A4
A3
A2
7
9
10
11
12
13
14
15
16
D7
D6
D5
D4
D3
D2
D1
D0
8
A1 A0
Hi-z
SDIO driven by Micro-controller
Note "B"
1. Micro-controller send address to PAN3101.
2. Micro-controller release and set SDIO to Hi-Z after the last address bit.
Note "A"
9
8
7
A1
SDIO
R/W bit of next address
SDIO driven by PAN3101
Note "A"
SCLK
Hi-z
Hi-Z
A0
D7
tHOLD
3us,min
Note "B"
SCLK
1. PAN3101 send data to Micro-controller .
2. PAN3101 release and set SDIO to Hi-Z after the last data bit.
16
1
Hi-Z
SDIO
D0
R/W bit of next address
SDIO driven by micro-controller
Figure 8. Read operation
5.2 Re-Synchronous Serial Interface
5.2.1 Power On Problem
The problem occurs if the PAN3101 powers up before the microprocessor sets the SCLK and SDIO lines
to be output.
5.2.2 ESD Events
The PAN3101 and the micro-controller might get out of synchronization due to ESD events.
If the PAN3101 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 waiting for watchdog timer timeout
5.3 Collision Detection on SDIO
The only time that the PAN3101 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 PAN3101 begins to drive SDIO after the next falling edge of SCLK. The PAN3101 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, the micro-controller should
not leave SDIO floating until the next transmission (although that will not cause any communication
difficulties).
5.4 Serial Interface Watchdog Timer Timeout
When there are only two pins to read register from PAN3101, and PD pin can’t be used to re-synchronous
function. If the microprocessor and the PAN3101 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 condition is to toggle the SCLK
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
line from high to low to high and wait at least tSIWTT to re-sync the parts after an incorrect read. The
PAN3101 will reset the serial port but will not reset the registers and be prepared for the beginning of a
new transmission.
tSIWTT
SCLK
1
tRESYNC
1us, min
2
3
4
5
6
7
8
9 10 11 12 13 14 15 16
Hi-Z
SDIO
ADDRESS(R/W)
DATA
Figure 9. Re-synchronous serial interface using watchdog timer timeout
5.5 Power Down Mode
PAN3101 can be placed in a power-down mode by setting bit 6 in the Operation_Mode register via a
serial port write operation. After setting the configuration register, wait at least 1frame times. To get the
chip out of the power-down mode, clear bit 6 in the configuration register via a serial port write operation.
In power-down mode, the serial interface watchdog timer is not available. But, The serial interface still
can read/write normally. For an accurate report after leave power down mode, wait about 3ms before the
micro-controller is able to issue any write/read operation to the PAN3101.
SCLK
1
2
3
4
5
6
7
8
9
1
0
0
0
0
1
Address=0x00
1
0
0
0
0
0
SDIO
1
1
1
2
1
3
1
4
1
5
1
6
0
0
1 frame, max
Data=0x40
0
0
0
0
DATA
IDD
tPDR
Figure 10. Power-down configuration register writing operation
5.6 Error Detection
1.The micro-controller can verify success of write operations by issuing a read command to the same
address and comparing written data to read data.
2. The micro-controller can verify the synchronization of the serial port by periodically reading the
product ID register.
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
6. Referencing Application Circuit
6.1 Recommended Typical Application using External LED Control
1
2
0.1uF
P0.6
JP1
R2
1
1.3K
8
12
2
13
3
VREG
D-
P0.7
XTALIN
XTALOUT
D+
P0.5
4
P0.4
USB
Z1
3
COM
Z2
2
2
1
3
ENSW1
ENCODER
P0.1
P0.2
P0.0
VPP
VSS
16
3
15
4
9
10
17
18
1
VREF
OSCIN
OSCOUT
SDIO
VDD
VSS
LED
SCK
8
R3
C1 1uF
R1
100K
7
6
C4
5
0.1uF
+
C5
PAN3101
SW3
R
SW2
M
SW1
L
2
R4
D1
LED
10uF
1
C3
VCC
1K
Q1
2N3906
3
11
U2
X1
18.432MHz
+
U1
7
6
CY7C63231
Figure 11. Application circuit using external LED
Figure 12. Example printed circuit board layout
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
6.2 Recommended Typical Application using Internal LED Control
11
C3
VCC
1
2
0.1uF
P0.6
JP1
R2
1
1.3K
8
12
2
13
3
VREG
D-
P0.7
XTALIN
XTALOUT
D+
P0.5
4
P0.4
USB
Z1
3
COM
Z2
2
2
1
3
ENSW1
ENCODER
U2
X1
18.432MHz
P0.1
P0.2
P0.0
VPP
VSS
16
3
15
4
9
10
17
18
1
VREF
OSCIN
OSCOUT
SDIO
VDD
VSS
LED
SCK
8
C1 1uF
R1
+
U1
7
6
C4
5
0.1uF
+
C5
10uF
D1
LED
PAN3101
SW3
R
SW2
M
SW1
L
7
6
CY7C63231
Figure 13. Application circuit using internal LED
Figure 14. Example printed circuit board layout
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
6.3 PCB Layout Consideration
1. Caps for pins 7, 8 must have trace lengths less than 5mm.
2. The trace lengths of OSCOUT, OSCIN must less than 6mm.
6.4 Recommended Value for R1
Radiometric intensity of LED
Bin limits (mW/Sr at 20mA)
LED Bin grade
Min.
Typ.
Max.
N
14.7
17.7
P
17.7
21.2
Q
21.2
25.4
Note: Tolerance for each bin will be ± 15%
R1 value (ohm) for external LED control, VDD=5.0V
LED bin grade
Min.
Typ.
N
27
47
P
27
47
Q
27
47
Max.
R1 value (ohm) for internal LED control, VDD=5.0V
LED bin grade
Min.
Typ.
N
47
100
P
47
100
Q
47
100
Max.
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
7. Package Information
7.1 Package Outline Drawing
7
8
6
5
PAN3101
xxxxxxx
1
2
3
4
9.9
0.390
3.18
0.125
9.1
0.358
1.0
0.039
5.15
0.203
0.25
0.010
1.42
0.056
0.46
0.018
5 - 12
12.35
0.486
2.0
0.078
1.01
0.040
1.0
0.039
1
2
3
4
4.55
0.179
8
5.6
0.220
7
6
5.0
0.196
5
4.45
0.175
0.80
0.031
NOTES:
1.
2.
3.
4.
All dimensions in MM/INCH.
All dimensions tolerance: +/- 0.10mm
Maxmumflash: +0.2mm
Angular tolerance: +/- 3.0degress
2.0
0.078
Figure 15. Package outline drawing
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: [email protected]
V1.0 MAR. 2005
PixArt Imaging Inc.
PAN3101
CMOS Optical Mouse Sensor
7.2 Recommended PCB Mechanical Cutouts and Spacing
27.153
1.069
2.997
0.118
6.172
0.243
11.05
0.435
4.242
0.167
0 ref.
8
7
26.010
1.024
16.95
0.667
6
7.544
0.297
5
0.711
0.028
1.194
0.047
Optical Center
0 ref.
1.194
0.047
4.242
0.167
1
2
3
6.172
0.243
4
0.711
0.028
3.251
0.128
7.544
0.297
All Dimensions : mm / inch
Figure 16. Recommended PCB mechanical cutouts and spacing
8. Update History
Version
V0.1
V0.2
V1.0
Update
Creation, Preliminary 1st version
3.1 Registers
6.4 Recommended Value for R1
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
Date
03/01/2005
03/02/2005
03/31/2005
22
PixArt Imaging Inc.
E-mail: [email protected]
V1.0 MAR. 2005