Datasheet CH5101A-Q, CH5101A-L Datasheet (Chrontel Inc)

Page 1
CH5101A
CHRONTEL
3
CMOS Monochrome Digital Video Camera
Features
format ¥
• Programmable formats CIF 352x288, QCIF 176x144, CCIR601 704x288
• Digital output CCIR601 4:2:2 (8-bit)
• Multidimensional automatic shutter control
• Below 1 LUX sensitivity
• Programmable I2C Serial bus control:
- Frame rate: 30fps-1fps in eight steps
- Gamma correction
- Shutter speed
- Analog gain
- 16 backlight compensation zones
- Black clamp level
- Power down modes
• Stand-alone 25fps PAL and 30fps NTSC operation with all automatic features
• Single crystal operation: Video timing on-chip
• Single 5V power supply
• Less than 0.5 watt power dissipation
Description
The CH5101 is a single chip active pixel CMOS monochrome video camera with digital video output in several formats. Using sophisticated noise correction circuitry to minimize fixed pattern noise and dark current effects, the CH5101 provides a supurb quality picture in a low cost device.
The CH5101 uses a proprietary autoshutter algorithm to dynamically control the shutter time, analog gain, and black clamp level, providing optimum picture and contrast under all lighting conditions. The CH5101 also incorporates extensive on-chip programmable digital signal processing to maximize the usefulness of the device in processor driven applications. This includes 16 programmable zones for backlight compensation, allowing the user to adjust the image to their unique lighting environment.
Additionally, at power-up the backlight compensation zone, power-up condition, and direct A/D output modes are selectable without IIC control by using the PUD pins.
Requiring a minimum of parts for operation, the CH5101 provides a low cost camera for the next generation videophone, toy, and surveillance products.
¥ Patent number x,xxx,xxx patents pending
Photocell
352
Columns
Row Decode
Gain
A/D
Black
Clamp
Array
288
Rows
2-D
LPF
R O
W
T
I
M
I N G
Shutter Control
Gamma Correct
2
I C
BUS
Timing
&
Mode
Control
Output
Format
SD SC AS
HREF PDP* HS* VS* CLKOUT Reset* XI/Fin XO
PUD[6:0]
TOUT/TOUTB OVR
Y[7:0]
201-0000-033 Rev 1.0, 6/2/99 1
Figure 1: Block Diagram
Page 2
CHRONTEL CH5101A
CLKOUT
TOUTB
SC
SD
DGND
RESET*
DVDD
52 51 50 49 48 47 46 45 44 43 42 41 40
AS
DVDD
AVDD
CMB2
TOUT
AGND
VRS
DGND
VS* HS*
DVDD
OVR
HREF
Y0
Y1 Y2 Y3
Y4 Y5
Y6
1 2 3 4 5 6 7 8 9
10 11
12 13
14 15 16 17 18 19 20 21 22 23 24 25 26
Y7
DVDD
Image Array
DGND
PUD1*
PUD0*
PUD2*
PUD4*
PUD3*
PUD5*
NC
PUD6
NC
39 38 37 36 35 34 33 32 31 30
29 28 27
AVDD ARF
ARF2 AGND
CRF
VREF
AVDD XI/FIN
XO AGND DGND
PDP* DVDD
Figure 2: 52-Pin PQFP
2 201-0000-033 Rev 1.0, 6/2/99
Page 3
CHRONTEL CH5101A
AGND
48
VRS
47
DVDD
SC
7
6
SD
5
RESET*
DGND
3
4
AS
2
CMB2
DVDD
1
52
AVDD
TOUTB
51
50
TOUT
49
DGND
VS* HS*
DVDD
OVR
HREF
Y0
Y2 Y3
Y4 Y5 Y6
Y1
10 11 12
13 14 15 16 17 18 19
20
8 9
Image Array
1mm
21
Y7
22
DVDD
CLKOUT
23
24
25
DGND
PUD0*
28
27
26
PUD1*
PUD2*
PUD3*
.600 in Sq
PUD4*
29
31
30
PUD6
PUD5*
32
NC
33
NC
46
45
44
43 42 41 40
40
39
38
37
36
35
34
AVDD
ARF ARF2 AGND
CRF
VREF
AVDD
XI/FIN
XO
AGND
DGND PDP* DVDD
Figure 3: 52 Contact Ceramic LCC (Top View)
201-0000-033 Rev 1.0, 6/2/99 3
Page 4
CHRONTEL CH5101A
60 um
1301 um
Image
Array
3670.3 um
Package
Centerline
CMOS Die
Package
Centerline
4906.7 um
Figure 4: CH5101 Array Image Offset
4 201-0000-033 Rev 1.0, 6/2/99
Page 5
CHRONTEL CH5101A
Table 1. Pin Descriptions Note: Pin numbers in parenthesis ( ) are for 52 pin PQFP
Pin Type Symbol Description
21-14 (14-7)
1,7,11,22,34,
(4,15,27,46,52)
4,8,24,36,
(1, 17, 29, 49)
31-25
(24-18)
23
(16)
9
(2) 10
(3) 12
(5)
13 (6)
6
(51)
5
(50)
2
(47)
3
(48)
38
(31)
39
(32)
Out Y[7:0]
Power DVDD
Power DGND
In PUD[5:0]*
PUD[6]
Out CLKOUT
Out VS*
Out HS*
Out OVR
Out HREF
In SC
In/Out SD
In AS
In RESET*
In/Out XO
In XI/FIN
Video Output
Provides the luminance data of the digital video output.
Digital Supply Voltage
These pins supply the 5V power to the digital section of CH5101.
Digital Ground
Provides the ground reference for the digital section of CH5101. These pins MUST be connected to the system ground.
Power Up Detect (internal pull-up)
These are inputs controlling the default value of IIC register bits M0, ADDO, PD, ASW[3:0]. Attach 100K Ohms to DGND to pull low. NOTE: PUD[5:0]* are logically inverted
Video Pixel Clock Output
This pin outputs a buffered clock signal which can be used to latch data output by pins Y[7:0]
Vertical Sync Output (active low)
Outputs a vertical sync pulse.
Horizontal Sync Output (active low)
Outputs a horizontal sync pulse.
Over Range
This pin is high when the A/D converter input is beyond the full scale range of the A/D.
Horizontal Reference
Active video timing signal. This output is high when active data is being output from the device, and low otherwise.
Serial Clock
IIC clock input pin.
Serial Data
IIC data input/output pin.
Chip Address Select (internal pullup)
This pin selects the IIC address for the device. AS = 1 Address = 100 0101 AS = 0 Address = 100 0110
Chip Reset (active low, internal pullup)
Puts all registers into power-on default states. The state at pin SD must be HIGH during reset for proper initialization.
Crystal Output
A 27 MHz (± 50 ppm, parallel resonance) crystal may be attached between XO and XI/FIN.
Crystal Input or External input
A 27 MHz (± 50 ppm, parallel resonance) crystal should be attached between XO and XI/FIN. An external CMOS compatible clock can be connected to XI/FIN as an alternative.
201-0000-033 Rev 1.0, 6/2/99 5
Page 6
CHRONTEL CH5101A
Table 1. Pin Descriptions Note: Pin numbers in parenthesis ( ) are for 52 pin PQFP
Pin Type Symbol Description
40,46,51
(33, 39, 44)
41
(34)
37,43,48
(30, 36, 41)
42
(35)
49,50
(42, 43)
44,45
(37, 38)
47
(40)
32,33
(25,26)
35
(28)
52
(45)
Power AVDD
Out VREF
Power AGND
Out CRF
In/Out TOUT, TOUTB
Out ARF2, ARF
Out VRS
NC
In PDP*
Out CMB2
Analog Supply Voltage
Supplies the 5V power to the analog section of the CH5101.
Voltage Reference
VREF provides a 1.235V reference. A 0.01µF decoupling capacitor should be connected between VREF and AGND.
Analog Ground
These pins provide the ground reference for the analog section of CH5101. Pins must be connected to the system ground to prevent latchup.
Column Filter
CRF provides a 2.5 V reference that is used as a bias to the column sample and holds. A 0.1µF decoupling capacitor should be connected between CRF and AGND.
Test Mode I/O Pins
For test purposes only. Should be NC.
Array Filters
A 0.1uF decoupling capacitors should be connected between each of the pins and AGND.
Array Bias Filter
VRS provides a 2.1V reference. A 0.1µF decoupling capacitor should be connected between VRS and AGND.
No Connect These pins to be left open
Power Down Pin (active low, internal pullup)
0 = Power Down
Bias Filter
A 0.1µF decoupling capacitor should be connected between CMB2 and AGND.
6 201-0000-033 Rev 1.0, 6/2/99
Page 7
CHRONTEL CH5101A
n
Functional Description
The CH5101 accepts a light input to a photosensitive array, and produces a digital video stream in response. The internal functions performed are:
Scanning of the photodiode array into a serial data stream.
Programmable gain sample and hold with programmable offset.
Digitization of data stream.
Programmable gamma correction.
Interpolate/Decimate data to desired resolution
Formatting of the data stream for the desired type of output.
Automatic Shutter, Gain and Black Setting.
Timing signal generation.
Bus control.
Power up control of key register bits
Scanning of the photodiode array:
The CH5101 serializes the data captured in the photo array, and outputs one pixel of data each clock period. The first row is output a programmable number of lines after the leading edge of the vertical sync output. After the entire row has been output, the next row will be addressed and output. Correlated double sampling techniques are used during readout to reduce fixed pattern noise. After this transfer is complete, pixel data is serially sent to the programmable gain amplifier and then to an A/D converter.
Programmable gain sample and hold:
The programmable gain is divided into two sections. The first gain block is controlled by PGSH[2:0] and the sec­ond by the ADFS control. ADFS can be treated as the MSB of the gain control, and a plot of gain versus control set­ting is shown below. The programmable gain section also provides a bias adjustment, under the control of the an chip DAC. When the ASBE bit is a one (default) this DAC value is determined automatically, via a feedback loop which monitors the A/D output signal. When the ASBE bit is a zero, the DAC can be controlled via BCLMP[7:0].
30
25
20
GaindB
15
n
10
5
0
0 2 4 6 8 10 12 14 16
Gain
201-0000-033 Rev 1.0, 6/2/99 7
Page 8
CHRONTEL CH5101A
A/D Conversion:
The data out of the programmable sample and hold is input to an 8-bit A/D. The output of the A/D is sent to the datapath section, and can alternatively be sent directly to the Y[7:0] pins. The A/D has an over-range output which is available as an external pin.
Programmable Gamma correction:
The monochrome signals are next applied to a gamma correction block with selectable gamma settings of 1.0, 1.6 and 2.2, controlled via GAM[1:0].
Interpolate/Decimate data to desired resolution:
The output resolution is determined by the mode register bits M[2:0].
When a CCIR601 mode is selected (M[2:0] = 4,5), a signal compatible with Chrontel's CH7202 input will be gener­ated. This entails interpolating the luminance signal by a factor of two, and selecting the 8-bit output mode (register 00h, bit 0). The value of 128 is substituted for chrominance data (no color).
When a CIF output is selected (M[2:0] = 1), the value of 128 is substituted for chrominance data.
When QCIF output is selected (M[2:0] = 3), the Y resolution will be decimated by a factor of two in both horizontal and vertical directions. This requires bandlimiting the Y data, decimating in the horizontal direction. The Y data is not decimated in the vertical direction.Automatic Shutter, Gain and Black Setting:
Automatic Shutter, Gain and Black Setting:
The CH5101 contains circuitry to automatically adjust the shutter (ESLE, ESLH and ESLL), programmable gain (PGSH[2:0]) and black level (BCLMP[7:0]. These feedback loops are independently controlled by the three control bits Auto-Shutter Shutter Enable (ASSE), Auto-Shutter Gain Enable (ASGE) and Auto-Shutter Black Enable (ASBE). When each of these loops is enabled (default), a read to the corresponding shutter, gain or black level register will result is a readout of the control signal the algorithm has determined to be correct. Data can continue to be written to the control registers, but will not have an effect until the automatic feedback control is disabled. The feedback loops will attempt to force a percentage of the image (controlled by ASBC[4:0] and ASBT[2:0]) to black, and a certain percentage of the image (controlled by ASWC[7:0]) inside the selectable window to white. This will create an output image which maximizes the dynamic range of the signal, without creating overflow or underflow problems within the A/D or the datapath.
Timing signal generation:
The CH5101 generates all required internal and external timing signals. The following timing signals are output by the CH5101:
Clock out (CLKOUT) - This output is used to latch the outputs of the Y]7:0], HS*, VS* and HREF.
Horizontal Sync (HS*) - The horizontal sync output is used to determine the start of a new line. Polarity is selectable via control bit HSP.
Vertical Sync (VS*) - The vertical sync output is used to determine the start of a new frame. Polarity is selectable via control bit VSP.
Horizontal Reference (HREF) - The horizontal reference is high when active data is output from the CH5101.
The following timing parameters are programmable:
Shutter - This control is divided among three registers, Electronic Shutter Length Extended (ESLE) , Electronic Shutter Length High (ESLH) and Electronic Shutter Length Low (ESLL). The control range is from ~1uS, to just under the frame duration.
Frame rate - In non-CCIR601 modes, the frame rate is selectable via the FR register. The CH5101 has two methods for adjusting the frame rate of the device.
8 201-0000-033 Rev 1.0, 6/2/99
Page 9
CHRONTEL CH5101A
Horizontal start - In non-CCIR601 modes, the delay between the HS* output and the output of active data from the CH5101 is programmable via the HS register. The polarity of this output is programmable.
Vertical start - In non-CCIR601 modes, the delay between the VS* output and the output of active data from the CH5101 is programmable via the VS register. The polarity of this output is programmable.
Frame rate adjustment method — The CH5101 has two methods for adjusting the frame rate of the device. The first method is to add additional black lines to each frame after reading out the active data. The second method is to have each frame remain a constant number of lines long, and have each line contain a variable number of blank pixels after reading out the active data. In this mode, all clock signals are 1/2 of the normal rate.
Auto shutter speed — The auto-shutter loop speed can be controlled via ASSPD[2:0].
Bus control:
The CH5101 is controlled via a 2 pin serial interface. The description of this interface, and all registers accessible via the interface is described later in the data sheet.
Power up control:
Seven bits within the CH5101 register map can have their default value determined at the time of power-up, or when the Reset pin is exercised. This is accomplished by using a high valued pull-down resistor on the PUD[6:0] pins. These pins are pulled high by an internal high impedance pull-up device. This pull-up can be overridden by con­necting a 100K ohm resistor externally to ground. After three frames, the level at the PUD[6:0] pins is latched, and seven register bits are set or cleared depending upon the corresponding pin's level. The PUD[6:0] pins functions are then returned to outputs of the chroma data. The power-up control affects the following register bits:
Table 2. Power Up Default Control
Pin Register Bit Function
PUD[5]* 22h 3 ADDO
The A/D Direct Output mode can be selected at power up. This bypasses the 2­D LPF and Gamma correction, which may be desirable for applications which want to use raw data. Logically inverted input No pull-down resistor - Datapath processing Pull-down resistor - A/D direct output
PUD[4]* 19h 4 PD
The power down bit can be enabled at power up. This may be desirable in USB cameras which have power limitations at power up. Logically inverted input No pull-down resistor - Normal power-up Pull-down resistor - Power-up in low-power mode
PUD[6] 00h 1 M0
The Mode[0] bit can be used to select between NTSC or PAL output at power up. No pull-down resistor - PAL operation Pull-down resistor - NTSC operation
PUD[3:0]* 1Eh 3:0 ASW[3:0]
The auto-shutter window can be selected at power up. See the register description for corresponding window selection. Logically inverted inputs No pull-down resistors gives window "0", Center location
201-0000-033 Rev 1.0, 6/2/99 9
Page 10
CHRONTEL CH5101A
I2C Port Operation
The CH5101 contains a standard I2C control port, through which the control registers can be written and read. This port is comprised of a two-wire serial interface, pins SD (bidirectional) and SC, which can be connected directly to the SDB and SCB buses as shown in Figure5.
The Serial Clock line (SC) is input only and is driven by the output buffer of the master device. The CH5101 acts as a slave and generation of clock signals on the bus is always the responsibility of the master device. When the bus is free, both lines are HIGH. The output stages of devices connected to the bus must have an open-drain or open­collector to perform the wired-AND function. Data on the bus can be transferred up to 400kbit/s according to I2C specifications. However, in direct connections to the bus master device, the CH5101 can operate at transfer rates up to 5 MHz.
+VDD
R
P
SDB (Serial Data Bus) SCB (Serial Clock Bus)
DATAN2 OUT MASTER
SCLK OUT FROM MASTER
DATA IN MASTER
BUS MASTER
SCLK IN1
SC
DATAN2 OUT
SLAVE
DATA IN1
SD
SCLK IN2
DATAN2 OUT
DATA IN2
SLAVE
Figure 5: Connection of Devices to the Bus
Electrical Characteristics for Bus Devices
The electrical specifications of the bus devices’ inputs and outputs and the characteristics of the bus lines connected to them are shown in Figure5. A pullup resistor (RP) must be connected to a 5V ± 10% supply. The CH5101 is a device with input levels related to VDD.
Maximum and minimum values of pullup resistor (RP)
The value of RP depends on the following parameters:
• Supply voltage
• Bus capacitance
• Number of devices connected (input current + leakage current = I
input
)
The supply voltage limits the minimum value of resistor RP due to the specified minimum sink current of 3mA at VOL
= 0.4 V for the output stages:
max
RP >= (VDD – 0.4) / 3 (RP in kΩ)
The bus capacitance is the total capacitance of wire, connections and pins. This capacitance limits the maximum value of RP due to the specified rise time. The equation for RP is shown below:
RP >= 103/C (where: RP is in k and C, the total capacitance, is in pF)
The maximum HIGH level input current of each input/output connection has a specified maximum value of 10 µA. Due to the desired noise margin of 0.2VDD for the HIGH level, this input current limits the maximum value of RP.
10 201-0000-033 Rev 1.0, 6/2/99
Page 11
CHRONTEL CH5101A
The RP limit depends on VDD and is shown below:
RP >= (100 x VDD)/ I
(where: RP is in k and I
input
is in µA) Transfer Protocol
input
Both read and write cycles can be executed in Alternating and Auto-increment modes. Alternating mode expects a register address prior to each read or write from that location (i.e., transfers alternate between address and data). Auto-increment mode allows you to establish the initial register location, then automatically increments the register address after each subsequent data access (i.e., transfers will be address, data, data, data...). A basic serial port transfer protocol is shown in Figure6 and described below.
SD
SC
Start
Condition
acknowledge
CH5101
1 - 7
Device ID8R/W*9ACK
1 - 8
Data
1
9
ACK
CH5101
acknowledge
1 - 8
Data
n
9
ACK
CH5101
acknowledge
Stop
Condition
Figure 6: Serial Port Transfer Protocol
1. The transfer sequence is initiated when a high-to-low transition of SD occurs while SC is high; this is the START condition. Transitions of address and data bits can only occur while SC is low.
2. The transfer sequence is terminated when a low-to-high transition of SD occurs while SC is high; this is the STOP condition.
3. Upon receiving the first START condition, the CH5101 expects a Device Address Byte (DAB) from the master device. The value of the device address is shown in the DAB data format below. Note that B[2:1] is determined by the state of the ADDR pin (see Table 1 for details).
Table 3. Device Address Byte (DAB)
B7 B6 B5 B4 B3 B2 B1 B0
1 0 0 0 1 AS* AS R/W
4. After the DAB is received, the CH5101 expects a Register Address Byte (RAB) from the master. The format of the RAB is shown in the RAB data format below (note that B7 is not used).
R/W Read/Write Indicator
0: Master device will write to the CH5101 at the register location specified by the address
AR[5:0]
1: Master device will read from the CH5101 at the register location specified by the
address AR[5:0]. AutoInc Register Address Auto-Increment - to facilitate sequential R/W of registers 1: Auto-Increment enabled (auto-increment mode).
201-0000-033 Rev 1.0, 6/2/99 11
Page 12
CHRONTEL CH5101A
Table 4. Register Address Byte (RAB)
B7 B6 B5 B4 B3 B2 B1
X AutoInc AR[5] AR[4] AR[3] AR[2] AR[1] AR[0]
Write: After writing data into a register, the address register will automatically be incremented
by one.
Read: Before loading data from a register to the on-chip temporary register (getting ready to
be serially read), the address register will automatically be incremented by one. However, for the first read after an RAB, the address register will not be changed.
0: Auto-increment disabled (alternating mode).
B0
Write: After writing data into a register, the address register will remain unchanged until a new
RAB is written.
Read: Before loading data from a register to the on-chip temporary register (getting ready to
be serially read), the address register will remain unchanged.
AR[5:0] Specifies the Address of the Register to be Accessed.
This register address is loaded into the address register of the CH5101. The R/W* access, which follows, is directed to the register specified by the content stored in the address register.
The following two sections describe the operation of the serial interface for the four combinations of R/W* = 0,1 and AutoInc = 0,1.
CH5101 Write Cycle Protocols (R/W* = 0)
Data transfer with acknowledge is required. The acknowledge-related clock pulse is generated by the mastertransmitter. The mastertransmitter releases the SD line (HIGH) during the acknowledge clock pulse. The slave-receiver must pull down the SD line, during the acknowledge clock pulse, so that it remains stable LOW during the HIGH period of the clock pulse. The CH5101 always acknowledges for writes (see Figure7). Note that the resultant state on SD is the wired-AND of data outputs from the transmitter and receiver
.
SD Data Output
By Master-Transmitter
SD Data Output
By the CH5101
not acknowledge
acknowledge
SC from
Master
1 8 9
Start
Condition
2
clock pulse for
acknowledgment
Figure 7: Acknowledge on the Bus
12 201-0000-033 Rev 1.0, 6/2/99
Page 13
CHRONTEL CH5101A
Figure8 shows two consecutive alternating write cycles for AutoInc = 0 and R/W* = 0. The byte of information following the Register Address Byte (RAB) is the data to be written into the register specified by AR[5:0]. If AutoInc = 0, then another RAB is expected from the master device followed by another data byte, and so on.
SD
SC
Condition
Start
CH5101
acknowledge
I2C
1 - 7
Device 8R/W*9ACK
CH5101
acknowledge
1 - 8
RAB9ACK
CH5101
acknowledge
1 - 8
Data9ACK
CH5101
acknowledge
1 - 8
RAB9ACK
CH5101
acknowledge
1 - 8
Data9ACK
Stop
Condition
Figure 8: Alternating Write Cycles
Note: The acknowledge is from the CH5101 (slave).
If AutoInc = 1, then the register address pointer will be incremented automatically and subsequent data bytes will be written into successive registers without providing an RAB between each data byte. An auto-increment write cycle is shown in Figure9.
SD
SC
1 - 7
CH5101
acknowledge
I2C
1 - 8
CH5101
acknowledge
9
1 - 8
CH5101
acknowledge
9
1 - 8
CH5101
acknowledge
9
Start Stop
Device ID8R/W*9ACK
RAB
ACK
n
Data
n
ACK Data
n+1
ACK
ConditionCondition
Figure 9: Auto-Increment Write Cycle
Note: The acknowledge is from the CH5101 (slave).
When the auto-increment mode is enabled (AutoInc is set to 1), the register address pointer continues to increment for each write cycle until AR[5:0] = 26 (26 is the address of the address register). The next byte of information represents a new auto-sequencing starting address which is the address of the register to receive the next byte. The auto-sequencing then resumes based on this new starting address. The auto-increment sequence can be terminated any time by either a STOP or RESTART condition. The write operation can be terminated with a STOP condition.
CH5101 Read Cycle Protocols (R/W = 1)
If a master-receiver is involved in a transfer, it must signal the end of data to the slave-transmitter by not generating an acknowledge on the last byte that was clocked out of the slave. The slave-transmitter CH5101 releases the data line to allow the master to generate the STOP condition or the RESTART condition.
To read the content of the registers, the master device starts by issuing a START condition (or a RESTART condition). The first byte of data, after the START condition, is a DAB with R/W = 0. The second byte is the RAB with AR[5:0] containing the address of the register that the master device intends to read from in AR[5:0]. The master device should then issue a RESTART condition (RESTART = START, without a previous STOP condition). The first byte of data, after this RESTART condition, is another DAB with R/W*=1, indicating the master’s intention to read data hereafter. The master then reads the next byte of data (the content of the register specified in the RAB). If AutoInc = 0, then another RESTART condition, followed by another DAB with R/W* = 0 and RAB, is expected from the master device. The master device then issues another RESTART, followed by another DAB. After
201-0000-033 Rev 1.0, 6/2/99 13
Page 14
CHRONTEL CH5101A
that, the master may read another data byte and so on. In summary, a RESTART condition, followed by a DAB, must be produced by the master before each of the RAB and before each of the data read events. Figure10 shows two consecutivealternatingreadcycles.
SD
SC
Condition
1 - 7
Start
Device 8R/W*9ACK
I2C I2C
1 - 7
Device ID8R/W*9ACK
CH5101
acknowledge
CH5101
acknowledge
RAB
1 - 8
RAB
1 - 8
CH5101
acknowledge
ACK Restart
1
CH5101
acknowledge
9 10
ACK Restart
2
9 10
Condition
Condition
CH5101
acknowledge
I2C
1 - 7
Device 8R/W*9ACK
CH5101
acknowledge
1 - 7
Device ID8R/W*9ACK
1 - 8
Data
1
Master does not acknowledge
1 - 8
Data
2
Master
does not
acknowledge
9
ACK
9
ACK
10
Restart
Condition
Stop
Condition
Figure 10: Alternating Read Cycle
If AutoInc = 1, then the address register will be incremented automatically and subsequent data bytes can be read from successive registers, without providing a second RAB
Master does not acknowledge
CH5101
acknowledge
CH5101
acknowledge
CH5101
acknowledge
Master
acknowledge
just before Stop condition
SD
I2C I2C
SC
Condition
Start
1 - 7
Device 8R/W*9ACK
1 - 8
RAB
9 10
ACK Restart
n
1 - 7
Device 8R/W*9ACK
Condition
1 - 8
Data
1 - 8
9
ACK
n
Data
n+1
9
ACK
Stop
Condition
Figure 11: Auto-increment Read Cycle
When the auto-increment mode is enabled (AutoInc is set to 1), the address register will continue incrementing for each read cycle. When the content of the Address Register reaches 2A, it will wrap around and start from 00h again. The auto increment sequence can be terminated by either a STOP or RESTART condition. The read operation can be terminated with a “STOP” condition. Figure11 shows an auto-increment read cycle terminated by a STOP or RESTART condition.The CH5101 contains 20 control registers each with a maximum of 8 usable bits to provide access to basic video attribute control functions. These registers are accessible via the 2-bit serial bus (SD & SC). The following sections describe the functions and the controls available through these registers.
14 201-0000-033 Rev 1.0, 6/2/99
Page 15
CHRONTEL CH5101A
Table 5. Register Descriptions
Register Symbol Address
(Hex)
Mode/Output Format MOF 00 0000
Frame Rate FR 01 0010
Horizontal Start HS 02 xx11
Vertical Start VS 03 x0x1
Electronic Shutter Length High Byte Electronic Shutter Length Low Byte
RESERVED 06 - 16 Reserved Do not use
PSH Gain Gamma
Clamp Level BCLMP 18 1000
Miscellaneous MISC 19 1000
Device ID DID 1A 0010
Test Register TST 1B 0000
Test Memory TM 1C 0000
Auto-Shutter Enable ASE 1D 1110
ESLH 04 1111
ESLL 05 0000
PSHG 17 0001
Default
Value
1011
x000
1101
0101
0000
0000
1001
0000
0000
0000
0000
0000
0100
Description
Selects the mode (CCIR601, CIF or QCIF) and output format.
Sets the frame rate of the output signal. The four MSBs contain the revision number.
Sets the horizontal start position of the active output pixel in relationship to the HSYNC signal.
Used to set the vertical start position of the active output pixel in relationship to the VSYNC signal.
Used in conjunction with ESLP register to specify the duration of the electronic shutter.
Used in conjunction with ESLL register to specify the duration of the electronic shutter.
Selects the gain of the programmable sample and hold.
000 = 0dB gain, 111 = 14dB gain. Selects the level that the black level clamp
adjust to during dark pixel. 7,6,5: Reserved 4: Power Down 3: V Sync. Polarity 2: H Sync. Polarity 1,0: Border Color The four MSBs hold the device ID. The four
LSBs hold the version ID. Test Register
Test Register
Enables and controls the following autoshutter algorithm parameters:
7: Enables the AS to control the shutter 6: Enables the AS to control black level 5: Enables the AS to control programmable
gain. 4,3: Reserved 2-0: Determines the threshold of the shutter
gain setting to enable black level changes.
201-0000-033 Rev 1.0, 6/2/99 15
Page 16
CHRONTEL CH5101A
Table 5. Register Descriptions
Register Symbol Address
(Hex)
Auto-Shutter Window and Input Control Bits
Auto-Shutter Black Count Threshold Value
Auto-Shutter White Count Threshold Value
Extended Shutter Bits ESLE 21 xxx0
Miscellaneous 2 MISC2 22 0001
Miscellaneous 3 MISC3 23 0011
Power Down Register PD 24 xxx1
Address Register AR 26 0000
ASW 1E x100
ASBC 1F 1111
ASWC 20 1000
Default
Value
PUD[3:0]
1001
0000
0000
1001
1001
0000
0000
Description
Used to select the autoshutter window, display window, and select input data to algorithm:
6: Autoshutter max input enable 5: Autoshutter A/D or CSC select 4: Window Display 3-0: Window Select Determines the threshold that compares the
Black Sense value. Determines the threshold that compares the
White Sense value. ESLE (MSB) along with ESLH and ESLL form
the overall Shutter Length Control Register. Determines Master clock frequency, CLKOUT
control, and A/D Direct Output mode Determines internal clock delay and A/D full
scale value This register controls the following functions:
4: ResetB 3: High Light Intensity Enable 2-0: Reserved. Holds the address of the IIC register being
accessed
Table 6. Register Map
BIT: 7 6 5 4 3 2 1 0
00 CIF2 ELFA CVL CHL M2 M1 M0 OF 01 RNUM3 RNUM2 RNUM1 RNUM0 FR2 FR1 FR0 02 HS5 HS4 HS3 HS2 HS1 HS0 03 YDEL VS4 VS3 VS2 VS1 VS0 04 ESLH7 ESLH6 ESLH5 ESLH4 ESLH3 ESLH2 ESLH1 ESLH0 05 ESLL7 ESLL6 ESLL5 ESLL4 ESLL3 ESLL2 ESLL1 ESLL0 06 - 16 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved 17 Reserved Reserved GAM1 GAM0 Reserved PSHG2 PSHG1 PSHG0 18 BCLMP7 BCLMP6 BCLMP5 BCLMP4 BCLMP3 BCLMP2 BCLMP1 BCLMP0 19 Reserved Reserved DVDD PD VSP HSP BDR1 BDR0 1A DID7 DID6 DID5 DID4 DID3 DID2 DID1 DID0 1B 1C 1D ASSE ASBE ASGE Reserved Reserved ASSPD2 ASSPD1 ASSPD0 1E ASME ASCSC ASWD ASW3 ASW2 ASW1 ASW0 1F ASBC4 ASBC3 ASBC2 ASBC1 ASBC0 ASBT2 ASBT1 ASBT0 20 ASWC7 ASWC6 ASWC5 ASWC4 ASWC3 ASWC2 ASWC1 ASWC0 21 ESLE4 ESLE3 ESLE2 ESLE1 ESLE0 22 RENB ADD0 CLKOUTP DVC MCF 23 ADFSR CLKDLY3 CLKDLY2 CLKDLY1 CLKDLY0 24 ResetB Reserved PD2 PD1 PD0
16 201-0000-033 Rev 1.0, 6/2/99
Page 17
CHRONTEL CH5101A
Mode / Output Format Register Symbol: MOF
Address: 00h Bits: 8
BIT: 7 6 5 4 3 2 1 0 SYMBOL: TYPE: DEFAULT:
Register MOF determines the operating mode of the IC and the output data format. When bit 0 of register OF is low, data will be output in 16-bit mode. When OF is high, data will be time multiplexed and output on the 8-bit bus Y[7:0]. In the tables below, Y0 is the first pixel generated from the array on a given line, Y1 is the second pixel on that line, etc. In CCIR modes, Y0i, Y1i data are the pixels interpolated between the Y0 and Y1, and Y1 and Y2 samples. For each of the possible modes, the format of the output data is shown below. The total amount of time shown for each table is 24 cycles of MCLK when ELFA=0 and 48 cycles of MCLK when ELFA=1. The line number in each table refers to which active video line is being output.
M[2:0] = 0 or 1, OF = 0, CIF2 = 0 (2 line pattern, CLKOUT = 6.75MHz (ELFA=0) or 3.375MHz (ELFA=1))
CIF2 ELFA CVL CHL M2 M1 M0 OF R/W R/W R/W R/W R/W R/W R/W R/W
0 0 0 0 1 0 PUD6 1
Line CLKOUT 1 2 3 4 5 6
1 Y[7:0] Y0 Y1 Y2 Y3 Y4 Y5 2 Y[7:0] Y0 Y1 Y2 Y3 Y4 Y5
M[2:0] = 0 or 1, OF = 1, CIF2 = 0 (2 line pattern, CLKOUT = 13.5 MHz (ELFA=0) or 6.75MHz (ELFA=1))
Line CLKOUT 1 2 3 4 5 6 7 8 9 10 11 12
1 Y[7:0] 128 Y0 128 Y1 128 Y2 128 Y3 128 Y4 128 Y5 2 Y[7:0] 128 Y0 128 Y1 128 Y2 128 Y3 128 Y4 128 Y5
M[2:0] = 0 or 1, OF = 0, CIF2 = 1 (1 line pattern, CLKOUT = 6.75MHz (ELFA=0) or 3.375MHz (ELFA=1))
Line CLKOUT 1 2 3 4 5 6
1 Y[7:0] Y0 Y1 Y2 Y3 Y4 Y5 2 Y[7:0] Y0 Y1 Y2 Y3 Y4 Y5
M[2:0] = 0 or 1, OF = 1, CIF2 = 1 (1 line pattern, CLKOUT = 13.5 MHz (ELFA=0) or 6.75MHz (ELFA=1))
Line CLKOUT 1 2 3 4 5 6 7 8 9 10 11 12
1 Y[7:0] 128 Y0 128 Y1 128 Y2 128 Y3 128 Y4 128 Y5 2 Y[7:0] 128 Y0 128 Y1 128 Y2 128 Y3 128 Y4 128 Y5
M[2:0]2 or 3, OF = 0 CIF2 = 0 (4 line pattern, CLKOUT = 6.75MHz (ELFA=0) or 3.375MHZ (ELFA=1))
201-0000-033 Rev 1.0, 6/2/99 17
Page 18
CHRONTEL CH5101A
Line CLKOUT 1 2 3 4 5 6
1 Y[7:0] Y0 Y0 Y2 Y2 Y4 Y4 2 Y[7:0] 16 16 16 16 16 16 3 Y[7:0] Y0 Y0 Y2 Y2 Y4 Y4 4 Y[7:0] 16 16 16 16 16 16
M[2:0] = 2 or 3, OF = 1 CIF2 = 0 (4 line pattern, CLKOUT = 13.5 MHz (ELFA=0) or 6.75MHZ (ELFA=1))
Line CLKOUT 1 2 3 4 5 6 7 8 9 10 11 12
1 Y[7:0] 128 128 Y0 Y0 128 128 Y2 Y2 128 128 Y4 Y4 2 Y[7:0] 128 128 16 16 128 128 16 16 128 128 16 16 3 Y[7:0] 128 128 Y0 Y0 128 128 Y2 Y2 128 128 Y4 Y4 4 Y[7:0] 128 128 16 16 128 128 16 16 128 128 16 16
M[2:0] = 2 or 3, OF = 0 CIF2 = 1 (2 line pattern, CLKOUT = 6.75MHz (ELFA=0) or 3.375MHZ (ELFA=1))
Line CLKOUT 1 2 3 4 5 6
1 Y[7:0] Y0 Y0 Y2 Y2 Y4 Y4 2 Y[7:0] 16 16 16 16 16 16 3 Y[7:0] Y0 Y0 Y2 Y2 Y4 Y4 4 Y[7:0] 16 16 16 16 16 16
M[2:0] = 2 or 3, OF = 1 CIF2 = 1 (2 line pattern, CLKOUT = 13.5 MHz (ELFA=0) or 6.75MHZ (ELFA=1))
Line CLKOUT 1 2 3 4 5 6 7 8 9 10 11 12
1 Y[7:0] 128 128 Y0 Y0 128 128 Y2 Y2 128 128 Y4 Y4 2 Y[7:0] 128 128 16 16 128 128 16 16 128 128 16 16 3 Y[7:0] 128 128 Y0 Y0 128 128 Y2 Y2 128 128 Y4 Y4 4 Y[7:0] 128 128 16 16 128 128 16 16 128 128 16 16
M[2:0] = 4 or 5, OF = 0 (repeats pattern every line, CLKOUT =13.5 MHz)
Line CLKOUT 1 2 3 4 5 6 7 8 9 10 11 12
1 Y[7:0] Y0 Y0i Y1 Y1i Y2 Y2i Y3 Y3i Y4 Y4i Y5 Y5i
M[2:0] = 4 or 5, OF = 1 (repeats pattern every line, CLKOUT = 27MHz)
18 201-0000-033 Rev 1.0, 6/2/99
Page 19
CHRONTEL CH5101A
Line CLKOUT 1 2 3 4 5 6 7 8 9 10111213141516171819202122232
4
1 Y[7:0] 1
Y01
Y
1
Y11
Y
1
Y21
Y
1
Y31
Y
1
Y41
Y
1
Y51
Y
2
2
0
2
2
1
2
2
2
2
2
3
2
2
4
2
2
5
8
8
i
8
8
i
8
8
i
8
8
i
8
8
i
8
8
i
Bits 1 through 3 of the MOF register along with ELFA, bit 6 select the mode that the IC operates according to the table below. A listing of ‘FR’ in a column indicates that the frame rate is adjusted through varying this parameter, and the table under the Frame Rate register should be used to determine this value. When mode 4 or 5 is selected, the value of the FR register is ignored, and the IC will output a frame rate compatible with the field rate of NTSC or PAL. An integer number of lines will be output in each frame, with the odd frames having one line more than the even frames.
Table 7. Operating Modes
ELFA M2M1M0Operating
Mode
0 0 0 1 CIF 352 288 176 144 1716 FR CIF
0 0 1 1 QCIF 176 144 88 72 1716 FR QSIF
x 1 0 0 CCIR601
NTSC
x 1 0 1 CCIR601
PAL x 1 1 0 Reserved x 1 1 1 Reserved 1 0 0 1 CIF 2 352 288 176 144 FR 289 CIF-289
1 0 1 1 QCIF 2 176 144 88 72 FR 289 QSIF-298
Y Active Pixels
/Line
704 240 352 240 1716 263/262 525 Line scan 4:2:2
704 288 704 288 1728 313/312 625 Line Scan 4:2:2
Y
Active
Lines
CrCb Active Pixels
/Line
CrCb
Active
Lines
Total
MCLK
/ Line
Total Lines/ Frame
Functional Description
Progressive scan
Progressive scan
Progressive scan
Progressive scan
Bits 4, 5 and 7 ‘CHL’ ‘CVL’ ‘CIF2’ of the MOF register specify the chrominance sample location with respect to the luminance samples in the horizontal and vertical directions respectfully. When CHL is 0, chrominance samples are located between the luminance samples in the horizontal direction. When CHL is 1, chrominance samples are aligned with alternate luminance samples. When CIF2 is 0 and CVL is 0, chrominance samples are located between the luminance samples in the vertical direction. When CIF2 is 0 and CVL is 1, chrominance samples are aligned with alternate luminance samples. When M[2:0] is set to mode 4 or 5, the CHL and CVL bits are ignored. When the CIF2 bit is high, the CVL bit is ignored, and the chrominance signal is output on every line that has luminance.
201-0000-033 Rev 1.0, 6/2/99 19
Page 20
CHRONTEL CH5101A
Frame Rate Register Symbol:FR
Address:01h Bits:3
BIT: 7 6 5 4 3 2 1 0 SYMBOL: TYPE: DEFAULT:
Register FR determines the frame rate. The frame rate is adjusted by increasing the number of blank lines after reading the entire array, or by inserting extra blank pixels at the end of each line readout. The method of frame rate control is determined by bit ELFA in register MOF. When ELFA = 0, the amount of delay between the completion of reading one frame and the start of reading the next frame is varied. There are eight frame rates that can be selected in this mode, each one a fixed integer number of lines long. When ELFA = 1, the amount of delay between the completion of reading one line, and the start of reading the next line is varied. There are seven frame rates that can be selected in this mode, each one 289 lines.
In modes M[2:0] equal to 0-3, the device can operate with a 24MHz MCLK or a 27MHz MCLK. Tables describing some of the key parameters are shown in Tables 8 & 9.
RNUM3 RNUM2 RNUM1 RNUM0 FR2 FR1 FR0
R R R R R/W R/W R/W 0 0 1 0 0 0 0
Table 8. Operating Modes For 27 MHz MCLK
ELFA M
[2:0]
0 1,3 0 0 0 525 236 1716 308 30 112,398 33 0 1,3 0 0 1 656 367 1716 308 24 140,497 42 0 1,3 0 1 0 787 498 1716 308 20 168,597 50 0 1,3 0 1 1 1049 760 1716 308 15 224,796 67 0 1,3 1 0 0 1312 1023 1716 308 12 281,209 83 0 1,3 1 0 1 1967 1678 1716 308 8 421,707 125 0 1,3 1 1 0 3934 3645 1716 308 4 843,628 250 0 1,3 1 1 1 15735 15446 1716 308 1 2,097,151 621 x 4 x 263 / 262 23 / 22 1716 60 55,984 17 x 5 x 313 / 312 25 / 24 1728 50 67,176 20 1 1,3 0 0 1 289 3896 1080 24 140,256 42 1 1,3 0 1 0 289 4672 1856 20 168,192 50 1 1,3 0 1 1 289 6232 3416 15 224,352 66 1 1,3 1 0 0 289 7784 4968 12 280,224 83 1 1,3 1 0 1 289 11680 8864 8 420,480 125 1 1,3 1 1 0 289 23360 20544 4 840,960 249 1 1,3 1 1 1 289 93424 90608 1 2,097,151 621
FR
[2:0]
Total
Lines
Blank
Lines /
Frame
MCLK /
Line
Blank
MCLK /
Line
Frame
Rate
(Hz)
Max Shutter Length (reg-
ister value)
Max
Shutter
Time (mS)
20 201-0000-033 Rev 1.0, 6/2/99
Page 21
CHRONTEL CH5101A
Table 9. Operating modes for 24 MHz MCLK
ELFA M
[2:0]
0 1,3 0 0 0 467 178 1716 308 30 99,957 33 0 1,3 0 0 1 583 294 1716 308 24 124,839 42 0 1,3 0 1 0 700 411 1716 308 20 149,935 50 0 1,3 0 1 1 933 644 1716 308 15 199,914 67 0 1,3 1 0 0 1166 877 1716 308 12 249,892 83 0 1,3 1 0 1 1749 1460 1716 308 8 374,946 125 0 1,3 1 1 0 3497 3208 1716 308 4 749,892 250 0 1,3 1 1 1 13987 13698 1716 308 1 2,097,151 699 1 1,3 0 0 1 289 3464 648 24 124,704 42 1 1,3 0 1 0 289 4152 1336 20 149,472 50 1 1,3 0 1 1 289 5536 2720 15 199,296 66 1 1,3 1 0 0 289 6920 4104 12 249,120 83 1 1,3 1 0 1 289 10384 7568 8 373,824 125 1 1,3 1 1 0 289 20760 17944 4 747,360 249 1 1,3 1 1 1 289 83048 80232 1 2,097,151 699
FR
[2:0]
Total
Lines
Blank
Lines /
Frame
MCLK /
Line
Blank
MCLK /
Line
Frame
Rate
(Hz)
Max Shutter
Length
(register value)
Max
Shutter
Time (mS)
Bits 7-4 (RNUM#) of the FR register contain the revision number of the CH5101 device. These bits are read only. When using ELFA=1, if 30 Hz frame rate is desired a 30MHz crystal should be used, and the 24MHz MCLK control (MCE=0) should be selected. All frame rates will be scaled by the value of 30/24.
Horizontal Start Register Symbol: HS
Address:02h Bits:6
BIT: SYMBOL: TYPE: DEFAULT:
Register HS determines the number of pixels between the leading edge of H Sync and the first active pixel to be output on the Y[7:0]. The number is in units of pixels; the range is from 0 to 63 CLKOUT and must be limited to 38 when ELFA=1. When M[2:0] = 4 or 5, this register is ignored and the timing below is followed assuming OF = 0. Values are doubled for OF = 1 mode
7 6 5 4 3 2 1 0
HS5 HS4 HS3 HS2 HS1 HS0 R/W R/W R/W R/W R/W R/W
1 1 1 1 0 1
M[2:0] Leadng
Edge of
H Sync
4 - NTSC 122 8 704 8 16 858
5 - PAL 132 8 704 8 12 864
H Delay
(CLKOUT)
Border
(CLKOUT)
Active
(CLKOUT)
Border
(CLKOUT)
Blank
(CLKOUT)
Total
(CLKOUT)
201-0000-033 Rev 1.0, 6/2/99 21
Page 22
CHRONTEL CH5101A
Vertical Start Register Symbol:VS
Address:03h Bits:6
BIT: SYMBOL: TYPE: DEFAULT:
Register VS determines the number of lines between the leading edge of V Sync and the first active line to be output on the Y[7:0] and C[7:0] pins. The number is in units of lines; the range is 0 to 31 lines. When ELFA = 1, this register is ignored, and there is always a one line delay between the leading edge of vertical sync and the first line with active video.
The YDEL (bit 6) controls the delay in the luma processing path. The value should match the setting of CHL.
7 6 5 4 3 2 1 0
YDEL VS4 VS3 VS2 VS1 VS0
R/W R/W R/W R/W R/W R/W
0 1 0 1 0 1
Electronic Shutter Length High Byte Symbol:ESLH
Address:04h Bits:8
BIT: 7 6 5 4 3 2 1 0 SYMBOL: TYPE: DEFAULT:
The ESLH register, combined with the ESLE and ESLL registers determine the length of the electronic shutter.
ESLH7 ESLH6 ESLH5 ESLH4 ESLH3 ESLH2 ESLH1 ESLH0
R/W R/W R/W R/W R/W R/W R/W R/W
1 1 1 1 0 0 0 0
Electronic Shutter Length Low Byte Symbol:ESLL
Address:05h Bits:8
BIT: SYMBOL: TYPE: DEFAULT:
Registers ESLE, ESLH and ESLL specify the duration of the electronic shutter. These 21 bits are concatenated into a single 21-bit word ({ESLE,ESLH,ESLL}) whose value is multiplied by 8. The shutter is enabled for this number of MCLKs. The duration of the shutter can, therefore, be determined from the equation (8*(65536*ESLE + 256*ESLH + ESLL))/MCLK. The range is from 0mS to 699mS, but is limited to a lower value in some frame rates (see Frame Rate Register description). When the autoshutter algorithm is controlling the shutter value and this
register is read out, the autoshutter generated value is read instead of the actual I2C register content.
7 6 5 4 3 2 1 0
ESLL7 ESLL6 ESLL5 ESLL4 ESLL3 ESLL2 ESLL1 ESLL0
R/W R/W R/W R/W R/W R/W R/W R/W
0 0 0 0 0 0 0 0
22 201-0000-033 Rev 1.0, 6/2/99
Page 23
CHRONTEL CH5101A
Programmable Sample and Hold Gain Register Symbol: PSHG
Address:17h Bits:8
BIT: SYMBOL: TYPE: DEFAULT:
Register PSHG specifies the gain of the programmable sample and hold before A/D conversion. There are eight gain settings from a gain of 1.5x to a gain of 5.0x. When the autoshutter algorithm is controlling the gain value and this register is read out, the autoshutter generated gain value is read instead of the actual IIC register content. Bits 5 and 4 (GAM[1:0]) control the gamma correction used, according to Table 10. Gamma is not available in ADDO mode
7 6 5 4 3 2 1 0
Reserved Reserved GAM1 GAM0 Reserved PSHG2 PSHG1 PSHG0
R/W R/W R/W R/W R/W R/W R/W R/W
0 0 0 1 1 0 0 1
Table 10. Gamma Correction
GAM1 GAM0 Gamma
0 0 1.0 0 1 1.6 1 0 2.2 1 1 2.2
Clamp Level Register Symbol:BCLMP
Address:18h Bits:5
BIT: SYMBOL: TYPE: DEFAULT:
7 6 5 4 3 2 1 0
BCLMP7 BCLMP6 BCLMP5 BCLMP4 BCLMP3 BCLMP2 BCLMP1 BCLMP0
R/W R/W R/W R/W R/W R/W R/W R/W
1 0 0 0 0 0 0 0
Register BCLMP specifies the offset level used in the black level clamp block. A value of 0 in register BCLMP will nominally cause the A/D to output a value of zero for a dark cell input. The register value is 2’s complement and ranges from -128 at maximum brightness to +127 at minimum brigtness. This register has no effect when the ASBE bit is HIGH (default).
Miscellaneous Register Symbol:MISC
Address:19h Bits:7
BIT: SYMBOL: TYPE: DEFAULT:
Bits 0 and 1 of the MISC register control the border color that is output on each line containing active video for eight
13.5MHz clocks before the start of active video and eight 13.5MHz clocks after active video. This is only done when the IC is placed into display mode four or five (M[2:0] = 4, 5). In these modes, the luminance data has been interpolated to a pixel rate of 13.5MHz. Therefore, 8 pixels equals 592.5nS. Table11 describes the border colors.
201-0000-033 Rev 1.0, 6/2/99 23
7 6 5 4 3 2 1 0
Reserved Reserved DVDD PD VSP HSP BDR1 BDR0
R/W R/W R/W R/W R/W R/W R/W R/W
1 0 0 PUD4* 0 0 0 0
Page 24
CHRONTEL CH5101A
Table 11. Border Colors
BDR1BDR0Color Y
Value
0 0 Black 16 128 128 0 1 Blue 40 110 240 1 0 Green 144 33 53 1 1 White 235 128 128
CR
Value
CB
Value
Bits 2 and 3 (HSP and VSP) of the MISC register control the polarity of the H and V sync signals. Bit 4 (PD) of the MISC register places the IC in a power down mode. When PD=1, clocks to all digital circuitry are
disabled and analog circuitry bias currents are shut down. When PD=0, the IC is placed in its normal operating mode according to the user inputs. The default value of this bit is set using the PUD5 input.
Bit 5 (DVDD) of the MISC register is a reserved bit for memory control.
Device ID Register Symbol:DID
Address:1Ah Bits:8
BIT: 7 6 5 4 3 2 1 0 SYMBOL: TYPE: DEFAULT:
DID7 DID6 DID5 DID4 DID3 DID2 DID1 DID0
R R R R R R R R
0 0 1 0 0 0 0 0
Register DID is a read only register which holds the device ID number of the CH5101.
Test Register Symbol:TST
Address:1Bh Bits:8
BIT: SYMBOL: TYPE: DEFAULT:
TST is a test register.
7 6 5 4 3 2 1 0
LM Done LS Select LM Test IOC1 IOC0 CSH2 CSH1 CSH0
R R/W R/W R/W R/W R/W R/W R/W
0 0 0 0 0 0 0 0
Test Memory Register Symbol:TM
Address:1Ch Bits:8
BIT: SYMBOL: TYPE: DEFAULT:
7 6 5 4 3 2 1 0
TM7 TM6 TM5 TM4 TM3 TM2 TM1 TM0
R R R R R R R R
0 0 0 0 0 0 0 0
TM is a test register.
24 201-0000-033 Rev 1.0, 6/2/99
Page 25
CHRONTEL CH5101A
Auto-Shutter Enable Symbol:ASE
Address:1Dh Bits:8
BIT: 7 6 5 4 3 2 1 0 SYMBOL: TYPE: DEFAULT:
Bits 0-2 of the ASE register control the speed of the autoshutter loop. Values 0 through 4 are valid. Bits 3 - 4 of the ASE register are reserved, and should be left at their default value. Bit 5 of the ASE register enables the autoshutter algorithm to adjust the gain of the programmable sample and hold.
A 1 in this location allows the autoshutter algorithm to control this gain. A zero in this location disables the autoshutter algorithm from controlling this value, and allows bits 2-0 of register PSHG (17H) to control the gain.
ASSE ASBE ASGE Reserved Reserved ASSPD2 ASSPD1 ASSPD0
R/W R/W R/W R/W R/W R/W R/W R/W
1 1 1 0 0 1 0 0
Bit 6 of the ASE register enables the autoshutter algorithm to adjust the black level (bias) of the readout signal prior to A/D conversion. A 1 in this location allows the autoshutter algorithm to control the black level. A 0 in this location disables the autoshutter algorithm from controlling this value and allows bits 7-0 of register BCLMP (18H) to control the black level.
Bit 7 of the ASE register enables the autoshutter algorithm to adjust the shutter duration. A 1 in this location allows the autoshutter algorithm to control the shutter. A zero in this location disables the autoshutter algorithm from controlling this value and allows registers ESLE, ESLH and ESLL to control the shutter duration.
Auto-Shutter Window / Input Control Symbol:ASW
Address:1Eh Bits:7
BIT: 7 6 5 4 3 2 1 0 SYMBOL: TYPE: DEFAULT:
Bits 0, 1, 2 and 3 of the ASW register determine the active window that is used to operate the autoshutter algorithm. There are 16 possible windows, which are shown in Figure 12. The default value of these bits can be set using the PUD [3:0] inputs. This allows the backlight compensation window to be set without using IIC control.
Bit 4 of the ASW register enables the selected window to be highlighted in the image which is output from the CH5101. All image outside of the window will be reduced in amplitude.
ASME ASCSC ASWD ASW3 ASW2 ASW1 ASW0
R/W R/W R/W R/W R/W R/W R/W
1 0 0 PUD3* PUD2* PUD1* PUD0*
Bits 5 and 6 of the ASW register determine which data is input to the autoshutter algorithm, according to Table 12.
201-0000-033 Rev 1.0, 6/2/99 25
Page 26
CHRONTEL CH5101A
1 2 3
0
4 6
7 9
5
8
10
11
12
13
14
15
Figure 12: ASW Register Possible Windows
Table 12. Autoshutter Algorithm Input
ASME ASCSC Input to Autoshutter Algorithm
0 0 ‘Y[7:0]’ output of 2-D filter 0 1 A/D output 1 x MAX (A/D, Y[7:0])
Auto-Shutter Black Count Threshold Symbol:ASBC
Address:1Fh Bits:8
BIT: SYMBOL: TYPE: DEFAULT:
Bits 2-0 of register ASBC determine the black threshold used by the auto-shutter algorithm. The value used is 8*ASBT+3. Bits 7-3 of register ASBC determine the number of pixels below the ASBT level. When the number of pixels is less than this value, the autoshutter algorithm will adjust the black level downwards. When the number of pixels is greater than this value, the black level will be adjusted upwards.
7 6 5 4 3 2 1 0
ASBC4 ASBC3 ASBC2 ASBC1 ASBC0 ASBT2 ASBT1 ASBT0
R/W R/W R/W R/W R/W R/W R/W R/W
1 1 1 1 1 0 0 1
Auto-Shutter White Count Threshold Symbol:ASWC
Address:20h Bits:8
BIT: 7 6 5 4 3 2 1 0 SYMBOL: TYPE: DEFAULT:
The number of pixels above the white level is compared to the ASWC value to determine the direction that the shutter value should be changed.
ASWC7 ASWC6 ASWC5 ASWC4 ASWC3 ASWC2 ASWC1 ASWC0
R/W R/W R/W R/W R/W R/W R/W R/W
1 0 0 0 0 0 0 0
26 201-0000-033 Rev 1.0, 6/2/99
Page 27
CHRONTEL CH5101A
Electronic Shutter Length Extended Value Symbol: ESLE
Address:21h Bits:5
BIT: 7 6 5 4 3 2 1 0 SYMBOL: TYPE: DEFAULT:
The ESLE register, combined with the ESLH and ESLL registers, determine the length of the electronic shutter.
Miscellaneous Register 2 Symbol:MISC2
ESLE4 ESLE3 ESLE2 ESLE1 ESLE0
R/W R/W R/W R/W R/W
0 0 0 0 0
Address:22h Bits:7
BIT: SYMBOL: TYPE: DEFAULT:
Bit 0 (Master Clock Frequency) of register MISC2 refers to the CH5101 the master clock (XO) frequency. A 0 should be written to this location when the master clock is 24MHz. A 1 should be written to this location when the master clock is 27MHz. When modes four or five are selected (M[2:0] = 4,5), the master clock must be 27MHz.
Bit 1 (Data Valid Control) of register MISC2 selects whether or not the CLKOUT signal is gated. When this bit is a 0, the CLKOUT pin will produce a continuous clock output signal. When bit DVC is a 1, the CLKOUT will be gated, and will be active when active data is being output from the CH5101, and inactive when non-active data is present at the outputs.
Bit 2 (CLKOUT Polarity) of register MISC2 selects the polarity of the CLKOUT signal. A 0 in this location means output data has been latched with the positive edge of the CLKOUT signal. A 1 in this location means output data has been latched with the negative edge of the CLKOUT signal.
Bit 3 (A/D Direct Output) of register MISC2 selects whether the output signal is directly from the A/D converter or after the datapath postprocessing. In both cases, the relationship between the Hsync, Vsync and active video will remain the same. When a 0 is written to this location, the Y[7:0] will output luma data from the datapath circuitry. When a 1 is written to this location, the Y[7:0] pins will contain the A/D data directly with no postprocessing. If 8-bit output mode is selected, the A/D output will be multiplexed with the decimal value 128 to enable connection to an 8-bit video encoder resulting in a black and white image.
7 6 5 4 3 2 1 0
RENB Reserved Reserved Reserved ADDO CLKOUTP DVC MCF
R/W R/W R/W R/W R/W R/W R/W R/W
0 0 0 1 PUD5* 0 0 1
Bit 7 (RENB) of register MISC2 enables the refresh circuitry of the DRAM. A zero in this location allows refresh of the memories to be performed. A 1 in this location prevents the refresh.
201-0000-033 Rev 1.0, 6/2/99 27
Page 28
CHRONTEL CH5101A
Miscellaneous Register 3 Symbol:MISC3
Address:23h Bits:6
BIT: 7 6 5 4 3 2 1 0 SYMBOL: TYPE: DEFAULT:
Bits 0-3 (Clock Delay) of register MISC3 determine the clock delay between the analog and digital clocks. The recommended value is 9
Bit 7 (A/D Full Scale Range) of register MISC3 changes the full scale range of the AD converter. A 0 in this location sets the A/D full scale range at + 1 volt. A 1 in this location sets the A/D full scale range at +0.25 volt. This bit can be combined with the PSHG[2:0] to form a 4-bit control.
Power Down Register Symbol:PD
ADFSR Reserved Reserved Reserved CKDLY3 CKDLY2 CKDLY1 CKDLY0
R/W R/W R/W R/W R/W R/W R/W R/W
0 0 1 1 1 0 0 1
Address:24h Bits:3
BIT: SYMBOL: TYPE: DEFAULT:
Bits 2-0 of register PD are used to power down portions of circuitry during test modes. These bits should always be set to zero during normal operation.
Bit 4 of register PD is used to perform a software reset on the device. It is logically AND’d with the power on reset signal. The output of this AND’ing will be used to reset all circuitry in the CH5101, except for the ResetB bit itself and the IIC state machines. ResetB and the IIC state machines are reset by the power on reset signal only.
7 6 5 4 3 2 1 0
ResetB Reserved PD2 PD1 PD0
R/W R/W R/W R/W R/W
1 0 0 0 0
Address Register Symbol:AR
Address:26h Bits:8
BIT: SYMBOL: TYPE: DEFAULT:
Register AR is the CH5101 address register, which holds the address of the register currently being accessed.
7 6 5 4 3 2 1 0
AR7 AR6 AR5 AR4 AR3 AR2 AR1 AR0
R R R R R R R R
0 0 0 0 0 0 0 0
28 201-0000-033 Rev 1.0, 6/2/99
Page 29
CHRONTEL CH5101A
Electrical Specifications
Table 13. Absolute Maximum Ratings
Symbol Description Min Typ Max Units
VDD relative to GND Input voltage of all digital pins
TSTOR Storage temperature - 65 150 °C
TJ
TVPS
Junction temperature Vapor phase soldering (one minute)
1
Notes:
1 Stresses greater than those listed under absolute maximum ratings may cause permanent damage to the device.
These are stress ratings only. Functional operation of the device at these or any other conditions above those indicated under the normal operating condition of this specification is not recommended. Exposure to absolute maximum rating conditions for extended periods may affect reliability.
2 The device is fabricated using high-performance CMOS technology. It should be handled as an ESD sensitive
device. Voltage on any signal pin that exceeds the power supply voltage by more than +0.5V can induce destructive latch.
- 0.5 7.0 V
GND - 0.5 Vdd + 0.5 V
150 °C 220 °C
Table 14. Recommended Operating Conditions
Symbol Description Min Typ Max Unit
DV AV T
DD DD
A
Digital supply voltage 4.75 5.00 5.25 V Analog supply voltage 4.75 5.00 5.25 V Ambient operating temperature 0 25 40 C
Table 15. Digital Inputs/Outputs
Symbol Description Test Condition @TA= 25°C Min Typ Max Unit
Voh Vol Vih Vil Ilk
Output high voltage Ioh =.400 mA 2.8 Output low voltage Iol = 3.2 mA 0.4 V Input high voltage 3.4 VDD V Input low voltage GND 0.8 V Input leakage current -10 10 µA
Table 16. Timing Characteristics
Symbol Description Min Typ Max Unit
t
VSW
t
HSW
t
HD
t
P
t
PH
t
PH
t
SP
t
HP
Vertical sync pulse width 2 Horizontal sync pulse width 64 MCLK Horizontal and vertical sync delay from clock 2 10 nS CLKOUT period (varies with mode and output format) 37 148.2 nS CLKOUT high time 14.8 89 nS CLKOUT low time 14.8 89 nS CLKOUT to pixel data setup time 2 ns CLKOUT to pixel data hold time 2 ns
Lines
V
201-0000-033 Rev 1.0, 6/2/99 29
Page 30
CHRONTEL CH5101A
t
VS*
VSW
HS*
CLKOUT
Y[7:0]
CRS
t
HSW
t
HD
128
Y0 128
t
P
t
SP
t
hP
t
Ph
t
PL
Y1
128
Figure 13: Timing Diagram (M[2:0] = 1, OF = 1, H Start = 0)
Note: The output pixel Y0 will be delayed by 2 times the value of the HStart register +1 CLKOUT cycles, if HStart is non-zero.
t
VS*
HS*
t
HSW
VSW
CLKOUT
Y
CRS
t
HD
Y0
Y1
Y2 Y3
Figure 14: Timing Diagrams (M[2:0] = 1, OF = 0, HStart = 0)
30 201-0000-033 Rev 1.0, 6/2/99
Page 31
CHRONTEL CH5101A
t
VS*
VSW
HS*
CLKOUT
Y[7:0]
CRS
t
HSW
t
HD
128
Y0 128
Y0i
Figure 15: Timing Diagram (M[2:0] = 4 or 5, OF = 1)
Note: See the HStart register description for the relationship between HS* and the first active data (Y0)
T
Blank
VSW
Line 1
Line 2
Line 4 Line 5Line 3 Line 6
Line
285
Line
286
Line
287
Line
288
Blank
VS*
Line #
Line 1
128
Line 2
Figure 16: Vertical Sync to Video Timing - ELFA = 1
Note: when ELFA = 0, the one blank line following the falling edge of VS* is increased to the value from the Vstart register.
T
H
VH*
Line #
SW
BlankBlank
BlankBlankBlank Blank 128 Y0 Y1 128 Y2128
Figure 17: Horizontal Sync to Video Timing
Note: The number of blank pixels from the leading edge of HS* to the first active pixel is determined from the HSTART register.
201-0000-033 Rev 1.0, 6/2/99 31
Page 32
CHRONTEL CH5101A
ORDERING INFORMATION
Part number Package type Number of pins Voltage supply
CH5101A-L LCC 52 5V
CH5101A-Q PQFP 52 5V
Chrontel
2210 O’Toole Avenue
San Jose, CA 95131-1326
Tel: (408) 383-9328
Tax: (408) 383-9338
www.chrontel.com
Email: sales@chrontel.com
1998 Chrontel, Inc. All Rights Reserved. Chrontel PRODUCTS ARE NOT AUTHORIZED FOR AND SHOULD NOT BE USED WITHIN LIFE SUPPORT SYSTEMS OR NUCLEAR FACILITY APPLICATIONS WITHOUT THE
SPECIFIC WRITTEN CONSENT OF Chrontel. Life support systems are those intended to support or sustain life and whose failure to perform when used as directed can reasonably expect to result in personal injury or death. Chrontel reserves the right to make changes at any time without notice to improve and supply the best possible product and is not responsible and does not assume any liability for misapplication or use outside the limits specified in this document. We provide no warranty for the use of our products and assume no liability for errors contained in this document. Printed in the U.S.A.
32 201-0000-033 Rev 1.0, 6/2/99
Loading...