AR0331
www.onsemi.com
19
Table 8. RECOMMENDED SENSOR GAIN
coarse_gain(0x3060[5:4])/
coarse_gain_cb (0x3060[13:12])
fine_gain (0x3060[3:0])/
fine_gain_cb (0x3060[11:8])
ADC Gain
0 6 1.23
0 7 1.28
0 8 1.34
0 9 1.39
0 10 1.45
0 11 1.52
0 12 1.60
0 13 1.69
0 14 1.78
0 15 1.88
1 0 2.00
1 2 2.14
1 4 2.28
1 6 2.47
1 8 2.67
1 10 2.91
1 12 3.20
1 14 3.56
2 0 4
2 4 4.56
2 8 5.34
2 12 6.41
3 0 8
Each digital gain can be configured from a gain of 0 to
15.992. The digital gain supports 128 gain steps per 6dB of
gain. The format of each digital gain register is
“xxxx.yyyyyyy” where “xxxx” refers an integer gain of 1 to
15 and “yyyyyyy” is a fractional gain ranging from 0/128 to
127/128.
The sensor includes a digital dithering feature to reduce
quantization noise resulting from using digital gain. It can be
disabled by setting R0x30BA[5] to 0. The default value is 1.
PEDESTALS
There are two types of constant offset pedestals that may
be adjusted at the end of the datapath.
The data pedestal is a constant offset that is added to pixel
values at the end of the datapath. The default offset when
ALTM is disabled is 168 and is a 12-bit offset. This offset
matches the maximum range used by the corrections in the
digital readout path. The purpose of the data pedestal is to
convert negative values generated by the digital datapath
into positive output data. It is recommended that the data
pedestal be set to 16 when ALTM is enabled.
The data pedestal value can be changed from its default
value by adjusting register R0x301E.
The ALTM pedestal (R0x2450) is also located at the end
of the datapath. The ALTM pedestal default offset is 0.
AR0331
www.onsemi.com
20
HIGH DYNAMIC RANGE MODE
By default, the sensor powers up in HDR Mode. The HDR
scheme used is multi-exposure HDR. This allows the sensor
to handle up to 100 dB of dynamic range. In HDR mode, the
sensor sequentially captures two exposures by maintaining
two separate read and reset pointers that are interleaved
within the rolling shutter readout. The intermediate pixel
values are stored in line buffers while waiting for the two
exposure values to be present. As soon as a pixel’s two
exposure values are available, they are combined to create
a linearized 16-bit value for each pixel’s response.
Depending on whether HiSPi or Parallel mode is selected,
the full 16 bit value may be output, it can be compressed to
12 bits using Adaptive Local Tone Mapping (ALTM), or
companded to 12 or 14 bits.
Adaptive Local Tone Mapping
Real- world scenes often have a very high dynamic range
(HDR) that far exceeds the electrical dynamic range of the
imager. Dynamic range is defined as the luminance ratio
between the brightest and the darkest objects in a scene.
Even though the AR0331 can capture full dynamic range
images, the images are still limited by the low dynamic
range of display devices. Today’s typical LCD monitor has
a contrast ratio around 1000:1 while it is not atypical for an
HDR image having a contrast ratio of around 250000:1.
Therefore, in order to reproduce HDR images on a low
dynamic range display device, the captured high dynamic
range must be compressed to the available range of the
display device. This is commonly called tone mapping. The
AR0331 has implemented an adaptive local tone mapping
(ALTM) feature to reproduce visually appealing images that
increase the local contrast and the visibility of the images.
When ALTM is enabled, the gamma in the backend ISP
should be set to 1 for proper display.
See the AR0331 Developer Guide for more information
on ALTM.
Companding
The 16-bit linearized HDR image may be compressed to
12 bits using on-chip companding. Figure 19 illustrates the
compression from 16- to 12-bits. Companding is enabled by
setting R0x31D0. Table 10 shows the knee points for the
different modes.
Figure 19. HDR Data Compression
500
1000
1500
2000
2500
3000
3500
4000
4500
0 10000 20000 30000 40000 50000 60000 70000
0
12-bit Code Output
16-bit Code Input
AR0331
www.onsemi.com
21
Table 9. COMPANDING TABLE
Segment 1 Segment 2 Segment 3 Segment 4
Input Code Range 0 to 1023 1024 to 4095 4096 to 32767 32768 to 65535
Output Code
Range
0 to 1023 1024 to 2559 2560 to 3455 3456 to 3967
Companding
Formula
P
out
= P
in
P
out
= (P
in
1024)/2 + 1024 P
out
= (P
in
4096)/32 + 2560 P
out
= (P
in
32768)/64 + 3456
Decompanding
Formula
P
out
= P
in
P
out
= (P
in
1024)*2 + 1024 P
out
= (P
in
2560)*32 + 4096 P
out
= (P
in
3456)*64 + 32768
Table 9 illustrates the input and output codes as well as
companding and decompanding formulas for each of the
four colored segments in Figure 19.
Table 10. KNEE POINTS FOR COMPRESSION FROM 16 BITS TO 12 BITS
T1/T2
Exposure Ratio
(R1)
R0x3082[3:2]
P1
POUT1
= P1
P2
POUT2=
(P2 P1)/2 + 1024
P3
POUT3=
(P3 P2)/32 + 2560
PMAX
POUTMAX =
(PMAX P3)/64 + 3456
4x, 8x, 16x, 32x
2
10
1024 2
12
2560
2
15
3456
2
16
3968
As described in Table 10, the AR0331 companding block
operates on 16-bit input only. For the exposure ratios that do
not result in 16-bits, bit shifting occurs before the data enters
the companding block. As a result of the bit shift, data needs
to be unshifted after linearization in order to obtain the
proper image. Table 11 provides the bit operation that
should occur to the data after linearization.
Table 11. BIT OPERATION AFTER LINEARIZATION
ratio_t1_t2 (R0x3082[3:2])/ratio_t1_t2_cb (R0x3084[3:2]) Bit Shift Operation after Linearization
4x Right Shift 2 Bits
8x Right Shift 1 Bit
16x No Shift
32x Left Shift 1 Bit
HDR-Specific Exposure Settings
In HDR mode, pixel values are stored in line buffers while
waiting for both exposures to be available for final pixel data
combination. There are 70 line buffers used to store
intermediate T1 data. Due to this limitation, the maximum
coarse integration time possible for a given exposure ratio is
equal to 70*T1/T2 lines.
For example, if R0x3082[3:2] = 2, the sensor is set to have
T1/T2 ratio = 16x. Therefore the maximum number of
integration lines is 70*16 = 1120 lines. If coarse integration
time is greater than this, the T2 integration time will stay at
70. The sensor will calculate the ratio internally, enabling the
linearization to be performed. If companding is being used,
then relinearization would still follow the programmed
ratio. For example if the T1/T2 ratio was programmed to 16x
but coarse integration was increased beyond 1120 then one
would still use the 16x relinearization formulas.
An additional limitation is the maximum number of
exposure lines in relation to the frame_length_lines register.
In linear mode, maximum coarse_integration_time =
frame_length_lines 1. However in HDR mode, since the
coarse integration time register controls T1, the max coarse
integration time is frame_length_lines 71.
Putting the two criteria listed above together, the formula
is as follows:
maximum coarse_integration_time + minimum(70
T1
T2
, frame_length_lines–71) (eq. 2)
There is a limitation of the minimum number of exposure
lines, which is one row time for linear mode. In HDR mode,
the minimum number of rows required is half of the ratio
T1/T2.

AR0331SRSC00SUCAH-GEVB

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