1/3-Inch CMOS Digital Image Sensor: AR0134 Developer Guide, Rev. C
1/3-Inch CMOS Digital Image Sensor: AR0134 Developer Guide, Rev. C
1/3-Inch CMOS Digital Image Sensor: AR0134 Developer Guide, Rev. C
.
AR0134_DG - Rev. C Pub 6/14 EN 1 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Table of Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
Optimal Setting Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
Frame Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
Blanking Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
Pixel Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
Pixel Array Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
Default Readout Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Output Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Readout Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Parallel Output Data Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
LV and FV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
LV Format Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
High Speed Serial Pixel Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
HiSPi Physical Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
DLL Timing Adjustment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
Frame Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
Exposure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
Row-Time Definition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
Exposure Indicator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Real-Time Context Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Operational Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Master Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Trigger Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
Hard Reset of Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
Soft Reset of Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
Output Enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
PLL-Generated Master Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
Spread-Spectrum Clocking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
Stream/Standby Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
Soft Standby . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
Hard Standby . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Window Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Blanking Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Readout Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Digital Binning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Skipping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Mirror . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Column Mirror Image. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Row Mirror Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Maintaining a Constant Frame Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
Synchronizing Register Writes to Frame Boundaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
Temperature Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
Auto Exposure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
Auto Exposure Implementation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
AE Embedded Statistics and Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
AE Target Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
.
AR0134_DG - Rev. C Pub 6/14 EN 2 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
.
AR0134_DG - Rev. C Pub 6/14 EN 3 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
List of Figures
Figure 1: Pixel Array Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
Figure 2: Pixel Color Pattern Detail (Top Right Corner) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Figure 3: Imaging a Scene . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Figure 4: Spatial Illustration of Image Readout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Figure 5: Default Pixel Output Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Figure 6: LV Format Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Figure 7: HiSPi Transmitter and Receiver Interface Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
Figure 8: Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
Figure 9: Block Diagram of DLL Timing Adjustment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
Figure 10: Delaying the Clock with Respect to Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
Figure 11: Delaying Data with Respect to the Clock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
Figure 12: Line Timing and FRAME_VALID/LINE_VALID Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
Figure 13: Master Mode Synchronization Waveform #1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Figure 14: Master Mode Synchronization Waveform #2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Figure 15: Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Figure 16: Pulsed Trigger Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Figure 17: Automatic Trigger Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Figure 18: PLL Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
Figure 19: Pixel Readout (no skipping) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
Figure 20: Pixel Readout (Row Skip 2X Bayer) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
Figure 21: Pixel Readout (Row Skip 2X Monochrome) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Figure 22: Six Rows in Normal and Row Mirror Readout Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Figure 23: Latency For Single Buffered Registers - Coarse Integration Time Example. . . . . . . . . . . . . . . . . . . . . .35
Figure 24: Latency For Double Buffered Registers - Column Gain Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
Figure 25: Latency For Double Buffered Registers - Fine Integration Time Example. . . . . . . . . . . . . . . . . . . . . . .36
Figure 26: Calculating Temperature Sensor Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
Figure 27: AE Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
Figure 28: AE Stats Calculation Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
Figure 29: Frame Format with Embedded Data Lines Enabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
Figure 30: Embedded Statistics Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
Figure 31: Exposure Control System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
Figure 32: Selecting the ROI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
Figure 33: Automatic Gain Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
Figure 34: AE Frame Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
Figure 35: Solid Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51
Figure 36: Vertical Color Bars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
Figure 37: Walking 1s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
Figure 38: Checksum Generation Flow Within the Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54
Figure 39: Definition of 16-bit CRC Shift Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55
.
AR0134_DG - Rev. C Pub 6/14 EN 4 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
List of Tables
Table 1: AR0134 HiSPi Protocol Configuration Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Table 2: Frame Time (Example Based on 1280 x 960, 54 Frames Per Second) . . . . . . . . . . . . . . . . . . . . . . . . . . .14
Table 3: Frame Time: Long Integration Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
Table 4: Real-Time Context-Switchable Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Table 5: Exposure Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Table 6: Snapshot Mode Register Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
Table 7: Example 1 (With Default Setting for Full Resolution) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
Table 8: Example 2 (With Default Settings for 720p) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
Table 9: PLL Parameters for the Parallel Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
Table 10: Example PLL Configuration for the Parallel Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
Table 11: PLL Parameters for the Serial Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
Table 12: Example PLL Configurations for the Serial Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
Table 13: Skip Mode Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Table 14: Six Pixels in Normal and Column Mirror Readout Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Table 15: Exposure Control Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
Table 16: AE Enable Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
Table 17: Auto Exposure Control Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
Table 18: Test Pattern Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51
Table 19: CRA Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56
.
AR0134_DG - Rev. C Pub 6/14 EN 5 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Introduction
This Developer Guide provides detailed descriptions and usage guidelines for various
features of the AR0134 Global Shutter Sensor. Also provided are guidelines for optimal
settings for various use cases. For detailed electrical and timing specifications or register
descriptions, refer to the AR0134 Data Sheet and the AR0134 Register Reference docu-
ments, respectively.
Resolution
Aptina's AR0134 sensor is capable of a maximum resolution of 1280 x 960 at up to 54 fps,
or it may be configured to run 720p at 60fps. Registers y_addr_start, x_addr_start, y_ad-
dr_end, and x_addr_end are used to specify the image window. The minimum value for
x_addr_start is 0 and the maximum value for x_addr_end is 1279. The minimum y_ad-
dr_start and maximum y_addr_end are 0 and 975, respectively.
Frame Rate
Achieving the desired frame rate at the proper resolution is a balancing act between row
timing and the number of rows in the image. Integration time and the pixel clock
frequency are additional factors. The minimum line length is 1388 pixel clocks which
enables a frame rate of 54 fps. When using trigger mode, the minimum line length is
1650 pixel clocks.
Blanking Control
Horizontal blanking and vertical blanking times are controlled by the Line_length_Pck
and Frame_Length_Lines registers, respectively.
• Horizontal blanking is specified in terms of pixel clocks. It is calculated by subtracting
the X window size from the Line_Length_Pck register. The minimum horizontal
blanking time is 108 pixel clocks when the X window is set to 1280. If the X window
size is configured to less than 1280, the sum of the X window size and the horizontal
blanking must be equal to or greater than 1388.
• Vertical blanking is specified in terms of numbers of lines. It is calculated by
subtracting the Y window size from the Frame_Length_Lines register. The minimum
value for vertical blanking is 23 lines.
The actual imager timing is described in the Frame Time section of this Developer
Guide.
.
AR0134_DG - Rev. C Pub 6/14 EN 6 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
1412
.
AR0134_DG - Rev. C Pub 6/14 EN 7 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
G B G B G B G B
R G R G R G R G
G B G B G B G B
R G R G R G R G
G B G B G B G B
Lens
Scene
Sensor (rear view)
Row
Readout
Order
.
AR0134_DG - Rev. C Pub 6/14 EN 8 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
00 00 00 ..................................... 00 00 00 00 00 00 .................. 00 00 00
00 00 00 ..................................... 00 00 00 00 00 00 .................. 00 00 00
00 00 00 ..................................... 00 00 00 00 00 00 .................. 00 00 00
00 00 00 ..................................... 00 00 00 00 00 00 .................. 00 00 00
Readout Sequence
Typically, the readout window is set to a region including only active pixels. The user has
the option of reading out dark regions of the array, but if this is done, consideration must
be given to how the sensor reads the dark regions for its own purposes.
.
AR0134_DG - Rev. C Pub 6/14 EN 9 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
PIXCLK
FV
LV
DOUT[11:0] P0 P1 P2 P3 Pn
Vertical Blanking Horiz Blanking Valid Image Data Horiz Blanking Vertical Blanking
LV and FV
The timing of the FV and LV outputs is closely related to the row time and the frame time.
FV will be asserted for an integral number of row times, which will normally be equal to
the height of the output image.
LV will be asserted during the valid pixels of each row. The leading edge of LV will be
offset from the leading edge of FV by 6 PIXCLKs. Normally, LV will only be asserted if FV
is asserted; this is configurable as described below.
LV Format Options
The default situation (R0x306E[1:0] = 0x0) is for LV to be de-asserted when FV is de-
asserted. By setting R0x306E[1:0]= 0x1, a continuous LV signal will be output. The
formats for reading out four lines and two vertical blanking lines are shown in Figure 6.
.
AR0134_DG - Rev. C Pub 6/14 EN 10 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
FV
Default
LV
FV
Continuous LV LV
The timing of an entire frame is shown in Figure 12: “Line Timing and FRAME_VALID/
LINE_VALID Signals,” on page 14. For detailed timing diagrams and switching parame-
ters, refer to the AR0134 data sheet.
Protocol R0x31C6
Streaming-SP 2 Lane 0x0004
Streaming-SP 3 Lane 0x000C
Packetized-SP 2 Lane 0x0000
Packetized-SP 3 Lane 0x0008
These protocols are further described in the High-Speed Serial Pixel (HiSPi™) Interface
Protocol Specification V1.50.00.
The HiSPi interface building block is a unidirectional differential serial interface with
four data and one double data rate (DDR) clock lanes. One clock for every four serial
data lanes is provided for phase alignment across multiple lanes. Figure 7 shows the
configuration between the HiSPi transmitter and the receiver.
To enable the serial interface, set R0x301A[7] = 0, and set R0x301A[12] = 0 to enable the
HiSPi serializer. Refer to “Clocks” on page 26 for PLL configuration when using the HiSPi
interface.
.
AR0134_DG - Rev. C Pub 6/14 EN 11 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Cp0 Cp0
Cn0 Cn0
TxPost
cp
….
cn
TxPre
dp
….
MSB LSB
dn
1 UI
.
AR0134_DG - Rev. C Pub 6/14 EN 12 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
DATA3_DEL[2:0]
DATA2_DEL[2:0]
DATA0_DEL[2:0]
1 UI
cp (CLOCK_DEL = 000)
cp (CLOCK_DEL = 001)
cp (CLOCK_DEL = 010)
cp (CLOCK_DEL = 011)
cp (CLOCK_DEL = 100)
cp (CLOCK_DEL = 101)
c p (CLOCK_DEL = 110)
cp (CLOCK_DEL =111)
increasing CLOCK_DEL[2:0] increases clock delay
.
AR0134_DG - Rev. C Pub 6/14 EN 13 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
cp ( CLOCK_DEL = 000)
dataN (DATAN_DEL = 000)
dataN(DATAN_DEL = 001)
dataN(DATAN_DEL = 010)
dataN(DATAN_DEL = 011)
dataN(DATAN_DEL = 100)
dataN(DATAN_DEL = 101)
dataN(DATAN_DEL = 110)
dataN(DATAN_DEL = 111)
increasing DATAN_DEL[2:0] increases data delay
t 1 UI
DLLSTEP
Frame Time
The pixel clock (PIXCLK) represents the time needed to sample one pixel from the array.
The sensor outputs data at the maximum rate of one pixel per PIXCLK. One row time
(tROW) is the period from the first pixel output in a row to the first pixel output in the
next row. The row time and frame time are defined by equations in Table 2.
...
FRAME_VALID
...
LINE_VALID
...
Table 2: Frame Time (Example Based on 1280 x 960, 54 Frames Per Second)
Default Timing
Parameter Name Equation at 74.25 MHz
A Active data time Context A: R0x3008 - R0x3004 + 1 1280 pixel clocks
Context B: R0x308E - R0x308A + 1 = 17.23s
P1 Frame start blanking 6 (fixed) 6 pixel clocks
= 0.08s
P2 Frame end blanking 6 (fixed) 6 pixel clocks
= 0.08s
Q Horizontal blanking R0x300C - A 108 pixel clocks
= 1.45s
.
AR0134_DG - Rev. C Pub 6/14 EN 14 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Table 2: Frame Time (Example Based on 1280 x 960, 54 Frames Per Second)
Default Timing
Parameter Name Equation at 74.25 MHz
A+Q Row Time (tROW) R0x300C 1388 pixel clocks
= 18.69s
V Vertical blanking Context A: [(R0x300A - (R0x3006 - R0x3002 + 1)) * (A + Q)] 51,356 pixel clocks
Context B: [(R0x300A - (R0x3090 R0x308C + 1)) * (A + Q)] = 691.7s
Nrows * (A + Q) Frame valid time Context A: ((R0x3006-R0x3002+1)*(A+Q))-Q+P1+P2 1,332,384 pixel clocks
Context B: ((R0x3090-R0x308C+1)*(A+Q))-Q+P1+P2 = 17.94ms
F Total frame time V + (Nrows * (A + Q)) 1,383,836 pixel clocks
= 18.6ms
Sensor timing is shown in terms of pixel clock cycles (see Figure 5: “Default Pixel Output
Timing,” on page 10). The recommended pixel clock frequency is 74.25 MHz. The
vertical blanking and the total frame time equations assume that the integration time
(coarse integration time plus fine integration time) is less than the number of active
lines plus the blanking lines:
Coarse Integration Time < Window Height + Vertical Blanking (EQ 1)
If this is not the case, the number of integration lines must be used instead to determine
the frame time, (see Table 3). In this example, it is assumed that the coarse integration
time control is programmed with 2000 rows and the fine shutter width total is zero.
For Master mode, if the integration time registers exceed the total readout time, then the
vertical blanking time is internally extended automatically to adjust for the additional
integration time required. This extended value is not written back to the
frame_length_lines register. The frame_length_lines register can be used to adjust
frame-to-frame readout time. This register does not affect the exposure time but it may
extend the readout time.
.
AR0134_DG - Rev. C Pub 6/14 EN 15 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Exposure
Total integration time is the result of coarse_integration_time and fine_integration_time
registers, and depends also on whether manual or automatic exposure is selected.
The actual total integration time, tINT is defined as:
tINT = tINTCoarse + tINTFine (EQ 2)
= (number of lines of integration * line time) + (number of pixels of integration * pixel
time)
where:
• Number of Lines of Integration (Auto Exposure Control: Enabled)
When automatic exposure control (AEC) is enabled, the number of lines of integra-
tion may vary from frame to frame, with the limits controlled by R0x311E (minimum
auto exposure time) and R0x311C (maximum auto exposure time). For a specific
frame output, the exposure time (in rows) can be read in R0x30AC. Fine integration
time is not used by the auto exposure function.
Row-Time Definition
One row-time is equal to the sum of the number of active pixels (columns) and the
number of horizontal blanking pixels divided by the pixel readout rate:
active_pixels + horizontal_blank_pixels
row_time = -------------------------------------------------------------------------------------------------- (EQ 5)
PIXCLK_frequency
.
AR0134_DG - Rev. C Pub 6/14 EN 16 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Exposure Indicator
The AR0134 provides an output pin, FLASH, to indicate when the exposure takes place.
When R0x3046[8]is set, FLASH is HIGH during exposure. By using R0x3046[7], the
polarity of the FLASH pin can be inverted.
Register Number
Register Description Context A Context B
y_addr_start R0x3002 R0x308C
x_addr_start R0x3004 R0x308A
y_addr_end R0x3006 R0x3090
x_addr_end R0x3008 R0x308E
coarse_integration_time R0x3012 R0x3016
fine_integration_time R0x3014 R0x3018
y_odd_Inc R0x30A6 R0x30A8
green1_gain (GreenR) R0x3056 R0x30BC
blue_gain R0x3058 R0x30BE
red_gain R0x305A R0x30C0
green2_gain (GreenB) R0x305C R0x30C2
global_gain R0x305E R0x30C4
frame_length_lines R0x300A R0x30AA
digital_binning R0x3032[1:0] R0x3032[5:4]
column_gain R0x30B0[5:4] R0x30B0[9:8]
.
AR0134_DG - Rev. C Pub 6/14 EN 17 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Features
Note: See the AR0134 Register Reference for additional details.
Operational Modes
The AR0134 works in master (video) or trigger (single frame) modes. In master mode, the
sensor generates the integration and readout timing. In trigger mode, it accepts an
external trigger to start exposure, then generates the exposure and readout timing. The
exposure time is programmed through the two-wire serial interface for both modes.
Note: Trigger mode is not compatible with the HiSPi interface.
Master Mode
In master mode, the exposure period occurs simultaneously with the frame readout (see
Figures 13 and 14). This makes master mode the fastest mode of operation. When expo-
sure time is greater than the frame length, the number of vertical blanking rows is
increased automatically to accommodate the exposure time.
FLASH
Exposure Time
LINE_VALID
FLASH
Exposure Time
Vertical Blanking
FRAME_VALID
LINE_VALID
.
AR0134_DG - Rev. C Pub 6/14 EN 18 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Trigger Mode
In trigger mode, the exposure period and the frame readout occur sequentially (see
Figure 16 and Figure 17 on page 20). This makes trigger mode slower than master mode.
Two options of triggering are made available. A Pulsed Trigger mode where only a single
frame is output, and an Automatic Trigger mode where a series of frames are output.
AR0134
CONTROLLER
PIXCLK
FRAME_VALID
LINE_VALID
FLASH
DOUT[11:0]
.
AR0134_DG - Rev. C Pub 6/14 EN 19 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
TTT
TRIGGER TTPW
EXPOSURE
TIME
TTF
FLASH
TFFV
FRAME_VALID
TVB
LINE_VALID
FRAME TIME
TRIGGER
TFFV
TVB
LINE_VALID
FRAME TIME
.
AR0134_DG - Rev. C Pub 6/14 EN 20 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Register Settings
The TRIGGER mode of operation requires that register R0x301A (Reset Register) bit 2 be
set to “0”. Setting this register to “1” will switch the sensor back to the master mode of
operation. The general purpose I/O (GPI) pins must also be enabled as shown in Table 6.
Value in
Register Register Name Bit Bit Name Bit Description Dec (Hex)
R0x301A Reset Register 2 Stream 0 = Trigger mode 0
1 = master mode
R0x301A Reset Register 8 GPI_EN 0 = GPI input buffers disabled 1
1 =GPI input buffers enabled
R0x301A Reset Register 11 forced_pll_on 0 = PLL powered down in standby 1
1 =PLL always powered
Start of Exposure
The start of exposure is controlled by the TRIGGER input on the image sensor. Normally,
TRIGGER is held in a LOW state. To start exposing, this signal is changed to a HIGH state.
This HIGH state is then sampled on the rising edge of the master clock (EXTCLK) of the
image sensor. TRIGGER must be held HIGH for greater than 10 row times.
Duration of Exposure
The duration of the exposure is set by the value stored in R0x3012, which represents an
equivalent number of row-times (see “Exposure and Data Synchronization Outputs” on
page 22) to the actual exposure time.
The minimum exposure time supported by the AR0134 image sensor in trigger mode is 3
row-times.
A restriction exists on coarse integration time when using trigger mode to ensure correct
output of the FLASH signal. The following values for coarse integration time should be
avoided:
coarse_integration_time = frame_length_lines - (active_rows + col_correction_rows (8) + delta_dark_rows (6) +
embedded_stats (2) + 7) (EQ 7)
As an example, if frame_length_lines is 990 and the number of active rows is 960 (964
minus 4 embedded stats and data rows), then an integration time of:
should be avoided to ensure proper exposure in trigger mode. This restriction does not
apply to master mode operation. If column correction is disabled, the 8 rows in EQ5
should be replaced with zero.
.
AR0134_DG - Rev. C Pub 6/14 EN 21 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
The frame time is equal to the product of the number of rows-per-frame and the row-
time.
22.22 s
frame_time default_settings = 990 rows x -------------------- = 22.0ms (EQ 12)
row
The minimum time between two successive TRIGGER pulses equals the sum of the
frame time, the exposure time, TTF and TFFV:
.
AR0134_DG - Rev. C Pub 6/14 EN 22 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Further, the maximum allowable frame rate may be calculated from these same three
variables. The maximum frame rate is the reciprocal of the sum of the frame time, the
exposure time, trigger to flash, and flash to frame valid times:.
1
frame_rate= -------------------------------------------------------------------------------------------------------- (EQ 14)
frame_time + exposure_time + T TF + T FFV
The TRIGGER pulse period should correspond to the desired frame rate. For individual
(asynchronous) trigger pulses, the TRIGGER signal should be asserted no sooner than
FRAME_VALID is deasserted, and the minimum of 23 rows of vertical blanking has
elapsed.
.
AR0134_DG - Rev. C Pub 6/14 EN 23 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
22.22 s
frame_time= 990 rows x -------------------- = 22.0ms (EQ 20)
row
.
AR0134_DG - Rev. C Pub 6/14 EN 24 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
22.22 s
frame_time= 747 rows x -------------------- =16.6ms (EQ 30)
row
= 587 s
(EQ 34)
Step 6: Calculate the maximum allowable frame rate.
1
frame_rate = --------------------------------------------------------------------------------------------------------
frame_time + exposure_time + T TF + T FFV
1
frame_rate = ---------------------------------------------------------------
16.6ms + 2.22ms + 587 s (EQ 35)
1
frame_rate = = -------------------
19.4 ms
frame_rate = = 51.5Hz
.
AR0134_DG - Rev. C Pub 6/14 EN 25 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Reset
The AR0134 may be reset by using RESET_BAR or the reset register.
Output Enable
The AR0134’s outputs can be tri-stated with the OE_BAR pin. Before the external pin can
be used to control output enable, set register R0x301A[6] = 0 to disable the output
drivers. Then set R0x301A[8] = 1 to enable the input pins (OE_BAR, TRIGGER, and
STANDBY). Driving OE_BAR low will enable the output drivers, while driving it high will
tri-state the parallel output pins. The parallel outputs can also be tri-stated by setting
R0x301A[7] = 0.
Clocks
PLL-Generated Master Clock
The PLL contains a prescaler to divide the input clock applied on EXTCLK, a VCO to
multiply the prescaler output, and two divider stages to generate the output clock. The
clocking structure is shown in Figure 18. The AR0134 default power up state for the PLL
dividers is for a pixel clock of 74.25 MHz that is generated from a 27 MHz EXTCLK. PLL
control registers can be programmed to generate frequencies other than the default
power up state. Refer to Table 9 on page 27 for PLL parameters for the parallel interface,
and Table 11 on page 27 for the HISPi interface. Example PLL configurations are also
provided using an EXTCLK of 27MHz.
Note: The PLL control registers must be programmed while the sensor is in the software
Standby state. The effect of programming the PLL divisors while the sensor is in the
streaming state is undefined.
The PLL is enabled by default on the AR0134. To configure and use the PLL:
.
AR0134_DG - Rev. C Pub 6/14 EN 26 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
1. Bring the AR0134 up as normal; make sure that fEXTCLK is between 6 and 50 MHz
and ensure the sensor is in software standby (R0x301A[2]= 0). PLL control registers
must be set in software standby.
2. Set pll_multiplier, pre_pll_clk_div, vt_sys_clk_div, and vt_pix_clk_div based on the
desired input (fEXTCLK) and output (fPIXCLK) frequencies. Determine the M, N, P1, and
P2 values to achieve the desired fPIXCLK using the formula:
.
AR0134_DG - Rev. C Pub 6/14 EN 27 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Register Value
Parameter 3-lane 2-lane Units
FVCO 742.5 445.5 MHz
pre_pll_clk_div 2 2
pll_multiplier 55 33
vt_sys_clk_div 2 1
vt_pix_clk_div 5 6
HiSPi Bit Clock 371.25 445.5 MHz
HiSPi Differential Clock 185.63 222.75 MHz
PIXCLK 74.25 74.25 Mpixel/s
Notes: 1. The PLL can be bypassed at any time (sensor will run directly off EXTCLK) by setting R0x30B0[14]=1.
However, only the parallel data interface is supported with the PLL bypassed. The PLL is always
bypassed in software standby mode. PLL bypass should only be enabled or disabled while the sen-
sor is in standby.
2. The following restrictions apply to the PLL tuning parameters:
32 M 255
1 N 63
1 P116
4P2 16
3. The VCO frequency, defined as fVCO = fEXTCLK × M/N must be within 384–768 MHz.
4. If using HiSPi output mode, use the following settings for P2 (vt_pix_clk_div).
4a. If 12-bit mode (3 lanes): set P2 (R0x302A) = 5
4b. If 12-bit mode (2 lanes): set P2 (R0x302A) = 6
The user can utilize the Register Wizard tool accompanying DevWare to generate PLL
settings given a supplied input clock and desired output frequency.
Spread-Spectrum Clocking
To facilitate improved EMI performance, the external clock input allows for spread spec-
trum sources, with no impact on image quality. Limits of the spread spectrum input
clock are:
• 5% maximum clock modulation
• 35 kHz maximum modulation frequency
• Accepts triangle wave modulation, as well as sine or modified triangle modulations.
Stream/Standby Control
The sensor supports two standby modes: Hard Standby and Soft Standby. In both
modes, external clock can be optionally disabled to further minimize power consump-
tion. If this is done, then the power-up sequence described in the AR0134 data sheet
must be followed.
Soft Standby
Soft Standby is a low power state that is controlled through register R0x301A[2].
Depending on the value of R0x301A[4], the sensor will go to standby after completion of
the current frame readout (default behavior) or after the completion of the current row
readout. When the sensor comes back from Soft Standby, previously written register
settings are still maintained. Soft standby will not occur if the TRIGGER pin is held high.
A specific sequence needs to be followed to enter and exit from Soft Standby.
.
AR0134_DG - Rev. C Pub 6/14 EN 28 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Hard Standby
Hard Standby puts the sensor in a lower power state. Register settings will be preserved.
A specific sequence needs to be followed to enter and exit from Hard Standby.
Entering Hard Standby:
1. R0x301A[8] = 1
2. R0x301A[12] = 1 if serial mode was used
3. Assert STANDBY pin
4. External clock can be turned off to further minimize power consumption (optional)
Window Control
Registers x_addr_start, x_addr_end, y_addr_start, and y_addr_end control the size and
starting coordinates of the image window.
The exact window height and width out of the sensor is determined by the difference
between the Y address start and end registers or the X address start and end registers,
respectively.
The AR0134 allows different window sizes for context A and context B.
Blanking Control
Horizontal blank and vertical blank times are controlled by the line_length_pck and
frame_length_lines registers, respectively.
• Horizontal blanking is specified in terms of pixel clocks. It is calculated by subtracting
the X window size from the line_length_pck register. The minimum horizontal
blanking is 108 pixel clocks.
• Vertical blanking is specified in terms of numbers of lines. It is calculated by
subtracting the Y window size from the frame_length_lines register. The minimum
vertical blanking is 23 lines.
The actual imager timing can be calculated using Table 2 on page 14 and Table 3 on
page 15, which describe the Line Timing and FV/LV signals.
.
AR0134_DG - Rev. C Pub 6/14 EN 29 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Readout Modes
By default, the resolution of the output image is the full width and height of the FOV as
defined above. The output resolution can be reduced by digital binning.
Digital Binning
All of the pixels in the FOV contribute to the output image in digital binning mode. This
can result in a more pleasing output image with reduced artifacts. It also improves low-
light performance. For RGB and monochrome mode, the digital binning factor is set by
the register DIGITAL_BINNING (R0x3032). For Context A, use bits [1:0], for Context B,
use bits [5:4]. Available settings are: 00 = No binning; 01 = Horizontal binning; 10 = Hori-
zontal and vertical binning. For RGB mode, resampling must be enabled by setting bit 4
of register 0x306E. For monochrome operation, R0x30B0[7] must be set to 1. Enabling
horizontal or vertical binning mode does not affect the sensor frame rate.
Skipping
Skipping reduces resolution by using only selected rows from the FOV in the output
image. In skip mode, entire rows of pixels are not sampled, resulting in a lower resolution
output image. A skip 2X mode skips one Bayer pair of pixels for every pair output. Skip-
ping is set by R0x30A6 (context A) and R0x30A8 (context B). The maximum supported
skip is 64 rows. Both Bayer and monochrome skip modes are supported. Refer to
Table 13 on page 30 for supported skip factors.
When enabling a skip mode, register R0x30B0[10] should be set low. It should be
returned to the default state (R0x30B0[10]=1) when exiting skip modes. If this is not
done, a noticeable change in intensity may be observed when entering and exiting skip
mode.
.
AR0134_DG - Rev. C Pub 6/14 EN 30 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
X incrementing
Y incrementing
Figure 20: Pixel Readout (Row Skip 2X Bayer)
X incrementing Y incrementing
.
AR0134_DG - Rev. C Pub 6/14 EN 31 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
X incrementing
Y incrementing
.
AR0134_DG - Rev. C Pub 6/14 EN 32 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Mirror
Column Mirror Image
By setting R0x3040[14] = 1, the readout order of the columns is reversed, as shown in
Figure . The starting color, and therefore the Bayer pattern, is preserved when mirroring
the columns.
When using horizontal mirror mode, the user must retrigger column correction. Refer to
the column correction section to see the procedure for column correction retriggering.
Bayer resampling must be enabled, by setting bit 4 of register 0 x 306E[4] = 1.
Table 14: Six Pixels in Normal and Column Mirror Readout Modes
LV
Normal readout
G0[11:0] R0[11:0] G1[11:0] R1[11:0] G2[11:0] R2[11:0]
DOUT[11:0]
Reverse readout
DOUT[11:0] G3[11:0] R2[11:0] G2[11:0] R1[11:0] G1[11:0] R0[11:0]
Figure 22: Six Rows in Normal and Row Mirror Readout Modes
FV
Normal readout Row0 [11:0] Row1 [11:0] Row2 [11:0] Row3 [11:0] Row4 [11:0] Row5 [11:0]
DOUT[11:0]
Reverse readout
DOUT[11:0] Row6 [11:0] Row5 [11:0] Row4 [11:0] Row3 [11:0] Row2 [11:0] Row1 [11:0]
.
AR0134_DG - Rev. C Pub 6/14 EN 33 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
.
AR0134_DG - Rev. C Pub 6/14 EN 34 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Figure 23: Latency For Single Buffered Registers - Coarse Integration Time Example
Two-wire
serial Interface idle idle
(Input)
FLASH Exp “A” Exp “A” Exp “B” Exp “B” Exp “B”
(Output)
FRAME_VALID
Readout Exp “A” Readout Exp “A” Readout Exp “B” Readout Exp “B” Readout Exp “B”
(Output)
Figure 24: Latency For Double Buffered Registers - Column Gain Example
Two-wire
serial Interface idle idle
(Input)
FLASH Exp “A” Exp “A” Exp “A” Exp “A” Exp “A”
(Output)
FRAME_VALID
Readout Exp “A” Readout Exp “A” Readout Exp “A” Readout Exp “A” Readout Exp “A”
(Output)
.
AR0134_DG - Rev. C Pub 6/14 EN 35 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Figure 25: Latency For Double Buffered Registers - Fine Integration Time Example
Two-wire
serial Interface idle idle
(Input)
FLASH Fine Exp “A” Fine Exp “A” Fine Exp “A” Fine Exp “B” Fine Exp “B”
(Output)
FRAME_VALID
Readout Fine Exp “A” Readout Fine Exp “A” Readout Fine Exp “A” Readout Fine Exp “B” Readout Fine Exp “B”
(Output)
Restart
To restart the AR0134 at any time during the operation of the sensor, write a “1” to the
Restart register (R0x301A[1] = 1). This has two effects: first, the current frame is read out
and the sensor enters standby. Second, any writes to frame-synchronized registers and
the shutter width registers take effect immediately, and a new frame starts. The current
frame completes before the new frame is started, so the time between issuing the Restart
and the beginning of the next frame is a maximum of tFRAME.
Temperature Sensor
The AR0134 sensor has a built-in PTAT-based (Proportional To Absolute Temperature)
temperature sensor, accessible through registers, that is capable of measuring die junc-
tion temperature. The temperature sensor can be enabled by writing R0x30B4[0]=1 and
R0x30B4[4]=1. After this, the temperature sensor output value can be read from
R0x30B2[10:0].
The value read out from the temperature sensor register is an ADC output value that
needs to be converted downstream to a final temperature value in degrees Celsius. Since
the PTAT device characteristic response is quite linear in the temperature range of oper-
ation required, a simple linear function as in Equation 37 can be used to convert the
ADC output value to the final temperature in degrees Celsius.
Temperature = slope × R0x30B2[10:0]+ T0 (EQ 37)
For this conversion, a minimum of 2 known points are needed to construct the line
formula by identifying the slope and y-intercept “T0”. These calibration values can be
read from registers R0x30C6 and R0x30C8 which correspond to values read at 70°C and
55°C respectively. Once read, the slope and y-intercept values can be calculated and
used in the above equation.
Example: What is the temperature in degrees Celsius when R0x30B2 = 0x1A2 (418)?
.
AR0134_DG - Rev. C Pub 6/14 EN 36 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
For this particular sensor, the 70°C calibration data reads R0x30C6 = 0x01D2 (466), and
the 50°C calibration data reads R0x30C8 = 0x01BD (445). From these values, the correct
temperature reading can be found as follows:
70
Temperature (C)
55
T0
Auto Exposure
The integrated automatic exposure control (AEC) is responsible for ensuring that
optimal settings of exposure and gain are computed and updated every other frame.
AEC can be enabled or disabled by R0x3100[0]. When AEC is disabled (R0x3100[0] = 0),
the sensor uses the manual exposure value in the coarse and fine integration time regis-
ters and the manual gain value in the gain registers. When AEC is enabled
(R0x3100[0]=1), the target luma value is set by AE_LUMA_TARGET_REG (R0x3102). For
AR0134, this target luma has a default value of 0x0500. The luma target maximum auto
exposure value is limited by R0x311C; the minimum auto exposure is limited by
R0x311E. These values are in units of line-times. The minimum value for register 0x311E
is 1 line. The exposure control measures current scene luminosity by accumulating a
histogram of Gr pixel values while reading out a frame. It then compares the current
luminosity to the desired output luminosity. Finally, the appropriate adjustments are
made to the exposure time and gain.
.
AR0134_DG - Rev. C Pub 6/14 EN 37 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Se n so r D ig ita l Blo ck
AE Ta rg e t
AE STATS AE Statistics
Se le ctio n
Auto _ AG_ enable
M an_AG
T argetR atio
AG ae_enable
auto_ag_en
C urrent dark level auto_dg_en
Auto _D G_enable
Exp o su re C o n tro l m in_ana_gain
C urrent exposure tim e
A E U S E R IN TE R FA C E R E G IS T E RS (R/ W )
M an_D G Syste m
ae_roi_x_start_offset
DG ae_roi_x_size
ae_roi_y_start_offset
Auto_D G_gain ae_roi_y_size
Auto_AG_gain
ae_m ean_l
ae_lum a_target_reg
ae_dam p_offset_reg
A E s t at us m on ito r/d eb u g Re g is t ers (R on ly )
ae_dam p_gain_reg
ae_dam p_m ax_reg
ae_m ax_exposure_reg
ae_m in _exposure_reg
AR0134 Ou tp u t Im a g e ae_m ean_l
ae_dark_cur_thresh_reg
ae_dig_gain
ae_ana_gain
Footer: ae_coarse_integration_tim e
H isto g ra m
AE sta tu s m o n ito rin g \ d e b u g re g iste rs
.
AR0134_DG - Rev. C Pub 6/14 EN 38 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
AE Stats AE Histogram
ROI selection
1.AE Histogram: 64 evenly spaced bins for digital code values 0 to 4095, If a ROI is speci-
fied, the histogram is populated only with Gr pixels which lie in the ROI.
2.mean: Mean code value of AE Histogram
The generation of statistics for use by off-chip AE algorithms must be enabled by setting
register R0x3064[7] = 1. Embedded statistics will not be output if this register is not set.
Embedded data may also be enabled by setting register R0x3064[8] = 1, but is not neces-
sary for statistics generation. To enable on-chip auto exposure, however, both
embedded stats and data must be enabled.
All the statistics data (including histogram data) is embedded in the two rows immedi-
ately following the image. The embedded statistics are output as shown in Figure 30. The
first line contains histogram data. Only histogram data for bins 0 to 63 are relevant -
higher bins will output all zeros. The second line contains statistics based on the histo-
gram for the current frame. The only relevant statistic for AR0134 auto exposure is the
mean. If the on-chip auto exposure is not used, it is recommended that auto exposure
algorithms be developed based on the histogram data found in line 1.
.
AR0134_DG - Rev. C Pub 6/14 EN 39 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Register Data
Image HBlank
VBlank
The embedded data contains the configuration of the image being displayed, and is
found in the first two rows of the image. This includes all register settings used to capture
the current frame. The registers embedded in these rows are as follows:
Line 1: Registers R0x3000 to R0x312F
Line 2: Registers R0x3136 to R0x31BF, R0x31D0 to R0x31FF
Only values for registers found in the Register Reference document are relevant. The
format of the embedded register data transmission is as follows. In parallel mode, since
the pixel word depth is 12 bits/pixel, the sensor's 16-bit register data will be transferred
.
AR0134_DG - Rev. C Pub 6/14 EN 40 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
over 2 pixels where the register data will be broken up into 8msb and 8 LSB. The align-
ment of the 8-bit data will be on the 8 MSB bits of the 12-bit pixel word. For example, if a
register value of 0x1234 is to be transmitted, it will be transmitted over two 12-bit pixels
as follows: 0x120, 0x340. The 10-bit histogram data is not broken up and is output msb
aligned over the 12 bit parallel interface and padded with zeros.
AE Target Selection
The Exposure Target Selection block determines a ratio based on the mean value of the
generated histogram of the current frame, and the target mean value as specified by the
user (R0x3102). This ratio allows the Control System to determine how much and in
what direction to adjust the exposure relative to the current exposure value.
The mean target ratio (TargetRatio) is the exposure change, expressed as a ratio, to move
the current image mean (CurrentMean) to a user-specified mean target (TargetMean).
See the “Exposure Control System” section and Figure 31 for more information.
.
AR0134_DG - Rev. C Pub 6/14 EN 41 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
EVNewExp =log2(TargetRatio)
ae_damp_offset_reg
(0x310C) RecursiveDamp =
ae_damp_gain_reg dampOffset + abs(EVNewExp)*dampGain
(0x310E)
EVNewExp_damped =
RecursiveDamp*EVNewExp
ae_min_ev_step_reg
Limit abs(EVNewExp_damped)
(0x3108)
to between Max_EV_stepsize and
ae_max_ev_step_reg Min_EV_stepsize
(0x310A)
See
SeeFigure
Figure 6 29.
NewExpRatio>1
and Dark Current >
NewExp =
NewExpRatio = 2EVNewExp_damped DarkCurrentThresh No
NewExpRatio*currentExpTime
ae_dark_cur_thresh_reg
(0x3124)
Yes
ae_max_exposure_reg
(0x311C) Set Max Integration
New integration time Time
= current integration
time
(no change in
exposure)
ae_min_exposure_reg (0x311E)
Limit new integration time to between Max_int_time and Min_int_time
ae_max_exposure_reg (0x311C)
.
AR0134_DG - Rev. C Pub 6/14 EN 42 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
.
AR0134_DG - Rev. C Pub 6/14 EN 43 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
The target luma value may be set in the ae_luma_target_reg register. The AE Target
Selection block will use this value to determine the target ratio provided to the Exposure
Control System as illustrated in Figure 31 on page 42. The exposure range can be limited
by setting values for ae_max_exposure_reg and ae_min_exposure_reg. The integration
time fed back to the Sensor Digital Block (see Figure 27 on page 38) will not fall outside
of this specified range.
To extend the exposure range, the AE logic can also automatically adjust analog gain and
digital gain. The controls for enabling automatic analog and digital gain selection may
be found in Table 16 on page 43. The control flow chart is shown in Figure 33 and is an
expanded view of the portion of Figure 31 on page 42 that is enclosed by the dashed line.
.
AR0134_DG - Rev. C Pub 6/14 EN 44 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
New_Exposure_Time =
Current_Exposure_Time*
NewExpRatio
Yes
No
NewExpRatio>1
Yes Current_DG
=1
No
DG=
Current_DG*
NewExpRatio
No
DG<1
DG=1
No AG>
Min_AG
Yes
No New Exposure Time
> AG_Hi_thresh
New Exposure Time No
< AG_Lo_thresh Yes
Yes
AG=3
Yes
or
New_Exposure_Time = Auto AG disabled
New_Exposure_Time *
AG_gain_factor
No
AG=AG-1
New_Exposure_Time =
New_Exposure_Time /
AG_gain_factor
AG=AG+1
No Current_exposure_time
=Max_int_time
Yes
DG=
New_exposure_ratio*
Current_DG
.
AR0134_DG - Rev. C Pub 6/14 EN 45 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
If auto_ag_en is set, the automatic adjustment of analog gains may be restricted based
on integration time. By setting a value for ae_ag_exposure_hi, the analog gain will not be
increased until the integration time set by this register is reached. Similarly, the analog
gain will not be decreased unless the integration time is reduced below the value set in
ae_ag_exposure_lo. To avoid oscillation, the ae_ag_exposure_lo setting should be lower
than the ae_ag_exposure_hi setting. Refer to Table 17 on page 47 for auto exposure
control registers.
The integration time and analog gain selected by the exposure control system may be
found in the ae_coarse_integration_time (R0x3164) and ae_ana_gain(R0x312A[9:8])
registers, respectively. The minimum analog gain to be selected may be set in the
min_ana_gain (R0x3100[6:5]) register, and can be 1x, 2x, 4x, or 8x. If auto_dg_en
(R0x3100[4]) is set, the digital gain selected by the exposure control system can be read
from register ae_dig_gain (R0x312A[7:0]). The digital gain can vary from 1 to 7.97. The
minimum step is 1/32.
The step size of the AE control may be configured. Both a minimum and maximum step
size may be set in units of EV (exposure value) steps in registers 0x3108 and 0x310A,
respectively. The step size represents the minimum or maximum value that the AE
Target Selection will use for the next exposure value. It does not represent the incre-
mental change from frame to frame. The selected new exposure value will be clipped to
the minimum EV step if it is less than the value specified in R0x3108. Because the
minimum step size in EV units is typically a small number less than one, it should be
scaled by 256 before setting the register value.
Changes in exposure are smoothed based on damping parameters. A maximum
damping value may be specified in R0x3110. Additional damping controls include
ae_damp_gain_reg and ae_damp_offset_reg. These can be thought of as a coarse and
fine damping control, respectively.
At high temperature, the sensor may have high dark current which will increase with
longer exposures. To avoid increasing the exposure when there is excessive dark current,
AE has a dark current check. The sensor supplies the current dark current level to AE and
if the dark current is greater than the user-specified (R0x3124) darkCurrentThresh, AE
does not increase exposure.
.
AR0134_DG - Rev. C Pub 6/14 EN 46 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
.
AR0134_DG - Rev. C Pub 6/14 EN 47 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
AE Frame Synchronization
A delay is incurred between the time when a frame with the newly updated AE value
applied is seen by the AE module and when it reaches the sensor core logic (which sets
the exposure times for the sensor). This delay is associated with the Delay Buffers and
Sensor Data Path delays. The AE module will perform its calculations during the vertical
blanking time and the new exposure value will be seen by the sensor core logic after the
next frame has started. Therefore the result is that the third frame after the current frame
will reflect the new exposure time. Figure 34 illustrates how the exposure changes every
two frames.
N- n
row s T0 T0 T1 T1 T2
V B LA N K S et T1 S et T2 S et T3
row s
.
AR0134_DG - Rev. C Pub 6/14 EN 48 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Gain
Digital Gain
Digital gain can be controlled globally by R0x305E (Context A) or R0x30C4 (Context B).
There are also registers that allow individual control over each Bayer color channel:
GreenR R0x3056
GreenB R0x305C
Red R0x305A
Blue R0x3058
The format for digital gain setting is xxx.yyyyy where 0b00100000 represents a 1x gain
setting and 0b00110000 represents a 1.5x gain setting. The step size for yyyyy is 0.03125
while the step size for xxx is 1. Therefore to set a gain of 2.09375 one would set digital
gain to 01000011. The maximum digital gain is 7.97x.
Column Gain
The AR0134 has a column parallel architecture and therefore has an analog gain stage
per column. The column (analog) gain can be set to 1x, 2x, 4x or 8x. This can be set in
R0x30B0[5:4](Context A) or R0x30B0[9:8] (Context B).
.
AR0134_DG - Rev. C Pub 6/14 EN 49 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Column Correction
The AR0134 uses a column parallel readout architecture to achieve fast frame rates.
Without any corrections, the consequence of this architecture is that different column
signal paths have slightly different offsets that might show up on the final image as
structured fixed pattern noise.
The AR0134 has column correction circuitry that measures this offset and removes it
from the image before output. This is done by sampling dark rows containing tied pixels
and measuring an offset coefficient per column to be corrected later in the signal path.
Column correction can be enabled/disabled via R0x30D4[15]. Additionally, the number
of rows used for this offset coefficient measurement is set in R0x30D4[3:0]. By default
this register is set to 0x7, which means that 8 rows are used. This is the recommended
value. Other control features regarding column correction can be viewed in the AR0134
Register reference. Any changes to column correction settings need to be done when the
sensor streaming is disabled and the appropriate triggering sequence must be followed
as described below.
.
AR0134_DG - Rev. C Pub 6/14 EN 50 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Test Patterns
The AR0134 has the capability of injecting a number of test patterns into the top of the
datapath to debug the digital logic. With one of the test patterns activated, any of the
datapath functions can be enabled to exercise it in a deterministic fashion. Test patterns
are selected by test_pattern_mode register (R0x3070). Only one of the test patterns can
be enabled at a given point in time by setting the test_pattern_mode register according
to Table 18. When test patterns are enabled the active area will receive the value speci-
fied by the selected test pattern and the dark pixels will receive the value in test_pat-
tern_green (R0x3074 and R0x3078) for green pixels, test_pattern_blue (R0x3076) for blue
pixels, and test_pattern_red (R0x3072) for red pixels.
Color Field
When the color field mode is selected, the value for each pixel is determined by its color.
Green pixels will receive the value in test_pattern_green, red pixels will receive the value
in test_pattern_red, and blue pixels will receive the value in test_pattern_blue. See
Figure 35 for a solid green pattern with Gr = Gb = 3072.
.
AR0134_DG - Rev. C Pub 6/14 EN 51 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Walking 1s
When the walking 1s mode is selected, a walking 1s pattern will be sent through the
digital pipeline. The first value in each row is 1. See Figure 37:
.
AR0134_DG - Rev. C Pub 6/14 EN 52 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
.
AR0134_DG - Rev. C Pub 6/14 EN 53 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Yes
Addressing
Write or Read? Read Yes Read back checksum.
checksum register?
Write
Input 16-bit
address to CRC
The 16-bit value will be input to the CRC MSB first, i.e., b15 through b0. The CRC used
will implement the polynomial x16 + x12 + x5 + 1, as illustrated inFigure 39 on page 55.
.
AR0134_DG - Rev. C Pub 6/14 EN 54 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Conduct
Try current Go to next 2-wire serial IF write
2-wire serial IF write 2-wire serial IF write R0x301A = 0x0058
transaction again transaction
CRC checksum
matches
CRC checksum
does not match
Read R0x31D6
to verify 2-wire serial
IF transaction by
checking CRC
checksum
.
AR0134_DG - Rev. C Pub 6/14 EN 55 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
.
AR0134_DG - Rev. C Pub 6/14 EN 56 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Revision History
Rev. C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6/13/14
• Updated corporate address on last page
• Updated “Blanking Control” on page 6
• Updated Figure 7: “HiSPi Transmitter and Receiver Interface Block Diagram,” on
page 12
• Updated Figure 9: “Block Diagram of DLL Timing Adjustment,” on page 13
• Updated Table 5, “Exposure Timing,” on page 20
• Updated“Exposure and Data Synchronization Outputs” on page 22
• Updated“TRIGGER Input Restrictions” on page 22
• Updated“Blanking Control” on page 29
• Updated Figure 23: “Latency For Single Buffered Registers - Coarse Integration Time
Example,” on page 35
• Added Figure 24: “Latency For Double Buffered Registers - Column Gain Example,” on
page 35
• Updated Figure 25: “Latency For Double Buffered Registers - Fine Integration Time
Example,” on page 36
• Added “Two-Wire Serial Interface CRC” on page 53
• Updated Figure 38: “Checksum Generation Flow Within the Sensor,” on page 54
• Added “Reading the Sensor CRA and Chromaticity” on page 56
Rev. B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6/11/13
• Updated to Production
• Updated Table 4, “Real-Time Context-Switchable Registers,” on page 17
• Updated “Frame Rate” on page 6
• Added Figure 9: “Block Diagram of DLL Timing Adjustment,” on page 13
• Updated “Exposure” on page 16
• Updated Table 4, “Real-Time Context-Switchable Registers,” on page 17
• Updated “Operation Details” and changed title to “Triggered System Details” on
page 19
• Updated “Trigger Mode” on page 19
• Updated last paragraph of “Duration of Exposure” on page 21 (including Equation 8
on page 21
• Updated “Exposure and Data Synchronization Outputs” on page 22
• Updated “TRIGGER Input Restrictions” on page 22
• Updated Table 7, “Example 1 (With Default Setting for Full Resolution),” on page 23
• Updated Equation 16 on page 23, Equation 21, Equation 22, Equation 23, and Equa-
tion 24 on page 24
• Updated “Reset” on page 26
• Updated “Hard Reset of Logic” on page 26
• Updated “Blanking Control” on page 29
• Moved Figure 23, Latency For Single Buffered Registers - Coarse Integration Time
Example and Figure 24, Latency For Double Buffered Registers - Column Gain
Example to page 35
• Updated “Restart” on page 36
• Moved Figure 29, Frame Format with Embedded Data Lines Enabled to page 40
• Moved section on Two-wire Serial Register Interface to the data sheet.
.
AR0134_DG - Rev. C Pub 6/14 EN 57 ©2013 Aptina Imaging Corporation. All rights reserved.
Aptina Confidential and Proprietary
Rev. A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1/23/13
• Initial release
180 Clemenceau Avenue, #05-02/04 Haw Par Centre, Singapore 239922 prodmktg@aptina.com www.aptina.com
Aptina, Aptina Imaging, and the Aptina logo are the property of Aptina Imaging Corporation
All other trademarks are the property of their respective owners.
.
AR0134_DG - Rev. C Pub 6/14 EN 58 ©2013 Aptina Imaging Corporation All rights reserved.