PDF: 4749051511/Source:7788125767
Aptina reserves the right to change products or specifications without notice.
MT9T111_DG - Rev. B 9/10 EN
29
©2007 Aptina Imaging Corporation. All rights reserved.
MT9T111: Developer Guide
GPIO Control
Preliminary
GPIO Control
The MT9T111 has GPIO[3:0] and VGPIO[7:0] for various uses. Both GPIO[3:0] and
VGPIO[7:0] are programmable through the two-wire serial interface, to be configured as
inputs or outputs. The two ports can also be programmed to provide other functions
when they are configured as outputs. Status registers can monitor the values on
GPIO[3:0] and VGPIO[7:0] signals, when they function as inputs or outputs.
Overview of GPIO Signals
• GPIO[3:0] and VGPIO[7:0] can be programmed to be either input or output
• GPIO[1:0] can be programmed as the extension of two lower data bits during 10-bit
output mode
• GPIO[2] can be programmed as an external shutter control output
• GPIO[3] can be programmed as an external FLASH control output
• GPIO[2] can be programmed as an external /OE control input
• GPIO[3] can be programmed as an external TRIGGER control input
• VGPIO[7:0] can be programmed as a waveform generator output to control external
PWM devices
Table 13 shows the related registers to program GPIO signals. Refer to the MT9T111 data
sheet for more detail descriptions of the registers and variables.
Table 13:
GPIO Related Registers and Variables
Map
Address
Bits
Descriptions
SYSCTL
0x001A
[4]
This bit controls the GPIO ports when the sensor enters standby.
0: GPIOs are powered up in standby
1: GPIOs are powered down in standby
SYSCTL
0x001A
[3]
This bit controls the VGPIO ports when the sensor enters standby.
0: VGPIOs are powered up in standby
1: VGPIOs are powered down in standby
SYSCTL
0x001E
[6:4]
Controls the output slew rate of GPIO signals.
“111” programs the fastest slew rate. Refer to the AC/DC electrical specification in the data sheet
for the slew rate values. The default value of “000” produces the slowest slew rate.
GPIO
0x0604
[11:8]
GPIO output select register.
GPIO
0x0604
[3:0]
GPIO output register.
GPIO
0x0606
[3:0]
GPIO direction control for each GPIO signal.
0: Input
1: Output
GPIO
0x060A
[3:0]
GPIO input register.
GPIO
0x060C
[15:8]
VGPIO output select register. Set to “1” to enable.
GPIO
0x060C
[7:0]
VGPIO output register.
GPIO
0x060E
[7:0]
VGPIO direction control register.
0: Input
1: Output
GPIO
0x0610
[7:0]
VGPIO input register.