PIXART PAN301BSI-208

PAN301BSI-208
PAN301BSI-208 CMOS HIGH PERFORMANCE OPTICAL MOUSE SENSOR
General Description
The PAN301BSI-208 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.
Features
Key Specification
Single 3.3 volt power supply
Power Supply
Precise optical motion estimation technology
Wide operating supply range
3.0V~3.6V
Complete 2-D motion sensor
Optical Lens 1:1
No mechanical parts
Accurate motion estimation over a wide range of
System Clock 18.432 MHz
surfaces
High speed motion detection up to 37 inches/sec Speed
and acceleration can be up to 20g
High resolution up to 800cpi
Acceleration 20g
Power down pin and register setting for low power
Resolution
dissipation.
Power saving mode during times of no movement
Serial Interface for programming and data
transfer
I/O pin 5.0 volt tolerance
37 inches/sec
400/600/800cpi
Frame Rate
3000 frames/sec
Operating
Current
12mA @Mouse moving (Normal)
5mA @Mouse not moving (sleep1)
60uA @Power down mode
Package
Shrunk DIP20
Ordering Information
Order number
PAN301BSI-208
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
1. Pin Description
Pin No.
Name
Type
Definition
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
VSS_LED
LED
OSCOUT
OSCIN
VDDD
VSSD
VSSA
VDD
VDDA
VRT
YA
YB
XA
XB
NC
NC
NC
SCLK
SDIO
PD
GND
I/O
OUT
IN
PWR
GND
GND
PWR
PWR
BYPASS
OUT
OUT
OUT
OUT
IN
I/O
IN
LED ground
LED control
Resonator output
Resonator input
Chip digital power, 3.0V
Chip digital ground
Chip analog ground
Chip power, 3.3V power supply
Chip analog power, 3.0V
Analog voltage reference
YA quadrature output
YB quadrature output
XA quadrature output
XB quadrature output
No connection
No connection
No connection
Serial interface clock
Serial interface bi-direction data
Power down pin, active high
20
1
LB
+Y
RB
1
20
10
11
11
10
+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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
2. Block Diagram and Operation
LED
DRIVE
POWER ON
RESET
CMOS
IMAGE
SENSOR
OUTPUTS
SERIAL
INTERFACE
SCLK
SDIO
QUADRATURE
OUTPUT
QUADRATURE
XA
XB
YA
YB
SERIAL
INTERFACE
DIGITAL
SIGNAL
PROCESSOR
CONTROL REGISTER
VOLTAGE REGULATOR
AND POWER CONTROL
LED
VSS_LED
VDD
VDDD
VDDA
VSSD
3.3V
POWER
VSSA
PD
VRT
OSCILLATOR
OSCIN
OSCOUT
RESONATOR
Figure 3. Block diagram
The PAN301BSI-208 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: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
3. Registers and Operation
The PAN301BSI-208 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
Name
R/W
Default
0x00
Product_ID
R
0x30
0x01
Product_ID
R
0x1N
0x02
0x03
0x04
0x05
0x06
0x07
Motion_Status
Delta_X
Delta_Y
Operation_Mode
Configuration
Image_Quality
R
R
R
R/W
R/W
R
-
Data Type
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
Bit field
Bit field
Eight bits unsigned integer
3.2 Register Descriptions
0x00
Bit
Product_ID
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.
0x01
Product_ID
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.
4
PixArt Imaging Inc.
E-mail: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
0x02
Motion_Status
Bit
7
Field
Motion
Usage
6
5
Reserved[6:5]
4
3
DYOVF
DXOVF
2
1
RES[2:1]
0
Reserved
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
Description
Motion since last report or PD
Motion
0 = No motion (Default)
1 = Motion occurred, data ready for reading in Delta_X and Delta_Y registers
Reserved[6:5]
Reserved for future
Motion Delta Y overflow, ∆Y buffer has overflowed since last report
DYOVF
0 = No overflow (Default)
1 = Overflow has occurred
Motion Delta X overflow, ∆X buffer has overflowed since last report
DXOVF
0 = No overflow (Default)
1 = Overflow has occurred
Resolution in counts per inch
RES[2:1]
0 = 800 (Default)
1 = 400
2 = 600
Reserved
Reserved for future
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
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
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.
6
PixArt Imaging Inc.
E-mail: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
0x05
Operation_Mode
Bit
Field
Usage
7
6
5
4
3
2
1
0
LEDsht_enh
XY_enh Reserved
Slp_enh
Slp2au
Slp2mu
Slp1mu
Wakeup
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.
Notes
Field Name
LEDsht_enh
XY_enh
Reserved
Slp_enh
Slp2au
Description
LED shutter enable / disable
0 = Disable
1 = Enable (Default)
XY quadrature output enable/disable
0 = Disable
1 = Enable (Default)
Reserved for future
Sleep mode enable/disable
0 = Disable
1 = Enable (Default)
Automatic enter sleep2 mode enable/disable
0 = Disable (Default)
1 = Enable
Slp2mu
Manual enter sleep2 mode, set “1” will enter sleep2 and this bit will be reset to “0”
Slp1mu
Manual enter sleep1 mode, set “1” will enter sleep2 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.
7
PixArt Imaging Inc.
E-mail: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
0x06
Configuration
Bit
7
Field
6
5
4
3
Reserved[7:4]
2
PD
1
RES[2:1]
0
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.
Notes
Field Name
Description
Reserved[7:4]
Reserved for future
Power down mode
0 = Normal operation (Default)
PD
1 = Power down mode
Output resolution setting
RES[2:1]
0 = 800 (Default)
1 = 400
2 = 600
Reserved
Reserved for future
0x07
Bit
Image_Quality
7
6
5
Field
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. The
minimum level for normally working is 45.
Notes
Field Name
Description
Imgqa[4: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.
8
PixArt Imaging Inc.
E-mail: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
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
4.0
V
2
kV
All pins, human body model MIL
883 Method 3015
-0.5
5.5
V
PD, SDIO, SCLK, XA, XB, YA,
YB,VDD
Typ.
Max.
Unit
0
40
°C
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
Min.
Notes
TA
Operating
Temperature
VDD
Power supply voltage
3.3
3.6
V
VDDD, VDDA Power supply voltage
3.0
3.6
V
100
mV
Peak to peak within 0-100 MHz
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
12.000
18.432
24.576
MHz
Set by crystal or ceramic resonator.
1953
3000
4000
Frames/s
1953 frames/s @ FCLK=12.000MHz
4000 frames/s @ FCLK=24.567MHz
10
MHz
2.3
2.4
2.5
mm
0
18
37
Inches/sec
20
g
800
cpi
400
Refer to Figure 4.
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
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. 2D assembly
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
AC Operating Condition
Electrical Characteristics over recommended operating conditions. Typical values at 25 °C, VDD =3.3 V,
FCLK=18.432MHz
Symbol
Parameter
tPD
Power Down
tPDW
PD Pulse Width
tPDR
PD Pulse Register
Min. Typ. Max. Unit
500
Notes
us
From PD↑. (Refer to Figure 15)
us
Pulse width to reset the serial interface. (Refer
to Figure 15)
333
us
One frame time maximum after setting bit 2
in the Configuration register
@3000frame/sec. (Refer to Figure 17)
700
tPUPD
Power Up from PD↓
9
30.5
From PD↓ to valid quad signals. After tPUPD,
all registers contain valid data from first
image after PD↓. Note that an additional 90
ms
frames for Auto-Exposure (AE) stabilization
may be required if mouse movement occurred
while PD was high. (Refer to Figure 15)
tPU
Power Up from VDD↑
15
30.5
ms
From VDD↑ to valid quad signals.
500usec + 90frames.
tHOLD
SDIO read hold time
us
Minimum hold time for valid data. (Refer to
Figure 11)
tRESYNC
Serial Interface RESYNC.
1
us
@3000frame/sec (Refer to Figure 14)
tSIWTT
Serial Interface Watchdog
Timer Timeout
1.7
tr,tf
Rise and Fall Times: SDIO
25,
20
ns
CL = 30pf
tr,tf
Rise and Fall Times:
XA, XB, YA, YB
25,
20
ns
CL = 30pf
tr,tf
Rise and Fall Times: ILED
10,
10
ns
LED bin grade: R; R1=100ohm
3
ms @3000frame/sec (Refer to Figure 14)
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
DC Electrical Characteristics
Electrical Characteristics over recommended operating conditions. Typical values at 25 °C, VDD =3.3V
Symbol
Parameter
Min. Typ. Max. Unit
Type: PWR
IDD
Supply Current
Mouse moving (Normal)
12
mA XA, XB, YA, YB, SCLK, SDIO = no load
IDD
Supply Current
Mouse not moving (sleep1)
5
mA
Supply Current
(Power Down)
60
uA PD, SCLK, SDIO = high
IDDPD
Type: SCLK, SDIO, PD
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
Type: XA, XB, YA, YB
VOH
Output voltage HIGH
VOL
Output voltage LOW
2.4
0.6
V
@I OH = 2mA
V
@I OL = 2mA
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
5. Quadrature Mode
The quadrature state of the PAN301BSI-208 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
FOUR
83.3us
83.3us
83.3us
83.3us
83.3us
83.3us
XB/YB
XA/YA
THREE
166.7us
XB/YB
XA/YA
83.3us
TWO
250us
XB/YB
XA/YA
333.3us
ONE
XB/YB
333.3us @ 3000frames/second
Figure 6. Quadrature output timing
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
5.2 Quadrature Output State Machine
The following state machine shows the states of the quadrature output pins. The three things to note are
that state 0 is entered after a power on reset. While the PD pin is asserted, the state machine is halted.
Once PD is de-asserted, the state machine picks up from where it left off. During times of mouse no
movement will entry power saving mode, until mouse was moved.
PD
POWER ON RESET
X/Y output
STATE
XA/YA XB/YB
IR
E
D
IO
N
N
IO
-D
IR
EC
T
N
IO
+
T
EC
IR
D
T
EC
IR
-D
STATE 3
(1,0)
-D
0
0
1
0
1
2
1
1
3
1
0
+
N
O
TI
D
IR
E
N
EC
IR
D
IO
CT
-D
IR
EC
E
IR
+
0
PD
TI
O
N
STATE 1
(0,1)
CT
IO
N
PD
+
CT
IO
N
STATE 0
(0,0)
STATE 2
(1,1)
PD
Figure 7. State machine
5.3 Quadrature Output Waveform
The following diagrams show the waveform of the two channel quadrature outputs. If the X, Y is
motionless, the (XA, XB), (YA, YB) will keep in final state. Each state change (ex. STATE2 → STATE3)
is one count.
X MOTION TO THE RIGHT
Y MOTION UP
( + DIRECTION )
XA/YA
XB/YB
STATE0
(0,0)
STATE3
(1,0)
+1
STATE1
(0,1)
+1
STATE2
(1,1)
+1
STATE3
(1,0)
+1
STATE0
(0,0)
MOTION COUNT
+1
X MOTION TO THE LEFT
Y MOTION DOWN
( - DIRECTION )
XA/YA
XB/YB
STATE1
(0,1)
STATE0
(0,0)
-1
STATE3
(1,0)
-1
STATE2
(1,1)
-1
STATE0
(0,0)
STATE1
(0,1)
-1
-1
MOTION COUNT
Figure 8. Quadrature output waveform
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
6. Serial Interface
The synchronous serial port is used to set and read parameters in the PAN301BSI-208, 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
PAN301BSI-208 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 PAN301BSI-208 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
PAN301BSI-208. All data changes on SDIO are initiated by the falling edge on SCLK. The host microcontroller always initiates communication; the PAN301BSI-208 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 9. Transmission protocol
6.1.1 Write Operation
A write operation, which means that data is going from the micro-controller to the PAN301BSI-208, 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
PAN301BSI-208 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 10. Write operation
6.1.2 Read Operation
A read operation, which means that data is going from the PAN301BSI-208 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 PAN301BSI-208. The transfer is synchronized by SCLK. SDIO is
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
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 PAN301BSI-208 will go to the high Z state after the
last data bit.
SCLK
DON'T
CARE
SDIO
1
2
3
4
5
6
0
A6
A5
A4
A3
A2
7
8
A1 A0
Hi-z
9
10
11
12
13
14
15
16
D7
D6
D5
D4
D3
D2
D1
D0
SDIO driven by Micro-controller
SCLK
Note "B"
1. Micro-controller send address to PAN301BSI-208.
2. Micro-controller release and set SDIO to Hi-Z after the last address bit.
9
8
7
A1
SDIO
R/W bit of next address
SDIO driven by PAN301BSI-208
Note "A"
Note "A"
Hi-z
Hi-Z
A0
D7
tHOLD
3us,min
Note "B"
SCLK
1. PAN301BSI-208 send data to Micro-controller .
2. PAN301BSI-208 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 11. Read operation
6.2 Re-Synchronous Serial Interface
There are times when the SDIO line from the PAN301BSI-208 should be in the Hi-Z state. If the
microprocessor has completed a write to the PAN301BSI-208, the SDIO line is Hi-Z, since the SDIO pin
is still configured as an input. However, if the last operation from the microprocessor was a read, the
PAN301BSI-208 will hold the D0 state on SDIO until a rising edge of SCLK. To place the SDIO pin into
the Hi-Z state, first raise the PD line, and then toggle the SCLK line from high to low to high. The SDIO
line will now be in the Hi-Z state. The PAN301BSI-208 and the micro-controller might get out of
synchronization due to following condition.
PD
1us,min
SCLK
1
Hi-Z
SDIO
2
3
4
5
6
7
8
9
1
0
ADDRESS(R/W)
1
1
1
2
1
3
1
4
1
5
1
6
DATA
Figure 12. Forcing PAN301BSI-208 SDIO line to the 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: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
6.2.1 USB Suspend
Termination of a transmission by the micro-controller may sometimes be required (for example, due to a
USB suspend interrupt during a read operation). To accomplish this the micro-controller should raise PD.
The PAN301BSI-208 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 PAN301BSI-208 and the micro-controller might get out of synchronization due to micro-controller
firmware flaws. The PD pin can stay high, with the PAN301BSI-208 in the shutdown state, or the PD pin
can be lowered, returning the PAN301BSI-208 to normal operation.
If the microprocessor and the PAN301BSI-208 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 PAN301BSI-208 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 PAN301BSI-208 powers up before the microprocessor sets the SCLK and
SDIO lines to be output.
6.2.4 ESD Events
The PAN301BSI-208 and the micro-controller might get out of synchronization due to ESD events.
If the PAN301BSI-208 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 PAN301BSI-208.
VDD
1us,min
PD
SCLK
SDIO
1
Hi-Z
2
3
4
5
6
ADDRESS(R/W)
7
8
9
10 11 12 13 14 15 16
DATA
Figure 13. Soft reset the PAN301BSI-208 (Reset full chip and SDIO line set to Hi-Z state)
6.3 Collision Detection on SDIO
The only time that the PAN301BSI-208 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 PAN301BSI-208 begins to drive SDIO after the next falling edge of SCLK. The PAN301BSI208 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).
6.4 Serial Interface Watchdog Timer Timeout
When there are only two pins to read register from PAN301BSI-208, and PD pin can’t be used to resynchronous function. If the microprocessor and the PAN301BSI-208 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 line from high to low to high and wait at least tSIWTT to re-sync the parts after an
incorrect read. The PAN301BSI-208 will reset the serial port but will not reset the registers and be
prepared for the beginning of a new transmission.
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
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 14. Re-synchronous serial interface using watchdog timer timeout
6.5 Power Down Mode
There are two different ways to entry power down mode, using the PD line or register setting.
6.5.1 PD Line Power Down Mode
To place the PAN301BSI-208 in a low power mode to meet USB suspend specification, raise the PD line
at least 700us. Then PD line can stay high, with the PAN301BSI-208 in the shutdown state, or the PD pin
can be lowered, returning the PAN301BSI-208 to normal operation.
PD
tPDW
700us,min
IDD
500us
tPD
500us
90frames
tPUPD
30.5ms
Figure 15. Power down minimum pulse width
PD
tPDW
700us,min
SCLK
1
Hi-Z
SDIO
2
3
4
5
6
7
8 9
1
0
1
1
ADDRESS(R/W)
1
2
1
3
1
4
1 1
5 6
DATA
Figure 16. PD line power down mode
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
6.5.2 Register Power Down Mode
PAN301BSI-208 can be placed in a power-down mode by setting bit 3 in the configuration 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 3 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 PAN301BSI-208.
SCLK
1
2
3
4
5
6
7
8
9
1
0
1
0
0
0
Address=0x06
1
0
0
0
0
1
SDIO
1
1
1
2
1
3
1
4
1
5
1
6
0
0
1 frame, max
Data=0x08
0
0
1
0
DATA
IDD
tPDR
Figure 17. Power-down configuration register writing operation
6.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.
19
PixArt Imaging Inc.
E-mail: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
7. Referencing Application Circuit for Cordless Optical Mouse
7.1 27MHz RF TX Circuit with Internal Regulator
PIN8
*Step-up DC/DC converter circuit
BATTERY
POWER_3.3V
150uH
D1
C1
3
1N5819
U1
AIC1642-33CX
SW
VOUT
GND
L1
47uF
100uF
L2
1
R15
C2
2
0
3.3uH
DGND
AGND
BATTERY
*RF Circuit
R2
10
C4
C3
0.1uF
RF_EN
R3
X1
R4
27K
13.5225MHz
36K
2
0.1UF
Q1
3904
C8
56K
10pF
3
1
C10
R5
27pF
Q3
2
3904
R6
27pF
36K
C11
100pF
Q2
C9
2
C14
3904
R8
33pF
1
10K
C12
C13
1
RF_DATA
R7
L3
3.3uH
3
0.1UF
1UF
C7
3
C6
C5
0.1UF
2K
*MCU
C15 15pF
POWER_3.3V
ID_SYNC
WHEEL_EN
R9
30K
RESET
C17
Z1
Z2
R_KEY
M_KEY
0.1uF
U2
1
2
3
4
5
6
7
8
9
RF_EN
RF_DATA
OSCI
OSCO
18
17
16
15
14
13
12
11
10
P51
P50
OSCI
OSCO
VDD
P67
P66
P65
P64
P52
P53
TCC
/RESET
VSS
P60./INT
P61
P62
P63
0.1uF
2
POWER_3.3V
L_KEY
R10
100K
R13
R11
20K
ID_SYNC
DGND
2
DGND
C18
DGND
DGND
LB1
1
4MHz C16 15pF
POWER_3.3V
SCLK
SDIO
PD
L_KEY
EM78P156
POWER_3.3V
X2
Z1
MB1
1
2
M_KEY
RB1
1
2
R_KEY
C19
R12
100K
R14
Z2
10K
10K
0.1uF
C20
0.1uF
DGND
S1
DGND
1
ENSW1
2
Z1
WHEEL_EN
3
COM
1
Z2
DGND
ENCODER
*SENSOR
U3
POWER_3.3V
R1
1
D2
DGND
2
LED
3
X3
18.432MHz
4
5
VSS_LED
PD
LED
SDIO
OSCOUT
SCLK
OSCIN
NC
VDDD
NC
VSSD
NC
VSSA
XB
VDD
XA
VDDA
YB
VRT
YA
20
PD
19
SDIO
18
SCLK
17
16
C21
6
47uF
DGND
DGND
7
C23
9
+
10uF
0.1uF
14
AGND
8
C22
15
C24
47uF
AGND
C26
10
0.1uF
13
12
11
PAN301BSI-208
AGND
Figure 18. 27MHz RF transceiver circuit with internal regulator
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
7.2 27MHz RF TX Circuit with Internal Regulator for Low Power Down Current
PIN8
*Step-up DC/DC converter circuit
BATTERY
POWER_3.3V
150uH
D1
C1
3
1N5819
U1
AIC1642-33CX
SW
VOUT
GND
L1
47uF
100uF
L2
1
R15
C2
2
3.3uH
0
DGND
AGND
BATTERY
*RF Circuit
R2
10
C4
C5
C3
0.1uF
0.1UF
RF_EN
C6
X1
R4
27K
13.5225MHz
36K
2
0.1UF
L3
Q1
3904
C8
56K
10pF
3
1
C10
R5
27pF
Q3
2
10K
3904
C12
R6
27pF
36K
C11
100pF
Q2
C9
2
C14
33pF
1
3904
R8
C13
1
R7
3.3uH
3
R3
3
0.1UF
RF_DATA
1UF
C7
2K
*MCU
C15 15pF
POWER_3.3V
ID_SYNC
PWR_EN
R9
30K
C17
Z1
Z2
R_KEY
M_KEY
0.1uF
U2
1
2
3
4
5
6
7
8
9
RESET
X2
RF_EN
RF_DATA
OSCI
OSCO
18
17
16
15
14
13
12
11
10
P51
P50
OSCI
OSCO
VDD
P67
P66
P65
P64
P52
P53
TCC
/RESET
VSS
P60./INT
P61
P62
P63
4MHz C16 15pF
EM78P156
DGND
POWER_3.3V
SCLK
SDIO
PD
L_KEY
C18
0.1uF
DGND
POWER_3V
DGND
POWER_3V
LB1
1
2
L_KEY
R10
100K
R13
R11
MB1
1
20K
Z2
C19
ID_SYNC
RB1
1
10K
10K
0.1uF
R_KEY
2
R14
Z1
M_KEY
2
R12
100K
C20
0.1uF
2
DGND
DGND
S1
DGND
1
ENSW1
2
Z1
3
COM
1
Z2
DGND
ENCODER
DGND
*SENSOR
3
POWER_3V
PWR_EN
U3
Q4
P MOS
1
1
D2
DGND
2
R1
2
LED
3
X3
18.432MHz
4
5
VSS_LED
LED
OSCOUT
PD
SDIO
SCLK
OSCIN
NC
VDDD
NC
VSSD
NC
VSSA
XB
VDD
XA
VDDA
YB
VRT
YA
20
PD
19
SDIO
18
SCLK
17
16
C21
6
47uF
7
DGND
AGND
C22
8
14
13
C23
9
+
10uF
15
DGND
0.1uF
C24
10
C26
47uF
12
11
0.1uF
PAN301BSI-204
AGND
AGND
Figure 19. 27MHz RF TX circuit with internal regulator for low power down current
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.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
7.3 27MHz RF TX Circuit Bypass Internal Regulator
*Step-up DC/DC converter circuit
BATTERY
POWER_3V
L1
150uH
D1
1N5819
U1
AIC1642-33CX
SW
VOUT
C2
3
GND
C1
47uF
100uF
L2
1
R15
2
3.3uH
0
DGND
AGND
BATTERY
*RF Circuit
R2
10
C4
C3
0.1uF
0.1UF
RF_EN
C6
1UF
C7
R3
X1
R4
27K
13.5225MHz
36K
0.1UF
3
0.1UF
2
L3
Q1
3904
R5
C8
56K
10pF
1
3
3904
R6
27pF
36K
100pF
Q2
C9
2
C14
R8
C13
3904
2K
33pF
1
10K
C12
1
2
C11
27pF
Q3
3.3uH
3
C10
R7
RF_DATA
C5
*MCU
C15 15pF
POWER_3V
ID_SYNC
WHEEL_EN
R9
30K
C17
Z1
Z2
R_KEY
M_KEY
0.1uF
1
2
3
4
5
6
7
8
9
U2
P52
P53
TCC
/RESET
VSS
P60./INT
P61
P62
P63
P51
P50
OSCI
OSCO
VDD
P67
P66
P65
P64
X2
RF_EN
RF_DATA
OSCI
OSCO
18
17
16
15
14
13
12
11
10
4MHz C16 15pF
DGND
POWER_3V
SCLK
SDIO
PD
L_KEY
C18
0.1uF
EM78P156
DGND
DGND
POWER_3V
LB1
1
2
POWER_3V
L_KEY
R10
100K
R13
R11
20K
ID_SYNC
2
DGND
MB1
1
2
M_KEY
RB1
1
2
R_KEY
R12
100K
R14
Z1
Z2
10K
C19
C20
10K
0.1uF
0.1uF
DGND
S1
DGND
1
ENSW1
Z1
WHEEL_EN
3
COM
DGND
Z2
2
1
ENCODER
*SENSOR
U3
POWER_3V
1
R1
D2
2
LED
3
X3
18.432MHz
4
5
C21
PD
20
PD
19
LED
OSCOUT
SDIO
SDIO
18
SCLK
SCLK
OSCIN
NC
VDDD
NC
VSSD
NC
VSSA
XB
VDD
XA
VDDA
YB
VRT
YA
17
16
C22
6
+
10uF
VSS_LED
DGND
0.1uF
DGND
7
15
14
AGND
8
AGND
9
10
C24
13
12
11
0.1uF
AGND
PAN301BSI-208
Figure 20. 27MHz RF transceiver circuit bypass internal regulator
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: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
7.4 27MHz RF TX Circuit Bypass Internal Regulator for Low Power Down Current
*Step-up DC/DC converter circuit
BATTERY
POWER_3V
L1
150uH
D1
1N5819
U1
AIC1642-33CX
SW
VOUT
C2
3
GND
C1
47uF
100uF
L2
1
R15
2
3.3uH
0
DGND
AGND
BATTERY
*RF Circuit
R2
10
C4
C3
0.1uF
0.1UF
RF_EN
C6
1UF
C7
R3
X1
R4
27K
13.5225MHz
36K
0.1UF
3
0.1UF
2
L3
Q1
3904
R5
C8
56K
10pF
1
3
3904
R6
27pF
36K
100pF
Q2
C9
2
C14
R8
C13
3904
2K
33pF
1
10K
C12
1
2
C11
27pF
Q3
3.3uH
3
C10
R7
RF_DATA
C5
*MCU
C15 15pF
POWER_3V
ID_SYNC
PWR_EN
R9
1
2
3
4
5
6
7
8
9
30K
C17
Z1
Z2
R_KEY
M_KEY
0.1uF
U2
P52
P53
TCC
/RESET
VSS
P60./INT
P61
P62
P63
P51
P50
OSCI
OSCO
VDD
P67
P66
P65
P64
X2
RF_EN
RF_DATA
OSCI
OSCO
18
17
16
15
14
13
12
11
10
4MHz C16 15pF
DGND
POWER_3V
SCLK
SDIO
PD
L_KEY
C18
0.1uF
EM78P156
DGND
DGND
POWER_3V
LB1
1
2
POWER_3V
L_KEY
R10
100K
R13
R11
20K
ID_SYNC
2
DGND
R12
100K
R14
Z1
MB1
1
2
M_KEY
RB1
1
2
R_KEY
Z2
10K
C19
C20
10K
0.1uF
0.1uF
DGND
S1
DGND
1
ENSW1
Z1
3
COM
DGND
Z2
2
1
ENCODER
DGND
*SENSOR
3
POWER_3V
P MOS
1
1
R1
D2
2
LED
3
X3
18.432MHz
4
5
C21
PD
20
PD
19
LED
OSCOUT
SDIO
SDIO
18
SCLK
SCLK
OSCIN
NC
VDDD
NC
VSSD
NC
VSSA
XB
VDD
XA
VDDA
YB
VRT
YA
17
16
C22
6
+
10uF
VSS_LED
DGND
2
PWR_EN
U3
Q4
0.1uF
DGND
7
15
14
AGND
8
AGND
9
10
C24
13
12
11
0.1uF
AGND
PAN301BSI-208
Figure 21. 27MHz RF TX circuit bypass internal regulator for low power down current
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: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
7.5 Typical Application for RF Receiver Circuit
VCC_5V
VCCD
Q1
PNP_2N3906
1
3
VCCA
R2A1
100
C2
C3
+
2
+ C1
1uF
R1
10uF
0.1uF
R2B1
4.7K
SUSPEND
0
DGND
AGND
VCC_5V
C4
C5
+
0.1uF
R2
470
10uF
U1
RF_DATA
D1
1
LED-DIP
1
1
2
2
LED1
3
2
ID_SYNC
4
SUSPEND
5
S1
DGND
14
P0.0
VCC
P0.1
D+/SCLK
P0.2
D-/SDATA
P0.3
VREG
P1.0
VPP
P1.1
VSS
P0.4
P0.5
P0.6
P0.7
9
XTALIN
XTALOUT
DGND
11
DGND
VCC_5V
13
D+/SCLK
12
D-/SDATA
8
GND
R3
7
JP1
VCC_5V
1
2
3
4
1.3K
HEADER 4
6
18
17
SCL
16
SDA
15
DGND
VCCD
U2
1
2
DGND
10
3
CY7C63723-PC
SCL
5
VCC
C6
GND
0.1uF
SDA
4
NC
24LC00
DGND
LOOP ANTENNA
C7
Y1
C11
0.01UF
C10
26.590MHz
20pF
20pF
C8
C9
33pF
5pF
AGND
U3
1
C12 0.1uF VCCA
2
3
4
G
G
G
C13
LIM_IN
DEC_1
DEC_2
QUAD
0.1uF
5
OUT
IN
AGND
FL1
CFWM455F
AGND
C14
VCCA
OSC_B
OSC_E
MIX_OUT
1
2
3
4
5
6
7
8
OSC_B
MIX_IN
OSC_E
GND
MIX_OUT
MUTE
SCAN_CTL
VCC
LIM_IN SQUELCH_IN
FILTER_OUT
DEC_1
FILTER_IN
DEC_2
QUAD
DEMO_OUT
0.1uF
R7
C17
C18
0.1uF
47pF
AGND
16
15
14
13
12
11
10
9
AGND
R4
WL_DATA
SQUELCH
R7A1
R5
10K
VCCA
1M?
420K
R6
36K
MC3361-SMD
2K
C15
C16 222
0.1uF
Y2 455C28
C19
103
AGND
AGND
AGND
Figure 22. Application circuit for RF receiver circuit
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: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
7.6 PCB Layout Consideration
1. Caps for pins 8, 9, 10 MUST have trace lengths LESS than 5mm.
2. The trace lengths of OSCOUT, OSCIN must less than 6mm.
7.7 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), VDD=3.3V
LED bin grade
Min.
Typ.
N
12
22
P
12
22
Q
12
22
Max.
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
25
PixArt Imaging Inc.
E-mail: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
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
0.760
3.20
0.126
9.98
0.393
1.02
0.040
5.08
0.200
1.46
0.0575
1.778
0.070
0.457
0.018
0.254
0.010
5 - 12
1
2
3
4
5
14.22
0.560
5.715
0.225
4.064
0.160
13.589
0.535
11.938
0.470
6
7
8
9
10
5.080
0.200
4.55
0.179
20
19
18
17
16
15
14
13
5.56
0.2189
12
NOTES:
1. All dimensions in MM/INCH.
2. All dimensions tolerance: +/- 0.10mm
3. Maxmumflash: +0.2mm
11
0.800
0.031
Figure 23. 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.
26
PixArt Imaging Inc.
E-mail: [email protected]
V1.1, MAY. 2004
PixArt Imaging Inc.
PAN301BSI-208
CMOS Optical Mouse Sensor
8.2 Recommended PCB Mechanical Cutouts and Spacing
4.064
0.160
27.153
1.069
2.286
0.090
6.985
0.275
10.998
0.433
0 ref.
26.010
1.024
16.942
0.667
7.544
0.297
4.445
0.175
0.711
0.028
1.194
0.047
Optical Center
0 ref.
1.194
0.047
4.445
0.175
6.985
0.275
0.711
0.028
3.251
0.128
7.544
0.297
All Dimensions : mm / inch
Figure 24. Recommended PCB mechanical cutouts and spacing
9. Update History
Version
V1.0
V1.1
Update
Creation, Preliminary 1st version
7.1 27MHz RF TX Circuit with Internal Regulator
7.2 27MHz RF TX Circuit with Internal Regulator for Low Power Down Current
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
Date
05/10/2004
05/26/2004
27
PixArt Imaging Inc.
E-mail: [email protected]
V1.1, MAY. 2004