The S5K3A1EA is highly integrated single chip CMOS image sensor, fabricated by SAMSUNG
0.18um CMOS image sensor process technology. It is developed for image application to realize high
efficiency photo sensor. The sensor has 1280 x 1024 effective pixels with 1/3 inch optical format. The
sensor has on-chip 10-bit ADC blocks to digitize the pixel output and also on-chip CDS to reduce Fixed
Pattern Noise (FPN) drastically. With its few interface signals and 10-bit raw data directly connected to
the external devices, a camera system can be configured easily.
FEATURES
— Process Technology: 0.18µm Dual Gate Oxide SPQM CMOS
— Optical Size: 1/3 inch
— Unit Pixel: 3.8 µm X 3.8 µm
— Effective Resolution: 1280X1024, SXGA
— Line Progressive Read Out.
— 10-bit Raw Image Data Output
— Windowing and Panning
— Sub-Sampling (2X, 4X, 8X)
— Timing Generator for Frame Memoryless Scaler
— Timing Generator for Stepless Zooming
— Continuous and Single Frame Capture Mode
— Programmable Exposure Time and Gain Control
— Auto Dark Level Compensation
— Standby Mode for Power Saving
— Maximum 15 Frames per Second for Full Frame Readout with 24 MHz Output Data Rate
— Bad Pixel Replacement
— Dual Power Supply Voltage: 2.8V/1.8V (2.8V for analog, 1.8V for digital)
— Package Type: 48-CLCC/PLCC
PRODUCTS
Product Code Power Supply Backend ProcessDescription
S5K3A1EA01 2.8V / 1.8 V None Monochrome image sensor
2. Applied to MCLK, RSTN, STBYN, STRB, SCL, SDA pins
3. Applied to TEST1, TEST2 pin
4. Applied to DCLK, HSYNC, VSYNC, DATA0 to DATA9 pin. I
5. Applied to DCLK, HSYNC, VSYNC, DATA0 to DATA9, SCL, SDA pin. I
6. Applied to SDA pin when in High-Z output state
8
: High level output current
OH
: Low level output current
OL
Page 9
1/3 INCH SXGA CMOS IMAGE SENSORS5K3A1EA
9
Page 10
S5K3A1EA 1/3” SXGA CMOS IMAGE SENSOR
Imaging Characteristics
(Light source with 3200K of color temperature and IR cut filter (CM-500S, 1mm thickness) is used. Electrical
operating conditions follow the recommended typical values. The control registers are set to the default values.
T
= 25°C if not specified.)
A
Characteristic Symbol Condition Min Typ Max Unit
(2)
(3)
(1)
Saturation level
Sensitivity
Dark level
Dynamic range
Signal to noise ratio
Dark signal non-uniformity
(4)
(5)
(6)
Photo response non-
(7)
uniformity
Vertical fixed pattern noise
(8)
Horizontal fixed pattern noise
NOTES:
1. Measured minimum output level at 100 lux illumination for exposure time 1/30 sec. 7X7 rank filter is applied for the whole
pixel area to eliminate the values from defective pixels.
2. Measured average output at 25% of saturation level illumination for exposure time 1/30 sec. Green channel output values
are used for color version.
3. Measured average output at zero illumination without any offset compensation for exposure time 1/30 sec.
4. 20 log (saturation level/ dark level RMS noise excluding fixed pattern noise). 60dB is limited by 10-bit ADC.
5. 20 log (average output level / RMS noise excluding fixed pattern noise) at 25% of saturation level illumination for exposure
time 1/30 sec.
6. Difference between maximum and minimum pixel output levels at zero illumination for exposure time 1/30 sec. 7X7 median
filter is applied for the whole pixel area to eliminate the values from defective pixels.
7, Difference between maximum and minimum pixel output levels divided by average output level at 25% of saturation level
illumination for exposure time 1/30 sec. 7X7 median filter is applied for the whole pixel area to eliminate the values from
defective pixels.
8. For the column-averaged pixel output values, maximum relative deviation of values from 7-depth median filtered values for
neighboring 7 columns at 25% of saturation level illumination for exposure time 1/30 sec.
9. For the row-averaged pixel output values, maximum relative deviation of values from 7-depth median filtered values for
neighboring 7 rows at 25% of saturation level illumination for exposure time 1/30 sec.
V
SAT
- 600 650 - mV
S - - 1500 - mV/lux sec
V
DARK
T
= 40°C
A
T
= 60°C
A
- 4 8 mV/sec
- 20 40
DR - - 60 - dB
S/N - - 40 -
DSNU
T
= 60°C
A
- - 40 mV/sec
PRNU - - 4 8 %
VFPN - 4 8 %
(9)
HFPN - 4 8 %
10
Page 11
1/3 INCH SXGA CMOS IMAGE SENSOR S5K3A1EA
AC Characteristics
= 2.8V ± 0.25V, V
(V
DDH
DDL
Characteristic Symbol Condition Min Typ Max Unit
Main input clock frequency
Data output clock frequency
Propagation delay time
from main input clock
Propagation delay time
from data output clock
Reset input pulse width
Standby input pulse width
NOTES:
1. T
is the period of the master input clock, MCLK.
MCLK
= 1.8V ± 0.15V, TA = -20 to + 60 °C, C
f
MCLK
f
DCLK
t
PDMV
t
PDMH
t
PDMD
t
PDMO
t
PDDV
t
PDDH
t
PDDO
t
WRST
t
WSTB
Duty = 50% 6 12 48 MHz
- 6 12 30
VSYNC output - - 10 ns
HSYNC output - - 10
DCLK output - - 6
DATA output - - 10
VSYNC output - - 4
HSYNC output - - 4
DATA output - - 4
RSTN=low(active)5 - -
STBYN=low(active)4 - -
= 10pF)
L
T
MCLK
(1)
MCLK
DCLK
DATA
HSYNC
VSYNC
0.5VDD
t
PDMD
t
PDMO
t
t
PDDO
t
PDDH
t
PDMH
t
PDDV
t
PDMV
PDMD
t
PDDH
t
PDMH
11
Page 12
S5K3A1EA 1/3” SXGA CMOS IMAGE SENSOR
MCLK
RSTN
t
WRST
t
WSTB
STBYN
system
reset
partial
power down
2
I
C Serial Interface Characteristics
(1)
Characteristic Symbol Condition Min Typ Max Unit
Clock frequency
Clock high pulse width
Clock low pulse width
Clock rise/fall time
Data set-up time
Data hold time
START condition setup time
START condition hold time
STOP condition setup time
STOP to new START gap
Capacitance for each pin
Capacitive bus load
Pull-up resistor
NOTES:
1. I2C is a proprietary Phillips interface bus.
2. T
is the period of the master input clock, MCLK.
MCLK
SCL
0.9VDD
0.1VDD
tWL
f
SCL
t
WH
t
WL
t
R/tF
t
DS
t
DH
t
STRS
t
STRH
t
STPS
t
GSS
C
PIN
C
BUS
SCL, SDA to V
R
PU
complete
power down
- - - 400 kHz
SCL 0.6 - -
µs
SCL 1.3 - -
SCL, SDA - - 0.3
SDA to SCL 0.1 - -
SCL to SDA - - 0.9
- 4
- 4
- 4 - -
- 8 - -
SCL, SDA - - 4 pF
SCL, SDA - - 200
1.5 - 10
t
F
tR
t
WH
DD
T
MCLK
(2)
kΩ
t
t
t
STRS
SDA
12
0.9VDD
STRH
0.1VDD
tDH
DS
t
STPS
Page 13
1/3 INCH SXGA CMOS IMAGE SENSOR S5K3A1EA
PIN DESCRIPTION
Pin No I/O Name Function
VDDD (6,25,48) Power Digital power supply
VDDIO (5) Power
For logical circuit (V
For I/O circuit (V
DDL
DDL
)
)
VSSD (19,26,47) Power 0V (GND)
VSSIO (20) Power 0V (GND)
VDDA(1,4,21,24,
Power Analog power supply
For analog circuit (V
DDH
)
28,29,37,44,45)
VSSA(2,3,22,23,
Power 0V (GND)
27,30,36,43,46)
MCLK (7) I Master clock Master clock pulse input for all timing generators.
RSTN (40) I Reset Initializing all the device registers. (Active low)
STBYN (39) I Standby Activating power saving mode.
( high=normal operation, low=power saving mode )
STRB (38) I Strobe Triggering the integration start and stop when single
frame capture mode.
DATA0~DATA9
(8 ~ 17)
O Image data output 10-bit image data outputs. When ADC resolution is
reduced, the unused lower bits are set to 0.
DCLK (18) O Data clock Image data output synchronizing pulse output.
HSYNC (32) O Horizontal sync clock Horizontal synchronizing pulse or data valid signal
output.
VSYNC (31) O Vertical sync clock Vertical synchronizing pulse or line valid signal output.
SCL (41) I Serial interface clock I2C serial interface clock input
SDA (42) I/O Serial interface data I2C serial interface data bus
(external pull-up resistor required)
VREF (35) I/O Reference voltage For proper operation, the external capacitor larger than
0.1uF must be connected between VREF and VDDA.
TEST1 (33) I Test input 1 Test input signal. Though it can be opened in normal
operation (internally pulled down), it is recommended to
ground the test pins.
TEST2 (34) I Test input 2 Test input signal. Though it can be opened in normal
operation (internally pulled down), it is recommended to
ground the test pins.
OB area selection
0b:128*8 (default), 1b:512*2 (recommended)
[1:0]
adlc_length
ADLC function works only during this value when
adlc_mod_a enabled,
00b : 1 frame, 01b : 2 frames,
10b : 3 frames, 11b : 4 frames
[7:6]
[5]
Not_use
pwr_save2
(Factory use only)
rx & tx signals are enable only active area.
0b: disabled (default), 1b: enabled
[4]
pwr_save1
(Factory use only)
0b: disabled (default), 1b: enabled
[3]
[2]
[1]
[0]
31h 1Eh [7:0]
32h 32h [7:0]
33h 00h [5:0]
34h
35h
00h [7:0]
CCh
[7:4]
[3:0]
36h
CCh
[7:4]
[3:0]
ggo_en
rsm_en
gbmod
stpless_mod
gb_start
gb_end
vs_postc_high
vs_postc_low
p12_stp
p11_stp
p2r_stp
p2_stp
(Factory use only)
0b: disabled (default), 1b: enabled
(Factory use only)When this register is zero, H-sync
keeps same period in one frame.
Guardband mode
0b: disabled, 1b: enabled(default)
Stepless mode enable
0b: disabled (default), 1b: enabled
Guardband start position
Guardband end position
Keep the same frame in zoom mode.
This register compensates remainder of frame.
(Factory use only) CDS timing control
(Factory use only) CDS timing control
(Factory use only) CDS timing control
(Factory use only) CDS timing control
18
Page 19
1/3 INCH SXGA CMOS IMAGE SENSOR S5K3A1EA
Address
(Hex)
Reset
Value
Bits Mnemonic Description
37h 00h [7:0]
38h 00h [7:0]
39h 0Ah [7:0]
3Ah 1Ah
[7]
[6]
[5]
[4]
[3:0]
holdline_high
holdline_low
vsend_ofset-high
Not use
tx_add
shutx_sel
cal_en
cal_stp
Active output delay about its register value
This register value is must larger than OB line.
(Factory use only)Add tg to reduce NIT.
(Factory use only)Enlarge shutter TX width to reduce
NIT.
(Factory use only) calibration enable
(Factory use only) calibration signal control
19
Page 20
S5K3A1EA 1/3” SXGA CMOS IMAGE SENSOR
OPERATION DESCRIPTION
1. Output Data Format
1-1. Main Clock Divider
All the data output and sync signals are synchronized to data clock output (DCLK). It is generated by dividing
the input main clock (MCLK). The dividing ratio is 1, 2, 4, 8, 16, and 32 according to main clock dividing control
register (mcdiv). For 10-bit ADC and SXGA resolution, dividing ratio of 1 is required. If dividing ratio of 1 is used,
the duty must be within 40% to 60%.
1-2. Synchronous Signal Output
The horizontal sync(HSYNC) and vertical sync(VSYNC) signals are also available. The sync pulse width,
polarity and position are programmable by control registers (ref. timing chart). When display mode is enabled, the
sync signal outputs indicate that the output data is valid (hsdisp=1) or the output rows are valid (vsdisp=1).
1-3. Window of Interest Control
Window of Interest (WOI) is defined as the pixel address range to be read out. The WOI can be assigned
anywhere on the pixel array. It is composed of four values: row start pointer(wrp), column start pointer(wcp), row
depth(wrd) and column width(wcw). Each value can be programmed by control registers. For convenience of
color signal processing, wcp is truncated to even numbers so that the starting data of each line is the red and
green column of Bayer pattern. Figure 1 refers to a pictorial representation of the WOI on the displayed pixel
image.
0 1307
0
(wcp,wrp)
wrd
Window Of Interest
wcw
1051
Figure 1. WOI definition.
1-4. Vertical Mirror and Horizontal Mirror Mode Control
The pixel data are read out from left to right in horizontal direction and from top to bottom in vertical direction
normally. By changing the mirror mode, the read-out sequence can be reversed and the resulting image can be
flipped like a mirror image. Pixel data are read out from right to left in horizontal mirror mode and from bottom to
top in vertical mirror mode. The horizontal and the vertical mirror mode can be programmed by Horizontal Mirror
Control Register (mirch) and Vertical Mirror Control Register (mircv).
1-5. Sub-sampling Control
The user can read out the pixel data in sub-sampling rate in both horizontal and vertical direction. Sub-sampling
can be done in four rates : full, 1/2, 1/4 and 1/8. The user controls the sub-sampling using the Sub-sampling
20
Page 21
1/3 INCH SXGA CMOS IMAGE SENSOR S5K3A1EA
Control Registers, subsr and subsc. The sub-sampling is performed only in the Bayer space. In Figure 2, the
Bayer space sub-sampling examples are shown.
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
subsr=01b, subsc=01b
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
subsr=00b, subsc=10b
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
R G
G B
Figure 2. Bayer Space Sub-Sampling Examples
1-6. Line Rate and Frame Rate Control (Virtual Frame)
The line rate and the frame rate can be changed by varying the size of virtual frame. The virtual frame’s width
and depth are controlled by effective WOI and blank depths. The effective WOI is scaled by the subsampling
factors from WOI set by register values. For CDS and ADC function, the virtual column width must be larger than
(adcres+1)*256/(2^mcdiv)+264, where adcres is the ADC resolution control register value. The horizontal and
vertical blanking time (hblank, vblank) should be over 60 and 4, respectively. The detailed restriction of h-blank
period is shown in table 1.
Table 1. Restriction of h-blank period (minimum 1H-period(dck)
minimum 1H-period(dck)
mcdiv[2:0]adcres = 1 adcres = 0
0 1412 548
1 836 404
2 548 332
3 404 300
4 332 278
5 300 270
Setting procedure of hblank, vblank and vs_postc is as follows.
Frame cycle = ((wcw>>subsc) + hblank) x ((wrd>>subsr) + vblank) + vs_postc
vblank >= 4 (isp_sel=1)
vs_postc < 1H ( (wcw>>subsc) + hblank) )
1-7. Continuous Frame Capture Mode(CFCM) Integration Time Control (Electronic Shutter Control)
21
Page 22
S5K3A1EA 1/3” SXGA CMOS IMAGE SENSOR
In CFCM operation, the integration time is controlled by shutter operation. The shutter operation is done when
shutter control register (shutc) is set to “1”. In shutter operation, the integration time is determined by the Row
Step Integration Time Control Register(cintr) and Column Step Integration Time Control Register(cintc)
In CFCM integration time control. There are two different modes. One is normal shutter mode. The other is
shutter TX wide mode to reduce nonlinear integration time. The effective integration time(EIT) formulas of each
mode are as follows.
1) normal mode (00h[2] = 1, 01h[7] = 1, 3Ah[5] = 1)
EIT = (cintr - 1) x ( (wcw>>subsc) + hblank ) + cintc + 145 (dck)
restriction of cintr?
1 <= cintr <= (wrd>>subsr) + vblankr –1
1-8. Single Frame Capture Mode(SFCM) Integration Time Control
To capture a still image, SFCM can be set by Single Frame Capture Enable Register(sfcen). There are two
types of integration mode implemented. In the rolling shutter mode (sfcim=0), the integration time is controlled by
SFCM Integration Time Register (sint). The light integration period for each rows progresses with reading rows.
The integration time is expressed as :
Integration Time = sint * (1 line time)
In the mechanical shutter mode (sfcim=1), the integration time for all rows is the period during the external input
signal, STRB is active. After STRB goes to be inactive, the external mechanical shutter should shut off incident
lignt on image sensor and the data readout sequence starts.
2. Analog to Digital Converter ( ADC)
The image sensor has on-chip ADC. Two-channel column parallel ADC scheme is used for separated color
channel gain and offset control.
2-1. ADC resolution
The default value of ADC resolution is 10bit and can be changed to 8bit or 9bit by control the ADC Resolution
Control Register (adcres). Lowering ADC resolution reduces the required minimum line time. When the number of
effective output bits is reduced, upper n-bits of output ports are valid and lower bits always have values of “0”.
2-2. Correlated Double Sampling ( CDS )
The analog output signal of each pixel includes some temporal random noise caused by the pixel reset action
22
Page 23
1/3 INCH SXGA CMOS IMAGE SENSOR S5K3A1EA
and some fixed pattern noise by the in-pixel amplifier offset deviation. To eliminate those noise components, a
correlated double sampling(CDS) circuit is used before converting to digital. The output signal of each pixel is
sampled twice, once for the reset level and once for the actual signal level.
2-3. Programmable Gain and Offset Control
The user can controls the gain of individual color channel by the Programmable Gain
Control Registers (pgcr, pgcg1, pgcg2, pgcb) and offset by Offset Control Registers
(offsr, offsg1, offsg2, offsb). If the Color Channel Separation Mode is disabled
(ccsm=0), pgcg1 and offsg1 change the gains and offsets for all channels. As increasing
the gain control register, the ADC conversion input range decreases and the gain
increases as following equation and the relative channel gain is shown in figure 3
Channel Gain = 128 / (128 – Programmable Gain Control Register Value[6:0])
10
9
8
7
6
5
4
Relative Channel Gain
3
2
1
0163248648096112128
Programm able Gain Control
45
40
35
30
25
20
15
Channel Gain (dB)
10
5
0
0 163248648096112128
Program m able Gain Contr ol
R G1
G2 B
R G1
G2 B
R G1
G2 B
R G1
G2 B
Figure 3. Relative Channel Gain
2-4. Quadrisectional Global Gain Control
The user can controls the global gain to change the gain for all color channels by the Global Gain Control
Registers (sgg1, sgg2, sgg3, sgg4). The global gain control register is composed of four register groups and
each register value decides the gain for each quarter section of output code level. At MCLK=12MHz and
ggo_en=L, the global gain is determined by the following formula.
Global Gain = (sgg[4:0]+1) / 16
23
Page 24
S5K3A1EA 1/3” SXGA CMOS IMAGE SENSOR
2.2
2
1.8
1.6
1.4
1.2
1
Relative Global Gain
0.8
0.6
0.4
0.2
0
0 4 8 121620242832
Programmable Gain Control
10
5
0
-5
-10
Global Gain (dB)
-15
-20
-25
0 4 8 121620242832
Programmable Gain Control
Figure 4. Relative Global Gain
The ADC gain is dependent on MCLK frequency (not on DCLK frequency) and ADC resolution. The default
global gain is set for typical MCLK frequency (12MHz) and 10-bit ADC. When the frequency and ADC resolution
is changed, the global gain should be changed to maintain the resulting gain over unity for assuring appropriate
ADC conversion range. The recommended minimum global gain setting depending on ggo_en and adcres is
shown in figure 5 and table 2.
30
28
26
24
22
20
18
16
14
12
10
Minimum Global Gain
10-bit ADC resolution
8
6
8-bit ADC resolution
4
2
0
024681012141618202224262830323436384042444648
MCLK Frequency (MHz)
Figure 5. Recommended Minimum Global Gain Control Value (ggo_en = L)
24
Page 25
1/3 INCH SXGA CMOS IMAGE SENSOR S5K3A1EA
Table 2. Recommended Minimum Global Gain Setting (adcres = H)
MCLK
[MHz]
ggo_en = L ggo_en=H
Decimal HexadecimalDecimal Hexadecimal
6 31 1F - -
7 27 1B - -
8 23 17 - -
9 21 15 - -
10 19 13 - -
11 17 11 - -
12 15 0F 31 1F
13 14 0E 29 1D
14 13 0D 27 1B
15 12 0C 25 19
16 11 0B 23 17
17 11 0B 22 16
18 10 0A 21 15
19 10 0A 20 14
20 9 09 19 13
21 9 09 18 12
22 8 08 17 11
23 8 08 16 10
24 7 07 15 0F
25 7 07 15 0F
26 7 07 14 0E
27 7 07 14 0E
28 6 06 13 0D
29 6 06 13 0D
30 6 06 13 0C
30 6 06 13 0D
31 6 06 12 0C
32 5 05 11 0B
33 5 05 11 0B
34 5 05 11 0B
35 5 05 10 0A
36 5 05 10 0A
37 5 05 10 0A
38 5 05 10 0A
39 4 04 9 09
25
Page 26
S5K3A1EA 1/3” SXGA CMOS IMAGE SENSOR
40 4 04 9 09
41 4 04 9 09
42 4 04 9 09
43 4 04 8 08
44 4 04 8 08
45 4 04 8 08
46 4 04 8 08
47 4 04 8 08
48 3 03 7 07
By appropriately programming these four register values, the different output resolution according to the
signal can be achieved and the intra-scene dynamic range can be increased by 16 times. In another application,
the sectional global gain control can be used as a rough gamma correction with four sectional linear
approximation curve as shown in Figure 6.
sgg1 sgg2 sgg3 sgg4
ADC input signal
255 0
ADC output code at 10-bit resolution
5117671023
Figure 6. Quadrisectional Glabal Gain Control
sgg1=11111b
sgg2=01111b
sgg3=00111b
sgg4=00011b
sgg1=01111b
sgg2=01111b
sgg3=01111b
sgg4=01111b
26
Page 27
1/3 INCH SXGA CMOS IMAGE SENSOR S5K3A1EA
3. Post Processing
3-1. Dark Level Compensation
The dark level of Image sensor is defined as average output level without illumination. It includes pixel ouput
caused by leakage current of the photodiodes and ADC offset. To compensate the dark level, the output level of
optical black(OB) pixels can be a good reference value. When Auto Dark Level Compensation Register (dlcm) is
set, the image sensor detects the OB pixel level at the start of every frame and anglog-to-digital conversion range
is shifted to compensate the dark level for that frame. So, the resulting output data of that frame will be almost
zero under dark state. If user wants the dark level which is not zero, the ADC Offset Register (adcoffs) can be
used. The lower 7-bit value represent the offset value in outout code for compensation and the MSB is the sign to
define whether the offset is positive (adcoffs[7]=0) or negative (adcoffs[7]=1). When not in auto dark level
compensation mode, the adcoffs[7:0] act as a output code value to subtract the output image data. Please notify
that the all the 8-bit data are used for an offset value without sign bit.
When the Bad Pixel Replacement Register (bprm) is enabled, the image sensor check that the image data is
less or greater than horizontally neighboring pixels in same color channel by the preset threshold value (pthresh).
If satisfied, the output of the pixel is replaced by the averaged value of the neighboring two pixels. The detectable
defected pixels are rare and the bad pixel replacement action can remove defected image effectively. But it
reduces the line resolution in horizontal direction.
2
4. I
C Serial Interface
2
The I
C is an industry standard serial interface. The I2C contains a serial two-wire half duplex interface that
features bi-directional operation, master or slave mode. The general SDA and SCL are the bi-directional data and
clock pins, respectively. These pins are open-drain type ports and will require a pull-up resistor to VDD. The
image sensor operates in salve mode only and the SCL is input only. The I
2
C bus interface is composed of
following parts : START signal, 7-bit slave device address (0010001b) transmission followed by a read/write bit,
an acknowledgement signal from the slave, 8-bit data transfer followed by an acknowledgement signal and STOP
signal. The SDA bus line may only be changed while SCL is low. The data on the SDA bus line is valid on the
high-to-low transition of SCL.
27
Page 28
S5K3A1EA 1/3” SXGA CMOS IMAGE SENSOR
X
SCL
SCL
SDA
SDA
SCL
SDA
Start
“0” “0” “1” “0” “0” “0” “1”
Start
I2C Bus Address
D7 D6 DDDDDD
Data to Write Stop Ack
Figure 7. I2C Bus Write Cycle
“0” “0” “1” “0” “0” “0” “1”
I2C Bus Address
Write Ack
D7 D6 D
D7 D6 D
DDDDD
I2C Register Address
DDDDD
I2C Register Address Write Ack Ack
Ack
SCL
SDA
Re-Start
“0” “0” “1” “0” “0” “0” “1”
I2C Bus Address
Figure 8. I
D7 D6 D
Read Ack Ack
2
C Bus Read Cycle
DDDDD
Data to be Read
Stop
28
Page 29
1/3 INCH SXGA CMOS IMAGE SENSOR S5K3A1EA
TIMING CHART
VERTICAL TIMING DIAGRAM
Continuous Frame Capture Mode
( Default Case )
VSYNC
HSYNC
10 rows = vsend_ofset
DATA
( Delayed Vertical Sync Case)
VSYNC
HSYNC
10 rows = vsend_ofset
DATA
1 frame = wrd + vblank ( 1125 rows )
vswd (1row)
wrp(14th row)
wrd (1024 rows)
1 frame = wrd + vblank ( 1125 rows )
vsstrt vswd
wrp(14th row)
vblank (101 rows)
( Vertical Data Valid Mode Case) vsdisp=1
VSYNC
10 rows = vsend_ofset
HSYNC
(hsdisp=0)
HSYNC
(hsdisp=1)
DATA
29
2rows
2rows
wrp(14th row)
wrd (1024 rows) vblank (101 rows)
Page 30
S5K3A1EA 1/3” SXGA CMOS IMAGE SENSOR
VERTICAL TIMING DIAGRAM (continued)
( Short OB Line & Fixed Vertical Sync mode) isp_sel = 1& fix_vs = 1
VSYNC
HSYNC
vswd (1row)
4 rows = vsend_ofset
1 frame = wrd + vblank ( 1125 rows )
Normal frame output
DATA
wrp(14th row)
wrd (1024 rows) vblank (101 rows)
( Short OB Line & Normal Sync mode) isp_sel = 1, vsstrt = 1117d, vswd = 2d