Datasheet

Table Of Contents
PDF: 09005aef8202ec2e/Source: 09005aef8202ebf7 Micron Technology, Inc., reserves the right to change products or specifications without notice.
MT9D111__2_REV5.fm - Rev. B 2/06 EN
26 ©2004 Micron Technology, Inc. All rights reserved.
MT9D111 - 1/3.2-Inch 2-Megapixel SOC Digital Image Sensor
Registers and Variables
Micron Confidential and Proprietary
Read R200:1 for the current variable value
To set the variable mon.arg1=0x1234:
The variable has a driver ID of 0. Therefore, set R198:1[12:8]=0
The variable has an offset of 3. Therefore, set R198:1[7:0]=3
This is a logical access. Therefore, set R198:1[14:13]=01
The size of the variable is 16 bits. Therefore, set R198:1[15]=0
By combining these bits, R198:1=0x2003
Set R200:1=0x1234 for the value of the variable
To read the variable mon.arg1:
Since this is the same variable as the above example, R198:1=0x2003
Read R200:1 for the current variable value
Please see description for R198:1 and R200:1 in Table 7, "IFP Registers, Page 2," on
page 52 for more details.
Special Function Registers (SFR) and MCU SRAM
Special function registers (SFR) are registers connected to the local bus of the micro-
controller. These registers include GPIO, waveform generator, and those important for
firmware operation. SFR are accessed by physical address. MCU SRAM consists of 1K
system memory and 1K user memory. Examples of access:
Write into user SRAM. Use to upload code
a. R198:1 = 0x400 // address
b. R200:1 = 0x1234 // write 16-bit value
Read from user SRAM
c. R198:1 = 0x400 // address
d. Read R200:1 // read 16-bit value
Write to 8-bit GPIO register
e. R198:1 = 0x9079 // GPIO_DIR_L at 0x1079
f. R200:1 = 0x00FE // Configure GPIO[0] as output
Read from 8-bit GPIO register
g. R198:1 = 0x9079 // GPIO_DIR_L at 0x1079
h. Read R200:1 //Check GPIO[7:0] pad state
See R198:1 and R200:1 description in Table 7, "IFP Registers, Page 2," on page 52 for
more detail.