pan101bsi-204 ETC-unknow, pan101bsi-204 Datasheet - Page 13

no-image

pan101bsi-204

Manufacturer Part Number
pan101bsi-204
Description
Cmos Optical Navigation Sensor
Manufacturer
ETC-unknow
Datasheet
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission
PixArt Imaging Inc.
E-mail:
7. Serial Interface
The synchronous serial port is used to set and read parameters in the PAN101B, and can be used to read
out the motion information instead of the quadrature data pins.
SCLK: The serial clock line. It is always generated by the host micro-controller.
SDIO: The serial data line used for write and read data.
PD:
7.1 Transmission Protocol
The transmission protocol is a two-wire link, half duplex protocol between the micro-controller and
PAN101B. All data changes on SDIO are initiated by the falling edge on SCLK. The host micro-
controller always initiates communication; the PAN101B 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.
7.1.1 Write Operation
A write operation, which means that data is going from the micro-controller to the PAN101B, 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 PAN101B
reads SDIO on rising edges of SCLK.
7.1.2 Read Operation
A read operation, which means that data is going from the PAN101B 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 PAN101B. The transfer is synchronized by SCLK. SDIO is changed on falling
edges of SCLK and read on every rising edge of SCLK. The micro-controller must go to a high Z state
after the last address data bit. The PAN101B will go to the high Z state after the last data bit.
PixArt Imaging Inc.
PAN101B
SCLK
SDIO
DON'T
CARE
fae_service@pixart.com.tw
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 PAN101B in case of an error.
A third line is sometimes involved. PD (Power Down pin) is usually used to place the PAN101B
1
1
(1 BIT)
Figure 12. Transmission Protocol
A6
R /W
MSB
2
Figure 13. Write Operation
A5
3
FIRST BYTE
ADDRESS (7 BIT)
A4
4
A3
5
SDIO driven by Micro-controller
A2
6
LSB
A1
7
MSB
A0
8
D7
9
SECOND BYTE
DATA (8 BIT)
D6
10
D5
11
CMOS Optical Navigation Sensor
D4
12
D3
13
LSB
D2
14
D1
15
D0
16
.
V1.4, FEB. 2003
DON'T
CARE
13

Related parts for pan101bsi-204