AR0330CM
www.onsemi.com
43
Figure 41. Example of Changing the Sensor from Context A to Context B
Active Rows
Vertical Blanking
1/60s 1/60s
End of Frame
Readout
End of Frame
Readout
End of Frame
Readout
1/54s
Frame N
VB
(12 Rows)
HB (192 Pixels/Column)
VB
(12 Rows)
HB (192 Pixels/Column)
VB
(12 Rows)
HB (192 Pixels/Column)
Write context A to B
during readout of Frame N
Integration time of context
B mode implemented
during readout of frame
N+1
Context B mode is
implemented in frame N+2
2304 x 1296
Frame N+1
2048 x 1536
Frame N+2
2304 x 1296
Time
Start of Vertical Blanking
End of Line
Serial SYNC Codes
End of Frame
Start of Frame
Start of Active Row
AR0330CM
www.onsemi.com
44
COMPRESSION
The sensor can optionally compress 12-bit data to 10-bit
using A-law compression. The compression is applied after
the data pedestal has been added to the data. See Figure 1.
The A-law compression is disabled by default and can be
enabled by setting R0x31D0 from “0” to “1”.
Table 40. A-LAW COMPRESSION TABLE FOR 1210 BITS
Input Range
Input Values Compressed Codeword
11 10 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
0 to 127 0 0 0 0 0 a b c d e f g 0 0 0 a b c d e f g
128 to 255 0 0 0 0 1 a b c d e f g 0 0 1 a b c d e f g
256 to 511 0 0 0 1 a b c d e f g X 0 1 0 a b c d e f g
512 to 1023 0 0 1 a b c d e f g X X 0 1 1 a b c d e f g
1024 to 2047 0 1 a b c d e f g h X X 1 0 a b c d e f g h
2048 to 4095 1 a b c d e f g h X X X 1 1 a b c d e f g h
TEST PATTERNS
The AR0330 has the capability of injecting a number of
test patterns into the top of the datapath to debug the digital
logic. With one of the test patterns activated, any of the
datapath functions can be enabled to exercise it in
a deterministic fashion. Test patterns are selected by
Test_Pattern_Mode register (R0x3070). Only one of the test
patterns can be enabled at a given point in time by setting the
Test_Pattern_Mode register according to Table 41. When
test patterns are enabled the active area will receive the value
specified by the selected test pattern and the dark pixels will
receive the value in Test_Pattern_Green (R0x3074 and
R0x3078) for green pixels, Test_Pattern_Blue (R0x3076)
for blue pixels, and Test_Pattern_Red (R0x3072) for red
pixels.
Table 41. TEST PATTERN MODES
Test_Pattern_Mode
Test Pattern Output
0 No Test Pattern (Normal Operation)
1 Solid Color
2 100% Vertical Color Bars
3 Fade-to-Gray Vertical Color Bars
256 Walking 1s Test Pattern (12-bit)
Solid Color
When the color field mode is selected, the value for each
pixel is determined by its color. Green pixels will receive the
value in Test_Pattern_Green, red pixels will receive the
value in Test_Pattern_Red, and blue pixels will receive the
value in Test_Pattern_Blue.
Vertical Color Bars
When the vertical color bars mode is selected, a typical
color bar pattern will be sent through the digital pipeline.
Walking 1s
When the walking 1s mode is selected, a walking 1s
pattern will be sent through the digital pipeline. The first
value in each row is 1.
AR0330CM
www.onsemi.com
45
TWO-WIRE SERIAL REGISTER INTERFACE
The two-wire serial interface bus enables read/write
access to control and status registers within the AR0330.
This interface is designed to be compatible with the
electrical characteristics and transfer protocols of the I
2
C
specification.
The interface protocol uses a master/slave model in which
a master controls one or more slave devices. The sensor acts
as a slave device. The master generates a clock (S
CLK
) that
is an input to the sensor and is used to synchronize transfers.
Data is transferred between the master and the slave on
a bidirectional signal (S
DATA
). S
DATA
is pulled up to
V
DD
_IO off-chip by a 1.5 kW resistor. Either the slave or
master device can drive S
DATA
LOW the interface protocol
determines which device is allowed to drive S
DATA
at any
given time.
The protocols described in the two-wire serial interface
specification allow the slave device to drive S
CLK
LOW; the
AR0330 uses S
CLK
as an input only and therefore never
drives it LOW.
Protocol
Data transfers on the two-wire serial interface bus are
performed by a sequence of low-level protocol elements:
1. a (repeated) start condition
2. a slave address/data direction byte
3. an (a no-) acknowledge bit
4. a message byte
5. a stop condition
The bus is idle when both S
CLK
and S
DATA
are HIGH.
Control of the bus is initiated with a start condition, and the
bus is released with a stop condition. Only the master can
generate the start and stop conditions.
Start Condition
A start condition is defined as a HIGH-to-LOW transition
on S
DATA
while S
CLK
is HIGH. At the end of a transfer, the
master can generate a start condition without previously
generating a stop condition; this is known as a “repeated
start” or “restart” condition.
Stop Condition
A stop condition is defined as a LOW-to-HIGH transition
on S
DATA
while S
CLK
is HIGH.
Data Transfer
Data is transferred serially, 8 bits at a time, with the MSB
transmitted first. Each byte of data is followed by an
acknowledge bit or a no-acknowledge bit. This data transfer
mechanism is used for both the slave address/data direction
byte and for message bytes.
One data bit is transferred during each S
CLK
clock period.
S
DATA
can change when S
CLK
is LOW and must be stable
while S
CLK
is HIGH.
Slave Address/Data Direction Byte
Bits [7:1] of this byte represent the device slave address
and bit [0] indicates the data transfer direction. A “0” in bit
[0] indicates a WRITE, and a “1” indicates a READ. The
default slave addresses used by the AR0330 sensor are 0x20
(write address) and 0x21 (read address). Alternate slave
addresses of 0x30 (WRITE address) and 0x31 (READ
address) can be selected by asserting the S
ADDR
signal (tie
HIGH).
Alternate slave addresses can also be programmed
through R0x31FC.
Message Byte
Message bytes are used for sending register addresses and
register write data to the slave device and for retrieving
register read data.
Acknowledge Bit
Each 8-bit data transfer is followed by an acknowledge bit
or a no-acknowledge bit in the S
CLK
clock period following
the data transfer. The transmitter (which is the master when
writing, or the slave when reading) releases S
DATA
. The
receiver indicates an acknowledge bit by driving S
DATA
LOW. As for data transfers, S
DATA
can change when S
CLK
is LOW and must be stable while S
CLK
is HIGH.
No-Acknowledge Bit
The no-acknowledge bit is generated when the receiver
does not drive S
DATA
LOW during the S
CLK
clock period
following a data transfer. A no-acknowledge bit is used to
terminate a read sequence.
Typical Sequence
A typical READ or WRITE sequence begins by the
master generating a start condition on the bus. After the start
condition, the master sends the 8-bit slave address/data
direction byte. The last bit indicates whether the request is
for a read or a write, where a “0” indicates a write and a “1”
indicates a read. If the address matches the address of the
slave device, the slave device acknowledges receipt of the
address by generating an acknowledge bit on the bus.
If the request was a WRITE, the master then transfers the
16-bit register address to which the WRITE should take
place. This transfer takes place as two 8-bit sequences and
the slave sends an acknowledge bit after each sequence to
indicate that the byte has been received. The master then
transfers the data as an 8-bit sequence; the slave sends an
acknowledge bit at the end of the sequence. The master stops
writing by generating a (re)start or stop condition.
If the request was a READ, the master sends the 8-bit write
slave address/data direction byte and 16-bit register address,
the same way as with a WRITE request. The master then
generates a (re)start condition and the 8-bit read slave
address/data direction byte, and clocks out the register data,
eight bits at a time. The master generates an acknowledge bit
after each 8-bit transfer. The slave’s internal register address
is automatically incremented after every 8 bits are
transferred. The data transfer is stopped when the master
sends a no-acknowledge bit.

AR0330CM1C00SHAAH3-GEVB

Mfr. #:
Manufacturer:
ON Semiconductor
Description:
Optical Sensor Development Tools 3.5 MP 1/3" CIS HB
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union