MT9V032
www.onsemi.com
37
PIXEL INTEGRATION CONTROL
Total Integration
R0x0B Total Shutter Width (In Terms of Number of
Rows)
This register (along with the window width and horizontal
blanking registers) controls the integration time for the
pixels.
The actual total integration time,
t
INT, is:
t
INT
+ (Number of rows of integration x row time) ) overhead
(eq. 1)
where:
• The number of rows integration is equal to the result of
automatic exposure control (AEC) which may vary
from frame to frame, or, if AEC is disabled, the value in
R0x0B
• Row time = (R0x04 + R0x05) master clock periods
• Overhead = (R0x04 + R0x05 – 255) master clock
periods
Typically, the value of R0x0B (total shutter width) is
limited to the number of rows per frame (which includes
vertical blanking rows), such that the frame rate is not
affected by the integration time. If R0x0B is increased
beyond the total number of rows per frame, it is required to
add additional blanking rows using R0x06 as needed. A
second constraint is that
t
INT must be adjusted to avoid
banding in the image from light flicker. Under 60Hz flicker,
this means frame time must be a multiple of 1/120 of a
second. Under 50Hz flicker, frame time must be a multiple
of 1/100 of a second.
Changes to Integration Time
With automatic exposure control disabled (R0xAF, bit 0
is cleared to LOW), and if the total integration time (R0x0B)
is changed through the two−wire serial interface while
FRAME_VALID is asserted for frame n, the first frame
output using the new integration time is frame (n + 2).
Similarly, when automatic exposure control is enabled, any
change to the integration time for frame n first appears in
frame (n + 2) output.
The sequence is as follows:
1. During frame n, the new integration time is held in
the R0x0B live register.
2. At the start of frame (n + 1), the new integration
time is transferred to the exposure control module.
Integration for each row of frame (n + 1) has been
completed using the old integration time. The
earliest time that a row can start integrating using
the new integration time is immediately after that
row has been read for frame (n + 1). The actual
time that rows start integrating using the new
integration time is dependent on the new value of
the integration time.
3. When frame (n + 1) is read out, it is integrated
using the new integration time. If the integration
time is changed (R0x0B written) on successive
frames, each value written is applied to a single
frame; the latency between writing a value and it
affecting the frame readout remains at two frames.
However, when automatic exposure control is
disabled, if the integration time is changed through
the two−wire serial interface after the falling edge
of FRAME_VALID for frame n, the first frame
output using the new integration time becomes
frame (n+3).
FRAME_VALID
LED_OUT
New Integration
Programmed
Actual
Integration
Image Data
Frame Start
Figure 20. Latency When Changing Integration
Int = 200 rows
Int = 300 rows
Int = 200 rows
Int = 300 rows
Output Image with
Int = 200 rows
Output
Image with
Int = 300 rows