lm9831 National Semiconductor Corporation, lm9831 Datasheet - Page 31

no-image

lm9831

Manufacturer Part Number
lm9831
Description
42-bit Color, 1200dpi Usb Image Scanner
Manufacturer
National Semiconductor Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
lm9831CCV
Manufacturer:
NS/国半
Quantity:
20 000
Part Number:
lm9831CCVJD
Manufacturer:
TI
Quantity:
4 425
method of reading and writing them, called the DataPort. Four
addresses in the Configuration Register are used to implement
this feature, as shown in Figure 38.
The DataPort allows the user to select a memory block (gamma,
gain coefficient, or offset coefficient) and color (red, green, or
blue) to be read from or written to, by writing to Configuration
Register Address 3.
The starting address of that block (usually 0) is written into the
DataPort Address register (at Configuration Register Addresses
4 and 5). Bit D6 of register 4 should also be set to a 0 or a 1 to
indicate whether the DataPort will be read from (D6 = 1) or written
to (D6 = 0) in subsequent operations. This is required so the
LM9831 can prefetch the data for faster access. The DataPort
Address is automatically incremented after every word (2 bytes)
of Offset, Shading, or Gamma data is read/written.
Once the memory block, color, and starting address are written, a
series of reads or writes to the DataPort will read from or write to
the selected memory block at maximum speed.
Registers 4 and 5 should always be written to after Register 3 has
been changed.
Reading and writing the DataPort should only be done when the
LM9831 is not scanning (Register 07 = 0).
6.1.1 DataPort Type and Color
These 3 bits determine which memory block (gamma, gain, or off-
set coefficients, Figure 39) and which color of that memory block
(red, green, or blue, Figure 40) is to be read from or written to.
7
-
-
-
-
7
-
-
-
-
Configuration
6
-
-
-
-
6
-
-
-
-
Register
Address
Figure 39: DataPort Target Pointer
Figure 40: DataPort Color Pointer
5
-
-
-
-
5
-
-
-
-
3
4
5
6
4
-
-
-
-
4
-
-
-
-
Figure 38: DataPort
0
0
1
1
-
-
-
-
3
3
0
1
0
1
-
-
-
-
2
2
DataPort
DataPort
DataPort
DataPort
Address
Address
Target/
(MSB)
Name
(LSB)
Color
0
0
1
1
1
1
-
-
-
-
0
1
0
1
0
0
-
-
-
-
b13 - b8
Undefined
Undefined
b7 - b0
b7 - b0
b3- b0
Gamma
Bits
Green
Offset
Color
Type
Gain
Blue
Red
31
6.1.2 DataPort Address
This 14 bit register (at Configuration Register addresses 4 and 5)
determines what the starting address is for the read/write opera-
tion. This address is automatically incremented after every 2 byte
word read/write operation to the actual DataPort. For the gamma
table the range is 0 to 4093. For the Gain and Offset Coefficients
this range is 0 (corresponding the first valid pixel as programmed
in the Valid Pixels Start register) to 16383 (the maximum number
of image pixels). If reads or writes continue past 4093 or 16383,
the DataPort address counter wraps back around to 0 and contin-
ues counting.
6.1.3 DataPort
The DataPort is the 8 bit register (Configuration Register address
06) where the data is sequentially read from or written to. The for-
mats for Offset, Gain, and Gamma data are shown in Figures 41,
42, and 43.
7.0 The USB Interface
The LM9831 uses the USB (Universal Serial Bus) interface.
Refer to the LM9831 software package for details on USB com-
munication.
7.1 The USB Pins
Data is received and transmitted through the D+ and D- pins.
These are 3V differential signals. Figure 44 shows the recom-
mended circuitry between the LM9831’s D+ and D- pins and the
scanner’s USB connector.
b13 b12 b11 b10
b15 b14 b13 b12 b11 b10
b5
b7
b7
7
7
7
0
b4
b6
b6
6
6
6
0
Figure 43: DataPort Gamma Format
b3
b5
b5
5
5
5
0
Figure 41: DataPort Offset Format
Figure 42: DataPort Gain Format
b2
b4
b4
4
4
4
0
b11 b10
b1
b3
b3
b9
3
3
3
b8
b0
b2
b2
2
2
2
b7
b9
b1
b9
b1
1
0
1
1
b6
b8
b0
b8
b0
0
0
0
0
www.national.com
Second Byte
Second Byte
Second Byte
First Byte
First Byte
First Byte
Type
Type
Type

Related parts for lm9831