lm9832 National Semiconductor Corporation, lm9832 Datasheet
lm9832
Available stocks
Related parts for lm9832
lm9832 Summary of contents
Page 1
... N LM9832 42-Bit Color, 1200dpi USB Image Scanner General Description The LM9832 is a complete USB image scanner system on a sin- gle IC. The LM9832 provides all the functions (image sensor control, illumination control, analog front end, pixel processing function image data buffer/DRAM controller, microstepping motor controller, and USB interface) necessary to create a high performance color scanner ...
Page 2
... D2 20 D13 D12 D11 Ordering Information Commercial (0°C T LM9832CCVJD +70°C) Package A VJD100A 100 Pin Thin Quad Flatpac 2 75 ø1 74 TR2 73 TR1 72 MISC I MISC I MISC I/O 4 ...
Page 3
... D+ pullup resistor. DRAM D0 (LSB) -D15 Digital Inputs/Outputs. This is the 16 bit data (MSB) path between the external DRAM and the LM9832. RD Digital Output. Read signal to external DRAM. WR Digital Output. Write signal to external DRAM. A0-A9 Digital Outputs. Address pins for external DRAM ...
Page 4
... V (3) This is the positive supply pin for the digital DRAM supply for the LM9832’s external DRAM I/O. It also powers the and B stepper motor outputs. It should be connected supply and bypassed to the closest DGND pin with a 0.1µF monolithic capacitor. ...
Page 5
... PGA Gain Boost Gain Gain Error at any gain (Note 13) Static Offset DAC Characteristics (Configuration Registers 38, 39, and 3A) Monotonicity Offset DAC LSB size Offset DAC Adjustment Range Operating Ratings (Notes 1 & Operating Temperature Range 6.5V LM9832VJD + -0. +0.3V V Supply Voltage A ±25mA V Supply Voltage D ±50mA V ...
Page 6
... The following specifications apply for AGND=DGND=0V, V 100%, unless otherwise noted. Boldface limits apply for T Symbol Parameter CCD/CIS Source Requirements for Full Specified Accuracy and Dynamic Range (Note 12) Sensor’s Maximum Output Signal V Amplitude before LM9832 Analog Front CCDPEAK End Saturation Analog Input Characteristics Average ...
Page 7
DC and Logic Electrical Characteristics The following specifications apply for AGND=DGND=0V 48MHz. Boldface limits apply for T CRYSTAL IN Symbol Parameter Digital Output Characteristics for D0-D15, A0-A9, RD, WR, RAS, CAS (DRAM Interface) V Logical “1” Output ...
Page 8
... Note 7: Two diodes clamp the OS analog inputs to AGND impedance of the sensor, prevents damage to the LM9832 from transients during power-up. Note 8: For best performance required that all supply pins be powered from the same power supply with separate bypass capacitors at each supply pin. ...
Page 9
Timing Diagrams 0 48MHz Internal Clock (t = 20.83ns) PERIOD A0-A9 Row Address RAS CAS RD D0-D15 Read Operation WR D0-D15 Write Operation 0 48MHz Internal Clock (t = 20.83ns) PERIOD RAS CAS Column Address ...
Page 10
... LM9832 Register Listing Registers in bold boxes are reset to that value on power-up. All register addresses are in hexadecimal. All other numbers are decimal unless otherwise noted. Address Function IMAGE BUFFER (READ ONLY) 00 Pixel (Image) Data STATUS REGISTERS (READ ONLY) 01 Image Data Available In Buffer PAPER SENSE 1 State read clears bit if edge sensitive input ...
Page 11
... When this bit is set the entire chip enters a low power state. Warning: A Standby command will stop DRAM refresh. Reset Write a 1 then reset the LM9832’s state machines. Warning: A Reset will stop DRAM refresh. MASTER CLOCK DIVIDER MCLK Divider This register sets the master clock frequency for the entire scanner ...
Page 12
... LM9832 Register Listing (Continued) Address Function HORIZONTAL RESOLUTION AND DATAMODE SETTINGS Horizontal DPI Divider This register determines the horizontal resolution of the scan. Scan resolution = Optical resolution divided by the Horizontal_DPI_Divider. Pixel Packing This register determines how many bits in each byte of data are transmitted to the host ...
Page 13
... LM9832 Register Listing (Continued) Address Function SENSOR CONTROL SETTINGS Ø1 Polarity Ø2 Polarity RS Polarity 0C CP1 Polarity CP2 Polarity TR1 Polarity TR2 Polarity Ø1 Active/Off Ø2 Active/Off RS Active/Off CP1 Active/Off 0D CP2 Active/Off TR1 Active/Off TR2 Active/Off Number of TR Pulses TR Pulse Duration 0E TR-Ø1 Guardband Duration ...
Page 14
... LM9832 Register Listing (Continued) Address Function SENSOR PIXEL CONFIGURATION 1C Optical Black Pixels Start 1D Optical Black Pixels End 1E Active Pixels Start - MSB 1F Active Pixels Start - LSB 20 Line End - MSB 21 Line End - LSB PIXEL DATA RANGE TO PROCESS 22 Data Pixels Start - MSB 23 Data Pixels Start - LSB ...
Page 15
... LM9832 Register Listing (Continued) Address Function ILLUMINATION SETTINGS Illumination Mode Controls the function of the 3 LAMP outputs: LAMP , LAMP , and LAMP Mode 0 is the Off/Reset state. Mode 1 is typically used for CCFL lamps. 29 Mode 2 is for color scanning with tri-color LEDs. ...
Page 16
... LM9832 Register Listing (Continued) Address Function DIGITAL PIXEL RATE OFFSET AND GAIN SETTINGS 3E Fixed Offset Coefficient - MSB 3F Fixed Offset Coefficient - LSB 40 Fixed Multiplier Coefficient - MSB 41 Fixed Multiplier Coefficient - LSB DIGITAL PIXEL RATE OFFSET AND GAIN/DRAM SETTINGS Shading Multiplier Multiplier Coefficient Source ...
Page 17
... LM9832 Register Listing (Continued) Address Function STEPPER MOTOR CONTROL SETTINGS n (Line Skipping) 43 Part of the “n out of m” function, consisting of registers 43, 44, and 54 (bits 3-7). m (Line Skipping) 44 Part of the “n out of m” function, consisting of registers 43, 44, and 54 (bits 3-7). Full/Microstepping Current Sensing Phases ...
Page 18
... LM9832 Register Listing (Continued) Address Function Kickstart steps (fullstepping mode) 55 Hold Current Timeout 56 Stepper Motor PWM Frequency 57 Stepper Motor PWM Set Duty Cycle PAPER SENSE SETTINGS PAPER SENSE 1: Polarity PAPER SENSE 1: Level/Edge sensitive PAPER SENSE 1: Stop Scan, High Speed Forward, and High Speed Reverse Use this input for the home sensor in flatbed scanners ...
Page 19
... LM9832 Register Listing (Continued) Address Function MISC I/O PIN SETTINGS MISC I/O 1: Input or Output MISC I/O 1: Polarity (if configured as an input) MISC I/O 1: Level/Edge sensitive (if configured as an input) MISC I/O 1: Output State (if configured as an output) Power On/USB Suspend Default: Input 59 MISC I/O 2: Input or Output MISC I/O 2: Polarity (if configured as an input) ...
Page 20
... Increments Increments N/A 0 Rising 1 Falling 0 Normal Operation 1 CDS signal is output on LAMP Write 00 to these registers 100 = LM9832 (011 = LM9831, 010 = LM9830 Write 00 to these registers 20 Value pin B www.national.com ...
Page 21
... Applications Information 1.0 OVERVIEW The LM9832 is a USB, 1200dpi, 14 bit (42 bit color) scanner-on- a-chip. The LM9832 supersedes the LM9831, providing all of the LM9831’s functionality while improving performance and adding several new features. See 12.0 CHANGES FROM THE LM9831 for a complete list of additions and enhancements. ...
Page 22
... Bit Output Mode The LM9832 also supports a 14 bit out mode. This can be used to get very accurate data for calibration or to scan a 14 gray/42 bit color image. This mode is set through register 9, bit 5. In the 14 ...
Page 23
... C B The LM9832 always counts stepper motor steps in units of microsteps. A full step is equal to four microsteps. Even when the LM9832 is in Full Step Mode counting in microsteps, and will increment the stepper motor (generating a full step) every four microsteps. The microstep Step Size is defined in units of time. These units of time are pixel periods, as defined in the horizontal pixel counter ...
Page 24
... DAC A A DAC B B Figure 11: Stepper Motor Waveform - LM9832 Signals Figure 12 shows the LM9832’s DAC voltages. The peak current through the stepper motor winding will be 0.484V/R table index is incremented every microstep (StepSize pixel peri- ods). Table A (B) A (B) Index ...
Page 25
... RAM (line “b” in Figure 17). When the scan resumes, ideally the LM9832 would send out lines “c” and after under the exact same speed and positional conditions the scanner was in before the scan paused (as indicated by the dotted line in Figure 17). ...
Page 26
... Scanner Support Functions 5.1 Illumination Control Block Scanner systems require an illumination source to supply the light to the image being scanned. This source may be white (typi- cally a fluorescent lamp), or red, green, and/or blue LEDs. There are four illumination modes in the LM9832: Illumination Description Mode LAMP ...
Page 27
... These modes are in operation whenever the chip is powered on and not in standby mode. For example, the LAMP outputs in Fig- ures 21 and 22 keep pulsing whether the LM9832 is in the Idle, High Speed Forward or Reverse, or Scanning states. This elimi- nates light amplitude variations due to the lamp/LEDs warm-up characteristics ...
Page 28
... TR1 pulse Figure 26: CIS TR1 Timing Mode 2 • To prevent sensor saturation, the LM9832 is always clocking the CCD/CIS, except when Reset or Standby (Register 7 bit 1). • There is a bit for Fake Optical Black Pixels (register 19, bit 2). ...
Page 29
... DRAMs. Because the LM9832 does not use any EDO or Fast Page Mode features, it can work with either EDO or Fast Page Mode DRAM. The LM9832 should work with most 50-60ns 256k 1Mx16 DRAM. Examples: Samsung: KM416C1000C/C-L-5, KM416C1200C/C-L-5, KM416C1004C/C-L-5, KM416C1204C/C-L-5 (5V) ...
Page 30
... Adding Function Buttons Many scanners today feature multiple buttons to select scan, copy, fax, email, etc. functions. The LM9832’s MISC I/O pins can be used for these functions. To free up MISC I/O inputs for other functions more than 6 buttons are required, you can multi- plex the buttons together ...
Page 31
... Figure 43: DataPort Gamma Format Type 7.0 The USB Interface Offset The LM9832 uses the USB (Universal Serial Bus) interface. Gain Refer to the LM9832 software package for details on USB com- Gamma munication. Undefined 7.1 The USB Pins Data is received and transmitted through the D+ and D- pins. ...
Page 32
... Reconstructing 8 bit Image Data Received By the PC When reconstructing an image from the stream of data received from the LM9832 useful to know the format of the data. The LM9832 does not perform deinterleaving on the pixel data, it comes out exactly as the sensor sends it. Deinterleaving must be performed on the host PC ...
Page 33
... PC sets the Scanning bit in the Configuration Register. • PC calculates the size of the image to be scanned in bytes, then reads bulk data from register 00 of the LM9832 until it has read the entire image. If for some reason the scan needs to be aborted, the PC writes register 07. ...
Page 34
... Bit Output Mode The LM9832’s 14 bit output mode is fully functional capable of scanning any image that the LM9832 can scan at 8 bits, and does not require any polling of register 01. 12.3 Steps to Reverse Register Increased To improve performance with some mechanical designs, the number of bits in register 50 was increased from bits ...
Page 35
... ITA Output on LAMP B The LM9832 adds 1 bit (register 29 bit 2) that, when set, will out- put the ITA (Integration Time Adjust) phase on the LAMP pin. This signal can potentially be used to turn off the illumination source during the ITA’s long integration time period. ...
Page 36
... Choosing the MCLK Divider (Register 0x08) The datarate coming out of the Horizontal DPI Divider must be 1.1MHz or less faster than this, the LM9832 will not oper- ate correctly. Since the maximum USB datarate is about 1MHz, this does not impact the performance of the scanner in any way. ...
Page 37
... In the LM9830, Offset and Gain coefficients were combined to make one 16 bit word, written to register bytes. In the LM9832, Offset bit word, and Gain bit word. Offset and Gain data each have a separate dataport address. Register 5 will auto increment after 2 bytes are written to register 6 in Offset mode or Gain mode (reg03b1 = 0) ...
Page 38
... Q Where is calibration done? A Calibration is done on the host computer. Q Does the LM9832 support 800dpi sensors? 400dpi? XXXdpi? A Yes. The LM9832 will support any sensor maximum of 16383 pixels x 3 colors. Available horizontal resolutions are calculated by the optical resolution of the scanner divided by the HDPI_divider. ...
Page 39
Digital Block Diagram 39 www.national.com ...
Page 40
Analog Front End Block Diagram 40 www.national.com ...
Page 41
Stepper Motor Current Controller Block Diagram 41 www.national.com ...
Page 42
... National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications. NS Package Number VJD100A Order Number LM9832CCVJD 2. A critical component is any component of a life support device ...