GL841 USB 2.0 2-in-1 Scanner Controller Genesys Logic, Inc. GL841 High Speed USB 2.0 Two-in-one Scanner Controller SPECIFICATION Ver. 1.7 Aug. 14, 2002 Genesys Logic, Inc. 10F, No.11, Ln. 155, Sec. 3, Peishen Rd., Shenkeng, Taipei, Taiwan Tel: 886-2-2664-6655 Fax: 886-2-2664-5757 http://www.genesyslogic.com Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller INDEX 1 GENERAL DESCRIPTION................................................................................................................ 3 2 FEATURES........................................................................................................................................... 3 3 SYSTEM BLOCK DIAGRAM ........................................................................................................... 4 4 FUNCTION BLOCK DIAGRAM....................................................................................................... 6 5 HARDWARE DESCRIPTION ........................................................................................................... 7 6 Application Description ..................................................................................................................... 14 7 COMMAND SET DESCRIPTION................................................................................................... 24 8 Package................................................................................................................................................ 49 9 Revision History.................................................................................................................................. 50 2 Version 1.6 GL841 USB 2.0 2-in-1 Scanner Controller 1 GENERAL DESCRIPTION Genesys Logic's single-chip GL841 (GeneScan™ series) is a high speed, high performance, low cost and rich scalability controller for scanner. It successfully integrates scanner function ASIC and USB 2.0 interface controller into one single-chip. With its high performance design architecture, GL841 is not only ready for supporting CIS or CCD image sensors (600dpi,1200dpi or 2400dpi resolution) that are used in flatbed or transparency scanners, but is able to cowork with uni-polar or bi-polar stepping motors. Advanced features of GL841 include five motor acceleration/ deceleration curve tables for high speed motor moving. 2 FEATURES Highly integrated scanner controller chip. (2-in-1; Scanner Controller and USB 2.0 Interface) USB 2.0 High Speed (480Mbit) compliance. (USB 2.0 High Speed logo certified) Design for sheetfed, flatbed and transparency scanner. 12 Mhz Low frequency clock input required for better EMI. Flexible 3.3V/5V power selection for pad I/O. Adjustable working speed for different usage. Fast operation speed. (0.3us/pixel, in 40MHz working clock) It costs only 12 seconds for 600dpi A4 size color scanning Available sensor types: 600, 1200 and 2400dpi color CIS or CCD. Support linear or stagger CCD , such as NEC , Toshiba or Sony CCD Support 48-Bits color (16-Bits gray level ) scanning. Support color, fine Gray, fast gray and fast B/W scan for CCD. Support color,, gray, true gray and B/W scan for CIS. Support three scanning types :pixel by pixel(pixel rate), line by line(line rate) and RGB line by turns(line rate). 16 bits white/dark shading and 16-to-8 bits Gamma correction. Support digital average and hardware deletion pixel function for speeding up low resolution scan. Support hardware deletion type for DPI function (2400 to 1 DPI ,1 DPI decrement) . 3 Version 1.6 GL841 USB 2.0 2-in-1 Scanner Controller Programmable threshold level for B/W. Exposure time is adjustable (1 pixel time increment step). Scan width (scan area) control for horizontal line( 1 pixel increment step). Support 256K*16, 256K*16*2 and 1M*16 bits EDO-DRAM. Support 5 acceleration/deceleration motor tables for detailed controllable high speed motor moving. Support controllableg bipolar motor in full, half and quarter steps moving. Support controllable uni-polar motor in full and half steps moving. Build-in PWM control phase for uni-polar motor. Programmable dummy lines to resolve start/stop (discontinuous) problem. Watch dog protect for lamp, motor and ASIC. Lamp timeout (sleeping) control. Support 16 GPIO pins and 2 GPO pins. Output motor trigger signal under scanning for ADF. 2 Output ports for lamp(include flatbed and transparency with PWM) control. Input port for home sensor. Power on check status. Support LED Blinking. Support Back Scanning. 3 SYSTEM BLOCK DIAGRAM A. USB 2.0 System Block Diagram 4 Version 1.6 GL841 USB 2.0 2-in-1 Scanner Controller IO Device GL841 Host (USB2.0 Interface + Scanner ASIC Motor Driver Controller) Two-In-One Controller CCD/CIS 12 MHz DRAM 5 AFE Version 1.6 GL841 USB 2.0 2-in-1 Scanner Controller 4 FUNCTION BLOCK DIAGRAM HOST USB 2.0 EPP Data Data Black & CCD/CIS CCD/ Controller Circuit Interface Packing White control CIS Register Write Gamma A/D data Front- & Status read Correcion latch End(16 Bits) Motor Motor Driver control Scanner Flow DPI Control control GPIO I/O control 12MHz PLL Clk-gen watchdog Motor White Dark Average Moving Shading Shading Control Table process process Shading ,Image and Motor Table DRAM (256K*16*1) , (256K*16*2) or (1M*16) 6 Version 1.6 GL841 USB 2.0 2-in-1 Scanner Controller 5 5.1 HARDWARE DESCRIPTION Pins Assignment & Mode Definition: ASIC I/O Cell SC+USB2.0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 TSTSEL[1:0]= 0 AVCC1 X2 X1 AGND1 DVCC1 DGND1 GPIO1 GPIO2 GPIO3 GPIO4 GPIO5 GPIO6 GPIO7 GPIO8 GPIO9 GPIO10 GPIO11 GPIO12 GPIO13 GPIO14 VccCore1 GndCore1 GPIO15 GPIO16 Vccio1 Gndio1 MTR_SEL0 MTR_SEL1 LAMP_SW XPA_SW LED_B MT_PH0 MT_PH1 MT_PH2 MT_PH3 MT_PH4 MT_PH5 MT_PH6 MT_PH7 OP0 OP1 OP2 OP3 OP4 OP5 P I/O I P P P I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O P P I/O I P P I I O O O O O O O O I/O O O I I I I I I hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16dhk hbd16dhk hbd16dhk hbd16dhk hbd16dhk hbd16rsc hbd16rsc hbd16rsc hbd16dhk hbd16dhk hbd16dhk hbd16dhk hbd16dhk hbd16dhk Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 OP6 OP7 Vccio2 Gndio2 SDO SDI VccCore2 GndCore2 SCLK SEN BSMP VSMP MCLK CCD_TGX CCD_CK1X CCD_CK3X CCD_CPX Vccio3 Gndio3 CCD_RSX HOME CCD_CK2X CCD_CK4X CCD_TGG CCD_TGB CASY RASY NOEY Vccio4 Gndio4 NWEY CASX RASX NOEX NWEX ABUS0 VccCore3 GndCore3 ABUS1 ABUS2 ABUS3 ABUS4 ABUS5 ABUS6 Vccio5 Gndio5 ABUS7 ABUS8 ABUS9 DBUS0 DBUS1 I I P P I O P P O O O O O O O O O P P O I O O O O O O O P P O O O O O O P P O O O O O O P P O O O I/O I/O hbd16dhk hbd16dhk hbd16dhk hbd16dhk hbd16rsc hbd16dhk hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16uhk hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16rsc hbd16dhk hbd16dhk 8 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller Note: 5.2 97 DBUS2 I/O hbd16dhk 98 DBUS3 I/O hbd16dhk 99 DBUS4 I/O hbd16dhk 100 DBUS5 I/O hbd16dhk 101 DBUS6 I/O hbd16dhk 102 DBUS7 I/O hbd16dhk Vccio6 P 103 P 104 Gndio6 105 DBUS8 I/O hbd16dhk 106 DBUS9 I/O hbd16dhk 107 DBUS10 I/O hbd16dhk 108 DBUS11 I/O hbd16dhk 109 DBUS12 I/O hbd16dhk 110 DBUS13 I/O hbd16dhk 111 DBUS14 I/O hbd16dhk 112 DBUS15 I/O hbd16dhk P 113 VccCore4 P 114 GndCore4 I 115 TSTSEL0 hbd16dhk I 116 TSTSEL1 hbd16dhk 117 EXTRST_ I hbd8rteu 118 SUSPND O hbd8rted P 119 DVCC0 P 120 DGND0 121 RPU ? 122 AVDD P 123 DPF I/O 124 DPH I/O 125 DMF I/O 126 DMH I/O P 127 AGND 128 RREF ? hbd16dhk is internal pulled down ; hbd16uhk is internal pulled up ; hbd16* is 16mA ; hbd8* is for 8mA Pin Descriptions : Support IO Ports GPIO1~16 B General Purpose Input/ Output MT_PH0~7 O Bi-polar (3955): MT_PH7=PHASE_A MT_PH6=PHASE_B MT_PH5=D2A MT_PH4=D1A MT_PH3=D0A MT_PH2=D2B MT_PH1=D1B MT_PH0=D0B Bi-polar (2916 or 6219): MT_PH5=PHASE1 MT_PH4=PHASE2 MT_PH3=I11 MT_PH2=I01 MT_PH1=I12 9 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller MT_PH0=I02 Uni-polar(2003) : MT_PH3=PHASE A MT_PH2=PHASE B MT_PH1=PHASE /A MT_PH0=PHASE /B MOTORTGO(GPIO13) O Output motor trigger for ADF scanning or GPIO13. HOME I Sense carriage home position CCD/CIS Control Signals CCD_CK1X O CCD Shift register clock1 or CIS clock output CCD_CK2X O CCD Shift register clock2 or CIS clock output CCD_CPX O CCD Clamp gate clock or CIS clock output CCD_RSX O CCD Reset gate clock or CIS clock output CCD_TGX O CCD Transfer gate clock for R channel or CIS Line start pulse CCD_TGG O CCD Transfer gate clock for G channel CCD_TGB O CCD Transfer gate clock for B channel CCD_CK3X O CCD Shift register clock3 CCD_CK4X O CCD Shift register clock4 LAMP_SW O Flatbed lamp power control or CIS Red LED array control XPA_SW O Transparency lamp power control or CIS Green LED array control LED_B O CIS Blue LED array control FRONT-END OP0~7 I AFE digital data input. SEN/SLOAD O Serial interface load pulse. SCLK O Serial interface clock output. SDI O Serial data output. SDO I Serial data input. BSMP/CDSCLK1 O Wolfson type : Video sample synchronization pulse. Analog Device : CDS Reference level sampling clock. VSMP/CDSCLK2 O Wolfson type : Video sample synchronization pulse. Analog Device : CDS Data level sampling clock. MCLK/ADCCLK O Wolfson type : Master clock. Analog Device : A/D Converter sampling clock. DRAM DBUS0~15 B DRAM data bus ABUS0~9 O DRAM address bus RASX O DRAM RAS signal of first memory chip CASX O DRAM CAS signal of first memory chip NOEX O DRAM OE(output enable) signal of first memory chip NWEX O DRAM WE signal of first memory chip RASY O DRAM RAS signal of second memory chip CASY O DRAM CAS signal of second memory chip NOEY O DRAM OE(output enable) signal of second memory chip NWEY O DRAM WE signal of second memory chip Miscellaneous 10 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller TSTSEL0 I To select mode: Normal mode = 00 TSTSEL1 MTR_SEL1 I MTR_SEL0 MTR_SEL[1:0]=10 select Bi_polar 3955 MTR_SEL[1:0]=01 select Bi_polar 2916 OR 6219 MTR_SEL[1:0]=00 select Uni_polar 2003 IX1 I Clock input for crystal (12MHz) IOX2 O Clock output for crystal EXTRST_ I Hardware reset input POWER AVDD,AVCC1 P Analog power input for USB2.0 transceiver 3.3V AGND,AGND1 P Analog ground input for USB2.0 transceiver DVCC0,DVCC1 P Digital power input for USB2.0 controller 3.3V DGND0,DGND1 P Digital ground input for USB2.0 controller. VccCore1,VccCore2,VccCore3, P Digital power input for scanner controller logic core 3.3V P Digital ground input for scanner controller. VccIO1 P for PIN7~PIN39 3.3V or 5V VccIO2 P For PIN40~PIN58 3.3V or 5V VccIO3 P for PIN59~PIN66 3.3V or 5V VccCore4,DVCC1 GndCore1,GndCore2,GndCore3, GndCore4,DGND1,DGND0 GndIO1,GndIO2,GndIO3,GndIO4, GndIO5,GndIO6 VccIO4, VccIO5,VccIO6 P for PIN67~116 3.3V or 5V VCC0 P for USB2.0 Pads 3.3V USB Interface SUSPND O USB suspend indicator RPU - 3.3V Pull up control for DPF DPF B Positive USB differential data (Full Speed) DPH B Positive USB differential data (High Speed) DMF B Negative USB Differential Data (Full Speed) DMH RREF B - Negative USB Differential Data (High Speed) 510Ohm reference resistor input 11 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 5.3 Electrical Characteristics: 5.3.1 Absolute Maximum Ratings (Voltages referenced to GND) SYMBOL Description DVCC0 DVCC1 AVDD AVCC1 VccCore1~4 VccIO1~6 VI VI/O VAI/O VI/OZ TSTQ Tamb VESD MIN MAX DC supply voltage -0.5V +3.6V DC supply voltage -0.5V DC input voltage DC input voltage range for I/O DC input voltage for USB D+/D- pins DC voltage applied to outputs in High Z state Storage temperature range Operating ambient temperature static discharge voltage -0.5V -0.5V -0.5V -0.5V -60°C 0°C 4000V +3.6V or +5.5V VCC+0.5V VCC+0.5V VCC+0.5V VCC+0.5V +150°C 70°C Note : VCC : VccCore,VccIO,DVCC,AVDD or AVCC1 5.3.2 DC Characteristics (Digital Pins) : 3.3 V Logic Core or Pads SYMBOL Description PD DVCC0 DVCC1 AVDD AVCC1 VccCore1~4 VccIO1~6 IO VIL VIH VTLH VTHL VHYS VOL VOH IOLK Power Dissipation Power Supply Voltage MIN TYP MAX UNIT 3.1 3.3 3.6 mA V Power Supply Voltage 3.3V 3 3.3 3.6 DC output sink current excluding D+/D-/VCC/GND 16 or 8 LOW level input voltage 0.9 HIGH level input voltage 2.0 LOW to HIGH threshold voltage 1.3 1.43 1.56 HIGH to LOW threshold voltage 1.3 1.43 1.56 Hysteresis voltage 0 LOW level output voltage when IOL=16mA 0.4 HIGH level output voltage when IOH=16mA 2.4 Leakage current for pads with internal pull up or pull 46 down resistor RDN Pad internal pulldown resister 72.8K 105.7K 167.4K RUP Pad internal pullup resister 135.9K 167.8K 212.4K Note: hbd16dhk is internal pulled down ; hbd16uhk is internal pulled up ; hbd16* is 16mA ; hbd8* is for 8mA 5.3.2 DC Characteristics (Digital Pins) : 5.0 V Pads SYMBOL Description PD VccIO1~6 IO VIL VIH VTLH VTHL VOL VOH IOLK RDN Power Dissipation Power Supply Voltage 5.0V DC output sink current excluding D+/D-/VCC/GND LOW level input voltage HIGH level input voltage LOW to HIGH threshold voltage HIGH to LOW threshold voltage LOW level output voltage when IOL=8mA HIGH level output voltage when IOH=8mA Leakage current for pads with internal pull up or pull down resistor Pad internal pulldown resister 12 MIN TYP MAX 4.5 16 5.0 5.5 UNIT 46 206.6K Ohms 0.9 0.4 2.4 159.5K Ohms Ohms mA V mA V V V V V V µA 2.4 104.6K V mA V V V V V V V µA Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller RUP Pad internal pullup resister 5.3.3 DC Characteristics (D+/D-) SYMBOL VOL VOH VDI VCM VSE CIN ILO ZDRV Description D+/D- static output LOW(RL of 1.5K to 3.6V ) D+/D- static output HIGH (RL of 15K to GND ) Differential input sensitivity Differential common mode range Single-ended receiver threshold Transceiver capacitance Hi-Z state data line leakage Driver output resistance 13 81.9K 103.2K 254.6K Ohms MIN TYP MAX UNIT 0.3 3.6 V V V V V pF µA Ohms 2.8 0.2 0.8 0.2 -10 28 2.5 20 +10 43 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 6 6.1 Application Description System Clock Internal PLL. A. PLL : 12MHz input , 24,30,40 MHz output to internal system . 6.2 Pixel Clock A. Normal mode Scan mode 0: (three-line-in or one-line-in) a. 12 system clock/pixel b. Chunky color(three line in),fine-gray or fine-line-art scan for CCD. c. Planar color scan (one line in) or Monochrome scan for CIS B. Fast mode Scan mode 4 (one line in) : a. 6 system clock/pixel. b. Planar color scan (one line in) or Monochrome scan. c. Fast-gray or fast-line-art scan for CCD. d. Planar color(one line in),gray, true gray or line-art scan for CIS. C. Scan mode 5 (three line in): a. 15 system clock/pixel b. Chunky color(three line in),fine-gray or fine-line-art scan for CCD. c. Planar color scan (one line in) or Monochrome scan for CIS D. Scan mode 6 (three line in): a. 18 system clock/pixel b. Chunky color(three line in),fine-gray or fine-line-art scan for CCD. c. Planar color scan (one line in) or Monochrome scan for CIS Note : Chunky Color is R1G1B1,R2G2B2,R3G3B3,………(three-line-in or pixel rate) Planar Color is R1,R2,R3,…..;G1,G2,G3,…….;B1,B2,B3,……..(one-line-in or line rate) CCD : Chunky color or planar color. CIS : Planar color 6.3 Scan Speed A. System clock = 30MHz : a. Normal Mode : Chunky color, fine gray or fine line art scan. (scan mode 0) 12x33.333ns/pixel = 0.4us/pixel 14 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller (1). 600dpi : 2.160ms/line,15.163s/page. (2). 1200dpi : 4.320ms/line,60.653s/page. b. Fast Mode : Planar color , fast gray or fast line art scan. (scan mode 4) 6x33.333ns/pixel = 0.2us/pixel (1). 600dpi : 1.08ms/line,7.582s/page for fast gray or fast line art. (2). 1200dpi : 2.160ms/line,30.326s/page for fast gray or fast line art. B. System clock = 40MHz : a.Normal Mode : Chunky color,fine gray or fine line art scan. 12x25ns/pixel = 0.3us/pixel (1). 600dpi : 1.620ms/line,11.372s/page. (2). 1200dpi : 3.240ms/line,45.488s/page. b.Fast Mode : Planar color , fast gray or fast line art scan. 6x25ns/pixel = 0.15us/pixel (1). 600dpi : 0.81ms/line,5.616s/page for fast gray or fast line art. (2). 1200dpi : 1.62ms/line,22.744s/page for fast gray or fast line art. 6.4 Fast scan for low DPI Speed up CCD clocking rates allows speeding up scanning speed. Such as Stagger CCD, you can speed up 2 times,4 times scanning time for low resolution as 600dpi scanner: if 75dpi speed up 4 times then 1.620ms/4=0.405ms/line. Scan speed is equal to 0.355s/page. 6.5 Scanning Type Support three line in(parallel ) for CCD, one line in for CIS two types. A. CCD a. Three line in : R G B b. Line by line : R G B B. CIS a. color scan : 15 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller TG LED R LED G LED B b. gray scan: TG LED R/G/B c. true gray scan: TG LED R LED G LED B 6.6 Image Sensor Timing Can be programmed. A. CCD : support 600,1200 or 2400 dpi CCD. For example NEC, TOSHIBA, Sony ……etc. B. CIS : support 600,1200 or 2400 dpi CIS. For example Toshiba , Canon……etc. 6.7 Dummy Line Support programmable dummy lines to resolve (overcome) Start/Stop problem. You can insert dummy lines to reduce scanner stop and wait events (buffer full) or always non-stop. A. Line base of dummy lines: The range of dummy lines is 0 line ~ 15 lines. B. Adjustable dummy line: 16 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller The range is CCD or CIS minimum shift out time to 2096k pixels time , which can be adjusted by 1 pixel time increment. 6.8 Analog Front End Timing External 16 bits Front-End for Wolfson WM8192, WM8199……etc. 6.9 Image Type Support color, fine gray, fine line art, fast gray and fast line art scan. Support color filters selection for gray and line art scans. The filters include Red, Green and Blue. Note: The scan style of fine line art, fine gray or color are the same. So fine gray or fine line art scanning speed is slow. The exposure time of fast line art or fast gray scan is shorter than fine line art or fine gray scan. So, fast line art or fast gray scanning speed is high. 6.10 Bits Depth 16 x3 Bits true color , 16 bits gray level and one bit line art(Black & White). Image data type : 16 bits , 8 bits and 1 bit data type. 6.11 Shading & Correction a. White Shading & Dark Shading: Internal white shading by pixel (16 bits resolution) and dark shading by pixel (16 bits resolution), can be enabled or disabled By S/W. The white shading curve is calculated by S/W. Data arrangement: three line in mode: dark R1,white R1,dark G1,white G1,dark B1,white B1, dark R2,white R2,dark G2,white G2,dark B2,white B2, dark R3,white R3,dark G3,white G3,dark B3,white B3,…… one line in mode:dark R1,white data R1,dark R2,white R2,dark R3, white R3… dark G1,white data G1,dark G2,white G2,dark G3,white G3… dark B1,white data B1,dark B2,white B2,dark B3,white B3… White shading formula : 2000H x Target / (Wn-Dn) = White Gain data ----- for 8 times system White shading formula : 4000H x Target / (Wn-Dn) = White Gain data ----- for 4 times system For example : Target = 3FFFH Wn = 2FFFH Dn = 0040H and 8 times system operation then White Gain = 2000H x 3FFFH / (2FFFH-0040H) = 2AE4H (1.34033 times) b. Gamma Correction : GAMMA correction table is calculated by S/W. The resolution is 16 bits gamma table. Range: 0 to 64k (16 bits) input mapping to 0 to 255 (8 bits) output ; Style : increment or decrement gamma curve style. Note: If you bypass gamma correction , you can get 16 bits image data. If you enable gamma correction , you can get 8 bits image data. 17 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 6.12 Threshold Level Setting Can be programmed by S/W. Range: 0 to 255 can be adjusted by one increment. The threshold with bandwidth is in order to reduce image noise. BWHI d BWLOW b c h e f i bandwidth g a a,b,c,g : are black pixels d,e,f,h,i : are white pixels 6.13 Exposure Time Adjustable Maximum: 2096k pixels time Adjustment step: 1 pixel time. For Transparency scan,the exposure time can up to 2096k pixel time. 6.14 Scan Width control Scan width control for horizontal line. a.Support start pixel address, end pixel address and dummy pixel number setting b.Maximum length: 64k pixels. Minimum length: 1 pixel 6.15 Support built-in USB(2.0) a.Two in one: USB2.0 + scanner controller. 18 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 6.16 DRAM Timing Support 4Mx1 , x2 Bits (256Kx16) or 16M Bits (1Mx16) for EDO DRAM ; 4M or 8M Bits for SRAM ,as image buffer and calibration buffer timing. You can select single or double DRAM for scanner. DRAM speed is 28ns and above for 30MHz system clock,25ns and above for 40MHz system clock. 6.17 Horizontal Resolution Adjustable for DPI Function A. Digital deletion type : The resolution from 1 DPI to 2400 DPI , can be adjusted by 1 DPI increment by S/W. B. Digital average type : Support 1/2,1/3,1/4,1/5,1/6,1/8,1/10,1/12,1/15 digital average function. For example, 1200dpi scanner: 600dpi, 400dpi, 300dpi, 240dpi, 200dpi, 150dpi, 120dpi, 100dpi, 80dpi average function. C. Support stagger CCD : Support 1/2,1/4 resolution , such as NEC , Toshiba and Sony stagger CCD. 6.18 Vertical Resolution Adjustable for DPI Function The resolution of motor speed control is 16 bits, therefore we can control vertical resolution. By one dpi increment, the resolution can be from 1 DPI to 4800DPI for 1200DPI scanner; and 1 DPI to 9600 DPI for 2400dpi scanner. Note: The resolution of quarter step can up to four times resolution. 6.19 Acceleration/Deceleration Five Table The acceleration/deceleration slope tables are stored in DRAM, can be download by S/W. The slope can be programmed by S/W for each table. Resolution is 16 bits pixel-time. The number of slope steps is 1~512 steps. There are five tables for motor moving. Three tables are for scanning and the others are for fast moving. The forward and backward steps can be programmed by S/W. The resolution is 16 bits pixel-time. The number of slope steps is 1~512 steps. You can adjust any nonlinear curve. Note: what is fast move? Such as move back to go- home or move to scan window in any position . (1). Two tables go to scan: speed Scanning position buffer full position scan finished Go to scan window A(4) B(4) forward D(1) C(1) E(1) F(3) time G(5),K H(2) 19 I(2) J(4) Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller backward go home A,J B C,D F I H G K : table four (slope four) acceleration curve for fast moving. : table four (slope four) deceleration curve for fast moving. : table one (slope one) acceleration curve for scanning forward. : table three (slope three) deceleration curve for scanning finish. : table two (slope two) acceleration curve for scanning backward. : table two (slope two) deceleration curve for scanning backward. : table five (slope five) deceleration curve for go-home. : touch home sensor deceleration curve for go-home. 20 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller (2). One tables go to scan: speed Scanning position buffer full position scan finished go to scan window C(1) D(1) E(1) F(3) time G(5),K H(2) I(2) J(4) Go home J C,D F I H G K : table four (slope four) acceleration curve for fast moving. : table one (slope one) acceleration curve for scanning forward. : table three (slope three) deceleration curve for scanning finish. : table two (slope two) acceleration curve for scanning backward. : table two (slope two) deceleration curve for scanning backward. : table five (slope five) deceleration curve for go-home. : touch home sensor deceleration curve for go-home. 6.20 Stepping Motor Phase Control There is 8 output control pins to control stepping motor.mtr_ph0~7 for bi-polar andmtr_ph0~3 for Uni-polar. A. bi-polar : a. Support 2916 motor driver timing and 2916 compatible driver IC, such as L6219. Include full, half and quarter step control. b. Support 3955 motor driver timing. Include full, half, quarter and eighth step control. c. Support LB1939,LB1940 motor driver timing. Include full and half step control. B. uni-polar : a. Support 2003 motor driver timing and 2003 compatible driver IC. b. Include full step two phases on, full step single phase on and half step. c. PWM control, include frequency and duty control. 21 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller PWM Duty Frequency Phase on time 6.21 Watch-Dog Protection This function can automatically reset the system to initial state, whenever the system is held (no access signal ) beyond the time limit.Be able to enable or disable this function by S/W. This function can protect motor power, lamp power and ASIC system. Calculation formula : (30sec.) x (times setting) x (setting no.). The range of setting no. is 1~15;the range of times setting is 0~1. 6.22 Lamp Timeout Control This circuitry can automatically reset the lamp power, whenever the system is setting. Be able to enable or disable this function by S/W. Calculation formula: (60sec.) x (times setting) x (setting no.). The range of setting no. is 1~7;the range of times setting is 0~3. 6.23 Lamp Power Control These are two power control ports for lamp. One is for Flatbed and the other is for XPA (Transparency or film). The resolution of its PWM type is 8 bits. Duty range is 1/256~256/256. Note : carrier frequency is (system clock)/256. 6.24 Sensor Input The system support home sensor input port. 6.25 16 GPIO ports You can set input or output for each GPIO pin of the GPIO1~16 separately. Such as keypads inputs, document sensor for sheet-fed or motor power control…etc. Note : there are two pins for special function. One is GPIO12 and the other is GPIO11. GPIO12 : 1. Pull up by resister to indicate that ASIC turn on lamp power whenever power on initial. 2. Pull down by resister to indicate that ASIC turn off lamp power whenever power on initial. 3. This pin can control bi-polar motor driver 2916,6219,3966 or 3955 Vref in order to control Imax. current. GPIO11 : This pin can control bi-polar motor driver 2916,6219,3966 or 3955 Vref in order to control Imax. current. 22 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 6.26 GPO17~18 ports or Motor MTR_PH6~7 two Phase You can select 2 pins for 3955 2 phase MTR_PH6~7 output or GPO17~18 output. 6.27 GPO13 Port or Motor Trigger signal for ADF Motor trigger signal for ADF motor moving ,It can be controlled under scanning condition. 6.28 Power on Check The default status of the PWRBIT is reset. You can set the PWRBIT and then read back the status in order to check the power status. This operation is able to check first time power on or not. 6.29 RAM Test S/W can test DRAM/SRAM IC by writing and reading back for checking. 6.30 LED Blinking Support LED- blinking function. It is implemented in GPIO13~18 pins. 6.31 Support Back Scanning Support forward or Backword scanning type. 23 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 7 COMMAND SET DESCRIPTION Reg. 01 Bit7 Bit6 CISSET Bit5 DVDSET AGOHOME MTRPWR XPASEL LAMPPWR NOTHOME ACDCDIS 03 LAMPDOG AVEENB 04 LINEART BITSET AFEMOD[1:0] DPIHW[1:0] 06 Bit3 DOGENB 02 05 Bit4 09 DECFLAG GMMFFR MCNTSET[1:0] Bit0 M16DRAM DRAMSEL SHDAREA S CAN FASTFED MTRREV HOMENEG LONGCURV LAMPTIM[3:0] FESET[1:0] GMMENB MTLBASE[1:0] PWRBIT GAIN4 SRAMSEL FASTDMA DMASEL DMARDWR GMMFFG GMMFFB GMMZR GMMZG GMMZB BACKSCAN ENHANCE SHORTTG NWAIT 07 08 Bit1 FILTER[1:0] MTLLAMP[1:0] SCANMOD[2:0] Bit2 CLKSET[1:0] OPTEST[2:0] 0A SRAMBUF 0B 0C 0D CLRLNCNT 0E SCANRESET 0F MOVE 10 EXPR[15:8] 11 EXPR[7:0] 12 EXPG[15:0] 13 EXPG[7:0] 14 EXPB[15:8] 15 EXPB[7:0] 16 17 18 CTRLHI TOSHIBA TGINV TGMODE[1:0] CNSET CK1INV CK2INV CTRLINV CKDIS CTRLDIS TGW[5:0] DCKSEL[1:0] CKTOGGLE 19 CKDELAY[1:0] CKSEL[1:0] EXPDMY[7:0] 1A MANUAL3 MANUAL1 CK4INV CK3INV LINECLP 1B 1C CK4MTGL CK3MTGL CK1MTGL 1D CK4LOW CK3LOW CK1LOW 1E CKAREA MTLWD TGSHLD[4:0] WDTIME[3:0] LINESEL[3:0] 1F SCANFED[7:0] 20 BUFSEL[7:0] 21 STEPNO[7:0] 22 FWDSTEP[7:0] 23 BWDSTEP[7:0] 24 FASTNO[7:0] 25 LINCNT[19:16] 26 Reg. TGTIME[2:0] LINCNT[15:8] Bit7 Bit6 Bit5 Bit4 Bit3 24 Bit2 Bit1 Bit0 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 27 LINCNT[7:0] 28 “GMMWRDATA” 29 LAMPPWM[7:0] 2A RAMADDR[15:8] 2B RAMADDR[7: 0] 2C DPISET[11:8] 2D DPISET[7:0] 2E BWHI[7:0] 2F BWLOW[7:0] 30 STRPIXEL[15:8] 31 STRPIXEL[7:0] 32 ENDPIXEL[15:8] 33 ENDPIXEL[7:0] 34 DUMMY[7:0] 35 MAXWD[19:16] 36 MAXWD[15:8] 37 MAXWD[7:0] 38 LPERIOD[15:8] 39 LPERIOD[7:0] 3A FEWRDATA[8] 3B FEWRDATA[7:0] 3C “RAMWRDATA” 3D FEEDL[19:16] 3E FEEDL[15:8] 3F FEEDL[7:0] 40 41 HISPDFLG PWRBIT BUFEMPTY FEEDFSH SCANFSH HOMESNR 42 LAMPSTS MOTMFLG FEBUSY MOTORENB VALIDWORD[19:16] 43 VALIDWORD[15:8] 44 VALIDWORD[7:0] 45 “RAMRDDATA” 46 FERDDATA[8] 47 FERDDATA[7:0] 48 FEDCNT[19:16] 49 FEDCNT[15:8] 4A FEDCNT[7:0] 4B SCANCNT[19:16] 4C SCANCNT[15:8] 4D SCANCNT[7:0] 4E “GMMRDDATA” Reg. DATAENB Bit7 Bit6 Bit5 Bit4 Bit3 25 Bit2 Bit1 Bit0 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 4F 50 FERDA[5:0] 51 FEWRA[5:0] 52 RHI[4:0] 53 RLOW[4:0] 54 GHI[4:0] 55 GLOW[4:0] 56 BHI[4:0] 57 BLOW[4:0] 58 VSMP[4:0] VSMPW[2:0] 59 BSMP[4:0] BSMP[2:0] 5A ADCLKINV RLCSEL CDSREF[1:0] RLC[3:0] 5B GMMADDR[9:8] 5C GMMADDR[7:0] 5D HISPD[7:0] 5E DECSEL[2:0] STOPTIM[4:0] 5F FMOVDEC[7:0] 60 Z1MOD[20:16] 61 Z1MOD[15:8] 62 Z1MOD[7:0] 63 Z2MOD[20:16] 64 Z2MOD[15:8] 65 Z2MOD[7:0] 66 PHFREQ[7:0] 67 STEPSEL[1:0] MTRPWM[5:0] 68 FSTPSEL[1:0] FASTPWM[5:0] 69 FSHDEC[7:0] 6A FMOVNO[7:0] 6B MULTFILM GPOM13 GPOM12 GPOM11 GPO18 GPO17 6C GPIO16 GPIO15 GPIO14 GPIO13 GPIO12 GPIO11 GPIO10 GPIO9 6D GPIO8 GPIO7 GPOI6 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1 6E GPOE16 GPOE15 GPOE14 GPOE13 GPOE12 GPOE11 GPOE10 GPOE9 6F GPOE8 GPOE7 GPOE6 GPOE5 GPOE4 GPOE3 GPOE2 GPOE1 70 RSH[4:0] 71 RSL[4:0] 72 CPH[4:0] 73 CPL[4:0] 74 CK1MAP[17:16] 75 CK1MAP[15:8] 76 CK1MAP[7:0] Reg. Bit7 Bit6 Bit5 Bit4 Bit3 26 Bit2 Bit1 Bit0 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 77 CK3MAP[17:16] 78 CK3MAP[15:8] 79 CK3MAP[7:0] 7A CK4MAP[17:16] 7B CK4MAP[15:8] 7C CK4MAP[7:0] 7D CK1NEG CK3NEG 7E 7F BSMPDLY[1:0] 80 VRHOME[1:0] CK4NEG RSNEG CPNEG BSMPNEG VSMPNEG DLYSET GPOLED18 GPOLED17 GPOLED16 GPOLED15 GPOLED14 GPOLED13 VSMPDLY[1:0] LEDCNT[3:0] VRMOVE[1:0] VRBACK[1:0] VRSCAN[1:0] 81 ROFFSET[8] 82 ROFFSET[7:0] 83 GOFFSET[8] 84 GOFFSET[7:0] 85 BOFFSET[8] 86 87 BOFFSET[7:0] YENB YBIT ACYCNRLC ENOFFSET LEDADD CK4ADC AUTOCONF 1. Reg : 01H (Read/Write) Default : 00H B7:CISSET : set: CIS scan type. : reset: CCD scan type. B6:DOGENB : set: enable watch dog of ASIC(set time out:Reg1E[7:4]). : reset: disable. B5:DVDSET : set : enable shading (include whole line shading and area shading two kinds). : reset : disable shading. B4 : Reserved. B3: M16DRAM : set: to select 16M bits DRAM (1M * 16). : reset: to select 4M or 8M bits DRAM(256*16). B2:DRAMSEL : set : the DRAM size is 4Mx2 (256kx16x2) bits. : reset : the DRAM size is 4Mx1(256kx16x1) bits. B1:SHDAREA :set: enable shading area (depend on scan area and scan dpi). : reset: shading area is whole line. B0:SCAN : set: enable scan process. : reset: disable scan process. 2. Reg : 02H (Read/Write) Default : 00H B7:NOTHOME : set: auto-go-home doesn’t go back to home position. : reset: go back to home position automatically. B6:ACDCDIS : set: disable forward/backward moving whenever buffer full. : reset: enable forward/backward moving whenever buffer full. B5:AGOHOME : set: whenever scan is finished, carriage go home automatically. : reset: disable auto-go-home function. B4:MTRPWR : set: turn on MOTOR power and phase. : reset: turn off MOTOR power and phase. B3:FASTFED : set: enable two table for motor moving of the acceleration/deceleration. : reset: disable two table, only use single table. 27 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller B2:MTRREV : set: set motor reverse moving. : reset: set motor forward moving. B1:HOMENEG : set: to indicate whenever home sensor change from high to low (falling edge) then motor is decelerated. Reset: to indicate whenever home sensor change from low to high (rising edge) then motor is decelerated. B0:LONGCURV : set: the deceleration curve of the fast moving is table 5. : reset: the deceleration curve of the fast moving is table 4. 3. Reg : 03H (Read/Write) Default : 0CH B7:LAMPDOG : set: to start lamp sleeping mode(default on). : reset: to disable lamp sleeping mode. B6:AVEENB : set: select dpi average function : reset: select dpi deletion function. B5:XPASEL : set: select transparency lamp on. : reset: select flatbed lamp on. B4:LAMPPWR : set: turn on LAMP power. : reset: turn off LAMP power. B3~0:LAMPTIM[3:0] : lamp on time setting (default: 4) The unit is minute. 4. Reg : 04H (Read/Write) Default : 00H B7:LINEART : set: Black/White scan. : reset: Color/Gray scan. B6:BITSET : set : 16 bits image data type (= word). : reset : 8 bits image data type (= byte). B5~4: AFEMOD[1:0] : to indicate AFE operation mode. Wolfson Type AFEMOD SCANMOD 2 1 0 Description 2 Timing Requirements CDS Max Sample Rate Available Yes Timing Requirements Slow color MCLK:VSMP Rate is 8:1 Pixel-by-pixel 0,1,3,4,5,6 Color pixel-by-pixel Yes 6.67MSPS *3 channel MCLK:VSMP Rate is 6:1 0,1,4,5,6 Fast Mono Yes 13.3MSPS *1 channel MCLK:VSMP Rate is 3:1 Analog Device Type AFEMOD SCANMOD 2 CDS Max Sample Rate Available Yes 5MSPS *3 channel Description 0,1,4,5,6 Slow color Pixel-by-pixel 1 0,1,2,3,4,5,6 Mono 0 0,1,2,3,4,5,6 Fast Mono B3~2:FILTER[1:0] : scan color type : B1~0:FESET[1:0] Yes Yes : front end operation type: MCLK:VSMP Rate is 3:1 MCLK:VSMP Rate is 2:1 MCLK:VSMP Rate is 1:1 a.00: color b.01: R c.10: G d.11: B a.00: ESIC type 1. b.01: ESIC type 2. c.10: ADI type. d.11: reserved. 5. Reg : 05H (Read/Write) Default:00H 28 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller B7~6: DPIHW[1:0] B5~4: MTLLAMP[1:0] B3: GMMENB B2: Reserved. B1~0: MTLBASE[1:0] : set CCD/CIS resolution 00=600dpi 01=1200dpi 10=2400dpi 11=reserved. : to set times of the lamp time out. 00: 1* LAMPTIM 01: 2*LAMPTIM 10: 4*LAMPTIM 11: reserved. : set: enable gamma correction. : reset: bypass gamma correction. : to set output CCD pixel number under each system pixel time. 00=1 CCD pixel/system pixel time. 01=2 CCD pixels/system pixel time. 10=3 CCD pixels/system pixel time. 11=4 CCD pixels/system pixel time. 6. Reg : 06H (Read/Write) Default:00H B7~5: SCANMOD[2:0] : set scan operation mode 000:12 clocks/pixel ; normal mode operation for scanning. Include color(pixel rate),fine gray and fine line-art. 001:12 clocks/pixel ; bypass mode operation for calibration. Include color(pixel rate) and fine gray. 010:reserved. 011:reserved. 100:6 clocks/pixel ; fast mode operation. Include color(line rate),fast gray and fast line-art. 101:15 clocks/pixel ; for 16 bits color output. 110:18 clocks/pixel ; for 16 bits color output. B4: PWRBIT :When power on,set this bit.To indicate power has on. Default is reset. B3: GAIN4 : set: digital shading gain=4 times system. : reset: digital shading gain=8 times system. Note: If you want to get more precise image quality,you can set GAIN4 bit. B2~0: OPTEST[2:0]: select ASIC operation type. 000: set normal mode to capture AFE image. 001: set DRAM bank,power on carriage initiated and ADF(motortgo) test for ASIC simulation. 010: pixel count pattern for ASIC image test. 011: line count pattern for ASIC image test. 100: counter and adder test for ASIC simulation test. 7. Reg : 07H (Read/Write) Default:00H B3:SRAMSEL : set: DMA access for SRAM. : reset: DMA access for DRAM. B2:FASTDMA B1:DMASEL B0:DMARDWR : set: 2clocks/access,that is to say 2clocks/16bits or 2clocks/8bits for DMA access. : reset: 4clocks/access,that is to say 4clocks/16bits or 4clocks/8bits for DMA access. : set: DMA access DRAM under command mode. : reset: MPU access DRAM under command mode. : set: DMA read DRAM under command mode. 29 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller : reset: DMA write DRAM under command mode. Note: DMA operation can be processed under CPU and DMA type. 8. Reg : 08H (Read/Write) Default:00H B6: DECFLAG : set :gamma table is decrement type : reset :gamma table is increment type. B5: GMMFFR : set: to indicate that red channel Gamma table address FFH is special value. B4: GMMFFG : set: to indicate that red channel Gamma table address FFH is special value. B3: GMMFFB : set: to indicate that red channel Gamma table address FFH is special value. B2: GMMZR : set: to indicate that red channel Gamma table address 00H is special value. B1: GMMZG : set: to indicate that green channel Gamma table address 00H is special value. B0: GMMZB : set: to indicate that blue channel Gamma table address 00H is special value. 9. Reg : 09H (Read/Write) Default:00H B7~6: MCNTSET[1:0] : to select the unit of motor table counter. 00: pixel count. 01:system clock*2. 10:system clock*3. 11:system clock*4. B5~4: CLKSET[1:0] : to select the system clock frequency. 00: 24MHz 01: 30MHz 10: 40MHz 11:48MHz. B3: BACKSCAN : set: to enable backward scan function. : reset: to select forward scan function. B2: ENHANCE : set: to enhance EPP interface speed for USB2.0 : reset: to select normal EPP interface speed for USB2.0 B1: SHORTTG : set: enable short CCD SH(TG) period for film scanning. B0: NWAIT : set: to delay nWait (H_BUSY) one clock. 10. Reg : 09H (Read/Write) Default:00H B0: SRAMBUF :set: to select external SRAM as the image buffer. :reset: to select external DRAM as the image buffer. 11. Reg : 0DH (Write) Command : B0: CLRLNCNT scanner command. : set: to clear SCANCNT(Reg4B,Reg4C,Reg4D). : reset: don’t clear SCANCNT. Note: For each time scanning , you must clear SCANCNT before starting process. 12. Reg : 0EH (Write) Command : scanner software reset. It can initiate AISC system, including lamp and motor, Control registers, internal circuit and status, but not including tables in DRAM, like gamma table, shading table and acceleration/deceleration table. Note: In normal condition, it is unnecessary to reset scanner , unless the scanner is out of control. 13. Reg : 0FH (Write) Command : motor moving. Start motor farward/backward moving. 14. Reg : 10,11H (Read/Write) Default : 00H,00H 30 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller EXPR[15:0]: Red-LED array of CIS or Red channel TG of CCD exposure time setting. Note: can not be programmed to logic zero. 15. Reg : 12H,13H (Read/Write) Default : 00H,00H EXPG[15:0]: Green-LED array of CIS or Green channel TG of CCD exposure time setting. Note: can not be programmed to logic zero. 16. Reg : 14H,15H (Read/Write) Default : 00H,00H EXPB[15:0]: Blue-LED array of CIS or Blue channel TG of CCD exposure time. Note: can not be programmed to logic zero. 17. Reg : 16H (Read/Write) Default : 32H B7:CTRLHI : set: CCD CP & RS are high under TG high position. : reset: CCD CP & RS are low under TG high position. B6: TOSHIBA : set: to indicate the image sensor is TOSHIBA CIS. B5:TGINV : set: to reverse CCD TG. : reset: don’t reverse. B4:CK1INV : set: to reverse CCD Clock 1. : reset: don’t reverse. B3:CK2INV : set: to reverse CCD Clock 2. : reset: don’t reverse. B2:CTRLINV : set: to reverse CCD CP & RS. : reset: don’t reverse. B1:CKDIS : set: disable CCD TG position Clock 1/2 signals. CCD TG CCD Clock : reset: enable CCD TG position Clock 1/2 signals. CCD TG CCD Clock B0:CTRLDIS : set: disable CCD TG position CP & RS signals. CCD TG CCD CP/RS : reset: enable CCD TG position CP & RS signals. 31 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller CCD TG CCD CP/RS 18. Reg : 17H (Read/Write) Default : 14H B7~6:TGMODE[1:0] : to set CCD TG mode. 00:without dummy line CCD TG type. 01:with reflectional document scanning type. 10:with transparency scanning type. 11:TGMODE=2 for simulation. B5~0:TGW[5:0] : to set CCD TG width. Note: Can not be programmed to logic zero. 19. Reg : 18H (Read/Write) Default : 00H B7 : CNSET : set : TG and clock set to Canon CIS style. : reset: TG and clock is non-Canon CIS style. B6~5 :DCKSEL : 00 one time CCD Clocks speed for dummy line. 01 two times CCD Clocks speed for dummy line. 10 three times CCD Clocks speed for dummy line. 11 four times CCD Clocks speed for dummy line. B4 :CKTOGGLE : set : half cycle per pixel for CCD Clock 1/2. : reset : one cycle per pixel B3~2 :CKDELAY: 00 no delay 01 delay one system clock for CCD Clock 1/2. 10 delay two systems clock for CCD Clock 1/2. 11 delay three systems clock for CCD Clock 1/2. B1~0 :CKSEL : 00 one time CCD Clock speed for capture image. 01 two times CCD Clock speed for capture image. 10 three times CCD Clock speed for capture image. 11 four times CCD Clock speed for capture image. Note : CCD Clock speed up limitation : 1. SCANMOD=0,1 : 12 clocks/pixel a. toggle CCD : be able to speed up 1,2,3,4 times. b. non-toggle CCD : be able to speed up 1,2,3 times. 2. SCANMOD=2 : reserved. 2. SCANMOD=3 : reserved. 3. SCANMOD=4 : 6 clocks/pixel a. toggle CCD : be able to speed up 1,2,3 times. b. non-toggle CCD : can not speed up. 4. SCANMOD=5 : 15 clocks/pixel a.toggle CCD : be able to speed up 1,2,3,4 times. b.non-toggle CCD : be able to speed up 1,2,3 times. 5. SCANMOD=6 : 18 clocks/pixel a.toggle CCD : be able to speed up 1,2,3,4 times. b.non-toggle CCD : be able to speed up 1,2,3,4 times. 20. Reg : 19H (Read/Write) Default : 00H EXPDMY[7:0] : to set dummy line exposure time (unit = 256 pixels time) or CIS LED array turn-on time. Note: the unit is pixel time. 32 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller CIS SP CIS LED EXPDMY for turn on Note: can not be programmed to logic zero. EXPR/EXPG/EXPB for turn off 21. Reg : 1AH (Read/Write) Default : 00H B7: Reserved. B6: Reserved. B5:MAUNAL3 : set : CCD Clock 3,Clock4 manual output. : reset : CCD Clock 3,Clock4 automatic output. B4:MANUAL1 : set : CCD Clock 1,Clock2 manual output. : reset : CCD Clock 1,Clock2 automatic output. B3:CK4INV : set : to reverse CCD Clock4. : reset : don’t reverse. B2:CK3INV : set : to reverse CCD Clock 3. : reset : don’t reverse. B1:LINECLP : set : to select CCD line clamping. : reset : to select CCD pixel clamping. B0:Reserved. 22. Reg : 1BH (Read/Write) Default : 00H Reserved. 23. Reg : 1CH (Read/Write) Default : 00H B7: CK4MTGL : to indicate CCD clock 4 to use toggle function. B6: CK3MTGL : to indicate CCD clock 3 to use toggle function. B5: CK1MTGL : to indicate CCD clock 1 to use toggle function. B4: CKAREA : set : CCD coloks speed depend on scan area. B3: MTLWD : to set double of the watch-dog time out . B2~0:TGTIME[2:0] : CCD Line Period selection. a.000: 1*LPERIOD(Reg38,Reg39) b.001: 2*LPERIOD c.010: 4*LPERIOD d.011: 8*LPERIOD e.100: 16*LPERIOD f. 101: 32*LPERIOD 24. Reg : 1DH (Read/Write) Default : 04H B7 :CK4LOW : to set CCD clock4 are low under CCD TG. B6 :CK3LOW : to set CCD clock3 are low under CCD TG. B5: :CK1LOW : to set CCD clock1,2 are low under CCD TG. B4~0 :TGSHLD[4:0] : to set CCD TG shoulder width. Note: You have to program the TGSHLD >= 2 (more than two) 25. Reg : 1EH (Read/Write) Default : 20H B7~4:WDTIME[3:0] : to set watch-dog time The unit is 30 seconds. B3~0:LINESEL[3:0] : to set CIS Vertical DPI or dummy lines. 33 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller CIS : LINESEL =0 full dpi. =1 1/2 dpi =2 1/3 dpi ….. =15 1/16 dpi CCD : LINESEL =0 no dummy line. =1 1 dummy line. =2 2 dummy lines. …… =15 15 dummy lines. Note : CIS can be implemented dummy line by motor move mothod,not dummy lines. 26. Reg : 1FH (Read/Write) Default : 00H SCANFED[7:0]: move to scanning position by table one under two table operation. Note: can not be programmed to logic zero. 27. Reg : 20H (Read/Write) Default : 00H BUFSEL[7:0] : to set buffer condition (unit = 4k word). Scanner execute backward/forward moving whenever buffer full. If MAXWD < buffer condition , then motor move forward to scan. 28. Reg : 21H (Read/Write) Default : 00H STEPNO[7:0]: to set scanning forward slope curve of the acceleration/deceleration (table one slope). Note: can not be programmed to logic zero. 29. Reg : 22H (Read/Write) Default : 00H FWDSTEP[7:0] : to set steps number of the forward steps. Note: can not be programmed to logic zero. 30. Reg : 23H (Read/Write) Default : 00H BWDSTEP[7:0] : to set steps number of the backward steps. Note: can not be programmed to logic zero. 31. Reg : 24H (Read/Write) Default : 00H FASTNO[7:0]: to set scanning backward slope curve of the acceleration/deceleration (table two slope). Buffer full position speed Reg22 Reg21 Reg21 time Reg24 Reg24 Reg23 34 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller Note: can not be programmed to logic zero. 32. Reg : 25H,26H,27 H (Read/Write) Default : 00H,00H,00H LINCNT[19:0]: to set the scan lines number. Note: can not be programmed to logic zero. 33. Reg : 28H (Read/Write) Default : 00H GMMWRDATA : this port to write gamma table. 34. Reg : 29H (Read/Write) Default : FFH LAMPPWM[7:0] : to set PWM duty for lamp power control. 0: 1/256 duty. 1: 2/256 duty. ….. 255:256/256 duty. 35. Reg : 2AH,2BH (Read/Write) Default : 00H.00H RAMADDR[15:0] : to set DRAM start address to access data. note: IRAM_A[19:0]={RAMADDR[15:0],4’b0000}. 36. Reg : 2CH,2DH (Read/Write) Default : 00H,00H DPISET[10:0] : set resolution of DPI for average type or deletion type. A. average type : digital average function support 1/2,1/3,1/4,1/5,1/6,1/8,1/10,1/12,1/15. a. 2400 dpi scanner : can set 1200,800,600,480,400,300,240,200,160 dpi. b. 1200 dpi scanner : can set 600,400,300,240,200,150,120,100,80 dpi. c. 600 dpi scanner : can set 300,200,150,120,100,75,60,50 and 40 dpi. B. deletion type : 2400,1200 or 600dpi to 1 dpi setting decrement by one dpi. Note: can not be programmed to logic zero. 37. Reg : 2EH (Read/Write) Default : 00H BWHI[7:0] : to set Black & White threshold high level. 38. Reg : 2FH (Read/Write) Default : 00H BWLOW[7:0] : to set Black & White threshold low level. BWHI d BWLOW b c h e f i bandwidth g a 35 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller a,b,c,g : are black pixels d,e,f,h,i : are white pixels 39. Reg : 30H,31H (Read/Write) Default : 00H,00H STRPIXEL[15:0] : to set the begin pixel position (unit : pixel count). STRPIXEL=(TGW+2*TGSHLD)+Begin pixels number. Note: can not be programmed to logic zero. 40. Reg : 32H,33H (Read/Write) Default : 00H,00H ENDPIXEL[15:0] : to set the end pixel position (unit : pixel count). ENDPIXEL=(TGW+2*TGSHLD)+End pixels number. Note: can not be programmed to logic zero. 41. Reg : 34H (Write) Default : 00H DUMMY[7:0] : to set the CCD dummy & optical black pixels position (unit : pixel count). Note : Reg30,31,32,33 and 34 setting rule. TGSHLD(Reg1D) RGW(Reg17) TGSHLD(Reg1D) CCD TG CCD clock CCD pixel no: N-1 N 0 1 2 3 4 For example begin pixel is 65 ,end pixel is 100 and CCD dummy pixel is 64, Then STRPIXEL=(TGW+2*TGSHLD)+65. ENDPIXEL=(TGW+2*TGSHLD)+100. DUMMY =(TGW+2*TGSHLD)+64. Note: can not be programmed to logic zero. 42. Reg : 35H,36H,37H (Read/Write) Default : 00H,00H,00H MAXWD[19:0] : to set maximum word size per line for ASIC estimation. If usable buffer size < MAXWD,then buffer is full.The scanner execute forward and Backward moving. 43. Reg : 38H,39H (Read/Write) Default : 15H,18H LPERIOD[15:0] : to set Line period(or exposure time) for CCD. Unit : pixel count Note: can not be programmed to logic zero. 44. Reg : 3AH,3BH (Read/Write) Default : 00H,00H FEWRDATA[8:0] : This port is used to write data to control register of front-end. 45. Reg : 3CH (Read/Write) Default : 00H 36 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller RAMWRDATA : This port is used to write data to DRAM. 46. Reg : 3DH,3EH,3FH (Read/Write) Default : 00H,00H,00H FEEDL[19:0] : to set feeding steps number of motor move. Note: can not be programmed to logic zero. 47. Reg : 40H (Read) B2:HISPDFLG : set: motor is high-speed moving. B1:MOTMFLG : set: motor is moving. : reset: motor is stop. B0:DATAENB : set: scanner is scanning mode. Reset: scanner is command mode. 48. Reg : 41H (Read) B7:PWRBIT : To indicate power status. Power on initial,PWRBIT=0; B6:BUFEMPTY : set: To indicate that the image buffer is empty. : reset: To indicate that the image buffer is not empty. B5:FEEDFSH : set: To indicate that motor feeding is finished. : reset: To indicate that motor feeding is not finished. B4:SCANFSH : set: To indicate that scan is finished. : reset: To indicate that scan is not finished. B3:HOMESNR : set: home sensor is off (is home position). : reset: home sensor is on (is not home position). B2:LAMPSTS : set: lamp is on. : reset: lamp is off. B1:FEBUSY : set: front end is busy and can not read/write again. : reset: front end is ready and be able to read/write again. B0:MOTORENB : set: motor is processing. : reset: motor is not processing. 49. Reg : 42H,43H,44H (Read) VALIDWORD[19:0] : to indicate available words to read out in the image buffer of DRAM. 50. Reg : 45H (Read) RAMRDDATA : this port for read DRAM data. 51. Reg : 46H,47H (Read) FERDDATA[8:0] : this port is used to read out data from front-end control register. 52. Reg : 48H,49H,4AH (Read) FEDCNT[19:0] : to read motor feeding steps number. For example,if you have set moving steps no. and execute moving command. You can read out steps no. moved. 53. Reg : 4BH,4CH,4DH (Read) SCANCNT[19:0] : to read scanner finished lines number. 54. Reg : 4EH (Read) GMMRDDATA : this port to read back the gamma table. 55. Reg : 50H (Read/Write) Default : 00H FERDA[5:0] : this port is read address setting for Front End control register read. 37 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 56. Reg : 51H (Read/Write) Default : 00H FEWRA[5:0] : this port is write address setting for Front End control register write. 57. Reg : 52H,53H (Read/Write) Default : 00H,00H RHI[4:0] RLOW[4:0] : to latch R channel high byte data of AFE. : to latch R channel low byte data of AFE. 58. Reg : 54H,55H (Read/Write) Default : 00H,00H GHI[4:0] : to latch G channel high byte data of AFE. GLOW[4:0] : to latch G channel low byte data of AFE. 59. Reg : 56H,57H (Read/Write) Default : 00H,00H BHI[4:0] : to latch B channel high byte data of AFE. BLOW[4:0] : to latch B channel low byte data of AFE. (1). Color,fine gray or fine line-art : 12 phase/pixel 0 1 2 3 4 5 R[15:8] R[7:0] RHI GHI BHI = 01H = 05H = 09H 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 G[15:8] G[7:0] B[15:8] B[7:0] R[15:8] R[7:0] G[15:8] G[7:0] B[15:8] RLOW = 03H GLOW = 07H BLOW = 11H (2).Fast gray or fast line-art : 6 phase/pixel 0 1 2 3 4 R[15:8] RHI = 02H 5 0 1 2 R[7:0] 3 4 5 R[15:8] 0 1 2 R[7:0] 3 4 5 R[15:8] 0 1 2 R[7:0] 3 4 5 R[15:8] RLOW = 05H 60. Reg : 58H (Read/Write) Default : 00H B7~3:VSMP[4:0] : to set the rising edge position of image sampling for AFE. B2~0:VSMPW[2:0] : to set the pulse width of image sampling. (1). Color,fine gray or fine line-art : 12 phase/pixel 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 AFE VSMP Reg58=52H : VSMP[4:0]=10H VSMPW[2:0]=2H 38 Version 1.7 4 GL841 USB 2.0 2-in-1 Scanner Controller (2).Fast gray or fast line-art : 6 phase/pixel 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 VSMP Reg58=0BH : VSMP[4:0]=01H VSMPW=3H 61. Reg : 59H (Read/Write) Default : 00H B7~3:BSMP[4:0] : to set the rising edge position of dark voltage sampling for AFE. B2~0:BSMPW[2:0] : to set the pulse width of dark voltage sampling. (1). Color,fine gray or fine line-art: 12 phase/pixel 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 0 1 2 3 4 5 1 2 3 4 5 AFE BSMP Reg59=52H : BSMP[4:0]=10H BSMPW[2:0]=2H (2).Fast gray or fast line-art : 6 phase/pixel 0 1 2 3 4 5 0 1 2 3 4 5 0 BSMP Reg59=0BH : BSMP[4:0]=01H BSMPW=3H 62. Reg : 5AH (Read/Write) Default : C0H B7 : ADCLKINV : set: ADC clock reverse. B6 : RLCSEL : set: select reset level clamp on a pixel-by-pixel basis. : reset: don’t select. B5~4 :CDSREF[1:0] : to set the front-end CDSREF for line rate scanning type. B3~0 :RLC[3:0] : to set the front-end RLC for line rate scanning type. 63. Reg : 5BH,5CH (Read/Write) Default : 00H,00H GMMADDR[9:0]: to set gamma access start address. 64. Reg : 5DH (Read/Write) Default : 00H HISPD[7:0] : to set change of the moving speed during moving. Note: can not be programmed to logic zero. 65. Reg : 5EH (Read/Write) Default : 00H B7~5:DECSEL[2:0] :select deceleration steps whenever go home. 000:1 steps deceleration 001:2 steps deceleration 010:4 steps deceleration 011:8 steps deceleration 39 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 100:16 steps deceleration 101:32 steps deceleration 110:64 steps deceleration 111:128 steps deceleration B4~0:STOPTIM[4:0] :select acceleration/deceleration stop time. Note: STOPTIM simulation for ASIC must be set to tgtime=6,7. Can not be programmed to logic zero. 66. Reg : 5FH (Read/Write) Default : 00H FMOVDEC[7:0] : to set go-home fast move deceleration slope steps (table five slope). Note: can not be programmed to logic zero. 67. Reg : 60H,61H,62H (Read/Write) Default : 00H,00H,00H Z1MOD[20:0]: to set the slope curve of acceleration/deceleration table mode value Under buffer full moving. Note: It should be more than LPERIOD. 68. Reg : 63H,64H,65H (Read/Write) Default : 00H,00H,00H Z2MOD[20:0]: to set the slope curve of acceleration/deceleration mode value Under first time moving to scanning . Note: It should be more than LPERIOD. (1). Two table moving : speed Scanning position b buffer full position d a c time (2). One table moving : speed Scanning position b buffer full position d a c time {a+(b-1)} mode LPERIOD = Z2MOD {c+(d-1)} mode LPERIOD = Z1MOD note: If MCNTSET[1:0]=01 or 10 or 11,then (each step curve value + 1)/VCNT. 40 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller VCNT= system clocks per pixel / (MCNTSET+1). 69. Reg : 66H (Read/Write) Default : 00H PHFREQ[7:0]: to set PWM frequency for motor phase of uni-polar. Frequency : (24MHz)/[(PHFREQ+1)*4 70. Reg :67H (Read/Write) Default : 7FH B7~6:STEPSEL[1:0] : for table one or two scanning move step type selection. (1).bi-polar : a.00: full step (for 1939,1940,2916,6219 or 3966). b.01: half step (for 1939,1940,2916,6219 or 3966). c.10: quarter step (for 2916 or 6219). d.11: reserved. (2).uni-polar : a.00: two-phase-on full step. b.01: half step. c.10: reserved. d.11: single-phase-on full step. B5~0:MTRPWM[5:0] : to set PWM duty cycle for table one motor phase of uni-polar. MTRPWM = 0 1/64 duty = 1 2/64 duty = 2 3/64 duty …… = 63 64/64 duty Note: If PHFREQ < 0FH,then PWM setting must < (PHFREQ+1)*4 71. Reg :68H (Read/Write) Default : 7FH FSTPSEL[1:0] : for table two fast moving step type selection. (1).bi-polar : a.00: full step (for 1939,1940,2916,6219 or 3966). b.01: half step (for 1939,1940,2916,6219 or 3966). c.10: quarter step (for 2916 or 6219). d.11: reserved. (2).uni-polar : a.00: two-phase-on full step. b.01: half step. c.10: reserved. d.11: single-phase-on full step. FASTPWM[5:0] : to set PWM duty cycle for table two motor phase of uni-polar. FASTPWM =0 1/64 duty =1 2/64 duty =2 3/64 duty …… =63 64/64 duty Note: If PHFREQ < 0FH,then PWM setting must < (PHFREQ+1)*4 72. Reg :69H (Read/Write) Default : 00H FSHDEC[7:0]: Set scan-finish deceleration slop steps(table three slope). Note: can not be programmed to logic zero. 73. Reg :6AH (Read/Write) Default : 00H 41 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller FMOVNO[7:0]: Set fast moving slop steps(table four slope). Note: can not be programmed to logic zero. (1). Two table moving : speed Scanning position scan finished Reg3D,3E,3F Reg6A Reg1F Reg25,26,27 Reg21 Reg5E[7:5] Reg5F Reg69 Reg5E[4:0] Reg6A time Go home (2). One table moving : speed Scanning position Reg3D,3E,3F scan finished Reg25,26,27 Reg21 Reg69 time Reg5F Reg5E[7:5] Reg6A Go home 74. Reg :6BH (Read/Write) Default : 00H B7 : MULTFILM : to control motor phase idle to meet multi-film scan. B6 :GPOM13 : set : output MOTORTGO. : reset : output GPO13. B5~4:GPOM12~11 : to select GPIO12~11 as Bi-polar motor driver V-ref input voltage in order to control drive current. Note : GPIO12: 1. Pull up by resister to indicate that ASIC turn on lamp power whenever power on initial. 2. Pull down by resister to indicate that ASIC turn off lamp power whenever power on initial. 3. This pin can control bi-polar motor driver 1939,1940,2916,6219 or 3955 Vref in order to control Imax.current. GPIO11: This pin can control bi-polar motor driver 1939,1940,2916,6219 or 3955 Vref in order to Control Imax. current. 42 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller B3 : Reserved. B2 : Reserved. B1~0:GPO18~17 : output GPO18,GPO17 ports. 75. Reg :6CH,6DH (Read/Write) Default : 00H,00H GPIO[16:1] : GPIO16~1 outputs ports 76. Reg :6EH,6FH (Read/Write) Default : 00H,00H GPOE[16:1] : GPO16~1 ports output enable set. Set ‘1’ : output. Reset ‘0’ : input. 77. Reg : 70H,71H (Read/Write) Default:15H,17H RSH[4:0] : set CCD RS rising edge position. RSL[4:0] : set CCD RS falling edge position. (1). Color,fine gray or fine line-art: 12 phase/pixel 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 4 0 1 2 3 4 5 0 1 2 3 4 5 5 6 7 8 9 10 11 0 1 2 3 4 CCD RS : RSH=08H RSL=0BH (2).Fast gray or fast line-art : 6 phase/pixel 0 1 2 3 4 5 0 1 2 3 5 CCD RS : RSH=05H RSL=01H 78. Reg : 72H,73H (Read/Write) Default:15H,17H CPH[4:0] : set CCD CP rising edge position. CPL[4:0] : set CCD CP falling edge position. (1). Color,fine gray or fine line-art : 12 phase/pixel 5 6 7 8 9 10 11 0 1 2 3 4 CCD CP : CPH=0AH CPL=01H 43 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller (2).Fast gray or fast line-art : 6 phase/pixel 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 CCD CP : CPH=03H CPL=05H 79. Reg : 74H,75H,76H (Read/Write) Default : 00H,00H,00H CK1MAP[17:0] : CCD clock 1 bits mapping function. 80. Reg : 77H,78H,79H (Read/Write) Default : 00H,00H,00H CK3MAP[17:0] : CCD clock 3 bits mapping function. 81. Reg : 7AH,7BH,7CH (Read/Write) Default : 00H,00H,00H CK4MAP[17:0] : CCD clock 4 bits mapping function. 82. Reg : 7DH (Read/Write) Default : 00H B7: CK1NEG : set: CCD clock1,clock2 output locate at negative edge position of system clock. : reset : CCD clock1,clock2 output locate at positive edge position of system clock. B6: CK3NEG : set : CCD clock3 output locate at negative edge position of system clock. : reset : CCD clock3 output locate at positive edge position of system clock. B5: CK4NEG : set : CCD clock4 output locate at negative edge position of system clock. : reset : CCD clock4 output locate at positive edge position of system clock. B4: RSNEG : set : CCD RS output locate at negative edge position of system clock. : reset : CCD RS output locate at positive edge position of system clock. B3: CPNEG : to set CCD CP output locate at negative edge position of system clock. : reset : CCD CP output locate at positive edge position of system clock. B2: BSMPNEG : set : AFE video sample output locate at negative edge position of system clock. : reset : AFE video sample output locate at positive edge position of system clock. B1: VSMPNEG : set : AFE dark sample output locate at negative edge position of system clock. : reset : AFE dark sample output locate at positive edge position of system clock. B0: DLYSET : set : to enable VSMP and BSMP to delay output by 8.33ns unit : reset : disable this function. 83. Reg : 7EH (Read/Write) Default : 00H B5 :GPOLED18 : set : GPIO 18 as LED outout. : reset : GPIO18 as general I/O. B4 :GPOLED17 : set : GPIO 17 as LED outout. : reset : GPIO17 as general I/O. B3 :GPOLED16 : set : GPIO 16 as LED outout. : reset : GPIO16 as general I/O. B2 :GPOLED15 : set : GPIO 15 as LED outout. : reset : GPIO15 as general I/O. B1 :GPOLED14 : set : GPIO 14 as LED outout. : reset : GPIO14 as general I/O. B0 :GPOLED13 : set : GPIO 13 as LED outout. : reset : GPIO13 as general I/O. 44 Version 1.7 5 GL841 USB 2.0 2-in-1 Scanner Controller 84. Reg : 7FH (Read/Write) Default : 00H B7~6 :[1:0]BSMPDLY : to set BSMP output delay. 2’b00: no delay. 2’b01:delay 8.33ns 2’b10:delay 16.67ns 2’b11:delay 25ns. B5~4 :[1:0]VSMPDLY : to set VSMP output delay. 2’b00: no delay. 2’b01:delay 8.33ns 2’b10:delay 16.67ns 2’b11:delay 25ns. B3~0 :[3:0]LEDCNT : to set LED blinking speed. The unit is 100ms. 85. Reg : 80H (Read/Write) Default:00H B7~6: VRHOME[1:0] : to set the Vref. of the motor driver IC for go-home moving. B5~4: VRMOVE[1:0] : to set the Vref. of the motor driver IC for fast forward moving. B3~2: VRBACK[1:0] : to set the Vref. of the motor driver IC for backward moving. B1~0: VRSCAN[1:0] : to set the Vref. of the motor driver IC for scan forward moving. 86. Reg : 81H,82H (Read/Write) Default:00H,00H B8~0: ROFFSET[8:0] : to set R Channel Offset of the AFE for CIS color scan. 87. Reg : 83H,84H (Read/Write) Default:00H,00H B8~0: GOFFSET[8:0] : to set G Channel Offset of the AFE for CIS color scan. 88. Reg : 85H,86H (Read/Write) Default:00H,00H B8~0: BOFFSET[8:0] : to set B Channel Offset of the AFE for CIS color scan. 89. Reg : 87H (Read/Write) Default:00H B7 : Reserved. B6 : YENB : set: to enable PH_Y output of the YBIT. : reset: to disable PH_Y output of the YBIT. B5 : YBIT : to output PH_Y status. B4 : ACYCNRLC : set: to generate RLC/ACYC pulse to trigger WM8199 auto-cycling for Line-by-line color scanning. : reset: to disable this function. B3 : ENOFFSET : set: to select automatic offset configuration for CIS scanning. : reset: to disable this function. B2 : LEDADD : set: enable true gray by controlling CIS RGB LED array. : reset: normal gray by controlling CIS single color LED array. B1 : CK4ADC : set: to select ADCCLK output by CK4MAP setting. : reset: to select ADCCLK output by default. B0 : AUTOCONF : set: to enable automatic channel,offset configuration or or RLC/ACYC pulsing for CIS color scan. : reset: to disable these function. Note: If YBIT=1,then YENB=1 PH_Y=1;YENB=0 PH_Y=0. If YBIT=0,then YENB=1 PH_Y=0;YENB=0 PH_Y=1. 45 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 90. Shading mapping(Chunky for single bank) Attribute Resolution Address[19:0] 600dpi 00000H~07FFFH (DPIHW=00) SIZE : 32k 1200dpi 00000H~0FFFFH (DPIHW=01) SIZE : 64k 2400dpi 00000H~1FFFFH (DPIHW=10) SIZE : 128k Shading Mapping 91. Shading mapping(Planer) Attribute Resolution Address[19:0] RED 600dpi CHANNEL (DPIHW=00) GREEN 00000H~029FFH 02A00H~053FFH CHANNEL BLUE 05400H~07DFFH CHANNEL RED 1200dpi CHANNEL (DPIHW=01) GREEN Shading Mapping 00000H~054FFH 05500H~0A9FFH CHANNEL BLUE 0AA00H~0FEFFH CHANNEL RED 2400dpi 00000H~0A7FFH CHANNEL (DPIHW=10) GREEN 0A800H~14FFFH CHANNEL BLUE 15000H~1F7FFH CHANNEL 46 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 92. Slope Curve Table Mapping : Attribute Resolution 600DPI Table no. Address[19:0] TABLE 1 08000 ~ 081FF TABLE 2 08200 ~ 083FF TABLE 3 08400 ~ 085FF TABLE 4 08600 ~ 087FF TABLE 5 08800 ~ 089FF TABLE 1 10000 ~ 101FF TABLE 2 10200 ~ 103FF TABLE 3 10400 ~ 105FF TABLE 4 10600 ~ 107FF TABLE 5 10800 ~ 109FF TABLE 1 20000 ~ 101FF TABLE 2 20200 ~ 203FF TABLE 3 20400 ~205FF TABLE 4 20600 ~207FF TABLE 5 20800 ~209FF (DPIHW=00) Slope Curve Table 1200DPI (DPIHW=01) 2400DPI (DPIDW=10) 47 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 93. Image Buffer Mapping : DRAM SIZE Resolution Address[19:0] 600DPI DRAM/SRAM (DPIHW=00) 4M BITS X 1 1200DPI 09000H~3FFFFH 11000H~3FFFFH (DPIHW=01) 2400DPI 21000H~3FFFFH (DPIHW=10) DRAM 600DPI 4M BITS X 2 (DPIHW=00) or 1200DPI 8M BITS (DPIHW=01) SRAM 09000H~7FFFFH 11000H~7FFFFH 2400DPI 21000H~7FFFFH (DPIHW=10) 600DPI DRAM (DPIHW=00) 16M BITS 1200DPI 09000H~FFFFFH 11000H~FFFFFH (DPIHW=01) 2400DPI 21000H~FFFFFH (DPIHW=10) 48 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 8 Package QFP-128L (14*20 mm, F/P: 3.2 mm): SYMBOLS MIN(mm) NOM(mm) A1 0.25 0.35 A2 2.57 2.72 b 0.10 0.20 C 0.10 0.15 D 13.90 14.00 E 19.90 20.00 e 0.50 Hd 17.00 17.20 He 23.00 23.20 L 0.65 0.80 L1 1.60 Y 0 Θ MAX(mm) 0.45 2.87 0.30 0.20 14.10 20.10 17.40 23.40 0.95 0.08 12 He A2 A1 Y L1 Hd D D E b e 0.08(0.003) M H 49 Version 1.7 GL841 USB 2.0 2-in-1 Scanner Controller 9 Revision History Rev 1.7 Date 20020814 Description Electrical characteristics (TSTQ and Tamb) revised (p.12) Package description updated (p.49) Revision History item added (p.50) 50 Version 1.7