MT9V124
CONFIDENTIAL AND PROPRIETARY
NOT FOR PUBLIC RELEASE
www.onsemi.com
13
Figure 16. +225 Hue
REG= 0xA00F, 0x16 // CAM_HUE_ANGLE
Auto Exposure
The AE algorithm performs automatic adjustments of the
image brightness by controlling exposure time, and analog
gains of the sensor core as well as digital gains applied to the
image.
The AE algorithm analyzes image statistics collected by
the exposure measurement engine, and then programs the
sensor core and color pipeline to achieve the desired
exposure. AE uses 4 × 4 exposure statistics windows, which
can be scaled in size to cover any portion of the image.
The MT9V124 uses Average Brightness Tracking
(Average Y), which uses a constant average tracking
algorithm where a target brightness value is compared to a
current brightness value, and the gain and integration time
are adjusted accordingly to meet the target requirement. The
MT9V124 also has a weighted AE algorithm that allows the
sensor to be configured to respond to scene illuminance
based on each of the weights in the windows.
The auto exposure can be configured to respond to scene
illuminance based on certain criteria by adjusting gains and
integration time based on scene brightness.
Auto White Balance
The MT9V124 has a built-in AWB algorithm designed to
compensate for the effects of changing spectra of the scene
illumination on the quality of the color rendition. The
algorithm consists of two major parts: a measurement
engine performing statistical analysis of the image and a
module performing the selection of the optimal color
correction matrix, digital, and sensor core analog gains.
While default settings of these algorithms are adequate in
most situations, the user can reprogram base color correction
matrices and place limits on color channel gains.
The AWB algorithm estimates the dominant color
temperature of a light source in a scene and adjusts the B/G,
R/G gain ratios accordingly to produce an image for sRGB
display in which grey and white surfaces are reproduced
faithfully. This usually means that R,G,B are roughly equal
for these surfaces hence the word “balance”.
The AWB algorithm uses statistics collected from the last
frame to calculate the required B/G and R/G ratios and set
the blue and red analog sensor gains and digital SOC gains
to reproduce the most accurate grey and white surfaces
Flicker Detection and Avoidance
Flicker occurs when the integration time is not an integer
multiple of the period of the light intensity. The automatic
flicker detection module does not compensate for the flicker,
but rather avoids it by detecting the flicker frequency and
adjusting the integration time. For integration times below
the light intensity period (10 ms for 50 Hz environment,
8.33 ms for 60 Hz environment), flicker cannot be avoided.
While this fast flickering is marginally detectable by the
human eye, it is very noticeable in digital images because the
flicker period of the light source is very close to the range of
digital images’ exposure times.
Many CMOS sensors use a “rolling shutter” readout
mechanism that greatly improves sensor data readout times.
This allows pixel data to be read out much sooner than other
methods that wait until the entire exposure is complete
before reading out the first pixel data. The rolling shutter
mechanism exposes a range of pixel rows at a time. This
range of exposed pixels starts at the top of the image and then
“rolls” down to the bottom during the exposure period of the
frame. As each pixel row completes its exposure, it is ready
to be read out. If the light source oscillates (flickers) during
this rolling shutter exposure period, the image appears to
have alternating light and dark horizontal bands.
If the sensor uses the traditional snapshot readout
mechanism, in which all pixels are exposed at the same time
and then the pixel data is read out, then the image may appear
overexposed or underexposed due to light fluctuations from
MT9V124
CONFIDENTIAL AND PROPRIETARY
NOT FOR PUBLIC RELEASE
www.onsemi.com
14
the flickering light source. Lights operating on AC electric
systems produce light flickering at a frequency of 100 Hz or
120 Hz, twice the frequency of the power line.
To avoid this flicker effect, the exposure times must be
multiples of the light source flicker periods. For example, in
a scene lit by 120 Hz lighting, the available exposure times
are 8.33 ms, 16.67 ms, 25 ms, 33.33 ms, and so on. (The need
for an exposure time less than 8.33 ms under artificial light
is extremely rare.)
In this case, the AE algorithm must limit the integration
time to an integer multiple of the light’s flicker period.
By default, the MT9V124 does all of this automatically,
ensuring that all exposure times avoid any noticeable light
flicker in the scene. The MT9V124 AE algorithm is always
setting exposure times to be integer multipliers of either 100
Hz or 120 Hz. The flicker detection module keeps
monitoring the incoming frames to detect whether the
scene’s lighting has changed to the other of the two light
source frequencies. A 50 Hz/60 Hz Tungsten lamp can be
used to calibrate the flicker detect settings.
Output Conversion and Formatting
The YUV data stream can either exit the color pipeline as
is or be converted before exit to an alternative YUV or RGB
data format.
Color Conversion Formulas
Y’U’V’:
This conversion is BT 601 scaled to make YUV range
from 0 through 255. This setting is recommended for JPEG
encoding and is the most popular, although it is not well
defined and often misused in various operating systems.
YȀ+0.299 RȀ)0.587 GȀ)0.114 BȀ
(eq. 1)
UȀ+0.564 (BȀ*YȀ) ) 128
(eq. 2)
VȀ+0.713 (RȀ*YȀ) ) 128
(eq. 3)
There is an option where 128 is not added to U’V’.
Y’Cb’Cr’ Using sRGB Formulas:
The MT9V124 implements the sRGB standard. This
option provides YCbCr coefficients for a correct 4:2:2
transmission.
NOTE: 16 < Y601< 235; 16 < Cb < 240; 16 < Cr < 240;
and 0 < = RGB < = 255
YȀ+(0.2126 RȀ)0.7152 GȀ)0.0722 BȀ)
(219ń256) ) 16
(eq. 4)
CbȀ+0.5389 (BȀ*YȀ) (224ń256) ) 128
(eq. 5)
CrȀ+0.635 (RȀ*YȀ) (224ń256) ) 128
(eq. 6)
Y’U’V’ Using sRGB Formulas:
These are similar to the previous set of formulas, but have
YUV spanning a range of 0 through 255.
YȀ+0.2126 RȀ)0.7152 GȀ)0.0722 BȀ)
(eq. 7)
) 128
UȀ+0.5389 (BȀ*YȀ) ) 128 +
+*0.1146 RȀ*0.3854 GȀ)0.5 BȀ)128
(eq. 8)
VȀ+0.635 (RȀ*YȀ) ) 128 +
+ 0.5 RȀ*0.4542 GȀ*0.0458 BȀ)128
(eq. 9)
There is an option to disable adding 128 to U’V’. The
reverse transform is as follows:
RȀ+Y ) 1.5748 (V * 128)
(eq. 10)
GȀ+Y * 0.1873 (U * 128) * 0.4681 (V * 128)
(eq. 11)
BȀ+Y ) 1.8556 (U * 128)
(eq. 12)
Uncompressed YUV/RGB Data Ordering
The MT9V124 supports swapping YCbCr mode, as
illustrated in Table 5.
Table 5. YCbCr OUTPUT DATA ORDERING
Mode Data Sequence
Default (no Swap) Cb
i
Y
i
Cr
i
Y
i+1
Swapped CrCb Cr
i
Y
i
Cb
i
Y
i+1
Swapped YC Y
i
Cb
i
Y
i+1
Cr
i
Swapped CrCb, YC Y
i
Cr
i
Y
i+1
Cb
i
The RGB output data ordering in default mode is shown
in Table 6. The odd and even bytes are swapped when
luma/chroma swap is enabled. R and B channels are bitwise
swapped when chroma swap is enabled.
Table 6. RGB ORDERING IN DEFAULT MODE
Mode (Swap Disabled) Byte D
7
D
6
D
5
D
4
D
3
D
2
D
1
D
0
565RGB
Odd R
7
R
6
R
5
R
4
R
3
G
7
G
6
G
5
Even G
4
G
3
G
2
B
7
B
6
B
5
B
4
B
3
MT9V124
CONFIDENTIAL AND PROPRIETARY
NOT FOR PUBLIC RELEASE
www.onsemi.com
15
Uncompressed 10-Bit Bypass Output
Raw 10-bit Bayer data from the sensor core can be output
in bypass mode by using D
OUT[7:0] with a special 8 + 2 data
format, shown in Table 7.
Table 7. 2-BYTE BAYER FORMAT
Byte Bits Used Bit Sequence
Odd Bytes 8 Data Bits D
9
D
8
D
7
D
6
D
5
D
4
D
3
D
2
Even Bytes 2 Data Bits + 6 Unused Bits 0 0 0 0 0 0 D
1
D
0
BT656
YUV data can also be output in BT656 format with only
Odd field SAV/EAV codes. The BT656 data output will be
progressive data and not interlaced (R0x3C00[5] = 1).
Figure 17 depicts the data format before the serializer
internal to the device, or after the external deserializer.
Active Video
80 80 80 80 80 80 80 80 80 80 80 10101010101010 00 00 00 00 00Cb Y Cr Y Y Cr YCb FF B6FF00 00 9DFF Y Cr YCb Cr YCb Y FF
Data[7:0]
Figure 17. BT656 Image Data with Odd SAV/EAV Codes
10 10 10 00 80
Blanking
SAV
H Blank
Image
EAV
Blanking
H Blank
SAV
Image
EAV
Blanking
H Blank
REGISTER AND VARIABLE DESCRIPTION
To change internal registers and RAM variables of
MT9V124, use the two-wire serial interface through the
external host device.
The sequencer is responsible for coordinating all events
triggered by the user.
The sequencer provides the high-level control of the
MT9V124. Commands are written to the command variable
to start streaming, stop streaming, and to select test pattern
modes. Command execution is confirmed by reading back
the command variable with a value of zero. The sequencer
state variable can also be checked for transition to the
desired state. All configuration of the sensor (start/stop
row/column, mirror, skipping) and the SOC (image size,
format) and automatic algorithms for AE, AWB, low light,
are performed when the sequencer is in the stopped state.
When the sequencer is in the idle or test pattern state the
algorithms and register updates are not performed, allowing
the host complete manual control
Table 8. SUMMARY OF MT9V124 VARIABLES
Name Variable Description
Monitor Variables General Information
Sequencer Variables Programming Control Interface
FD Variables Flicker Detect
AE_Track Variables Auto Exposure
AWB Variables Auto White Balance
Stat Variables Statistics
Low Light Variables Low Light
Cam Variables Sensor Specific Settings

MT9V124EBKSTCH-GEVB

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

Products related to this Datasheet