ALL MATERIALS ARE PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY
KIND. NO LICENSE OR RIGHT IS GRANTED UNDER ANY PATENT OR TRADEMARK OF
GENESYS LOGIC INC.. GENESYS LOGIC HEREBY DISCLAIMS ALL WARRANTIES AND
CONDITIONS IN REGARD TO MATERIALS, INCLUDING ALL WARRANTIES, IMPLIED OR
EXPRESS, OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, AND
NON-INFRINGEMENT OF INTELLECTUAL PROPERTY. IN NO EVENT SHALL GENESYS LOGIC
BE LIABLE FOR ANY DAMAGES INCLUDING, WITHOUT LIMITATION, DAMAGES RESULTING
FROM LOSS OF INFORMATION OR PROFITS. PLEASE BE ADVISED THAT THE MATERIALS
MAY CONTAIN ERRORS OR OMMISIONS. GENESYS LOGIC MAY MAKE CHANGES TO THE
MATERIALS OR TO THE PRODUCTS DESCRIBED THEREIN AT ANY TIME WITHOUT NOTICE.
Trademarks:
is a registrated trademark of Genesys Logic Inc..
All trademarks are the properties of their respective owners.
Office:
Genesys Logic, Inc.
12F, No. 205, Sec. 3, Beishin Rd., Shindian City,
Taipei, Taiwan
Tel: (886-2) 8913-1888
Fax: (886-2) 6629-6168
GL843 High Speed USB2.0 With ADF 2-in-1 Scanner Controller For 3x
CHAPTER 1 GERERAL DESCRIPTION
Genesys Logic's single-chip GL843 (GeneScanTM 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, GL843 is not only ready for
supporting CIS or CCD image sensors (600, 1200, 2400, 3200, 3600, 4800dpi resolution) that are used in
sheetfed, flatbed or transparency scanners, but is able to co-work with unipolar or bipolar stepping motors.
Advanced features of GL843 include five motor acceleration/ deceleration curve tables for high speed motor
moving.
GL843 High Speed USB2.0 With ADF 2-in-1 Scanner Controller For 3x
CHAPTER 2 FEATURES
l Highly integrated scanner controller chip (2-in-1; Scanner Controller and USB 2.0 Interface)
l USB 2.0 High Speed (480Mbit) compliant
l Designed for sheetfed, flatbed and transparency scanners
l Supports key-matrix with latch function
l Embedded RISC CPU for scanning, run-in and diagnostic tests
l Supports external 24Kbytes flash ROM or internal 24Kbyte mask ROM
l Firmware download to external flash ROM
l 12MHz low frequency clock input for better EMI
l Flexible 3.3V/5V operating voltage for I/O pads
l Adjustable working clock of scanner controller for different usage (12M, 24M, 30M, 40M, 48M, 60MHz)
l Supports linear or stagger CCD, such as NEC, Toshiba or Sony CCD
l Available sensor types: 600, 1200, 2400, 3200, 3600 and 4800dpi color CIS or CCD
l Multi-TG control for CCD (separately controls the R/G/B exposure time)
l Shutter-control for CCD (separately controls the R/G/B exposure time)
l Supports two scanning types: pixel-by-pixel (pixel rate), line-by-line (line rate)
l Support 48-bits color, 16-bits gray and 1-bit line-art
l “True gray” with R, G and B weightings
l 16 bits white/dark shading and 16-to-8 bits Gamma correction
l 0.3us per pixel for color scanning under 40MHz working clock
l 0.2us per pixel for color scanning under 60MHz working clock
l Supports LCM/LCD interface to display messages
l Supports RS232 interface for special applications
l Supports EEPROM (93C46) interface for special applications
l Supports ADF (Auto-Document-Feeder) function with document, ADF and cover sensors
l Lossless data compression
l Lines packing for stagger CCD or R/G/B line differences
l Fine CDS sampling adjustment to avoid the digital noise influence (8.33ns adjustment)
l Digital average and hardware deletion for various resolutions
l Hardware deletion for various resolutions (from 4800~1dpi with 1dpi decrement)
l Supports 1M*16, 4M*16, 8M*16, 16M*16 and 32M*16 SDRAM
l Supports 5 acceleration/deceleration motor tables for high speed motor moving and wall hitting protection
l Supports controllable bipolar motor in full, half, quarter and eighth steps moving
l Supports controllable unipolar motor in full and half steps moving
l Supports V-reference automatic control for motor driver Ics
l Build-in PWM control phase for unipolar motors
GL843 High Speed USB2.0 With ADF 2-in-1 Scanner Controller For 3x
l Programmable dummy lines to resolve start/stop (discontinuous) problem
l Watchdog protection for lamp, motor and ASIC
l Lamp time-out (sleeping) control
l Supports 21 GPIO pins and 6 GPO pins for 128-pin package
l Supports 27 GPIO pins and 6 GPO pins for 208-pin package
l Supports 2 PWM outputs for flatbed/transparency lamp control with programmable duties and frequencies
l Supports LED blinking
l Supports back-scanning
l Supports multi-film scanning
GL843 High Speed USB2.0 With ADF 2-in-1 Scanner Controller For 3x
3.2 Pin List
Table 3.1 – 128 Pin List
Pin# Pin Name Type Pin# Pin Name Type Pin# Pin Name Type Pin# Pin Name Type
1 AVCC1 P 33 ABUS6 O 65 CCD_TGX O 97 GPIO4 I/O
2 X2 O 34 VccIO2P 66 CCD_CK1X O 98 GPIO5 I/O
3 X1 I 35 GndIO2P 67 MCLK O 99 GPIO6 I/O
4 AGND1 P 36 ABUS5 O 68 VSMP O 100 GPIO7 I/O
5 DVCC1 P 37 ABUS4 O 69 BSMP O 101 VccIO5 P
6 DGND1 P 38 ABUS3 O 70 SEN O 102 GndIO5P
7 DBUS15 I/O 39 ABUS2 O 71 SCLK O 103 GPIO8 I/O
8 DBUS14I/O 40 ABUS1 O 72 SDI O 104 GPIO10 I/O
9 DBUS13I/O 41 ABUS0 O 73 SDO I 105 GPIO11 I/O
DBUS12I/O 42 RASJ O 74 VccIO4 P 106 GPIO12 I/O
DBUS11I/O 43 CASJ O 75 GndIO4P 107 GPIO13 I/O
DBUS10I/O 44 WEJ O 76 OP7 I 108 GPIO14 I/O
DBUS9I/O 45 BANK1 O 77 OP6 I 109 GPIO15 I/O
DBUS8I/O 46 BANK0 O 78 OP5 I 110 GPIO16 I/O
VccIO1P 47 CKE O 79 OP4 I 111 GPIO17 I/O
GndIO1P 48 RAMCLK O 80 OP3 I 112 GPIO18 I/O
DBUS7 I/O 49 ADF_SENR I/O 81 OP2 I 113 VccCore4 P
DBUS6 I/O 50 HOME I 82 OP1 I 114 GndCore4P
DBUS5 I/O 51 LED_B O 83 OP0 I 115 GPIO19 I/O
DBUS4 I/O 52 XPA_SW O 84 MT_PH0 O 116 GPIO20 I/O
DBUS3 I/O 53 VccCore2P 85 MT_PH1 O 117 EXTRST_ O
DBUS2 I/O 54 GndCore2P 86 MT_PH2 O 118
DBUS1 I/O 55
DBUS0 I/O 56
VccCore1 P 57
26 GndCore1 P
ABUS12 O
ABUS11 O
LAMP_SW O
CCD_TGB O
CCD_TGG O
VccIO3P 90 MT_PH4 O 122 AVDD P
GndIO3P 91 MT_PH5 O 123 DPF I/O
CCD_CK4X O 92 MT_PH6 O 124 DPH I/O
VccCore3 P 119 DVCC0 P
GndCore3P 120 DGND0 P
MT_PH3 O 121 RPU -
GND
P
ABUS10 O
ABUS9 O
ABUS8 O
ABUS7 O 64 CCD_CK3X O 96 GPIO3 I/O 128 RREF I/O
CCD_CK2X O 93 MT_PH7 O 125 DMF I/O
CCD_RSX O 94 GPIO1 I/O 126 DMH I/O
CCD_CPX O 95 GPIO2 I/O 127 AGND P
9 X2 O 41 VccIO2 P 73 LED_B O 105 NC
10 X1 I 42 GndIO2 P 74 FSHA6 O 106 NC
11 AGND1 P 43 ABUS5
12 DVCC1 P 44 ABUS4
13 DGND1 P 45 ABUS3
14 DBUS15 I/O 46 NC 78 VccCore2 P 110 CCD_TGX O
DBUS14 I/O 47 NC 79 GndCore2 P 111 CCD_CK1X O
DBUS13 I/O 48 NC 80 FSHA9 O 112 MCLK O
DBUS12 I/O 49 NC 81 LAMP_SW O 113 VSMP O
DBUS11 I/O 50 NC 82 FSHA10 O 114 BSMP O
O
66 FSHA1 O 98 CCD_CPX
O
67 ADF_SENR I/O 99 GPIO24
O
68 FSHA2 O 100 CCD_CK3X
O
69 FSHA3 O 101 GPIO23
O
70 HOME I 102 NC
O
71 FSHA4 O 103 NC
O
72 FSHA5 O 104 NC
O
75 FSHA7 O 107 NC
O
76 XPA_SW O 108 NC
O
77 FSHA8 O 109 NC
I/O
I/O
I/O
O
O
DBUS10 I/O 51 NC 83 FSHA11 O 115 SEN O
DBUS9 I/O 52 NC 84 CCD_TGB O 116 SCLK O
DBUS8 I/O 53 NC 85 FSHA12 O 117 SDI O
VccIO1 P 54 NC 86 FSHA13 O 118 SDO I
23 GndIO1 P 55 ABUS2 O 87 CCD_TGG O 119 VccIO4 P
DBUS7 I/O 56 ABUS1 O 88 VccIO3 P 120 GndIO4 P
DBU6 I/O 57 ABUS0 O 89 GndIO3 P 121 OP7 I
26 DBUS5 I/O
27 DBUS4 I/O
28 DBUS3 I/O
29 DBUS2 I/O
30 DBUS1 I/O
31 DBUS0 I/O
32 VccCore1 P 64 RAMCLK O 96 CCD_RSX O 128 OP0 I
RASJ O 90 FSHA14 O 122 OP6 I
CASJ O 91 CCD_CK4X O 123 OP5 I
WEJ O 92 FSH_OEB O 124 OP4 I
BANK1 O 93 FSH_WEB O 125 OP3 I
BANK0 O 94 CCD_CK2X O 126 OP2 I
CKE O 95 GPIO26 I/O 127 OP1 I
CCD Clamp gate clock or CIS clock output
O CCD Transfer gate clock for R channel or CIS Line start pulse
O CCD Shift register clock2 or CIS clock output
O CCD Reset gate clock or CIS clock output
O CCD Shift register clock3
O CCD Shift register clock4
Description
GL843 High Speed USB2.0 With ADF 2-in-1 Scanner Controller For 3x
CCD_TGG
CCD_TGB
LAMP_SW
XPA_SW
LED_B
O
CCD Transfer gate clock for G channel
O
CCD Transfer gate clock for B channel
O Flatbed lamp power control or CIS Red LED array control
O Transparency lamp power control or CIS Green LED array control
O CIS Blue LED array control
Pin Name Type
OP7~0
SEN O Serial interface load pulse
SCLK O Serial interface clock output
SDI O Serial data output
SDO I Serial data input
BSMP
VSMP/CDSCLK2
MCLK/ADCCLK
I AFE digital data input
O Video sample synchronization pulse
O Video sample synchronization pulse
O Master clock.
Description
Pin Name Type
DBUS15~0
ABUS12~0 O DRAM address bus
RASJ SDRAM row address strobe
CASJ
WEJ
GL843 High Speed USB2.0 With ADF 2-in-1 Scanner Controller For 3x
Pin Name Type
RPU - 3.3V Pull up control for DPF
DPF
DPH
DMF
DMH
RREF - 510 Ω reference resistor input
I/O Positive USB differential data (Full Speed)
I/O Positive USB differential data (High Speed)
I/O Negative USB Differential Data (Full Speed)
I/O Negative USB Differential Data (High Speed)
Description
Pin Name Type
AVDD, AVCC1
AGND, AGND1 P Analog ground input for USB2.0 transceiver
DVCC0, DVCC1
DGND0, DGND1
VccCore1~4
GndCore1~4,
GndIO1~5
VccIO1~2 P For Pin7~Pin48 3.3V
P Analog power input for USB2.0 transceiver 3.3V
P Digital power input for USB2.0 controller 3.3V
P Digital ground input for USB2.0 controller.
Digital power input for scanner controller logic core 3.3V
P
P Digital ground input for scanner controller.
Description
VccIO3 P For Pin49~Pin66 3.3V
VccIO4 P For Pin67~Pin83 3.3V
VccIO5 P For Pin84~Pin117 3.3V
GND P Ground
Notation:
Type O Output
I Input
B Bi-directional
B/I Bi-directional, default input
B/O Bi-directional, default output
P Power / Ground A Analog SO Automatic output low when suspend
pu Internal pull up
pd Internal pull down
odpu Open drain with internal pull up
odpu Open drain with internal pull up
1 Enable true gray function. The weightings are stored in Reg A3,A4 and A5.
1 SHDAREA 0 Select whole-line shading.
1 Select area-shading (depend on scan area and scan dpi).
0 SCAN 0 Disable scanning process.
1 Enable scanning process.
Offset 02h
NOTHOME ACDCDIS
AGOHOME
MTRPWR FASTFED MTRREV HOMENEG
LONGCURV
R/W R/W R/W R/W R/W R/W R/W R/W
7 NOTHOME 0In auto-go-home function, carriage will not stop until touching the home sensor.
1 In auto-go-home function, moving steps of carriage depends on steps setting
from software (Reg 3D, 3E and 3F).
6 ACDCDIS 0 Enable carriage backtracking when image buffer is full.
1 Disable carriage backtracking when image buffer is full.
5 AGOHOME 0 Disable auto-go-home function.
1 Enable auto-go-home function. It’s for carriage to go home automatically
after scanning finished.
4 MTRPWR 0 Turn off MOTOR power and phase to idle state.
1 Turn on MOTOR power and phase.
3 FASTFED 0 Move to scanning window by only one acceleration/deceleration tables.
1 Move to scanning window by two acceleration/deceleration tables.
2 MTRREV 0 Set motor to move in forward direction.
1 Set motor to move in reverse direction.
1 HOMENEG 0 Motor will be decelerated when home sensor input (HOME) changes from low
to high (rising edge).
1 Motor will be decelerated when home sensor input (HOME) changes from
high to low (falling edge).
0 LONGCURV 0 The deceleration curve of the fast moving is defined in table 4 or use default
GL843 High Speed USB2.0 With ADF 2-in-1 Scanner Controller For 3x
Line art scanning : 1 bit image with gamma correction
111 16 clocks/pixel.
Color scanning : 24 bits image with gamma correction
48 bits image without gamma correction
Gray scanning : 8 bits image with gamma correction
16 bits image without gamma correction
Line art scanning : 1 bit image with gamma correction
4 PWRBIT The hardware will reset this bit during power-on initial process. It can be set and
checked by S/W to know if the power had been turned off or not.
Default is reset.
3 GAIN4 0 Digital shading gain=8 times system.
1 Digital shading gain=4 times system.
Note: If you want to get more precise image quality,you can set GAIN4 bit.
2-0 OPTEST[2:0] Select ASIC operation type.
000 Set normal mode to capture AFE image.
001 Set SDRAM bank testing and power-on moving testing 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.
101 Reserved.
110 Reserved.
111 Reserved.
Offset 07h ……………………………………………..…………..……..………. Default value = 8’h00
LAMPSIM CCDCTL DRAMCTL MOVCTL
RAMSEL FASTDMA DMASEL DMARDWR
R/W R/W R/W R/W R/W R/W R/W R/W
7 LAMPSIM for timer simulation
6 CCDCTL for CCD timing control
5 DRAMCTL for SRAM & DRAM access control
4 MOVCTL for motor driver IC style control
3 SRAMSEL 0 DMA access for DRAM.
1 DMA access for SRA
2 FASTDMA 0 4clocks/access,that is to say 4clocks/16bits or 4clocks/8bits for
DMA access.
1 2clocks/access,that is to say 2clocks/16bits or 2clocks/8bits for
DMA access.
1 DMASEL 0 MPU access DRAM under command mode.
1 DMA access DRAM under command mode.
0 DMARDWR 0 DMA read DRAM under command mode.
Note: Please do not write other values than 00H into this register under normal condition.
Offset 08h ……………………………………………..…………..……..………. Default value = 8’h00
X DECFLAG GMMFFR GMMFFG GMMFFB GMMZR GMMZG GMMZB
X R/W R/W R/W R/W R/W R/W R/W
7 RESERVED 6 DECFLAG 0 Select gamma table in increment type
1 Select gamma table in decrement type.
5 GMMFFR 0 This function is not enabled
1 Gamma table address FFH of red channel is a special value.