AR0330CM
www.onsemi.com
42
CHANGING SENSOR MODES
Register Changes
All register writes are delayed by 1x frame. A register that
is written to during the readout of frame n will not be updated
to the new value until the readout of frame n+2. This
includes writes to the sensor gain and integration registers.
Real-Time Context Switching
In the AR0330, the user may switch between two full
register sets A and B by writing to a context switch change
bit in R0x30B0[13]. When the context switch is configured
to context A the sensor will reference the “Context A
Registers”. If the context switch is changed from A to B
during the readout of frame n, the sensor will then reference
the context B coarse_integration_time registers in frame
n+1 and all other context B registers at the beginning of
reading frame n+2. The sensor will show the same behavior
when changing from context B to context A.
Table 39. LIST OF CONFIGURABLE REGISTERS FOR CONTEXT A AND CONTEXT B
Context A
Context B
Register Description Address Register Description Address
Coarse_integration_time 0x3012 Coarse_integration_time_CB 0x3016
Fine_integration_time 0x3014 Fine_integration_time_CB 0x3018
Line_length_pck 0x300C Line_length_pck_CB 0x303E
Frame_length_lines 0x300A Frame_length_lines_CB 0x30AA
COL_SF_BIN_EN 0x3040[9] COL_SF_BIN_EN_CB 0x3040[8]
ROW_BIN 0x3040[12] ROW_BIN_CB 0x3040[10]
COL_BIN 0x3040[13] COL_BIN_CB 0x3040[11]
FINE_GAIN 0x3060[3:0] FINE_GAIN_CB 0x3060[11:8]
COARSE_GAIN 0x3060[5:4] COARSE_GAIN_CB 0x3060[13:12]
x_addr_start 0x3004 x_addr_start_CB 0x308A
y_addr_start 0x3002 y_addr_start_CB 0x308C
x_addr_end 0x3008 x_addr_end_CB 0x308E
y_addr_end 0x3006 y_addr_end_CB 0x3090
Y_odd_inc 0x30A6 Y_odd_inc_CB 0x30A8
X_odd_inc 0x30A2 X_odd_inc_CB 0x30AE
ADC_HIGH_SPEED 0x30BA[6] ADC_HIGH_SPEED_CB 0x30BA[7]
GREEN1_GAIN 0x3056 GREEN1_GAIN_CB 0x30BC
BLUE_GAIN 0x3058 BLUE_GAIN_CB 0x30BE
RED_GAIN 0x305A RED_GAIN_CB 0x30C0
GREEN2_GAIN 0x305C GREEN2_GAIN_CB 0x30C2
GLOBAL_GAIN 0x305E GLOBAL_GAIN_CB 0x30C4
NOTE: ON Semiconductor recommends leaving fine_integration_time at 0.