![Omnivision CameraChip OV9650 Implementation Manual Download Page 15](http://html1.mh-extra.com/html/omnivision/camerachip-ov9650/camerachip-ov9650_implementation-manual_740719015.webp)
Timing Generator
Version 1.1, December 7, 2004
Proprietary to OmniVision Technologies
15
O
mni
ision
Rolling Horizontal Band Elimination in Auto Mode
OV9650 also provides rolling horizontal band eliminate function in auto exposure mode. A banding
filter is employed to eliminate banding caused by 50/60 Hz lighting. To enable this function, set
register
[5] (0x13) to high.
When the banding filter is enabled, the AEC will set the exposure time to a set of discete values,
among which the minimum value is called the Banding Filter Value. OV9650 has two options to set
the Banding Filter Value. The first option is manual banding filter mode, which is enabled by setting
register
[0] (0x3B) to high. In manual banding filter mode, the Banding Filter Value is
specified by register
[7:0] (0x6A) and the companion backend processor can program this
register according to the lighting frequency. The second option is auto banding mode, which is
enabled by setting register
[0] (0x3B) to low. In auto banding mode, the Banding Filter Value
is specified by register
[0] (0x42) is high, or by register
[7:0] (0xA3) if register
[0] (0x42) is low. The companion backend processor can set
register
[7:0] (0xA3) for 50 Hz and 60 Hz, respectively, and then,
toggle register
[0] (0x42) to switch between 50 Hz and 60 Hz lighting frequency.
If the light is too strong, the minimum exposure time (equal to Banding Filter Value) to eliminate the
banding may result in an over-exposed image. To avoid over-exposure, OV9650 has an option to
allow the real exposure time to be less than the Banding Filter Value by setting register
[3]
(0x14).
Banding Filter Value Calculation
The Banding Filter Value depends on the lighting frequency, frame rate, and maximum exposure.
The equations are shown below. Frame rate can be derived from
. Refer to section
Maximum Exposure Line Limitation
for the maximum exposure.
Note:
1. Refer to
“Maximum Exposure Line Limitation” on page 14
for details of maximum exposure line.
2. If the frame rate is adjusted by inserting dummy lines, the Maximum Exposure Line is equal to the
original value plus the number of dummy lines. Consequently, the Banding Filter Value does not change
with the number of dummy line.
3. If the frame rate is adjusted by inserting dummy pixels, the Maximum Exposure Line does not change.
Consequently, the Banding Filter Value will change with the number of dummy pixels. In the case where
the OV9650 works at a system clock frequency other than 24 MHz or 48 MHz, it is very convenient to
adjust the frame rate by adding some dummy pixels (setting register
(0x2A) and
(0x2B))
while keep the Banding Filter Value the same with that using a 24 MHz or 48MHz system clock.
120
Frame Rate x Maximum Exposure Line
Banding Filter Value =
for 60 Hz
100
Frame Rate x Maximum Exposure Line
Banding Filter Value =
for 50 Hz