Datasheet
Table Of Contents
- 1/3.2-Inch System-On-A-Chip (SOC) CMOS Digital Image Sensor
- Features
- Applications
- Ordering Information
- General Description
- Feature Overview
- Typical Connection
- Ballout and Interface
- Architecture Overview
- Registers and Variables
- Registers
- Registers
- IFP Registers, Page 1
- IFP Registers, Page 2
- JPEG Indirect Registers
- Table 8: JPEG Indirect Registers (See Registers 30 and 31, Page 2)
- Firmware Driver Variables
- Table 9: Drivers IDs
- Table 10: Driver Variables-Monitor Driver (ID = 0)
- Table 11: Driver Variables-Sequencer Driver (ID = 1)
- Table 12: Driver Variables-Auto Exposure Driver (ID = 2)
- Table 13: Driver Variables-Auto White Balance (ID = 3)
- Table 14: Driver Variables-Flicker Detection Driver (ID = 4)
- Table 15: Driver Variables-Auto Focus Driver (ID = 5)
- Table 16: Driver Variables-Auto Focus Mechanics Driver (ID = 6)
- Table 17: Driver Variables-Mode/Context Driver (ID = 7)
- Table 18: Driver Variables-JPEG Driver (ID = 9)
- Table 19: Driver Variables-Histogram Driver (ID = 11)
- MCU Register List and Memory Map
- JPEG Indirect Registers
- Output Format and Timing
- Sensor Core
- Feature Description
- PLL Generated Master Clock
- PLL Setup
- Window Control
- Pixel Border
- Readout Modes
- Figure 20: 6 Pixels in Normal and Column Mirror Readout Modes
- Figure 21: 6 Rows in Normal and Row Mirror Readout Modes
- Table 30: Skip Values
- Figure 22: 8 Pixels in Normal and Column Skip 2x Readout Modes
- Figure 23: 16 Pixels in Normal and Column Skip 4x Readout Modes
- Figure 24: 32 Pixels in Normal and Column Skip 8x Readout Modes
- Figure 25: 64 Pixels in Normal and Column Skip 16x Readout Modes
- Table 31: Row Addressing
- Table 32: Column Addressing
- Frame Rate Control
- Context Switching
- Integration Time
- Flash STROBE
- Global Reset
- Analog Signal Path
- Analog Inputs AIN1-AIN3
- Firmware
- Firmware
- Start-Up and Usage
- General Purpose I/O
- Introduction
- GPIO Output Control Overview
- Waveform Programming
- Notification Signals
- Digital and Analog Inputs
- GPIO Software Drivers
- Auto Focus
- Figure 42: Search for Best Focus
- Figure 43: Scene with Two Potential Focus Targets at Different Distances from Camera
- Figure 44: Dependence of Luminance-Normalized Local Sharpness Scores on Lens Position
- Figure 45: Example of Position Weight Histogram Created by AF Driver
- Figure 46: Auto Focus Windows
- Figure 47: Computation of Sharpness Scores and Luminance Average for an AF Window
- Table 41: Examples of AF Filters that can be Programmed into the MT9D111
- Spectral Characteristics
- Electrical Specifications
- Packaging
- Appendix A: Two-Wire Serial Register Interface
- Protocol
- Sequence
- Bus Idle State
- Start Bit
- Stop Bit
- Slave Address
- Data Bit Transfer
- Acknowledge Bit
- No-Acknowledge Bit
- Page Register
- Sample Write and Read Sequences
- Figure 52: WRITE Timing to R0x09:0-Value 0x0284
- Figure 53: READ Timing from R0x09:0; Returned Value 0x0284
- Figure 54: WRITE Timing to R0x09:0-Value 0x0284
- Figure 55: READ Timing from R0x09:0; Returned Value 0x0284
- Figure 56: Two-Wire Serial Bus Timing Parameters
- Table 46: Two-wire Serial Bus Characteristics
- Revision History
PDF: 09005aef8202ec2e/Source: 09005aef8202ebf7 Micron Technology, Inc., reserves the right to change products or specifications without notice.
MT9D111__7_REV5.fm - Rev. B 2/06 EN
151 ©2004 Micron Technology, Inc. All rights reserved.
MT9D111 - 1/3.2-Inch 2-Megapixel SOC Digital Image Sensor
Start-Up and Usage
Micron Confidential and Proprietary
Configure Pad Slew
Program the desired slew rate for DOUT, PIXCLK, FRAME_VALID, and LINE_VALID at the
variables, mode.fifo_conf1/2_A/B. Program R10:1 with desired GPIO slew rate and slew
rate for two-wire serial interface S
DATA and SCLK.
Configure Preview Mode
The default preview image size is 800 x 600, running at up to 30 fps at 80 MHz internal
clock. To change the default size, program mode driver variables mode.output_width_A
and mode.output_height_A and issue a REFRESH command, seq.cmd=5.
For example, to configure 160x120 LCD RGB preview, program
• mode.output_width_A=160
• mode.output_width_B=120
• mode.out_format_A=0x20
•seq.cmd=5
Preview contrast, brightness, gamma, frame rate, and many other parameters can be
loaded here as well. If known at this time, the user can also program capture parameters.
If necessary, set up the AE/WB/AF lock command here.
Configure Capture Mode
When desired capture parameters are known (video, still, compression, and resolution),
program the mode and other drivers correspondingly.
Perform Lock or Capture
See "Sequencer Driver" on page 140 for details.
Standby Sequence
Standby mode can be activated by two methods. The first method is to assert STANDBY,
which places the chip into hard standby. Turning off the input clock (CLKIN) reduces the
standby power consumption to the maximum specification of 100µA at 55
°C. There is
no serial interface access for hard standby.
The second method is activated through the serial interface by setting R13:0[2]=1 to the
register, known as the soft standby. As long as the input clock remains on, the chip allows
access through the serial interface in soft standby.
Standby should only be activated from the preview mode (context A), and not the cap-
ture mode (context B). In addition, the PLL state (off/bypassed/activated) is recorded at
the time of firmware standby (seq.cmd=3) and restored once the camera is out of firm-
ware standby. In both hard and soft standby scenarios, internal clocks are turned off and
the analog circuitry is put into a low power state. Exit from standby must go through the
same interface as entry to standby. If the input clock is turned off, the clock must be
restarted before leaving standby. If the PLL is used to generate the master clock, ensure
that the PLL is powered down during standby because it uses a relatively high amount of
power. By default, R101:0[13] powers down the PLL when the chip enters standby mode.
Turn on the PLL bypass (R101:0[15]=1) to prepare the PLL for standby.
To Enter Standby
1. Preparing for standby
a. Issue the STANDBY command to the firmware by setting seq.cmd=3
b. Poll seq.state until the current state is in standby (seq.state=9)
c. Bypass the PLL if used by setting R101:0[15]=1










