0% found this document useful (0 votes)
84 views

Pan3204 Low Cost Wireless Mouse Sensor: Key Specification

The PAN3204DB is a low-cost, low-power CMOS optical mouse sensor chip with integrated DSP. It uses an optical navigation technique to precisely detect motion over a wide range of surfaces by acquiring sequential image frames and mathematically determining changes in position. Key features include single-supply operation, accurate motion detection up to 28 inches/second, resolutions up to 1600 CPI, 3000 frames per second sampling, and low-power sleep modes down to 6 microamps. It has a serial interface and integrated power management for use in wireless computer mice.

Uploaded by

jakalae5263
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views

Pan3204 Low Cost Wireless Mouse Sensor: Key Specification

The PAN3204DB is a low-cost, low-power CMOS optical mouse sensor chip with integrated DSP. It uses an optical navigation technique to precisely detect motion over a wide range of surfaces by acquiring sequential image frames and mathematically determining changes in position. Key features include single-supply operation, accurate motion detection up to 28 inches/second, resolutions up to 1600 CPI, 3000 frames per second sampling, and low-power sleep modes down to 6 microamps. It has a serial interface and integrated power management for use in wireless computer mice.

Uploaded by

jakalae5263
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

PAN3204DB

PAN3204 LOW COST WIRELESS MOUSE SENSOR


General Description
The PAN3204DB is a high performance, low power and low cost CMOS process optical mouse sensor with DSP
integration chip that serves as a non-mechanical motion estimation engine for implementing a computer wireless
mouse.

Features Key Specification


‰ Single power supply Operating voltage
‰ Precise optical motion estimation Power Supply 1.73V ~ 1.87V (VDD_1.8V)
technology 2.5V ~ 2.9V (VDD_2.7V)
‰ Complete 2-D motion sensor
Optical Lens 1:1
‰ Accurate motion estimation over a wide
range of surfaces
System Clock 18 MHz
‰ High speed motion detection up to 28
inches/sec Speed 28+ inches/sec
‰ High resolution up to 1600 CPI
400/ 500/ 600/ 800/ 1000(Default)/ 1200
‰ Power down slave control through Resolution
register / 1600 CPI

‰ Power saving mode during times of no Frame Rate 3000 frames/sec


movement
‰ Serial interface for programming and 3mA @ Mouse moving (Normal)
data transfer Typical 300uA @ Mouse not moving (Sleep1)
Operating
‰ Built-in Low Power Timer (LPT) for Current 50uA @ Mouse not moving (Sleep2)
sleep1/sleep2 mode 6uA @ Power down mode
‰ MOTSWK pin to wake up mouse
controller when sensor wakes up from Package Staggered DIP8
sleep mode

Ordering Information

Order Number I/O Resolution


PAN3204DB CMOS output 1000 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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

1. Pin Configuration
1.1 Pin Description

Pin Name Type Definition

1 OSC_RES IN Connect to resistor input, External resistor connect to GND


2 MOTSWK OUT Motion detect (active low output, see Section 7 MOTSWK function)
3 SDIO I/O Serial interface bi-direction data
4 SCLK IN Serial interface clock
5 LED OUT LED control
6 VSS GND Chip ground
Main power, chip power regulator input, 1.73V ~ 1.87V(Vdd1) or 2.5V
7 VDD PWR
~ 2.9V(Vdd2)
8 VDDA PWR Analog/Digital supply voltage, 1.8V

1.2 Pin Assignment

LB RB

8
1
7
2 +Y 8
1
6 7
3 2
6
5 3
4 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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

2. Block Diagram and Operation

LED LED POWER ON


DRIVER RESET
CMOS IMAGE

VOLTAGE REGULATOR
AND POWER CONTROL
MOTION/ SENSOR
MOTSWK VDD
WAKE UP
2.5V ~
2.9 V
POWER
VSS
1.73V ~
1.87V
SERIAL POWER
DIGITAL
VDDA
INTERFACE SIGNAL
SERIAL SCLK PROCESSOR
INTERFACE SDIO

CONTROL
OSCILLATOR OSC_RES
REGISTER

Figure 3. Block Diagram

The PAN3204DB is a high performance, low power and low cost CMOS-process optical mouse sensor with
DSP integration chip that serves as a non-mechanical motion estimation engine for implementing a wireless
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 mouse sensor is in an 8-pin optical package. The current X and Y information are
available in registers accessed via a serial port. The word "mouse sensor," instead of PAN3204DB, is used in the
document.

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

3. Registers and Operation


The mouse sensor 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 Data Type
0x00 Product_ID1 R 0x30 Eight bits[11:4] number with the product identifier
Four bits[3:0] number with the product identifier
0x01 Product_ID2 R 0x5X
Reserved[3:0] number is reserved for future use
0x02 Motion_Status R - Bit field
0x03 Delta_X R - Eight bits 2’s complement number
0x04 Delta_Y R - Eight bits 2’s complement number
0x05 Operation_Mode R/W 0xF8 Bit field
0x06 Configuration R/W 0x04 Bit field
0x07 Image_Quality R - Eight bits unsigned integer
0x08 Operation_State R - Bit field
0x09 Write_Protect R/W 0x00 Bit field
0x0A Sleep1_Setting R/W 0x72 Bit field
0x0B Enter_Time R/W 0x12 Bit field
0x0C Sleep2_Setting R/W 0x92 Bit field
Image_
0x0D R/W 0x0A Eight bits unsigned integer
Threshold
Image_
0x0E R/W 0xE5 Bit field
Recognition

3.2 Register Descriptions


0x00 Product_ID1
Bit 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 the serial communications link is 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: [email protected] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

0x01 Product_ID2
Bit 7 6 5 4 3 2 1 0
Field PID[3:0] Reserved[3:0]
The value in this register can’t change. PID[3:0] can be used to verify that the serial communications
Usage link is OK. Reserved[3:0] is a value between 0x0 and 0xF, it can’t be used to verify that the serial
communications.
0x02 Motion_Status

Bit 7 6 5 4 3 2 1 0
Field Motion Reserved[1:0] DYOVF DXOVF RES[2:0]
Usage Motion_Status register allows the user to determine if motion has occurred since the last time it was
read. If so, then the user should read Delta_X and Delta_Y registers 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


Motion 0 = No motion (Default)
1 = Motion occurred, data ready for reading in Delta_X and Delta_Y registers

Reserved[1:0] Reserved for future use

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
000 = 400
001 = 500
RES[2:0] 010 = 600
011 = 800
100 = 1000 (Default)
101 = 1200
110 = 1600

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB 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 counted 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 counted 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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

0x05 Operation_Mode

Bit 7 6 5 4 3 2 1 0
Field LEDsht_enh Reserved[1:0] Slp_enh Slp2au Slp2mu Slp1mu Wakeup
Usage Operation_Mode register allows the user to change the operation of the mouse 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 (If Slp2au is set, the mouse sensor still enter the sleep2 automatically.)
“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 256 ms (±20%) not moving during normal mode, the mouse
sensor will enter sleep1 mode, and keep on sleep1 mode until moving is detected or wakeup is
asserted. Note that the entering time depends on the setting of Enter_Time register.
2. Enable sleep mode full function, which is 3 modes will be used, normal mode, sleep1 mode and
sleep2 mode. After 256 ms (±20%) not moving during normal mode, the mouse sensor will enter
sleep1 mode, and keep on sleep1 mode until moving is detected or wakeup is asserted.
And after 61 sec (±20%) not moving during sleep1 mode, the mouse sensor will enter sleep2 mode,
and keep on sleep2 mode until detect moving or force wakeup to normal mode. Note that the
entering time depends on the setting of Enter_Time register.
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 bit, which was set to 1, will be reset to 0 by
internal signal.
4. The user can clear Slp_enh/Slp2au bit to make the mouse sensor enter normal mode. If the user
clears Slp_enh/Slp2au bit during normal mode, the mouse sensor will keep its status. If the user
clears Slp_enh/Slp2au bit during sleep mode, the mouse sensor will enter normal mode after it
detect any movement or the user sets Wakeup bit.
Notes
Field Name Description

LED shutter enable/disable


LEDsht_enh 0 = Disable
1 = Enable (Default)
Reserved[1:0] Reserved for future use. Must be written to 01.
Sleep mode enable/disable
Slp_enh 0 = Disable
1 = Enable (Default)
Automatic enter sleep2 mode enable/disable
Slp2au 0 = Disable
1 = Enable (Default)

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

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 sleep1 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”

0x06 Configuration
Bit 7 6 5 4 3 2 1 0
Field Reset MotSwk Reserved[1:0] PD_enh CPI [2: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.

If MotSwk bit is clear, the MOTSWK pin is level-sensitive. The pin level remains low when motion
has occurred; in other words, Delta_X and Delta_Y registers has data. The mouse controller can read
Motion_Status register, Delta_X register, then Delta_Y register sequentially. After the mouse
controller reads all data, Delta_X and Delta_Y are both zero, the pin level will be high (see Section 7).
If MotSwk bit is set, the MOTSWK pin is edge-sensitive. The pin will send a pulse and trigger the
mouse controller when motion has occurred during the sleep mode. The mouse controller can read
Motion_Status register, Delta_X register, then Delta_Y register sequentially (see Section 7).

Notes Field Name Description

Full chip reset


Reset 0 = Normal operation mode (Default)
1 = Full chip reset
MOTSWK pin output selection (see Section 7)
0 = Motion function output (Default)
MotSwk
1 = SWKINT function output
Note that MOTSWK is chip pin, MotSwk is Configuration register bit

Reserved[1:0] Reserved for future use. Must be written to zero.

Power down mode


PD_enh 0 = Normal operation (Default)
1 = Power down mode
Output resolution setting, setting with CPI mode select bit
000 = 400
001 = 500
010 = 600
CPI[2:0]
011 = 800
100 = 1000 (Default)
101 = 1200
110 = 1600

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

0x07 Image_Quality
Bit 7 6 5 4 3 2 1 0
Field Imgqa[7:0]
Image Quality is a quality level of the sensor in the current frame. Report range 0 ~ 255. The default
Usage
minimum level for normally working is 10. (please see Image_ Threshold register)
Notes Field Name Description

Imgqa[7:0] Image quality report range: 0(worst) ~ 255(best).

0x08 Operation_State
Bit 7 6 5 4 3 2 1 0
Field Reserved[3:0] Slp_state Op_state[2:0]
Usage Operation_State register allows the user to read the operation state of the sensor.
Notes Field Name Description

Reserved[3:0] Reserved for future use

Sleep state (If Op_state[2:0] is 100, the Slp_state bit is effective.)


Slp_state 0 = LPT sleep1
1 = LPT sleep2
000 = Normal state
001 = Entry sleep1 processing
Op_state[2:0] 010 = Entry sleep2 processing
011 = Reserved for future use
100 = Sleep mode (see Slp_state bit to get sleep state.)

0x09 Write_Protect
Bit 7 6 5 4 3 2 1 0
Field WP[8:0]
Usage Write protect for the register 0x0A ~ 0x7F.

Notes Field Name Description

Write protect enable/disable for the address after 0x09


WP[8:0] 0x00 = Enable (Default), register 0x0A ~ 0x7F are read only
0x5A = Disable, register 0x0A ~ 0x7F can be read/written

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

0x0A Sleep1_Setting
Bit 7 6 5 4 3 2 1 0
Field Slp1_freq[3:0] Reserved[3:0]
Usage Sleep1_Setting register allows the user to set frequency time for the sleep1 mode.

Notes Field Name Description

Setting frequency time for the sleep1 mode.


Slp1_freq[3:0] A scale is 4ms. Relative to its value 0 ~ 15, the frequency time is 4 ~ 64ms.
Default is 32ms.

Reserved[3:0] Reserved for future use. Must be written to 0010.

0x0B Enter_Time
Bit 7 6 5 4 3 2 1 0
Field Slp1_etm[3:0] Slp2_etm[3:0]
Usage Enter_Time register allows the user to set enter time for the sleep1 and sleep2 mode.

Notes Field Name Description


Setting sleep1 enter time.
Slp1_etm[3:0] A scale is 128ms. Relative to its value 0 ~ 15, the frequency time is 128 ~ 2048ms.
Default is 256ms.

Setting sleep2 enter time.


Slp2_etm[3:0] A scale is 20480ms. Relative to its value 0 ~ 15, the frequency time is 20480 ~
327680ms. Default is 61440ms (about 61 sec).

0x0C Sleep2_Setting
Bit 7 6 5 4 3 2 1 0
Field Slp2_freq[3:0] Reserved[3:0]
Usage Sleep2_Setting register allows the user to set frequency time for the sleep2 mode.

Notes Field Name Description


Setting frequency time for the sleep2 mode.
Slp2_freq[3:0] A scale is 32ms. Relative to its value 0 ~ 15, the frequency time is 32 ~ 512ms.
Default is 320ms.
Reserved[3:0] Reserved for future use. Must be written to 0010.

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

0x0D Image_ Threshold


Bit 7 6 5 4 3 2 1 0
Field Imgqa_th[7:0]
Image_ Threshold register allows the user to set image threshold. The mouse sensor calculates data to
Usage Delta_X and Delta_Y registers when image quality (please see Image_Quality register) is larger than
image threshold.

Notes Field Name Description

Image threshold: 0 (High recognition rate) ~ 255 (Low recognition rate). The
Imgqa_th[7:0]
minimum level for normally working is 10.

0x0E Image_Recognition
Bit 7 6 5 4 3 2 1 0
Field pk_wt[2:0] Reserved Imgqa_df[3:0]

Usage Image_Recognition register allows the user to set recognition rate.

Notes Field Name Description

pk_wt[2:0] Peak threshold 2 weighting: 0 (Low recognition rate) ~ 7 (High recognition rate).

Reserved Reserved for future use. Must be written to zero.

Image qualification threshold difference: 0 (High recognition rate) ~ 15 (Low


Imgqa_df[3:0]
recognition rate).

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

4. Specifications
4.1 Absolute Maximum Ratings
Stresses above those listed under "Absolute Maximum Rating" may cause permanent damage to the device.
These are stress ratings only. Functional operation of this device at these or any other conditions above those
indicated in the operational sections of this specification is not implied and exposure to absolute maximum
rating conditions for extended periods may affect device reliability.

Symbol Parameter Min Max Unit Notes

TSTG Storage Temperature -40 85 °C


TA Operating Temperature -15 55 °C
-0.2 Vdd1 + 0.2 V
VDC DC Supply Voltage
-0.3 Vdd2 + 0.3 V
VIN DC Input Voltage -0.3 VDC V All I/O pin
Lead Solder Temp 260 °C For 10 seconds, 1.6mm below seating plane.
All pins, human body model MIL 883 Method
ESD 2 kV
3015

4.2 Recommend Operating Condition


Symbol Parameter Min. Typ. Max. Unit Notes
TA Operating Temperature 0 40 °C
Vdd1 1.73 1.8 1.87 VDDA, VDD short
Power Supply Voltage V
Vdd2 2.5 2.7 2.9 VDD
VN Supply Noise 100 mV Peak to peak within 0 - 80 MHz
Distance From lens Reference
Z 2.3 2.4 2.5 mm Refer to Figure 4.
Plane to Surface
R Resolution 400 1000 1600 CPI
SCLK Serial Port Clock Frequency 10 MHz
FCLK Clock Frequency 18 MHz R = 27K ohm, 1%
FR Frame Rate 3000 frames/s
S Speed 0 28 inches/s

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

4.3 AC Operating Condition (1.8V)


Electrical Characteristics over recommended operating conditions. Typical values at 25 °C, VDD = 1.8 V, FCLK = 18
MHz

Symbol Parameter Min. Typ. Max. Unit Notes


One frame time maximum after setting PD_enh
tPDR PD Pulse Register 666 us bit in the Configuration register
@3000frame/sec (refer to Figure 10).
From deactivate power down mode to valid
motion data. After tPUPD, all registers contain
valid data from first image after deactivate
tPUPD Power Up from PD↓ 3 30.5 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..
From VDD↑ to valid quad signals.
tPU Power Up from VDD↑ 10 30.5 ms
500usec +90 frames.
Minimum hold time for valid data (refer to
tHOLD SDIO Read Hold Time 3 us
Figure 8).
tRESYNC Serial Interface RESYNC. 1 us @3000 frame/sec (refer to Figure 9)
@3000 frame/sec (refer to Figure 9)
1.7ms (±20%) for normal mode,
1.7 32ms (±20%) for sleep1 mode,
Serial Interface Watchdog
tSIWTT 32 ms 320ms (±20%) for sleep2 mode.
Timer Timeout
320 Note that the value depends on the setting of
Sleep1_Setting register and Sleep2_Setting
register.
Sensor Wakeup Interrupt
tSWKINT 160 us
Time
25,
tr,tf Rise and Fall Times: SDIO ns CL = 30 pF
20
30,
tr,tf Rise and Fall Times: ILED ns
10

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

4.4 AC Operating Condition (2.7V)


Electrical Characteristics over recommended operating conditions. Typical values at 25 °C, VDD = 2.7 V, FCLK = 18
MHz

Symbol Parameter Min. Typ. Max. Unit Notes


One frame time maximum after setting PD_enh
tPDR PD Pulse Register 666 us bit in the Configuration register
@3000frame/sec (refer to Figure 10).
From deactivate power down mode to valid
motion data. After tPUPD, all registers contain
valid data from first image after deactivate
tPUPD Power Up from PD↓ 3 30.5 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.
From VDD↑ to valid quad signals.
tPU Power Up from VDD↑ 10 30.5 ms
500usec +90 frames.
Minimum hold time for valid data (refer to
tHOLD SDIO Read Hold Time 3 us
Figure 8).
tRESYNC Serial Interface RESYNC. 1 us @3000 frame/sec (refer to Figure 9)
@3000 frame/sec (refer to Figure 9)
1.7ms (±20%) for normal mode,
1.7 32ms (±20%) for sleep1 mode,
Serial Interface Watchdog
tSIWTT 32 ms 320ms (±20%) for sleep2 mode.
Timer Timeout
320 Note that the value depends on the setting of
Sleep1_Setting register and Sleep2_Setting
register.
Sensor Wakeup Interrupt
tSWKINT 160 us
Time
25,
tr,tf Rise and Fall Times: SDIO ns CL = 30 pF
20
30,
tr,tf Rise and Fall Times: ILED ns
10

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

4.5 DC Electrical Characteristics (1.8V)


Electrical Characteristics over recommended operating conditions. Typical values at 25 °C, VDD = 1.8 V, FCLK =
18MHz

Symbol Parameter Min. Typ. Max. Unit


Type: Power
Supply Current
IDD 3 mA
Mouse Moving (Normal)
Supply Current
IDD 300 uA
Mouse Not Moving (Sleep1)
Supply Current
IDD 50 uA
Mouse Not Moving (Sleep2)
Supply Current
IDDPD 6 uA
(Power Down)
Type: SCLK, SDIO, PD
VIH Input Voltage HIGH 1.45 V
VIL Input Voltage LOW 0.4 V
VOH Output Voltage HIGH 1.4 V @I OH = 2mA
VOL Output Voltage LOW 0.4 V @I OL = 2mA
Type: LED
VOL Output Voltage LOW 380 mV @I OL = 25mA

4.6 DC Electrical Characteristics (2.7V)


Electrical Characteristics over recommended operating conditions. Typical values at 25 °C, VDD = 2.7 V, FCLK =
18MHz

Symbol Parameter Min. Typ. Max. Unit


Type: Power
Supply Current
IDD 3 mA
Mouse Moving (Normal)
Supply Current
IDD 300 uA
Mouse Not Moving (Sleep1)
Supply Current
IDD 50 uA
Mouse Not Moving (Sleep2)
Supply Current
IDDPD 6 uA
(Power Down)
Type: SCLK, SDIO, PD
VIH Input Voltage HIGH 2.0 V
VIL Input Voltage LOW 0.9 V
VOH Output Voltage HIGH 2.3 V @I OH = 2mA
VOL Output Voltage LOW 0.4 V @I OL = 2mA
Type: LED
VOL Output Voltage LOW 380 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. 15
PixArt Imaging Inc.
E-mail: [email protected] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

5. Z and 2D Assembly

Package Lid

Lens

OBJECT SURFACE

Figure 4. Distance from Lens Reference Plane to Surface

+X

+Y

ESD LENS RING BASE PLATE

PLASTIC SPRING CLIP 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. 16
PixArt Imaging Inc.
E-mail: [email protected] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

6. Serial Interface
The synchronous serial port is used to set and read parameters in the mouse sensor.
SCLK: The serial clock line. It is always generated by the mouse controller.
SDIO: The serial data line is used to write and read data.

6.1 Transmission Protocol


The transmission protocol is a two-wire link, half duplex protocol between the micro-controller and the mouse
sensor. All data changes on SDIO are initiated by the falling edge on SCLK. The mouse controller always
initiates communication; the mouse sensor 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
bit 7 as its MSB to indicate data direction. The second byte contains the data.
F IR S T B Y T E SECOND BYTE

R /W
A D D R E S S ( 7 B IT ) D A T A ( 8 B IT )
( 1 B IT )

MSB LSB M SB LSB

Figure 6. Transmission Protocol

6.1.1 Write Operation


A write operation, which means that data is going from the mouse controller to the mouse sensor, is always
initiated by the mouse 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 mouse controller changes SDIO on falling edges of SCLK. The mouse sensor reads SDIO on
rising edges of SCLK.

SCLK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
DON'T DON'T
SDIO CARE 1 A6 A5 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0 CARE

SDIO driven by the mouse controller

Figure 7. Write Operation

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

6.1.2 Read Operation


A read operation, which means that data is going from the mouse sensor to the mouse controller, is always
initiated by the mouse controller and consists of two bytes. The first byte contains the address, is written by the
mouse controller, and has a “0” as its MSB to indicate data direction. The second byte contains the data and is
driven by the mouse sensor. The transfer is synchronized by SCLK. SDIO is changed on falling edges of SCLK
and read on every rising edge of SCLK. The mouse controller must go to a high Z state after the last address data
bit. The mouse sensor 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
H i-Z H i-Z_
D O N 'T R /W b it o f n ex t
S D IO CARE
0 A6 A5 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0 ad d ress

S D IO d riven b y th e m ou se con troller S D IO d riv en b y th e m ou se senso r

N o te "A " N o te "B "

N o te "A " 1. T he m ou se co ntroller send s add ress to the m o use sen so r.


2. T he m ou se co ntroller releases an d set S D IO to H i-Z after th e last ad dress bit.

SCLK 7 8 9

S D IO A1 A0 H i-Z D7

tH O L D
3u s,m in

N o te "B " 1. T he m o use sen so r sen ds data to th e m ou se con tro ller .


2. T he m o use sen so r releases and set S D IO to H i-Z after th e last data bit.

SCLK 16 1
H i-Z _
S D IO D0 R /W b it of n ex t ad dress
S D IO driven b y the m ou se co ntroller

Figure 8. Read Operation

6.2 Re-Synchronous Serial Interface


If the mouse controller and the mouse sensor get out of synchronization, 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 reach re-synchronous the parts after an incorrect read. This method
is called by “watchdog timer timeout”. The mouse sensor will reset the serial port but will not reset the registers
and be prepared for the beginning of a new transmission.
t S IW T T

SCLK 1 2 3 4 5 6 7 8 9
1
0
1
1
1
2
1
3
1
4
1
5
1
6

tR E S Y N C
1 u s , m in H i-Z _
S D IO A D D R E S S (R /W ) DATA

Figure 9. Re-synchronous Serial Interface Using Watchdog Timer Timeout

Note that this function is disabled when the mouse sensor is in the power down mode. If the user uses this
function during the power down mode, it will get out of synchronization. The mouse sensor and the mouse
controller also might get out of synchronization due to following conditions.

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

z Power On Problem - The problem occurs if the mouse sensor powers up before the mouse controller
sets the SCLK and SDIO lines to be output. The mouse sensor and the mouse controller might get out
of synchronization due to power on problem. An easy way to solve this is to use “watchdog timer
timeout”.
z ESD Events - The mouse sensor and the mouse controller might get out of synchronization due to ESD
events. An easy way to solve this is to use “watchdog timer timeout”.

6.3 Collision Detection on SDIO


The only time that the mouse sensor drives the SDIO line is during a READ operation. To avoid data collisions,
the mouse controller should release SDIO before the falling edge of SCLK after the last address bit. The mouse
sensor begins to drive SDIO after the next falling edge of SCLK. The mouse sensor releases SDIO of the rising
SCLK edge after the last data bit. The mouse 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 mouse controller
should not leave SDIO floating until the next transmission (although that will not cause any communication
difficulties).

6.4 Power Down Mode


The mouse sensor can be placed in a power-down mode by setting PD_enh bit 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 PD_enh bit in the Configuration register via a serial port write operation. In
the power down mode, the serial interface watchdog timer (see Section 6.2) is not available. But, the serial
interface still can read/write normally. For an accurate report after leave the power down mode, wait about 3ms
before the mouse controller is able to issue any write/read operation to the mouse sensor.

1 2 3 4 5 6 7 8 9 1 1 1 1 1 1 1
SCLK 0 1 2 3 4 5 6

Address = 0x06 Data = 0x0C 1 frame, max


1 0 0 0 0 1 1 0 0 0 0 0 1 1 0 0

SDIO

IDD

tPDR

Figure 10. Power-down Configuration Register Writing Operation

6.5 Error Detection


1. The mouse 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 mouse 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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

7. MOTSWK function
7.1 Motion function
To use Motion function, the MotSwk bit in the Configuration register must be set to zero. Motion is used to
monitor if the mouse sensor has finished sending X-Y movement data to the mouse controller. If all movement
data are not read, MOTSWK pin level will remain low. After the mouse controller reads all movement data from
the mouse sensor, the mouse sensor will set MOTSWK pin level to high.

Note “A” Note “A”

Motion

Note “B”
Note “A”: Delta_X/Delta_Y are equal to 0.
Note “B”: Delta_X/Delta_Y are not equal to 0.
Figure 11. Motion function

7.2 SWKINT function


To use SWKINT function, the MotSwk bit in the Configuration register must be set to one. SWKINT works
when the mouse sensor is in the sleep mode and the mouse controller is also in the sleep mode. If the mouse
sensor detects any motion occurrence at this moment, the mouse sensor will wake the mouse controller up
promptly via MOTSWK pin. The mouse sensor will trigger the mouse controller at the rising/falling edge of
MOTSWK pin.

SWKINT

tSWKINT
Figure 12. SWKINT function

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

8. Referencing Application Circuit


8.1 Power Supply at 2.7V Application Circuit (with Red LED)
#1. Battery Power Circuit
DC/DC Converter
VCC_2.7V ENSW1
BAT_1.5V VCC_2.7V LED_2.7V Z2
Z2
COM
L1 220uH D1 1N5819 Z1
Z1

U1 ENCODER

C2 SW1 RKEY
C1 SW VOUT
GND

47uF 47uF SW2 MKEY


ELM9327 SW3 LKEY

#2. MCU Circuit

VCC_2.7V
U2 C3 15pF
IDSYNC 1 18 RFEN
P52 P51
MOTSWK 2 17 RFDATA X1
R2 P53 P50
30K 3 16 C4 15pF
TCC OSCI
RESET 4 15
6MHz
/RESET OSCO
5 14
VSS VDD VCC_2.7V
C5 Z1 6 13 SCLK
P60./INT P67
0.1uF Z2 7 12 SDIO
P61 P66
RKEY 8 11
C6
P62 P65
MKEY 9 10 LKEY 0.1uF
P63 P64
MCU

PAN3402 RESERVED FUNCTION *R4 use 27K ohm +/- 1%


#3. Sensor Circuit
*X2: Please reserved for future use
*X2
VCC_2.7V
VCC_2.7V
18MHz
U3
R3
R4 27K C8
1 8 20K
OSC_RES VDDA
1uF IDSYNC
MOTSWK 2 7
MOTSWK VDD
C9 + C7
SDIO 3 6
0.1uF 10uF S1
SDIO VSS

SCLK 4 5
D2 LED R1
SCLK LED LED_2.7V

PAN3204DB
#4. RF TX Circuit R5 10R
VCC_2.7V Antenna
C10 C11 C12
RFEN
1uF 0.1uF 1uF
C13 R6 C14
R7
0.1uF X3 36K 0.1uF
13.5225MHz 100pF
27K Q1 R8 100pF
GND 3904 C15 C16
56K
3904 C17
R9 Q2
RFDATA 27pF
C19 C18 Q3
10K R10
100pF
3904
10pF 100K C20 R11
33pF
2K

Figure 13. Application Circuit for 2.7V (with Red LED)

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

8.2 Power Supply at 1.8V Application Circuit (with Red LED)


#1. Battery Power Circuit
A. DC/DC Converter B. Regulator
BAT_1.5V VCC_1.8V VIN PAD
ELM9818 BAT_1.5V LED_2.7V
U1

VOUT
L1 220uH D1 1N5819 L2 220uH D2 1N5819

GND

VIN
BAT_3.0V VCC_1.8V
U3 U4
C4 C6
C3 SW VOUT C7 C8 C5 SW VOUT
GND

GND
47uF 100uF 47uF 100uF
22uF 22uF
ELM9318 ELM9327

GND

#2. MCU Circuit


Optional power source: A or B
U2 C1 15pF VCC_1.8V ENSW1
VCC_1.8V IDSYNC RFEN Z2
1 18
P52 P51 Z2
MOTSWK RFDATA X1 COM
2 17
P53 P50 Z1
R2 Z1
3 16 C2 15pF
TCC OSCI
30K RESET 6MHz ENCODER
4 15
/RESET OSCO
5 14 VCC_1.8V SW1
VSS VDD RKEY
C9 Z1 6 13 SCLK
P60./INT P67
Z2 SDIO SW2 MKEY
0.1uF 7 12
P61 P66
RKEY C10
8 11 SW3
P62 P65
0.1uF LKEY
MKEY 9 10 LKEY
P63 P64
MCU

PAN3402 RESERVED FUNCTION *R7 use 27K ohm +/- 1%


#3. Sensor Circuit
*X2: Please reserved for future use
*X2
VCC_1.8V
18MHz
U5 VCC_1.8V
R4
R7 27K
1 8 20K
OSC_RES VDDA
IDSYNC
MOTSWK 2 7
MOTSWK VDD
C19 + C18
SDIO 0.1uF 10uF S1
3 6
SDIO VSS

R1
SCLK 4 5
SCLK LED LED_2.7V
D3 LED

PAN3204DB R3 10R
#4. RF TX Circuit VCC_1.8V Antenna

RFEN C11 C12 C13


1uF 0.1uF 1uF
C14 R5 C15
R6
0.1uF X3 36K 0.1uF
13.5225MHz 100pF
27K Q1 R8 100pF
GND 3904 C16 C17
56K
3904 C20
RFDATA Q2
27pF
R9 10K C22 C21 Q3
R10
100pF
3904
10pF 100K C23 R11
33pF
2K

Figure 14. Application Circuit for 1.8V (with Red LED)

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

8.3 Power Supply at 1.8V Application Circuit (with IR LED)


#1. Battery Power Circuit Optional power source: A or B
A. DC/DC Converter B. Regulator VCC_1.8V ENSW1
BAT_1.5V IR_1.8V Z2
Z2
U2 VIN PAD
ELM9818 COM
VCC_1.8V Z1
L1 220uH D1 1N5819 Z1

VOUT
GND

VIN
IR_1.8V ENCODER
U3 BAT_3.0V
VCC_1.8V
SW1

3
C5 RKEY
C4 SW VOUT
C7 C8 SW2
GND

47uF 100uF MKEY


22uF 22uF SW3 LKEY
ELM9318

#2. MCU Circuit U1 C1 15pF


VCC_1.8V IDSYNC 1 18 RFEN
P52 P51
MOTSWK 2 17 RFDATA X1
P53 P50
R2 3 16
TCC OSCI C2 15pF
30K RESET 4 15
6MHz
/RESET OSCO
5 14
VSS VDD VCC_1.8V
C3 Z1 6 13 SCLK
P60./INT P67
0.1uF Z2 7 12 SDIO
P61 P66
RKEY 8 11
C6
P62 P65
MKEY LKEY 0.1uF
9 10
P63 P64
MCU

#3. Sensor Circuit PAN3402 RESERVED FUNCTION *R7 use 27K ohm +/- 1%
*X2: Please reserved for future use
*X2
VCC_1.8V
VCC_1.8V
18MHz
U4
R4
R7 27K
1 8 20K
OSC_RES VDDA
IDSYNC
MOTSWK 2 7
MOTSWK VDD
C17 + C16
SDIO 3 6
0.1uF 10uF S1
SDIO VSS

R1
SCLK 4 5
SCLK LED IR_1.8V
D2 LED

PAN3204DB
R3 10R
#4. RF TX Circuit VCC_1.8V Antenna

RFEN C9 C10 C11


1uF 0.1uF 1uF
C12 R5 C13
R6
0.1uF X3 36K 0.1uF
13.5225MHz 100pF
27K Q1 R8 100pF
GND 3904 C14 C15
56K
3904 C18
R9 Q2
RFDATA 27pF
C20 C19 Q3
10K R10
100pF
C21 3904
10pF 100K R11
33pF
2K

Figure 15. Application Circuit for 1.8V (with IR LED)

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

8.4 Typical Application for RF Receiver

C1 20pF

C3 68pF
C2 + C4
C6 C5 +
2.2uF 10nF U1
1 20 10nF 2.2uF
2 ANT_IN1 ANT_IN2 19
3 AGND VNEG 18
VCC_RF VPOS MDR
4 17
5 VCC LF 16 C7 2.2uF
OSC_IN 6 VDIG AGND 15
C8 + C9 XTAL_IN VPOS_LO
OSC_OUT 7 14
8 XTAL_OUT VNEG_LO 13 B1
10uF 0.1uF VNEG_DIG B1 C11 C10 +
B3 9 12 RF_DATA
10 B3 OUT 11
B2 CLK 10nF 2.2uF
TI TRF7903-PW20
C12 + C13
2.2uF 10nF

OSC_IN OSC_OUT
VCC_RF
C14 X1 C15 VCC_5V VCC_RF
12MHz
47pF 47pF Q1
R1 R2 2N3906
OPEN 0R VCC_RF
B1 B3 U2 R3 10K
1 8
2 A0 VCC 7
A1 WP C16
R4 R5 3 6 SCL R6
4 A2 SCL 5 SDA
GND SDA 0.1uF
0R OPEN 10K
2402 PWR_Ctrl

U3

RF_DATA 1 11 JP1
P0.0 VREG
VCC_RF R7 1.3K
2 15
P0.1 D-/SDATA 1
R8 470
3 16
P0.2 D+/SCLK 2
D1 LED VCC_5V
ID_SYNC 4 14
P0.3 VCC 3
C17 C18
S1 PWR_Ctrl 5 +
P1.0 4
0.1uF 10uF
10 USB
VPP
9
VSS
23 SCL
P0.5
22 SDA
P0.6
12 13
XTALIN XTALOUT

CYPRESS CY7C63723
Figure 16. Application Circuit for RF Receive

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

8.5 PCB Layout Consideration


z Caps for pins7, 8 must have trace lengths less than 5mm.

8.6 Recommended Value for R1


8.6.1 Using Red LED for 2.7V
z Radiometric intensity of red LED
Bin limits (mW/Sr at 20mA)

LED Bin Grade Min. Typ. Max.


P 17.7 - 21.2
Q 21.2 - 25.4
Note: Tolerance for each bin will be ± 15%
Suggested R1(ohm):

Red LED Bin Grade Min. Typ. Max.


P 6.8 22 -
Q 6.8 22 -

8.6.2 Using IR LED for 1.8V


Suggested R1(ohm):

IR LED Bin Grade Min. Typ. Max.


TBD 3.3 22 -

It is not guaranteed that the performance of the mouse sensor with IR LED is as good as the mouse sensor with
red LED. The mouse sensor is designed to a very good match with red LED, and this combination has the best
performance.

8.6.3 Summary
Light Source LED Bin Grade VLED R1(Min.) R1(Typ.) R1(Max.)
Red LED P, Q 2.7 6.8 22 -
IR LED TBD 1.8 3.3 22 -

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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

9. Package Information
9.1 Package Outline Drawing
8 7 6 5

1 2 3 4

9.9 3.18 9.1 1.0


0.390 0.125 0.358 0.039

5.15
0.203
0.25
Max. 0.1 0.010
1.42 Max. 0.004
0.056 0.46
0.018

Max. 12

12.60 +/-0.2
0.496
2.0
0.078
1.01
1.0
0.040
0.039

1 2 3 4

4.55
0.179

5.0 NOTES:
8 7 6 5 0.196
1. All dimensions in MM/INCH.
2. All dimensions tolerance: +/- 0.10mm
4.45 0.80 3. Maxmumflash: +0.2mm
0.175 0.031 4. Angular tolerance: +/- 3.0degress

2.0
0.078

Figure 17. 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] V0.2, Mar. 2007
PixArt Imaging Inc.

PAN3204DB CMOS Optical Mouse Sensor

9.2 Recommended PCB Mechanical Cutouts and Spacing


27.153
2.997 1.069
0.118

7.544
11.05 0 ref. 26.010
0.297
6.172 0.435 16.95 1.024
0.243 0.667
4.242
0.167 8 7 6 5

1.194
0.711 0.047
0.028
Optical Center

0 ref.

1.194
0.047

4.242 1 2 3 4
0.167
6.172
0.243 0.711
0.028
7.544
3.251 0.297
0.128

All Dimensions : mm / inch

Figure 18. Recommended PCB Mechanical Cutouts and Spacing

10. Update History


Version Update Date
V0.1 Creation, Preliminary 1st version 02/06/2007
V0.2 Revise words 03/01/2007

All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission. 27
PixArt Imaging Inc.
E-mail: [email protected] V0.2, Mar. 2007

You might also like