GENESYS GL841 Datasheet

GL841 USB 2.0 2-in-1 Scanner Controller
7 Version 1.6
Genesys Logic, Inc.
GL841 High Speed USB 2.0 Two-in-one Scanner Controller
SPECIFICATION Ver. 1.6
June 11, 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
GL841 USB 2.0 2-in-1 Scanner Controller
Version 1.6
2
INDEX
1
General Description.............................................................................................................................. 3
2 Feature................................................................................................................................................... 3
3 System Block Diagram......................................................................................................................... 5
4 Function Block Diagram......................................................................................................................6
5 Hardware description........................................................................................................................... 7
6 Application Description ..................................................................................................................... 14
7 Command set descriptions................................................................................................................. 23
8 Package…………………………………………….………………………………………………….48
GL841 USB 2.0 2-in-1 Scanner Controller
Version 1.6
3
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 co­work 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.
GL841 USB 2.0 2-in-1 Scanner Controller
Version 1.6
4
! Support hardware deletion type for DPI function (2400 to 1 DPI ,1 DPI
decrement) .
! 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.
GL841 USB 2.0 2-in-1 Scanner Controller
Version 1.6
5
3 SYSTEM BLOCK DIAGRAM
A. USB 2.0 System Block Diagram
Host
12 MHz
GL841 (USB2.0 Interface + Scanner ASIC
Controller)
Two-In-One Controller
DRAM
CCD/CIS
Motor Driver
IO Device
AFE
GL841 USB 2.0 2-in-1 Scanner Controller
Version 1.6
6
4 FUNCTION BLOCK DIAGRAM
HOST
Motor
control
A/D data
latch
Motor Driver
12MHz
I/O
CCD/ CIS
CCD/CIS
control
Front-
End(16
Bits)
Dark
Shading
process
White
Shading
process
Shading ,Image and Motor Table DRAM (256K*16*1) , (256K*16*2) or (1M*16)
Data
Packing
Average
Control
Gamma
Correcion
Black &
White
DPI
control
PLL
watchdog
GPIO
control
EPP
Circuit
Register Write
& Status read
Motor
Moving
Table
Data
Interface
Clk-gen
USB 2.0
Controller
Scanner Flow Control
GL841 USB 2.0 2-i n -1 Scanner Contr ol ler
7 Version 1.6
5 HARDWARE DESCRIPTION
5.1 Pins Assignment & Mode Definition:
SC+USB2.0
ASIC I/O
Cell
TSTSEL[1:0]=0
1
AVCC1 P
2 X2
I/O
3 X1
I
4
AGND1 P
5
DVCC1 P
6
DGND1 P
7 GPIO1
I/O
hbd16rsc
8 GPIO2 I/O hbd16rsc
9 GPIO3 I/O hbd16rsc
10 GPIO4 I/O hbd16rsc
11 GPIO5 I/O hbd16rsc
12 GPIO6 I/O hbd16rsc
13 GPIO7 I/O hbd16rsc
14 GPIO8 I/O hbd16rsc
15 GPIO9 I/O hbd16rsc
16 GPIO10 I/O hbd16rsc
17 GPIO11 I/O hbd16rsc
18 GPIO12 I/O hbd16rsc
19
GPIO13
I/O hbd16rsc
20
GPIO14 I/O
hbd16rsc
21
VccCore1 P
22
GndCore1 P
23
GPIO15 I/O
hbd16rsc
24
GPIO16 I
hbd16rsc
25
Vccio1 P
26
Gndio1 P
27 MTR_SEL0
I
hbd16rsc
28 MTR_SEL1
I
hbd16rsc
29
LAMP_SW O
hbd16rsc
30
XPA_SW O
hbd16rsc
31
LED_B O
hbd16rsc
32 MT_PH0 O hbd16dhk
33 MT_PH1 O hbd16dhk
34 MT_PH2
O
hbd16dhk
35 MT_PH3 O hbd16dhk
36 MT_PH4 O hbd16dhk
37 MT_PH5
I/O
hbd16rsc
38 MT_PH6 O hbd16rsc
39 MT_PH7 O hbd16rsc
40
OP0 I
hbd16dhk
41
OP1 I
hbd16dhk
42
OP2 I
hbd16dhk
43
OP3
I hbd16dhk
44
OP4
I hbd16dhk
45
OP5
I hbd16dhk
GL841 USB 2.0 2-i n -1 Scanner Contr ol ler
Version 1.6
8
46
OP6 I
hbd16dhk
47
OP7 I
hbd16dhk
48
Vccio2 P
49
Gndio2 P
50
SDO I
hbd16dhk
51
SDI O
hbd16dhk
52
VccCore2 P
53
GndCore2 P
54
SCLK O
hbd16rsc
55
SEN O
hbd16dhk
56
BSMP O
hbd16rsc
57 VSMP O hbd16rsc
58 MCLK O hbd16rsc
59 CCD_TGX O hbd16rsc
60 CCD_CK1X O hbd16rsc
61 CCD_CK3X
O
hbd16rsc
62 CCD_CPX O hbd16rsc
63
Vccio3 P
64
Gndio3 P
65 CCD_RSX O hbd16rsc
66
HOME I
hbd16uhk
67 CCD_CK2X O hbd16rsc
68 CCD_CK4X
O
hbd16rsc
69 CCD_TGG O hbd16rsc
70 CCD_TGB O hbd16rsc
71 CASY O hbd16rsc
72 RASY O
hbd16rsc
73 NOEY O hbd16rsc
74
Vccio4 P
75
Gndio4 P
76 NWEY O hbd16rsc
77 CASX O hbd16rsc
78 RASX O hbd16rsc
79 NOEX O hbd16rsc
80 NWEX O hbd16rsc
81 ABUS0 O
hbd16rsc
82
VccCore3 P
83
GndCore3 P
84 ABUS1 O
hbd16rsc
85 ABUS2 O
hbd16rsc
86 ABUS3 O
hbd16rsc
87 ABUS4 O
hbd16rsc
88 ABUS5 O
hbd16rsc
89 ABUS6 O
hbd16rsc
90
Vccio5 P
91
Gndio5 P
92 ABUS7 O
hbd16rsc
93 ABUS8 O
hbd16rsc
94 ABUS9 O
hbd16rsc
95 DBUS0 I/O hbd16dhk
96 DBUS1 I/O hbd16dhk
GL841 USB 2.0 2-i n -1 Scanner Contr ol ler
Version 1.6
9
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
103
Vccio6 P
104
Gndio6 P
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
113
VccCore4 P
114
GndCore4 P
115
TSTSEL0 I
hbd16dhk
116
TSTSEL1 I
hbd16dhk
117 EXTRST_ I hbd8rteu
118 SUSPND O hbd8rted
119
DVCC0 P
120
DGND0 P
121 RPU ?
122 AVDD P
123 DPF I/O
124 DPH I/O
125 DMF I/O
126 DMH I/O
127 AGND
P
128 RREF ?
Note: hbd16dhk is internal pulled down ; hbd16uhk is internal pulled up ; hbd16* is 16mA ; hbd8* is for 8mA
5.2 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
GL841 USB 2.0 2-i n -1 Scanner Contr ol ler
Version 1.6
10
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 cl ock.
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 f irst me mo r y ch ip 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 secon d memory chip NWEY O DRAM WE signal of second memory chip Miscellaneous
GL841 USB 2.0 2-i n -1 Scanner Contr ol ler
Version 1.6
11
TSTSEL0 TSTSEL1
I To select mode: Normal mode = 00
MTR_SEL1 MTR_SEL0
I
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, VccCore4,DVCC1
P Digital power input for scanner controller logic core 3.3V
GndCore1,GndCore2,GndCore3, GndCore4,DGND1,DGND0 GndIO1,GndIO2,GndIO3,GndIO4, GndIO5,GndIO6
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 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 B
Negative USB Differential Data (High Speed) RREF - 510Ohm reference resistor input
GL841 USB 2.0 2-i n -1 Scanner Contr ol ler
Version 1.6
12
5.3 Electrical Characteristics:
5.3.1 Absolute Maximum Ratings (Voltages referenced to GND)
SYMBOL Description MIN MAX
DVCC0 DVCC1
AVDD
AVCC1
VccCore1~4
DC supply voltage -0.5V +3.6V
VccIO1~6 DC supply voltage -0.5V +3.6V or
+5.5V
VI DC input voltage -0.5V VCC+0.5V
V
I/O
DC input voltage range for I/O -0.5V VCC+0.5V
V
AI/O
DC input voltage for USB D+/D- pins -0.5V VCC+0.5V
V
I/OZ
DC voltage applied to outputs in High Z state -0.5V VCC+0.5V
V
ESD
static discharge voltage 4000V
Note : VCC : VccCore,VccIO,DVCC,AVDD or AVCC1
5.3.2 DC Characteristics (Digital Pins) : 3.3 V Logic Core or Pads
SYMBOL Description MIN TYP MAX UNIT
PD Power Dissipation mA DVCC0 DVCC1
AVDD
AVCC1
VccCore1~4
Power Supply Voltage 3.1 3.3 3.6 V
VccIO1~6 Power Supply Voltage 3.3V 3 3.3 3.6 V
IO DC output sink current excluding D+/D-/VCC/GND 16 or 8 mA VIL LOW level input voltage 0.9 V VIH HIGH level i nput voltage 2.0 V
V
TLH
LOW to HIGH threshold voltage 1.3 1.43 1.56 V
V
THL
HIGH to LOW threshold voltage 1.3 1.43 1.56 V
V
HYS
Hysteresis voltage - 0 - V VOL LOW level output voltage when IOL=16mA 0.4 V VOH HIGH level output voltage when IOH=16mA 2.4 V I
OLK
Leakage current for pads with internal pull up or pull
down resistor
46
µA
RDN Pad internal pulldown resister 72.8K 105.7K 167.4K Ohms RUP Pad internal pullup resister 135.9K 167.8K 212.4K Ohms
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 MIN TYP MAX UNIT
PD Power Dissipation mA
VccIO1~6 Power Supply Voltage 5.0V 4.5 5.0 5.5 V
IO DC output sink current excluding D+/D-/VCC/GND 16 mA VIL LOW level input voltage 0.9 V VIH HIGH level i nput voltage 2.4 V
V
TLH
LOW to HIGH threshold voltage V
V
THL
HIGH to LOW threshold voltage V VOL LOW level output voltage when IOL=8mA 0.4 V VOH HIGH level output voltage when IOH=8mA 2.4 V I
OLK
Leakage current for pads with internal pull up or pull
down resistor
46
µA
RDN Pad internal pulldown resister 104.6K 159.5K 206.6K Ohms RUP Pad internal pullup resister 81.9K 103.2K 254.6K Ohms
GL841 USB 2.0 2-i n -1 Scanner Contr ol ler
Version 1.6
13
5.3.3 DC Characteristics (D+/D-)
SYMBOL
Description
MIN TYP
MAX
UNIT
VOL D+/D- static output LOW(RL of 1.5K to 3.6V ) 0.3 V VOH D+/D- stati c output HIGH (RL of 15K to GND ) 2.8 3.6 V
VDI Differential input sensitivity 0.2 V VCM Differential common mode range 0.8 2.5 V VSE Single-ended receiver threshold 0.2 V
CIN Transceiver capacitance 20 pF
ILO Hi-Z state data line leakage -10 +10
µA
Z
DRV
Driver output resistance 28 43 Ohms
GL841 USB 2.0 2-i n -1 Scanner Contr ol ler
Version 1.6
14
6 Application Description
6.1 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: a. 12 system clock/pixel
(three-line-in or one-line-in) 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 = 30M Hz :
a. Normal Mode : Chunky color, fine gray or fine line art scan.
(scan mode 0) 12x33.333ns/pixel = 0.4us/pixel
(1). 600dpi : 2.160ms/line,15.163s/page.
GL841 USB 2.0 2-i n -1 Scanner Contr ol ler
Version 1.6
15
(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 :
TG
LED R
LED G
LED B
Loading...
+ 33 hidden pages