Datasheet

Table Of Contents
PDF: 09005aef8202ec2e/Source: 09005aef8202ebf7 Micron Technology, Inc., reserves the right to change products or specifications without notice.
MT9D111__5_REV5.fm - Rev. B 2/06 EN
82 ©2004 Micron Technology, Inc. All rights reserved.
MT9D111 - 1/3.2-Inch 2-Megapixel SOC Digital Image Sensor
JPEG Indirect Registers
Micron Confidential and Proprietary
Auto Focus
Table 15: Driver Variables-Auto Focus Driver (ID = 5)
Off Name Type Default RW Description
0 Vmt void* 0xE9D2 RW
Pointer to virtual method table (VMT)
2 windowPos uchar 0x44 RW
Position of the upper left corner of the first AF window (W11):
Bits [3:0]
x coordinate (horizontal offset from the upper left
corner of the frame) in units of 1/16th of frame width,
Bits [7:4]y coordinate (vertical offset from the upper left corner
of the frame) in units of 1/16th of frame height.
New position written to this variable takes effect after
REFRESH_MODE command is given to Sequencer driver (sq.cmd is
set to 6).
3 windowSize uchar 0x77 RW
Dimensions of the 4 x 4 array of AF windows:
Bits [3:0]
width (in units of 1/16th of frame width) decremented
by 1,
Bits [7:4]
height (in units of 1/16th of frame height)
decremented by 1.
New dimensions written to this variable take effect only after
REFRESH_MODE command is given to the Sequencer (sq.cmd is
set to 6).
4modeuchar0 RW
Two mode switches and 5 bits reserved for use in default
snapshot AF mode:
Bit 7
manual mode switch (0manual mode disabled, 1
enabled),
Bit 6creep compensation mode switch (0 - creep compensation
mode disabled, 1
enabled),
Bits [4:0]reserved for use in snapshot AF mode.
If AF is enabled in the Sequencer (sq.mode bit 4 = 1) and manual
mode is disabled (af.mode bit 7 = 0), a snapshot AF sequence can
be triggered at any time by setting af.mode bit 0 to 1. Bits [4:0]
are used in the sequence and automatically cleared at its end.
5 modeEx uchar 128 RW
Four option switches and 4 status indicators:
Bit 7
switch enabling the second flyback (jump to the start
position of the first scan) and then jump to best focus position,
Bit 6
switch enabling the second flyback and retracing of scan
steps to best focus position (0
option disabled, 1enabled),
Bit 5 switch enabling the second scan (0disabled,
1
enabled),
Bit 4
error flag to indicate that AF has failed due to insufficient
variability of sharpness scores with lens positions (see af.shaTH).
Bit 3if bit 7 of af.mode equals 0, this bit enables skipping 1
extra frame after detecting that bit 1 of afm.status has been
cleared (i.e. after the end of every lens movement),
Bit 2
status indicator, set to 1 when the extra frame is being
skipped,
Bit 1
status indicator, set to 1 when the second scan is in
progress,
Bit 0
status indicator, set to 1 when sharpness scores are ready.
6 numSteps uchar 10 RW
Number of steps (lens positions tried) in the first scan.