
PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
1
PAJ7620U2
Integrated Gesture Recognition Sensor with I2C Interface
Datasheet
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
2
General Description
PAJ7620U2 integrates gesture recognition function with general I2C interface into a single chip. It can
recognize 9 gestures including move up, move down, move left, move right, move forward, move backward,
circle-clockwise, circle-counter clockwise, and wave. These gestures information can be simply accessed via
the I2C bus. The PAJ7620U2 also offers built-in proximity detection for the purpose of sensing object
approaching or departing. The PAJ7620U2 is designed with great flexibility in power-saving mechanism.
The PAJ7620U2 is designed to operate from 2.8V to 3.3V over -40°C to +85°C and the pull-up voltage for the
I2C bus and interrupt line is from 1.8V to 3.3V.
Feature
• Typical supply voltage is 2.8V to 3.3V and I/O voltage is 1.8V~3.3V
• Nine gesture recognition (Up / Down / Left / Right / Push / Pull / CW / CCW / Wave)
• Gesture speed is 60°/s to 600°/s in Normal Mode and 60°/s to 1200°/s in Gaming Mode
• Ambient light immunity: < 100k Lux
• Built-in proximity detection
• Flexible power saving scheme
• I2C interface up to 400 kbit/s, Pull-up voltage from 1.8V to 3.3V
• Ambient light noise cancellation
Application
•PAD Phone
•Tablet Personal Computer
•Automobile Application
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
3
Pin Configuration
Pin NO. Symbol Type
Function
1 V
BUS
POWER BUS power supply
2 I2C_SDA IN/OUT (Open Drain) I2C data pin
3 INT OUT(Open Drain) Interrupt pin (Active low)
4 TESTMD IN For Module Test Only
5 I2C_SCL IN (Open Drain) I2C clock pin
6 GND GND Ground
7 GPIO3 IN/OUT For Module Test Only
8 GPIO2 IN/OUT For Module Test Only
9 GPIO1 IN/OUT For Module Test Only
10 GND GND Ground
11 V
LED
POWER LED power input
12 VDD POWER Main power supply
13 GPIO0 IN/OUT For Module Test Only
Figure 1. PAJ7620U2 Module Pin Configuration (BTM VIEW)
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
4
Ordering information
I2C Slave ID(using 7 bit addressing protocol):
0x73
Absolute Maximum Ratings, T
A
= 27°C
Description Symbol
LED Pulse Current
Note1.
I
LED
I2C Pin, INT_N Pin Voltage (SCL, SDA, INT_N) V
BUS
I2C Pin, INT_N Pin Current (SCL, SDA, INT_N) I
BUS
ESD, human body model ESD
HBM
Note1.Pulse Width < 500us, Duty Cycle < 5%
* Maximum Ratings are those values beyond which damage to the device may occur. Exposure to these conditions or conditions beyond those indicated may
adversely affect device reliability. Functional operation under absolute maximum-rated conditions is not implied. Functional operation should be restricted to the
Recommended Operating Conditions.
Recommended Operating Condition
Peak LED Current Pulse
Note1
I2C Pin, INT_N Pin Voltage (SCL, SDA, INT_N)
I2C Pin, INT_N Pin Current (SCL, SDA, INT_N)
Note1.Pulse Width < 500us, Duty Cycle < 5%
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
5
General Specification, V
DD
=2.8V, TA = 27°C
Electrical Specifications
I2C Pin, INT_N Pin Pull-up Voltage
Current Consumption for
Operation Modes
1.Under Normal Mode
2.Including LED current (Peak = 760mA)
Suspend Current
Current Consumption for
Standby State 1
(Ref. to “Operating Principle”)
1.Under Normal Mode
2. S
1, Response Factor
=0.5
3. S
2, Response Factor
=0.25
4.Including LED current (Peak = 760mA)
Current Consumption for
Standby State 2
Current Consumption for
Proximity Detection
1.Detecting Rate = 10Hz
2.LED peak current = 600mA
3.LED on time = 6.8µs
I2C Bus Input High Voltage
I2C Bus Input High Voltage
I2C Bus Input Low Voltage
I2C Bus Input Low Voltage
INT_N, SDA Output Low Voltage
INT_N, SDA Output Low Voltage
Gesture Function Specifications
Calculated from PAJ7620U2 sensor center
Angular velocity under Normal Mode
Angular velocity under Gamming Mode
120 Hz for Normal Mode
240 Hz for Gaming Mode
Under Florescent light
LED View Angle
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
6
Function Diagram
IR
LED
Sensor Array
Object
Extraction
Gesture
Recognition
Timing Gen.
LED Driver
Reg. Bank
I2C
Interru pt
Power
Block
I2C_SDA
I2C_SCL
INT
VBUS
VDD
GND
VLED
Figure 2. PAJ7620U2 Module Functional Block Diagram
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
7
Register Map and Function
Register Map:
Slave ID: 0x73 hex using 7 bit addressing protocol. Contact PixArt for other slave ID requirement.
Register Bank 0 (Switch to Register Bank 0 by setting Addr 0xEF to 00)
I2C suspend command (Write 0x01 to enter suspend state). I2C wake-up command is slave ID
wake-up. Refer to topic “I2C Bus Timing Characteristics and Protocol”
Gesture detection interrupt flag mask
Gesture/PS detection interrupt flag mask
Gesture detection interrupt flag
Gesture/PS detection interrupt flag
State indicator for gesture detection (Only functional at gesture detection mode)
PS hysteresis high threshold (Only functional at proximity detection mode)
PS hysteresis low threshold (Only functional at proximity detection mode)
0x6B
PS approach state, Approach = 1 , (8 bits PS data >= PS high threshold)
Not Approach = 0 , (8 bits PS data <= PS low threshold)
(Only functional at proximity detection mode)
PS 8 bit data (Only functional at proximity detection mode)
Object Brightness (Max. 255)
Register Bank 1 (Switch to Register Bank 1 by setting Addr 0xEF to 01)
PS gain setting (Only functional at proximity detection mode)
IDLE S1 Step, for setting the S
1, Response Factor
IDLE S2 Step, for setting the S
2, Response Factor
OPtoS1 Step, for setting the OPtoS1 time of operation state to standby 1 state
S1toS2 Step, for setting the S1toS2 time of standby 1 state to standby 2 state
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
8
Register Function Description:
1. General Purpose:
Register Bank0, ADDR 0x03
Register Bank 0, ADDR 0x03, I2C Suspend Command
Write 1: Enter suspend state
(wake up by writing I2C slave ID (default: 0x73), Refer to topic “I2C Bus Timing Characteristics and
Protocol”
Register Bank1, ADDR 0x72
Register Bank 1, ADDR 0x72, Enable/Disable PAJ7620U2
1: Enable PAJ7620U2
0: Disable PAJ7620U2
To enter the suspend state, first disable the PAJ7620U2 by writing Register Bank 1, ADDR 0x72 with 0x00
then process the I2C suspend command by writing Register Bank 0, ADDR 0x03 with 0x01.
To exit the suspend state, first process the I2C wake-up command by writing the slave ID (Refer to topic “I2C
Bus Timing Characteristics and Protocol”) then enable the PAJ7620U2 by writing Register Bank 1, ADDR
0x72 with 0x01.
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
9
2. Gesture Detection Related:
Register Bank0, ADDR 0x41
Register Bank 0, ADDR 0x41, Gesture Detection Interrupt Flag Mask
Counter-Clockwise
Mask
Clockwise
Mask
Backward
Mask
Forward
Mask
Right
Mask
Left
Mask
Down
Mask
Up
Mask
Counter Clockwise Mask
1: Counter clockwise gesture will generate an interrupt
0: Counter clockwise gesture will not generate an interrupt
Clockwise Mask
1: Clockwise gesture will generate an interrupt
0: Clockwise gesture will not generate an interrupt
Backward Mask
1: Backward gesture will generate an interrupt
0: Backward gesture will not generate an interrupt
Forward Mask
1: Forward gesture will generate an interrupt
0: Forward gesture will not generate an interrupt
Left Mask
1: Left gesture will generate an interrupt
0: Left gesture will not generate an interrupt
1: Right gesture will generate an interrupt
0: Right gesture will not generate an interrupt
1: Down gesture will generate an interrupt
0: Down gesture will not generate an interrupt
1: Up gesture will generate an interrupt
0: Up gesture will not generate an interrupt
Register Bank0, ADDR 0x42
Register Bank 0, ADDR 0x42, Gesture Detection Interrupt Flag Mask
1: Wave gesture will generate an interrupt
0: Wave gesture will not generate an interrupt
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
10
Register Bank0, ADDR 0x43
Register Bank 0, ADDR 0x43, Gesture Detection Interrupt Flag
Counter Clockwise
1: Counter clockwise gesture be detected
0: No Counter clockwise gesture be detected
Clockwise
1: Clockwise gesture be detected
0: No Clockwise gesture be detected
Backward
1: Backward gesture be detected
0: No Backward gesture be detected
Forward
1: Forward gesture be detected
0: No Forward gesture be detected
Right
1: Right gesture be detected
0: No Right gesture be detected
Left
1: Left gesture be detected
0: No Left gesture be detected
Down
1: Down gesture be detected
0: No Down gesture be detected
1: Up gesture be detected
0: No Up gesture be detected
Register Bank0, ADDR 0x44
Register Bank 0, ADDR 0x44, Gesture Detection Interrupt Flag
1: Wave gesture be detected
0: Wave gesture be detected
The gesture detection interrupt flag will be cleared by reading Register Bank 0, Addr 0x43 and 0x44.
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
11
Register Bank0, ADDR 0x45
Register Bank 0, ADDR 0x45, State Indicator for Gesture Detection
State
0: Operation State
1: Standby 1 State
2: Standby 2 State
Refer to the “Gesture Detection Operating State and State Machine” in Operating Principle paragraph.
Register Bank1, ADDR 0x67, 0x68
Register Bank 1, ADDR 0x67, ADDR 0x68, IDLE S1 Step, for setting the S
1, Response Factor
Normal Mode: S
1, Response Factor
= 8.333/(0.0323 x IDLE S1Step + α)
Gaming Mode: S
1, Response Factor
= 4.167/(0.0323 x IDLE S1 Step + α) , α= 3.55 for Near Mode
S
1, Response Factor
represents the degrading factor of detection rate in Standby 1 State referenced to Normal
Mode or Gaming Mode. Therefore, the object detecting rate in Standby1 State equals S
1, Response Factor
multiplied by the gesture update rate of Normal Mode or Gaming Mode in Operation State.
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
12
Register Bank1, ADDR 0x69, 0x6A
Register Bank 1, ADDR 0x69, ADDR 0x6A, IDLE S2 Step, for setting the S
2, Response Factor
IDLE S2 Step
Normal Mode: S
2, Response Factor
= 8.333/(0.0645 x IDLE S2Step + α)
Gaming Mode: S
2, Response Factor
= 4.167/(0.0645 x IDLE S2 Step + α) , α= 3.55 for Near Mode
S
2, Response Factor
represents the degrading factor of detecting rate in Standby 2 State referenced to Normal
Mode or Gaming Mode. Therefore, the object detecting rate in Standby2 State equals S
2, Response Factor
multiplied by the gesture update rate of Normal Mode or Gaming Mode in Operation State.
Register Bank1, ADDR 0x6B, 0x6C
Register Bank 1, ADDR 0x6B, ADDR 0x6C, OPtoS1 Step, for setting the OPtoS1 time of operation state to standby 1 state
Normal Mode: OPtoS1 time = OPtoS1 step/120
Gaming Mode: OPtoS1 time = OPtoS1 step/240
The OPtoS1 time means the time that no object be detected from Operation State to Standby 1 State
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
13
Register Bank1, ADDR 0x6D, 0x6E
Register Bank 1, ADDR 0x6D, ADDR 0x6E, S1toS2 Step, for setting the S1toS2 time of standby 1 state to standby 2 state
S1toS2 Step
Normal Mode: S1toS2 time = S1toS2 step/(60 xS
1, Response Factor
)
Gaming Mode: S1toS2 time = S1toS2 step/(120 xS
1, Response Factor
)
The S1toS2 time means the time that no object be detected from Standby 1 State to Standby 2 State
Register Bank0, ADDR 0xB0
Register Bank 0, ADDR 0xB0, Object Brightness, Report object brightness
Report Object Brightness (Max. value 255).
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
14
Register Bank0, ADDR 0xB1, 0xB2
Register Bank 0, ADDR 0xB1, ADDR 0xB2, Object Size
Report Object Size (Max. value 900).
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
15
3. Proximity Detection Related:
Register Bank1, ADDR 0x44
Register Bank 1, ADDR 0x44, Proximity gain setting
PS Gain
0: 1x gain
1: 2x gain
Register Bank0, ADDR 0x42
Register Bank 0, ADDR 0x42, Gesture Detection Interrupt Flag Mask
1: Proximity detection will generate an interrupt
0: Proximity detection will not generate an interrupt
Register Bank0, ADDR 0x44
Register Bank 0, ADDR 0x44, Proximity Detection Interrupt Flag
1: PS interrupt flag
0: No PS interrupt flag
The proximity detection interrupt flag will be cleared by reading Register Bank 0, Addr 0x44.
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
16
Register Bank0, ADDR 0x69
Register Bank 0, ADDR 0x69, PS Hysteresis High Threshold
PS Hysteresis Interrupt Window High Threshold
Register Bank0, ADDR 0x6A
Register Bank 0, ADDR 0x6A, PS Hysteresis Low Threshold
NAME
PS Low Thd
BIT #
[7:0]
ACCESS
R/W
DEFAULT
0x40
NAME
PS Hysteresis Interrupt Window Low Threshold
Register Bank0, ADDR 0x6B
Register Bank 0, ADDR 0x6B, Proximity Approach State
PS approach state, Approach = 1 , (8 bits PS data >= PS high threshold)
Not Approach = 0 , (8 bits PS data <= PS low threshold)
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
17
Register Bank0, ADDR 0x6C
Register Bank 0, ADDR 0x6C, Proximity Readout
8 bits PS data [7:0] PS Readout
Refer to Figure 3 for how to set the PS hysteresis window and the interrupt mechanism of proximity detection.
Figure 3. Proximity Sensing Functional Diagram
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
18
Operating Principle
1. Gesture Sensor Module Orientation
The PAJ7620U2 should be oriented as shown in Figure 4 for correct gesture detection.
Figure 4. The Correct Gesture Sensor Module Orientation (Front View)
If rotate the gesture module, The direction of gesture detection interrupt flag mask (Register Bank 0, ADDR
0x41) and gesture detection interrupt flag (Register Bank 0, ADDR 0x43) needs to re-mapping.
Register Bank0, ADDR 0x41
Register Bank 0, ADDR 0x41, Gesture Detection Interrupt Flag Mask
Counter-Clockwise
Mask
Clockwise
Mask
Backward
Mask
Forward
Mask
Up
Mask
Down
Mask
Right
Mask
Left
Mask
Register Bank0, ADDR 0x43
Register Bank 0, ADDR 0x43, Gesture Detection Interrupt Flag
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
19
2. Power-On Sequence
In the power-on sequence, The VBUS Must be power on before VDD. After power on, wait T1 µs for
PAJ7620U2 to stabilize and then write slave ID (0x73) to process I2C wake-up (Refer to topic “I2C Bus
Timing Characteristics and Protocol” ). After T2 µs, write the initial settings and the different modes
settings to PAJ7620U2. Lastly, enable PAJ7620U2 by writing Register Bank1, Addr0x72 with 0x01. The
gesture data can now be accessed through the I
2
C bus.
VDD
Write initial settings to PAC7620
0.9VDD
T
1
I2C wake up command
T
2
T1 > 700 us
T2 > 400 us
VBUS
0.9VBUS
T
0
T0 ≥ 0 us
Figure 5. PAJ7620U2 Power-On Timing Diagram
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
20
3. Gesture Detection Operating State and State Machine
When in gesture detection, the state machine of PAJ7620U2 is in Figure13. Following is the detail description
of each state.
i. Operation State (OP state)
When in operation state, the gesture update rate is 120Hz for Normal Mode and 240Hz for Gaming Mode
respectively. The gesture result can be accessed by interrupt mechanism or continuous polling the gesture
detection interrupt flag (Register Bank 0, Addr0x43).
OP detection OP detection
Gesture Detected Gesture Detected
OP detection
Gesture Detected
Gesture Speed Gesture Update Rate
Normal Mode: 60°/s ~600°/s 120 Hz
Gaming Mode: 60°/s ~1200°/s 240 Hz
LED pulse
LED pulse length: 5 ~ 40μs (By AE Setting)
LED pulse length
LED pulse peak current
Figure 9. Operation State (OP state) Diagram
ii. Standby 1 State (S1 state)
When in Standby1 state, the object detection rate equals S
1, Response Factor
multiply the gesture update rate of
Normal Mode or Gaming Mode.
S1 detection
IDLE S1
No Object
S1 detection
IDLE S1
S1 detection
IDLE S1
No Object No Object
Object Detecting Rate
Normal Mode: (120 xS
1, Response Fa cto r
) Hz , S
1, Response Fa cto r
= 8.333/(0.0323 xIDLE S1Step + 3.55)
Gaming Mode: (240 xS
1, Response Fa cto r
) Hz , S
1, Response Fa cto r
= 4.167/(0.0323 xIDLE S1 Step +3.55)
LED pulse
LED pulse length: 5 ~ 40μs (By AE Setting)
LED pulse length
LED pulse peak current
Figure 10. Standby 1 State (S1 state) Diagram
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
21
iii. Standby 2 State (S2 state)
When in Standby 2 state, the object detection rate equals S
2, Response Factor
multiply the gesture update rate of
Normal Mode or Gaming Mode.
S2 Detection
IDLE S2
No Object
S2 Detection
IDLE S2
No Object
Object Detecting Rate
Normal Mode: (120 xS
2, Response Fa cto r
) Hz , S
2, Response Fa cto r
= 8.333/(0.0645 xIDLE S2 Step + 3.55)
Gaming Mode: (240 xS
2, Response Fa cto r
) Hz , S
2, Response Fa cto r
= 4.167/(0.0645 xIDLE S2 Step +3.55)
LED pulse
LED pulse length: 5 ~ 40μs (By AE Setting)
LED pulse length
LED pulse peak current
Figure 11. Standby 2 State (S2 state) Diagram
iv. Suspend State (SUS state)
To enter the suspend state, first disable the PAJ7620U2 by writing Register Bank 1, ADDR 0x72 with 0x00
then process the I2C suspend command by writing Register Bank 0, ADDR 0x03 with 0x01.
To exit the suspend state, first process the I2C wake-up command by writing the slave ID (Refer to topic “I2C
Bus Timing Characteristics and Protocol”) then enable the PAJ7620U2 by writing Register Bank 1, ADDR
0x72 with 0x01.
Suspend
1. Disable PAC7620
2. I2C suspend command
1. I2C wakeup command
2. Enable PAC7620
OP det ection
Gesture Detected
OP detection
Gesture Detected
Figure 12. Suspend State (SUS state) Diagram
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
22
v. State Machine
Oper ation State
(OP state)
Standby 1 State
(S1 state)
Standby 2 State
(S2 state)
Suspend State
(SUS state)
1. Disable PAC7620
2. I2C suspend command
Frames contain no object consecutively over
S1toS2 time second
Object detected
Object detected
Frames contain no object
consecutively over
OPtoS1 time second
No object detected
1. Disable PAC7620
2. I2C suspend command
1. Disable PAC7620
2. I2C suspend command
1. I2C wakeup command
2. Enable PAC7620
Note:
OPtoS1 time = OPtoS1 step/120 @ Normal Mode
= OPtoS1 step/240 @ Ga ming Mode
S1toS2 time = S1toS2 step/(60 xS
1, Response Factor
) @ Normal Mode
= S1toS2 step/(120 xS
1, Response Factor
) @ Ga ming Mode
Figure 13. State Machine of Gesture Detection
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
23
4. Proximity Detection Operating Principle
When in proximity detection, the state machine of PAJ7620U2 is in Figure 16. Following is the detail
description of each state.
i. Proximity Operation State (PS OP state)
When in operation state, the update rate is 10Hz and the LED on time is 8µs. The LED peak current is 760
mA.
LED pulse on time = 8us
One PS report period
=100ms
Figure 14. Proximity Operation State (PS OP state) Diagram
ii. Suspend State (SUS state)
Suspend
1. Disable PAC7620
2. I2C suspend command
1. I2C wakeup command
2. Enable PAC7620
PS Operation
Gesture Detected
PS Operation
Gesture Detected
Figure 15. Suspend State (SUS state) Diagram
iii. State Machine
Proximity Operation State
(PS OP state)
Suspend State
(SUS state)
1. Disable PAC7620
2. I2C suspend command
1. I2C wakeup command
2. Enable PAC7620
Figure 16. State Machine of Gesture Detection
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
24
I2C Bus Timing Characteristics and Protocol
i. I2C Timing Parameter
Hold time for Start/Repeat Start.
After this period, the first clock pulse is generated.
Set-up time for a repeated Start. t
SU.STA
4.7
Low period of SCL clock. t
LOW
4.7
High period of SCL clock.
Data hold time. t
HD.DAT
0
Data set-up time. t
SU.DAT
250
Rise time of both SDA and SCL signals. tr
Fall time of both SDA and SCL signals. tf
Set-up time for STOP condition. t
SU.STO
4
Bus free time between a STOP and START. t
BUF
4.7
* maximum current is 5mA and capacitance load spec. =100pF
SDA
SCL
VIH
VIL
VIH
VIL
t
HD.STA
t
LOW
t
HD.DAT
90%
10%
t
r
VIL
VIH
VIL
VIH
t
SU.DAT
t
HIGH
90%
10%
t
f
VIH
t
BUF
VIL
VIH
t
SU.STO
Start StartStop
VIH
VIL
t
SU.STA
Figure 17. I2C Timing Diagram
ii. I2C General Description
SDA (serial data) and SCL (serial clock) form a two-wire serial interface compatible with I2C. The
PAJ7620U2 is implemented as a slave-only device so it never drives SCL. It drives SDA during
(host) read cycles and transmission of the Acknowledge bit. PAJ7620U2 uses 7-bit addressing and
does not support clock stretching. The SDA and SCL pins are open-drain structure requiring
external pull-up resistors.
Start and stop condition: SDA high to low transition while SCL is high defines a Start condition. SDA
low to high transition while SCL is high defines a Stop condition. (Refer. to Figure 18)
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
25
Valid data: The data on SDA line must be stable during high period of SCL. MSB is always
transferred first for each byte. LSB of the first byte is Read / Write control bit. (Refer. to Figure 19)
Both master and slave can transmit and receive data from the bus.
Acknowledge: The Receiving device should pull down SDA during high period of the 9th clock (SCL)
after a complete byte has been received from the transmitter. In the case of the master receiving
data from the slave, the master does not generate an Acknowledge bit after the last byte to indicate
the end of a master read cycle.
Figure 18. Start and Stop Conditions Figure 19. Valid Data
iii. I2C Protocol
The slave ID of PAJ7620U2 is 0x73 hex using 7 bit addressing protocol. Contact Pixart for other slave ID
requirement.
I. Single Write Protocol
S Slave ID (7 bit) W A Address (8bit) A Data (8bit) A P
MSB LSB MSB LSB MSB LSB
S Slave ID (7 bit) W A Address (8bit) A
MSB LSB MSB LSB
P S Slave ID (7 bit) R A Data (8bit) NA
MSB LSB MSB LSB
P
S Slave ID (7 bit) W A Address (8bit) A
MSB LSB MSB LSB
P S Slave ID (7 bit) R A
Data 1 (8bit)
(Address)
A
MSB LSB MSB LSB
Data 2 (8bit)
(Address+1)
A
MSB LSB
Data n (8bit)
(Address+n-1)
NA
LSB
P
MSB
IV. I2C Wake-up command Protocol
S Slave ID (7 bit) W
P
MSB LSB
A
Acknowledge (0 for an ACK)
NA
Non-acknowledge (1 for an NACK)
P
Stop condition
S
Start condition
W
Write (0 for write)
R
Read (1 for read)
Master to Slave Slave to Master
SDA
SCL
S
P
Start
Condition
Stop
Condition
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
26
Reference Application Circuit
INT
I2C_SD A
I2C_SC L
GND
GND
VBUS
VLED
VDD
VBUS
I2C_SD A
I2C_SC L
INT
Top View
U1
PAJ7620U2
VBUS (VD DI O)
1
I2C_SD A
2
INT
3
TESTM D4I2C_SC L5GND6GPIO3
7
GPIO2
8
GPIO1
9
GND
10
VLED
11
VDD(Vm ain)
12
GPIO0
13
R1
2.2k
12
R3
2.2k
12
R2
2.2k
12
VIN PAD
U2
AIC1734-33
GND1VIN2VOUT
3
GND
5V
(1) Slave ID = 0x73
VBUS: 1.8V ~ 3.3V
VLED: 3.0V ~ 4.2V
VDD: 2.8V ~ 3.6V
VBUS
VDD
(3) Interrupt pin is Active Low
3.3V
3.3V
C1
1uF
GND
In the power-on sequence, VBUS
must be power on before VDD. At
least, must be simultaneously.
VIN PAD
U3
AIC1734-33
GND1VIN2VOUT
3
5V
GND
C2
1uF
GND
3.3V_VLED
C3
10uF
GND
3.3V_VLED
VLED
PAJ7620U2 Cubic Package
L x W x H = 5.2 x 3.0 x 1.88 mm
(2) OPEN Drain IO
(Pull high with 2.2k resistor to VBUS)
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
27
Outline Dimension
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
28
Marking Information
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
29
Mechanical Design Guide
i. Gesture Module Only
PXI suggest mechanical design as below for better performance.
2.7±0.1mm
Ø1.8±0.1mm
Ø1.2±0.1mm
Gesture Module
PCB/FPC
Cover Glass
Air Gap ≤ 0.2mm
≤ 0.7mm
Blake Ink Region
Clear Glass for Gesture Sensor
IR Ink or Clear Glass for IR LED
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
30
ii. Gesture Module with ALS sensor (PAC7672OM)
2.7±0.1mm
Ø1.8±0.1mm
Ø1.2±0.1mm
Gesture Module
PCB/FPC
Cover Glass
Air Gap ≤ 0.2mm
≤ 0.7mm
1.88mm
PAC7672OM
1.01mm
Ø2.18±0.1mm
Rubber
Ø2.18±0.1mm
Blake Ink Region
Clear Glass for Gesture Sensor
IR Ink or Clear Glass for IR
LED / ALS
Blake Ink type I
Blake Ink type II
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
31
IR Ink Spectrum (Recommend)
IR Ink Vendor : Teikoku Ink
940nm
100
80
60
40
20
0
380 400 600 800 1000 1200
Wavelength [nm]
%T
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
32
Programing Sequence and Function Application
This chapter describes how to implement firmware for PAJ7620U2 and function application.
i. Initial
Step 1:Power On, The VBus must be power on before VDD.
Step 2:Wait 700us for PAJ7620U2 to stabilize.
Step 3:Write slave ID or I2C read command to process I2C wake-up.
It’s recommend to read Reg_0x00. It will return “0x20” when wake-up finish.
By the way, There is no-ack from PAJ7620U2 before wake-up finish.
Step 4:Write initial setting to gesture.
unsigned char initial_register_array[][2] = {
{0xEF,0x00},
{0x37,0x07},
{0x38,0x17},
{0x39,0x06},
{0x42,0x01},
{0x46,0x2D},
{0x47,0x0F},
{0x48,0x3C},
{0x49,0x00},
{0x4A,0x1E},
{0x4C,0x20},
{0x51,0x10},
{0x5E,0x10},
{0x60,0x27},
{0x80,0x42},
{0x81,0x44},
{0x82,0x04},
{0x8B,0x01},
{0x90,0x06},
{0x95,0x0A},
{0x96,0x0C},
{0x97,0x05},
{0x9A,0x14},
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
33
{0x9C,0x3F},
{0xA5,0x19},
{0xCC,0x19},
{0xCD,0x0B},
{0xCE,0x13},
{0xCF,0x64},
{0xD0,0x21},
{0xEF,0x01},
{0x02,0x0F},
{0x03,0x10},
{0x04,0x02},
{0x25,0x01},
{0x27,0x39},
{0x28,0x7F},
{0x29,0x08},
{0x3E,0xFF},
{0x5E,0x3D},
{0x65,0x96},
{0x67,0x97},
{0x69,0xCD},
{0x6A,0x01},
{0x6D,0x2C},
{0x6E,0x01},
{0x72,0x01},
{0x73,0x35},
{0x74,0x00},
{0x77,0x01},
};
ii. Get Gesture result
Step 1:Set Interrupt or I2C polling timer.
Step 2:Read Bank_0_Reg_0x43/0x44 for gesture result if interrupt or timer happen.
Gesture result will be clean when I2C read finish.
iii. Change to PS mode
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
34
Step 1:Write PS mode setting to gesture.
unsigned char change_to_proximity_register_array[][2] = {
{0xEF,0x00},
{0x41,0x00},
{0x42,0x02},
{0x48,0x20},
{0x49,0x00},
{0x51,0x13},
{0x83,0x00},
{0x9F,0xF8},
{0x69,0x96},
{0x6A,0x02},
{0xEF,0x01},
{0x01,0x1E},
{0x02,0x0F},
{0x03,0x10},
{0x04,0x02},
{0x41,0x50},
{0x43,0x34},
{0x65,0xCE},
{0x66,0x0B},
{0x67,0xCE},
{0x68,0x0B},
{0x69,0xE9},
{0x6A,0x05},
{0x6B,0x50},
{0x6C,0xC3},
{0x6D,0x50},
{0x6E,0xC3},
{0x74,0x05},
};
iv. Get PS approach status
Step 1:Read Bank_0_Reg_0x6B for PS approach status or read Bank_0_Reg_0x6C for PS
raw data.
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
35
v. Change to Gesture mode
Step 1:Write Gesture mode setting to gesture.
unsigned char change_to_gesture_register_array[][2] = {
{0xEF,0x00},
{0x41,0x00},
{0x42,0x00},
{0xEF,0x00},
{0x48,0x3C},
{0x49,0x00},
{0x51,0x10},
{0x83,0x20},
{0x9f,0xf9},
{0xEF,0x01},
{0x01,0x1E},
{0x02,0x0F},
{0x03,0x10},
{0x04,0x02},
{0x41,0x40},
{0x43,0x30},
{0x65,0x96},
{0x66,0x00},
{0x67,0x97},
{0x68,0x01},
{0x69,0xCD},
{0x6A,0x01},
{0x6b,0xb0},
{0x6c,0x04},
{0x6D,0x2C},
{0x6E,0x01},
{0x74,0x00},
{0xEF,0x00},
{0x41,0xFF},
{0x42,0x01},
};
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
36
vi. Enter Suspend mode
Step 1:Write Suspend mode setting to gesture.
unsigned char suspend_register_array[][2] = {
{0xEF,0x01},
{0x72,0x00},
{0xEF,0x00},
{0x03,0x01},
};
vii. Resume Gesture
Step 1:Write slave ID or I2C read command to process I2C wake-up.
It’s recommend to read Reg_0x00. It will return “0x20” when wake-up finish.
By the way, There is no-ack from PAJ7620U2 before wake-up finish.
Step 2:Write Resume setting to gesture.
unsigned char resume_register_array[][2] = {
{0xEF,0x01},
{0x72,0x01},
};
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
37
Register Map
Write 1: Enter suspend state
(wake up by writing I2C slave ID (default: 0x73), Refer to topic “I2C Bus Timing
Characteristics and Protocol”
1: Enable cursor center function
1: Horizontal cursor center inverse
[3] R/W 1: Vertical cursor center inverse
0 37
[4:0] R/W
Minimum cursor horizontal center value, if the data is less than this, clamp at 0.
Otherwise, clamp at data-(R_CursorClampLeft<<R_PositionResolution).
Maximum cursor horizontal center value, if the data is larger than this, clamp at this
-1
[4:0] R/W
Minimum cursor vertical center value, if the data is less than this, clamp at 0
Otherwise, clamp at data-(R_CursorClampUp<<R_PositionResolution).
0 3A
[4:0] R/W Maximum cursor vertical center value, if the data is larger than this, clamp at this -1
0 3B
[7:0] R
Clamping Center X
0 3C
[7:0] R
Clamping Center Y
0 3E
[1] R/W 1: IntFlag1 and IntFlag2 clear enable
INT Pin Polarity: 1:1 stands for the interrupt event, 0:0 stands for the interrupt event
If the corresponding bit is 1: the corresponding interrupt event enable
If the corresponding bit is 1: the corresponding interrupt event enable
R
When interrupt event happens, the corresponding bit is set to 1
bit 0: Up
bit1: Down
bit2: Left
bit3: Right
bit4: Forward
bit5: Backward
bit6: Clockwise
bit7:Counterclockwise
When interrupt event happens, the corresponding bit is set to 1
bit 0: Wave, wave mode use only
bit1: Proximity, proximity mode use only
bit2: Has Object, cursor mode use only
bit3: Wake up trigger, trigger mode use only
bit4: Confirm, confirm mode use only
bit5: Abort, confirm mode use only
bit6: N/A
bit7:No Object, cursor mode use only
Indicate operation status, 0:normal, 1:weak sleep, 2:deep sleep
If OFF Frame average brightness > this x2, AE decrease
If OFF Frame average brightness < this x2, AE increase
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
38
R_Manual_Exposure_Default
Set corresponding CLK in Manual Mode
[6:0] R/W OSC code in use
0 60
[7] R/W OSC bist done identifier
0 69
[7:0] R/W Proximity Up Bound
0 6A
[7:0] R/W Proximity Low Bound
0 6B
[0] R Proximity state
0 6C
[7:0] R Proximity object average brightness
0 80
[1] R/W 0: GPIO0 Output Enable
0 80
[2] R/W 0: GPIO0 Input Enable
[0] R INT Pin Input Signal
Only if the pixel > this, it would be taken as the part of object
R_Cursor_ObjectSizeTh[7:0]
The object size threshold for cursor mode
No motion counter threshold to quit has motion state
Gesture detection horizontal threshold
Gesture detection vertical threshold
Gesture detection z direction threshold
Gesture detection x and y threshold to detect forward or backward
R_ZDirectionAngleThd[3:0]
Gesture detection angle threshold to detect forward or backward
Gesture detection x and y threshold to detect rotation
IIR filter weight between frame position distance
IIR filter frame position distance threshold
During calculating object center, use the weight between background and pixel.
Update background at process state
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
39
R_BGUpdateMaxIntensity_En
Backgounrd up bound threshold enable
Rotate gesture detection enable
Backward and Forward gesture detection enable
Up and down gesture detection enable
Left and right gesture detection enable
Image filter mode: 0: weak average, 1: strong average, 2: 3 out of 9 median average
Use pixel brightness as weight to calaulate center enable
[7:0] R
Gesture angle accumulation
0 C8
[5:0] R/W Z direction mapping parameter
Z direction mapping parameter
R_PositionFilterLength[2:0]
[2:0] R/W IIR Filter length for cursor object center
0 CE
R_ProcessFilterLength[2:0]
[6:4] R/W IIR Filter length for gesture object center
0 CF
[3:0] R/W Wave gesture counter threshold
0 CF
[7:4] R/W Wave gesture angle threshold
0 D0
[2:0] R/W Abort gesture counter threshold
0 D0
[7:3] R/W Abort gesture X and Y direction ratio
0 D3
PositionFilterCenterX[7:0]
Horizontal Object Center after IIR filter for cursor mode
PositionFilterCenterX[11:8]
PositionFilterCenterY[11:8]
Vertical Object Center after IIR filter for cursor mode
PositionFilterCenterY[7:0]
Object brightness after IIR filter for cursor mode
Object size after IIR filter for cursor mode
Lens Shading for digital vertical average
Lens Shading for digital horizontal average (unused)
digital horizontal average (unused)
Lens Shading compensation enable, active high
vertical offset of lens (s+6, -63~63)
A, R2 coeff, (un-signed, 0~127)
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
40
shift amount of A*R2(un-signed, 0~15)
debug pattern for TG output
DAC enable control in normal mode
DAC enable control in scan ADC mode
DAC gain code in normal mode
DAC gain code in scan ADC mode
manual value for TS_pwrsv
PGA test mode enable in normal mode
PGA test mode enable in scan PGA mode
PGA test mode enable in scan ADC mode
[3] R/W PGA test signal inversion
1 43
[2] R/W DAC input signal inversion selection
1 43
[0] R/W PGA enable control
1 44
[7:6] R/W PGA global gain
PGA total bias current option
[3:0] R/W ADC test sweep code
1 5E
[7:6] R/W Constant gm clamp circuit driver NMOS number select
1 5E
[4] R/W Vbgp2vdda buffer bypass, 0: buffer enable, 1: buffer off
1 5E
[3:1] R/W VDDAY voltage select:2.31, 2.36, 2.41, 2.46, 2.52, 2.59, 2.66, 2.75V
1 5E
[0] R/W Vbgp2vdday buffer bypass, 0: buffer enable, 1: buffer off
1 65
idle time for normal operation
R_IDLE_TIME_SLEEP_1[15:8]
idle time for deep sleep, 2X
R_IDLE_TIME_SLEEP_2[15:8]
Weak sleep enter time, unit: one report frame time.
Deep sleep enter time, unit: two report frame time.
1: Enable PAJ7620U2
0: Disable PAJ7620U2
The way goes to weak sleep, 0: No motion sleep, 1: No object sleep
1: GPIO0 output TG_Start signal, 2: GPIO0 output TG_Finish signal
R_Control_Mode=0 (Gesture Mode)
R_Control_Mode=3 (Cursor Mode)
R_Control_Mode=5 (PS Mode)
GPIO debug probe select, to use this probe, set GPIO as output.
SRAM read enable, active high
P i xAr t Conf i dent i a l

PAJ7620U2 Integrated Gesture Recognition Sensor with I2C Interface
DOCUMENT CONTROLLED V0.8 2014/06/11
41
Recommended Guideline for PCB Assembly
Recommended vender and type for Pb-free solder paste
1. Almit LFM-48W TM-HP
2. Senju M705-GRN360-K
IR Reflow Soldering Profile:
Temperature profile is the most important control in reflow soldering. It must be fine tuned to establish a
robust process. The typical recommended IR reflow profile is showed in figure 8 below.
Fig. 8 IR Reflow Profile
Reflow Profile :
1. Average Ramp-up Rate (30°C to preheat zone): 1.5~ 2.5 Degree C/ Sec
2. Preheat zone:
2.1 Temp ramp from 170~ 200 degree C
2.2 Exposure time: 90 +/- 30 sec
3. Melting zone:
3.1 Melting area temp > 220 degree C for at least 30 ~ 50 sec
3.2 Peak temperature : 245 degree C.
P i xAr t Conf i dent i a l