
14
http://www.national.com
COMMAND REGISTER
07
Command Register
This register is used to start and end a scan.
It is also used to home the sensor in a
flatbed scanner or eject the image in a
sheetfed scanner.
0 0
Idle - Stops motor (A, B, A, B = 0),
completes current line of data (if scanning).
Note: CCD/CIS clocks continue clocking.
High Speed Forward - Moves motor forward at a
speed determined by the Fast Feed Step Size
(registers 48 and 49).
High Speed Reverse - Moves motor backward at a
speed determined by the Fast Feed Step Size
(registers 48 and 49).
Start Scan - Resets the LM9830’s data pointers and
starts an image scan.
Operating
0 1
1 0
1 1
Standby
When this bit is set the crystal oscillator
continues to run but all internal clock signals
are frozen. The analog circuitry is turned off
to reduce power consumption.
Reset
(Host must write a 1 then a 0 to enter
and exit the reset state)
0
1
Low Power Standby Mode
0
1
Normal Operation
Resets the LM9830
MASTER CLOCK DIVIDER
08
MCLK Divider
This register sets the master clock frequency
for the entire scanner.
f
MCLK
= f
CRYSTAL
/MCLK_Divider
f
ADC
= f
MCLK
/8
HORIZONTAL RESOLUTION AND DATAMODE SETTINGS
0 0 0 0 0 0 ÷1.0
0 0 0 0 0 1 ÷1.5
0 0 0 1 1 0 ÷4
a a a a a a ÷ ((aaaaaa/2)+1)
1 1 1 1 1 0 ÷32.0
1 1 1 1 1 1 ÷32.5
09
Horizontal DPI Divider
This register determines the horizontal
resolution of the scan.
Scan resolution = Optical resolution divided
by the Horizontal_DPI_Divider.
0 0 0 ÷1
0 0 1 ÷1.5
0 1 0 ÷2
0 1 1 ÷3
1 0 0 ÷4
1 0 1 ÷6
1 1 0 ÷8
1 1 1 ÷12
Pixel Packing
This register determines how many bits in
each byte of data are transmitted to the host
when DataMode = 0
DataMode
When DataMode = 0, the pixel data is fully
processed, going through the Offset,
Shading, Horizontal DPI Adjust, Gamma,
and Pixel Packing blocks.
0 0
0 1
1 0
1 1
1 bit/pixel (1 bit grayscale/3 bit color)
2 bits/pixel (2 bit grayscale/6 bit color)
4 bits/pixel (4 bit grayscale/12 bit color)
8 bits/pixel (8 bit grayscale/24 bit color)
1, 2, 4, or 8 bit image data,
as determined by the Pixel Size setting.
When DataMode = 1, 10 bit data is extracted
following the Horizontal DPI Adjust stage.
Gamma and any other post processing must
be done by the host.
When DataMode = 1, Horizontal DPI Adjust
= 0, and the Offset and Gain coefficients are
set to 0, the 12 bit data straight from the
ADC is transmitted. Offset, Shading,
Gamma and any other post processing must
be done by the host.
0
1
10 bit image data - sent in 2 bytes:
X X X X 9 8 7 6- 5 4 3 2 1 0 X X
12 bit image data - sent in 2 bytes:
X X X X 11 10 9 8 - 7 6 5 4 3 2 1 0,
Horizontal DPI Divider = 0.
Address
Function
D
7
D
6
D
5
D
4
D
3
D
2
D
1
D
0
Value