| поискавой системы для электроныых деталей |
|
LM9833 датащи(PDF) 22 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
LM9833 датащи(HTML) 22 Page - National Semiconductor (TI) |
|
22 / 42 page ![]() 22 www.national.com 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. 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 pn indicates the original pixel sequence, i.e p0, p1, p2, p3... 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- Pixel OUT Pixel IN coefficient – = Pixel OUT Pixel IN coefficient 16384 --------------------------- ⋅ = 12MSBs of 16 bit Output 0 255 0 4095 Figure 5: Gamma Table Pixel Depth bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 8b7 p0 b6 p0 b5 p0 b4 p0 b3 p0 b2 p0 b1 p0 b0 p0 4b7 p0 b6 p0 b5 p0 b4 p0 b7 p1 b6 p1 b5 p1 b4 p1 2b7 p0 b6 p0 b7 p1 b6 p1 b7 p2 b6 p2 b7 p3 b6 p3 1b7 p0 b7 p1 b7 p2 b7 p3 b7 p4 b7 p5 b7 p6 b7 p7 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 8b7 p1 b6 p1 b5 p1 b4 p1 b3 p1 b2 p1 b1 p1 b0 p1 4b7 p2 b6 p2 b5 p2 b4 p2 b7 p3 b6 p3 b5 p3 b4 p3 2b7 p4 b6 p4 b7 p5 b6 p5 b7 p6 b6 p6 b7 p7 b6 p7 1b7 p8 b7 p9 b7 p10b7 p11b7 p12b7 p13b7 p14b7 p15 Figure 6: Packing Multiple Pixels Into One Word MSB 15141312 11 10 9 8 b15 b14 b13 b12 b11 b10 b9 b8 LSB 765 432 10 b7 b6 b5 b4 b3 b2 b1 b0 Figure 7: 16 Bit Output Mode Data Format Applications Information (Continued) |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |