LM9833CCVJD/NOPB National Semiconductor, LM9833CCVJD/NOPB Datasheet - Page 22

IC USB IMAGE SCAN 48BIT 100-TOFP

LM9833CCVJD/NOPB

Manufacturer Part Number
LM9833CCVJD/NOPB
Description
IC USB IMAGE SCAN 48BIT 100-TOFP
Manufacturer
National Semiconductor
Datasheet

Specifications of LM9833CCVJD/NOPB

Number Of Bits
16
Number Of Channels
3
Voltage - Supply, Analog
5V
Voltage - Supply, Digital
4.5 V ~ 5.5 V
Package / Case
100-TQFP, 100-VQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Power (watts)
-
Other names
*LM9833CCVJD
*LM9833CCVJD/NOPB
LM9833CCVJD
Applications Information
the external DRAM and accessed at the pixel rate. A digital sub-
tractor subtracts the 16 bit offset word (corresponding to that
pixel’s offset error) from each pixel.
The subtractor saturates at 0, i.e. if the coefficient to be sub-
tracted is greater than the ADC output code, the result is an out-
put of 0.
The offset words stored in DRAM are typically calculated by
scanning a black calibration strip at 16 bits, and storing the
results in the DRAM using the DataPort.
The offset correction equation is:
3.4 Pixel Rate Gain Correction Block
This is a digital multiplier that multiplies the output word from the
subtractor by a 16 bit digital correction coefficient corresponding
to that pixel’s gain error. The coefficients are stored in the exter-
nal RAM and accessed at the pixel rate.
The multiplier saturates at 65535, i.e. if the result of the multipli-
cation is greater than 65535, the multiplier output is 65535.
The gain equation is:
Note that a coefficient of 0 represents a gain of 0. On the LM9830
and previous parts, a coefficient of 0 represented a gain of 1. To
achieve a gain of 1, the coefficient should be set to 16384.
3.5 Gamma Correction Tables
There are 3 gamma lookup tables for R, G, and B. The input to
the table is the 12 MSBs (most significant bits) of the 16 bit pixel
data coming from the previous stage (3.4 Pixel Rate Gain Cor-
rection Block). The output is the 8 bit gamma corrected pixel
data. The tables consume 12k words (4K bytes x 16 bits, only the
8 LSBs of each word is used) of the external DRAM. Each
gamma table (red, green, and blue) can be loaded with any arbi-
trary user-defined transfer curve.
The gamma tables are loaded through the dataport (see 6.1 The
DataPort: Reading and Writing to Gamma, Offset, and Gain
Memory). The DataPort selects which color (Red, Green or Blue)
gamma table will be read from or written to.
255
0
0
12MSBs of 16 bit Output
Pixel
Pixel OUT
Figure 5: Gamma Table
OUT
=
=
Pixel
Pixel IN
IN
coefficient
-------------------------- -
coefficient
16384
(Continued)
4095
22
3.6 Pixel Packing/Thresholding Block
Some scans require only one bit per pixel (“line art” mode), others
may need only 2 or 4 bits/pixel. To increase scanning speed for
lower pixel depths, the LM9833 packs the desired MSBs of multi-
ple pixels together into 1 16 bit word, increasing the transmission
speed to the host by a factor of 2, 4, 8, or 16. Figure 6 shows how
the pixels are packed together for 8, 4, 2, and 1 bit pixel depths.
In Figure 6, “b” indicates the bit position (b7 = the most significant
and b0 = the least significant bit) of the original 8 bit pixel data,
and p
If there are not enough unpacked pixels at the end of a line to
complete the packed word for transmission, that final word is not
sent. For example, doing an 8 bit pixel rate scan with a HDPI
divider of 1 and an odd number of pixels will truncate the blue
component of the last pixel.
The gamma table in 3.5 Gamma Correction Tables allows the
user to set the threshold of each transition for various line art or
reduced pixel depth modes.
3.7 16 Bit Output Mode
The LM9833 also supports a 16 bit out mode. This can be used to
get very accurate data for calibration or to scan a 16 gray/48 bit
color image. This mode is set through register 9, bit 5. In the 16
bit output mode, the gamma and pixel packing stages are
bypassed, and the 16 bit data from the ADC is stored in DRAM,
formatted as shown in Figure 7.
The memory reserved for the gamma table is used to store image
data in the 16 bit mode. After scanning in 16 bit mode, the
gamma table must be reloaded for operation in 8, 4, 2, or 1 bit
mode.
3.8 Line Buffer
The line buffer uses the external DRAM as a FIFO line buffer to
store the pixel data (which is generated at a fixed rate, synchro-
nous to the CCD clocks) and send it back to the PC at an asyn-
chronous, unpredictable, and non-constant rate.
The LM9833 supports 2 sizes of DRAM, 256k x 16bit and 1M x
16bit. 216kbytes (108kwords) of the capacity of the DRAM is con-
Depth
Pixel
MSB
LSB
8
4
2
1
8
4
2
1
n
Figure 6: Packing Multiple Pixels Into One Word
indicates the original pixel sequence, i.e p
Figure 7: 16 Bit Output Mode Data Format
b7 p
b7 p
b7 p
b7 p
b7 p
b7 p
b7 p
b7 p
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
b15
bit
15
15
b7
7
0
0
0
0
1
2
4
8
b6 p
b6 p
b6 p
b7 p
b6 p
b6 p
b6 p
b7 p
b14
bit
14
14
b6
6
0
0
0
1
1
2
4
9
b7 p
b5 p
b5 p
b7 p
b7 p
b5 p
b5 p
b7 p
b13
bit
13
13
b5
5
10
0
0
1
2
1
2
5
b7 p
b4 p
b4 p
b6 p
b7 p
b4 p
b4 p
b6 p
b12
bit
12
12
b4
4
11
0
0
1
3
1
2
5
b7 p
b3 p
b7 p
b7 p
b7 p
b3 p
b7 p
b7 p
b11
bit
11
11
b3
3
12
0
1
2
4
1
3
6
b7 p
b2 p
b6 p
b6 p
b7 p
b2 p
b6 p
b6 p
b10
bit
10
10
b2
2
13
0
1
2
5
1
3
6
www.national.com
b7 p
0
b1 p
b5 p
b7 p
b7 p
b1 p
b5 p
b7 p
, p
bit
b9
b1
9
9
1
1
14
, p
0
1
3
6
1
3
7
b7 p
b0 p
b4 p
b6 p
b7 p
b0 p
b4 p
b6 p
2
, p
bit
b8
b0
8
8
0
3
15
0
1
3
7
1
3
7
...

Related parts for LM9833CCVJD/NOPB