![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
GL841 usb 2.0 2-i n -1 scanner c ont rol l e r versi on 1.7 genes y s lo g ic, inc. GL841 high speed usb 2.0 two-in-one scanner controller specification ver. 1.7 aug. 14, 2002 genesy s 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-i n -1 scanner c ont rol l e r index 1 gener a l d e sc riptio n ............................................................................................................ .... 3 2 featu r es ....................................................................................................................... .................... 3 3 syste m bl ock d i a g r a m ........................................................................................................... 4 4 fu ncti o n block di a g r a m ....................................................................................................... 6 5 ha rd wa re des c ripti o n ........................................................................................................... 7 6 application d e scription ........................................................................................................ ............. 14 7 co mm a n d set des c ri ption ................................................................................................... 24 8 pack age ........................................................................................................................ ........................ 49 9 revisi on hist ory ............................................................................................................... ................... 50 versi on 1.6 2 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 1 general description genesys logic' s single-chip GL841 (genescan? series) is a high speed, high perform a nce, low cost and rich scalability controller for scanner. it successfully integrates scanner function asic and usb 2.0 interface controller into one single-chip. w ith its high perform a nce design architecture, GL841 is not only ready for supporting cis or ccd im age 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 ste pping m o tors. advanced features of GL841 include five m o tor acceleration/ deceleration curve tables for high speed m o tor m oving. 2 features GL841 usb 2.0 2-i n -1 scanner c ont rol l e r GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 12 m h z io device mo to r driv er GL841 (usb2.0 interface + scanner asic controller) two-in-one controller dram ccd/cis afe host versi on 1.6 5 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 4 function block diagram host mo to r contr o l a/d data latch mo to r driver 12m hz ccd/ cis ccd/cis contr o l dark shading p rocess white shading p rocess shadi ng ,im a ge and m o t o r tabl e dr am (256k*16*1) , (256k*16*2) or (1m *16) data packing g a mma correcion black & white dpi contr o l pll watchdog gpio contr o l epp circuit register write & status read mo to r m oving tab l e data in terf ace clk- gen usb 2. 0 contr o ller scanner flow c ont rol average contr o l fr ont- e nd( 16 bits) i/o versi on 1.6 6 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 5 hardware description 5. 1 pins assignment & mode definition: sc+ u sb2. 0 a s i c i / o cell ts ts el[1:0] = 0 1 avcc1 p 2 x2 i/o 3 x1 i 4 agnd1 p 5 dvcc1 p 6 dgnd1 p 7 g p io 1 i/o hbd16rsc 8 g p io 2 i/o hbd16rsc 9 g p io 3 i/o hbd16rsc 1 0 g p io 4 i/o hbd16rsc 1 1 g p io 5 i/o hbd16rsc 1 2 g p io 6 i/o hbd16rsc 1 3 g p io 7 i/o hbd16rsc 1 4 g p io 8 i/o hbd16rsc 1 5 g p io 9 i/o hbd16rsc 1 6 g p io 10 i/o hbd16rsc 1 7 g p io 11 i/o hbd16rsc 1 8 g p io 12 i/o hbd16rsc 19 gpio13 i/o h b d 1 6 r s c 20 g p i o 1 4 i / o hbd16rsc 21 v c c c o r e 1 p 22 gndcor e 1 p 23 g p i o 1 5 i / o hbd16rsc 24 g p i o 1 6 i hbd16rsc 25 v c c i o 1 p 26 g n d i o 1 p 2 7 m t r _ s e l 0 i hbd16rsc 2 8 m t r _ s e l 1 i hbd16rsc 29 lamp _s w o hbd16rsc 30 x p a _ s w o hbd16rsc 31 l e d _ b o hbd16rsc 3 2 m t _ p h 0 o hbd16dhk 3 3 m t _ p h 1 o hbd16dhk 3 4 m t _ p h 2 o hbd16dhk 3 5 m t _ p h 3 o hbd16dhk 3 6 m t _ p h 4 o hbd16dhk 3 7 m t _ p h 5 i/o hbd16rsc 3 8 m t _ p h 6 o hbd16rsc 3 9 m t _ p h 7 o hbd16rsc 40 o p 0 i hbd16dhk 41 o p 1 i hbd16dhk 42 o p 2 i hbd16dhk 43 op3 i h b d 1 6 d h k 44 op4 i h b d 1 6 d h k 45 op5 i h b d 1 6 d h k versi on 1.7 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 46 o p 6 i hbd16dhk 47 o p 7 i hbd16dhk 48 v c c i o 2 p 49 g n d i o 2 p 50 s d o i hbd16dhk 51 s d i o hbd16dhk 52 v c c c o r e 2 p 53 gndcor e 2 p 54 scl k o hbd16rsc 55 s e n o hbd16dhk 56 b s m p o hbd16rsc 5 7 v s mp o hbd16rsc 5 8 m c l k o hbd16rsc 5 9 c c d _tg x o hbd16rsc 6 0 c c d _ck 1 x o hbd16rsc 6 1 c c d _ck 3 x o hbd16rsc 6 2 c c d _cpx o hbd16rsc 63 v c c i o 3 p 64 g n d i o 3 p 6 5 c c d _rsx o hbd16rsc 66 h o m e i hbd16uhk 6 7 c c d _ck 2 x o hbd16rsc 6 8 c c d _ck 4 x o hbd16rsc 6 9 c c d _tg g o hbd16rsc 7 0 c c d _tg b o hbd16rsc 7 1 c a sy o hbd16rsc 7 2 r a sy o hbd16rsc 7 3 n o e y o hbd16rsc 74 v c c i o 4 p 75 g n d i o 4 p 7 6 n w ey o hbd16rsc 7 7 c a sx o hbd16rsc 7 8 r a sx o hbd16rsc 7 9 n o e x o hbd16rsc 8 0 n w ex o hbd16rsc 8 1 a b u s 0 o hbd16rsc 82 v c c c o r e 3 p 83 gndcor e 3 p 8 4 a b u s 1 o hbd16rsc 8 5 a b u s 2 o hbd16rsc 8 6 a b u s 3 o hbd16rsc 8 7 a b u s 4 o hbd16rsc 8 8 a b u s 5 o hbd16rsc 8 9 a b u s 6 o hbd16rsc 90 v c c i o 5 p 91 g n d i o 5 p 9 2 a b u s 7 o hbd16rsc 9 3 a b u s 8 o hbd16rsc 9 4 a b u s 9 o hbd16rsc 9 5 d b u s 0 i/o hbd16dhk 9 6 d b u s 1 i/o hbd16dhk versi on 1.7 8 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 9 7 d b u s 2 i/o hbd16dhk 9 8 d b u s 3 i/o hbd16dhk 9 9 d b u s 4 i/o hbd16dhk 1 0 0 d b u s 5 i/o hbd16dhk 1 0 1 d b u s 6 i/o hbd16dhk 1 0 2 d b u s 7 i/o hbd16dhk 103 v c c i o 6 p 104 g n d i o 6 p 1 0 5 d b u s 8 i/o hbd16dhk 1 0 6 d b u s 9 i/o hbd16dhk 1 0 7 d b u s 10 i/o hbd16dhk 1 0 8 d b u s 11 i/o hbd16dhk 1 0 9 d b u s 12 i/o hbd16dhk 1 1 0 d b u s 13 i/o hbd16dhk 1 1 1 d b u s 14 i/o hbd16dhk 1 1 2 d b u s 15 i/o hbd16dhk 113 v c c c o r e 4 p 114 gndcor e 4 p 115 ts ts e l 0 i hbd16dhk 116 ts ts e l 1 i hbd16dhk 117 extrst_ i hbd8rte u 118 suspnd o hbd8rte d 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 ? no te: hbd16dhk is internal pulled down ; hbd16uhk is internal pulled up ; hbd16* is 16ma ; hbd8* is for 8ma 5. 2 pin descriptions : suppor t i o por t s gpi o 1~16 b gener a l pur pose i nput/ output m t _ph0~7 o bi- polar ( 3955) : m t _ph7=phase _ a mt_ p h6 =phase_ b mt_ p h5 =d2 a mt_ p h4 =d1 a mt_ p h3 =d0 a mt_ p h2 =d2 b mt_ p h1 =d1 b mt_ p h0 =d0 b bi- polar ( 2916 or 6219) : m t _ph5=phase 1 mt_ p h4 =phase2 mt_ p h3 =i1 1 mt_ p h2 =i0 1 mt_ p h1 =i1 2 versi on 1.7 9 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r mt_ p h0 =i0 2 uni- polar ( 2003) : m t _ph3=phase a mt_ p h2 =phase b mt_ p h1 =phase /a mt_ p h0 =phase /b m o t o rt go( gpi o 13) o output m o tor tr igger for adf scanning or gpi o 13. hom e i sense car r i age hom e position ccd/cis co n t ro l sig n a ls ccd_ck1x o ccd shift r e gister clock1 or ci s clock output ccd_ck2x o ccd shift r e gister clock2 or ci s clock output ccd_cpx o ccd clam p gate clock or ci s clock output ccd_rsx o ccd reset gate clock or ci s clock output ccd_t gx o ccd t r ansfer gate clock for r channel or ci s l i ne star t pulse ccd_t gg o ccd t r ansfer gate clock for g channel ccd_t gb o ccd t r ansfer gate clock for b channel ccd_ck3x o ccd shift r e gister clock3 ccd_ck4x o ccd shift r e gister clock4 l a m p _sw o flatbed lam p power contr o l or ci s red l e d ar r a y contr o l xpa_sw o transparency lam p power c ontr o l or ci s gr een l e d ar r a y contr o l l e d _b o ci s blue l e d ar r a y contr o l front-end op0~7 i afe digital data input. sen/sload o serial interf ace load pulse. sclk o serial interf ace clock output. sdi o ser i al data output. sdo i ser i al data input. bsmp/cdsclk1 o wolfson type : vi deo sam p le sy nchr onization pulse. analog device : cds refer e nce level sam p ling clock. vsmp/cdsclk2 o wolf son type : vi deo sam p le sy nchr onization pulse. analog device : cds data level sam p ling clock. m c l k /adccl k o w o lfson ty pe : m a ster clock. analog device : a/d conver t er sam p ling clock. dram dbus0~15 b dram data bus abus0~9 o dram address bus rasx o dram ras signal of f i rst m e m o ry chip casx o dram cas signal of f i rst m e m o ry chip noex o dram oe(output enable) signal of f i rst m e m o ry chip nwex o dram we signal of f i rst m e m o ry chip rasy o dram ras signal of second m e m o r y chip casy o dram cas signal of second m e m o r y chip noe y o dram oe ( output enable) signal of second m e m o r y chip nw e y o dram w e signal of second m e m o r y chip miscellan e o u s versi on 1.7 10 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r tstsel0 tstsel1 i t o select m ode: nor m al m ode = 00 mtr_ sel1 mtr_ sel0 i m t r_se l [ 1:0] =10 select bi_polar 3955 m t r_se l [ 1:0] =01 select bi_polar 2916 or 6219 m t r_se l [ 1:0] =00 select uni_polar 2003 i x 1 i clock input for cr y s tal ( 12m hz) i ox2 o clock output for cr y s tal e x t r st _ i har d war e r e set 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 contr o ller 3. 3v dgnd0,dgnd1 p digital ground input for usb2.0 controller. vcccore1,vcccore2,vcccore3, vcccore4,dvcc1 p digital power input for sca nner contr o ller logic cor e 3. 3v gndcor e1, g ndcor e2, g ndcor e3, gndcore4,dgnd1,dgnd0 gndi o1, g ndi o2, g ndi o3, g ndi o4, gndi o5, g ndi o6 p digital gr ound input for scanner contr o ller . vcci o1 p for pi n7~pi n 39 3. 3v or 5v vcci o2 p for pi n40~pi n58 3. 3v or 5v vcci o3 p for pi n59~pi n66 3. 3v or 5v vcci o4, vcci o5, v cci o6 p for pi n67~116 3. 3v or 5v vcc0 p for usb2. 0 pads 3. 3v usb interf ace 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) d m h b negative usb differential data (high speed) rref - 510ohm reference resistor input versi on 1.7 11 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 5.3 electrical characteristics: 5.3.1 absolute m a xim u m ratings (voltages referenced to gnd) s y m b o l d e s c r i p t i o n m i n 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 v i 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/ o z dc voltage applied to outputs in high z state -0.5v vcc+0.5v t stq s t orage tem p erature range -60 x c + 1 5 0 x c t am b operating am bient tem p erature 0 x c 7 0 x c v esd static discharge voltage 4000v note : vcc : vcccore, vccio,dvcc,avdd or avcc1 5.3.2 dc c h aract eri s t i c s (di g i t a l pi ns) : 3.3 v logi c c o re or pads s y m b o l d e s c r i p t i o n m i n t y p max u n i t p d p o w e r d i s s i p a t i o n m a 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 i o dc output sink current excludi ng d+/d-/vcc/gnd 16 or 8 ma v il low level input voltage 0.9 v v ih high level input voltage 2.0 v v tl h 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 h y steresis v o l t a g e - 0 - v v ol low level output voltage when i ol = 1 6 m a 0 . 4 v v oh high level output voltage when i oh = 1 6 m a 2 . 4 v i ol k leakage current for pads with internal pull up or pull down resistor 4 6 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r r up pad internal pullup resist e r 8 1 . 9 k 1 0 3 . 2 k 2 5 4 . 6 k o h m s 5.3.3 dc characteristics (d+/d-) symbol descri pt i on m i n t y p m ax unit v ol d+/d- static output low(r l of 1.5k to 3.6v ) 0.3 v v oh d+/d- static output high (r l of 15k to gnd ) 2. 8 3. 6 v v di differential input sensitivity 0.2 v v cm differential common m ode range 0.8 2.5 v v se s i ngle-ended receiver thres hold 0.2 v c in t r a n s ceiver c a p a c i t a n c e 2 0 pf i lo hi-z s t ate data line leakage -10 +10 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 6 application description 6. 1 system cl ock internal pll. a. pll : 12m hz i nput , 24,30,40 m h z out put t o i n t e rnal sy st em . 6. 2 pi xel cl ock a. norm al m ode scan m ode 0: a. 12 sy st em cl ock/ pi xel (t hree-l i n e-i n or one-l i n e-i n ) b. c hunky col o r(t hree l i n e i n ),fi ne-gray or fi ne-l i n e-art scan for ccd. c. pl anar col o r scan (one l i n e i n ) or m onochrom e scan for cis b . fast m ode scan m ode 4 (one l i n e i n ) : a. 6 sy st em cl ock/ pi xel . b. pl anar col o r scan (one l i n e i n ) or m onochrom e 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 m ode 5 (t hree l i n e i n ): a. 15 sy st em cl ock/ pi xel b. c hunky col o r(t hree l i n e i n ),fi ne-gray or fi ne-l i n e-art scan for ccd. c. pl anar col o r scan (one l i n e i n ) or m onochrom e scan for cis d. scan m ode 6 (t hree l i n e i n ): a. 18 sy st em cl ock/ pi xel b. c hunky col o r(t hree l i n e i n ),fi ne-gray or fi ne-l i n e-art scan for ccd. c. pl anar col o r scan (one l i n e i n ) or m onochrom e scan for cis note : chunky color is r1g1b1,r2g2b2,r3 g3b3,???(three-line-in or pixel rate) planar color is r1,r2,r3,?..;g1,g2, g3 ,??.;b1 , b2 ,b3 , ??..(o n e -lin e-in o r lin e rate) c c d : c hunky col o r or pl anar col o r. cis : planar color 6. 3 scan speed a. sy st em cl ock = 30m hz : a. norm al m ode : c hunky col o r, fi ne gray or fi ne l i n e art scan. (scan m ode 0) 12x33.333ns/ p i x el = 0.4us/ p i x el versi on 1.7 14 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r GL841 usb 2.0 2-i n -1 scanner c ont rol l e r tg led r le d g led b b. gray scan: tg le d r/ g / b c. true gray scan: tg led r le d g led b 6. 6 image sensor t i mi ng c a n be program m e d. a. c c d : support 600,1200 or 2400 dpi c c d . for exam ple nec, toshiba, sony ??etc. b . c i s : support 600,1200 or 2400 dpi c i s. for exam ple toshiba , canon??etc. 6.7 dummy line support program m a bl e dum m y l i n es t o resol v e (overcom e) st art / s t op probl em . you can i n sert dum m y l i n es t o reduce scanner st op and wai t event s (buffer ful l ) or al way s non-st op. a. li ne base of dum m y l i n es: the range of dum m y l i n es i s 0 l i n e ~ 15 l i n es. b. ad j u stab le d u m m y lin e: versi on 1.7 16 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r the range i s c c d or c i s m i ni m u m shi f t out t i m e t o 2096k pi xel s t i m e , whi c h can be adjust ed by 1 p i x e l tim e in crem en t. 6. 8 anal og front e nd t i mi ng ext e rnal 16 bi t s front -end for w o l f son w m 8192, w m 8199??et c . 6. 9 image t y pe support col o r, fi ne gray , fi ne l i n e art , fast gray and fast l i n e 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 sam e . so fine gray or fine line art scanni ng speed i s sl ow. the exposure t i m e of fast l i n e art or fast gray scan i s short e r t h an fi ne l i n e art or fi ne gray scan. so, fast l i n e art or fast gray scanni ng speed i s hi gh. 6. 10 b i ts depth 1 6 x 3 bits tru e co lo r , 1 6 b its g r ay lev e l an d o n e b it lin e art(black & w h ite). im age dat a t y pe : 16 bi t s , 8 bi t s and 1 bi t dat a t y pe. 6.11 shading & correction a. white shading & dark shading: int e rnal whi t e shadi ng by pi xel (16 bi t s resol u t i on) and dark shadi ng by pi xel (16 bi t s resol u t i on), can be enabled or disabled by s/w . the white shading curve is calculated by s/w . data arran g e m e n t: th ree lin e in m o d e : d a rk r1 ,wh ite r1 ,d ark g1 ,wh ite g1 ,d ark b1 ,wh ite b1 , dark r2,w h ite r2 ,d ark g2 ,wh ite g2,dark b2,white b2, dark r3,w h ite r3 ,d ark g3 ,wh ite g3 ,dark b3,white b3,?? one line in m ode:dark r1,white data r1,dark r2,w h ite r2 ,d ark r3 , wh ite r3 ? dark g1,wh ite d a ta g1 ,d ark g2 ,wh ite g2 ,d ark g3 ,wh ite g3 ? dark b1,wh ite d a ta b1 ,d ark b2 ,wh ite b2,dark b3,white b3? w h i t e shadi ng form ul a : 2000h x target / (w n-dn) = w h i t e gai n dat a ----- for 8 t i m es sy st em w h i t e shadi ng form ul a : 4000h x target / (w n-dn) = w h i t e gai n dat a ----- for 4 t i m es sy st em for exam ple : target = 3fffh w n = 2fffh dn = 0040h and 8 tim es system operation then w h ite gain = 2000h x 3fffh / (2fffh-0040h) = 2ae4h (1.34033 tim es) b. gamma correction : gamma co rrectio n tab l e is calcu lated b y s/w . th e reso lu tio n is 1 6 b its g a m m a tab l e. r a nge: 0 t o 64k (16 bi t s ) i nput m a ppi ng t o 0 t o 255 (8 bi t s ) out put ; style : increm ent or decr em ent gam m a curve style. not e : if y ou by pass gam m a correct i on , y ou can get 16 bi t s i m age dat a . if y ou enabl e gam m a correct i on , y ou can get 8 bi t s i m age dat a . versi on 1.7 17 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 6. 12 t h reshol d l e vel setti ng c a n be program m e d by s/ w . r a nge: 0 t o 255 can be adjust ed by one i n crem ent . the t h reshol d wi t h bandwi d t h i s i n order t o reduce i m age noi se. bw hi d h bw low b c e f i bandwi d t h g a a,b,c,g : are black pixels d , e,f,h , i : are wh ite p i x e ls 6.13 exposure time adjustable m a xi m u m : 2096k pi xel s t i m e adjust m e nt st ep: 1 pi xel t i m e. for transparency scan,t he exposure t i m e can up t o 2096k pi xel t i m e. 6. 14 scan width control scan wi dt h cont rol for hori z ont al l i n e. a.support start pixel address, end pixe l address and dum m y pixel num ber setting b.m a xi m u m l e ngt h: 64k pi xel s . m i ni m u m l e ngt h: 1 pi xel 6. 15 support built-in usb(2.0) a.two i n one: usb 2 .0 + scanner cont rol l e r. versi on 1.7 18 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 6. 16 dram timing support 4m x1 , x2 b i t s (256kx16) or 16m b i t s (1m x16) for edo dr am ; 4m or 8m b i t s for sr am ,as i m age buffer and cal i b rat i on buffer t i m i ng. you can sel ect si ngl e or doubl e dr am for scanner. dr am speed i s 28ns and above for 30m hz sy st em cl ock,25ns and above for 40m hz sy st em cl ock. 6. 17 hori z o ntal resol u ti on adjustabl e for dpi functi on a. dig ital d e letio n typ e : the resol u t i on from 1 dpi t o 2400 dpi , can be adjust ed by 1 dpi i n crem ent 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 di gi t a l average funct i on. for exam pl e, 1200dpi scanner: 600dpi , 400dpi , 300dpi , 240dpi , 200dpi , 150dpi , 120dpi , 100dpi , 80dpi average funct i on. c . support st agger c c d : support 1/ 2,1/ 4 resol u t i on , such as nec , toshi b a and sony st agger c c d . 6. 18 verti c al resol u ti on adjustabl e for dpi functi on th e reso lu tio n o f m o to r sp eed co n t ro l is 1 6 b its, th erefo r e we can co n t ro l v e rtical reso lu tio n . b y one dpi i n crem ent , t h e resol u t i on can be from 1 dpi t o 4800dpi for 1200dpi scanner; and 1 dpi t o 9600 dpi for 2400dpi scanner. no te: th e reso lu tio n o f q u a rter step can u p to fo u r tim es reso lu tio n . 6.19 acceleration/decel eration five table the acceleration/deceleration slope tables are stored in dram , can be download by s/w . the slope can be program m e d by s/ w for each table. resolution is 16 bits pixel-tim e. the num ber of sl ope st eps i s 1~ 512 st eps. there are fi ve t a bl es for m o t o r m ovi ng. three t a bl es are for scanni ng and t h e ot hers are for fast m ovi ng. the forward and backward st eps can be program m e d by s/ w . the resol u t i on i s 16 bi t s pi xel - t i m e. the num ber of sl ope st eps i s 1~ 512 st eps. you can adjust any non- linear curve. note: what is fast m ove? such as m ove back to go- hom e or m ove to scan window in any position . (1). two t a bl es go t o scan: speed scanni ng posi t i on buffer ful l posi t i on scan fi ni shed go t o scan wi ndow a(4) b(4) forward c(1) d(1) e(1) f(3) tim e g(5),k h(2) i(2) j(4) versi on 1.7 19 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r b a c k w a r d g o h o m e a,j : table four (slope four) acceleration curve for fast m oving. b : table four (slope four) d eceleration curve for fast m oving. c,d : table one (slope one) acceler ation curve for scanning forward. f : table three (slope three) d eceleration curve fo r scanning finish. i : table two (slope two) acceler ation curve for scanning backward. h : table two (slope two) deceler ation curve for scanning backward. g : table five (slope five) deceleration curve for go-hom e. k : touch hom e sensor deceleration curve for go-hom e. versi on 1.7 20 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r (2). one tables go to scan: speed scanni ng posi t i on buffer ful l posi t i on scan fi ni shed go t o scan wi ndow c(1) d(1) e(1) f(3) t i m e g(5),k h(2) i(2) j(4) g o h o m e j : table four (slope four) accel eration curve for fast m oving. c,d : table one (slope one) acceler ation curve for scanning forward. f : table three (slope three) d eceleration curve fo r scanning finish. i : table two (slope two) acceler ation curve for scanning backward. h : table two (slope two) deceler ation curve for scanning backward. g : table five (slope five) deceleration curve for go-hom e. k : touch hom e sensor deceleration curve for go-hom e. 6. 20 stepping motor phase control there i s 8 out put cont rol pi ns t o cont rol st eppi ng m o t o r.m t r_ph0~ 7 for bi -pol ar andm t r _ph0~ 3 for uni - pol ar. a. bi -pol ar : a. support 2916 m o t o r dri v er t i m i ng and 2916 com p at i b l e dri v er ic , such as l6219. incl ude ful l , hal f and quart er st ep cont rol . b. support 3955 m o t o r dri v er t i m i ng. incl ude ful l , hal f , quart er and ei ght h st ep cont rol . c. support lb 1939,lb 1940 m o t o r dri v er t i m i ng. incl ude ful l and hal f st ep cont rol . b . uni -pol ar : a. support 2003 m o t o r dri v er t i m i ng and 2003 com p at i b l e dri v er ic . b. incl ude ful l st ep t w o phases on, ful l st ep si ngl e phase on and hal f st ep. c. pw m cont rol , i n cl ude frequency and dut y cont rol . versi on 1.7 21 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r pw m dut y fre que nc y phas e on t i m e 6. 21 watch-dog protecti o n th is fu n c tio n can au to m a tically reset th e system to in itial state, wh en ev er th e system is h e ld (n o access signal ) beyond the tim e lim it.be able to enable or disable this function by s/w . thi s funct i on can prot ect m o t o r power, l a m p power and asic sy st em . c a l c ul at i on form ul a : (30sec.) x (t i m es set t i ng) x (set t i ng no.). the range of set t i ng no. i s 1~ 15; t h e range of t i m es set t i ng i s 0~ 1. 6.22 lamp timeout control th is circu itry can au to m a tically reset th e lam p p o w er, wh en ev er th e system is settin g . be ab le to enabl e or di sabl e t h i s funct i on by s/ w . c a l c ul at i on form ul a: (60sec.) x (t i m es set t i ng) x (set t i ng no.). the range of set t i ng no. i s 1~ 7; t h e range of t i m es set t i ng i s 0~ 3. 6.23 lamp power control these are t w o power cont rol port s for l a m p . one i s for fl at bed and t h e ot her i s for xpa (transparency or film ). the resol u t i on of i t s pw m t y pe i s 8 bi t s . dut y range i s 1/ 256~ 256/ 256. not e : carri er frequency i s (sy s t e m cl ock)/ 256. 6. 24 sensor input the sy st em support hom e sensor i nput port . 6. 25 16 gpio ports you can set input or output for each gp io pin of the gpio1~16 separately. such as key p ads i nput s, docum ent sensor for sheet -fed or m o t o r power cont rol ? et c. not e : t h ere are t w o pi ns for speci al funct i on. one i s gpio12 and t h e ot her i s gpio11. gpio12 : 1. pul l up by resi st er t o i ndi cat e t h at asic t u rn on l a m p power whenever power on in itial. 2. pul l down by resi st er t o i ndi cat e t h at asic t u rn off l a m p power whenever power o n in itial. 3. thi s pi n can cont rol bi -pol ar m o t o r dri v er 2916,6219,3966 or 3955 vref i n order t o control im ax. current. gpio11 : thi s pi n can cont rol bi -pol ar m o t o r dri v er 2916,6219,3966 or 3955 vref i n order t o control im ax. current. versi on 1.7 22 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 6. 26 gpo17~18 ports or motor mt r_ph6~7 tw o phase you can sel ect 2 pi ns for 3955 2 phase m t r _ ph6~ 7 out put or gpo17~ 18 out put . 6. 27 gpo13 port or motor t r i gger si gnal for adf motor trigger signal for adf m o tor m oving ,i t can be controlled unde r scanning condition. 6. 28 pow er on check the defaul t st at us of t h e pw r b i t i s reset . you can set the pw rbit and then read back the status in order t o check t h e power st at us. thi s operat i on i s abl e t o check fi rst t i m e power on or not . 6. 29 ram t e st s/w can test dram/sram ic b y writi ng and readi ng back for checki ng. 6. 30 led blinking support led- bl i nki ng funct i on. it i s i m pl em ent e d i n gpio13~ 18 pi ns. 6. 31 support back scanning support forward or b ackword scanni ng t y pe. versi on 1.7 23 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 7 command set description reg. bit7 bit6 bit5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 01 cisset dogenb dvdset m16dram dramsel shdarea s can 02 nothome acdcdis agohome m trpwr fastfed mtrrev homeneg longcurv 03 lampdog aveenb xpasel lamppwr lamptim[ 3:0] 0 4 lineart bitset afemod[ 1 : 0 ] filter[ 1 :0 ] feset[ 1 : 0 ] 0 5 dpihw[ 1 : 0 ] mtllamp[ 1 :0 ] gmmenb mtlbase[ 1 : 0 ] 0 6 scanmod[ 2 : 0 ] pwrbit gain4 optest[ 2 : 0 ] 07 sramsel fastdma dmasel dmardwr 0 8 decflag gmmffr gmmffg gmmffb gmmzr gmmzg gmmzb 09 mcntset[ 1:0] clkset[ 1:0] backscan enhance shorttg nwait 0 a srambuf 0 b 0 c 0d clrlncnt 0 e scanreset 0 f move 10 e x pr[15:8] 11 e x pr[7:0] 12 e x pg[15:0] 13 e x pg[7:0] 14 e x pb[15:8] 15 e x pb[7:0] 16 ctrlhi toshiba tginv ck 1inv ck2inv ctrlinv c kdis ctrldis 1 7 tgmode[ 1 :0 ] tgw[ 5 : 0 ] 1 8 cnset dcksel[ 1 : 0 ] cktoggle ckdelay[ 1 : 0 ] cksel[ 1 : 0 ] 1 9 expdmy[ 7 :0 ] 1a manual3 manual1 ck4inv ck3inv lineclp 1 b 1 c ck4 m tgl ck3 m tgl ck1 m tgl c karea mtlwd tgtime[ 2 :0 ] 1 d ck4 l ow ck3 l ow ck1 l ow tgshld[ 4 :0 ] 1 e wdtime[ 3 :0 ] linesel[ 3 : 0 ] 1 f scanfed[ 7 :0 ] 2 0 bufsel[ 7 : 0 ] 2 1 stepno[ 7 : 0 ] 22 fw dst e p [7:0] 23 bw dst e p [7:0] 24 fast no[7:0] 25 l i ncnt [19:16] 26 l i ncnt [15:8] reg. bit7 bit6 bit5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 versi on 1.7 24 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 2 7 lincnt[ 7 :0 ] 2 8 ? g mmwrdata? 29 l a m ppw m [ 7:0] 2a ramaddr[ 15:8] 2b ramaddr[ 7 : 0] 2 c dpiset[ 1 1 : 8 ] 2d dpi s e t [ 7:0] 2 e bwhi[ 7 :0 ] 2 f bwlow[ 7 : 0 ] 30 st rpi x e l [ 15:8] 31 st rpi x e l [ 7:0] 32 e ndpi x e l [ 15:8] 33 e ndpi x e l [ 7:0] 3 4 dummy[ 7 :0 ] 3 5 maxwd[ 1 9 : 1 6 ] 36 m axw d[15:8] 37 m axw d[7:0] 3 8 lperiod[ 1 5 : 8 ] 3 9 lperiod[ 7 : 0 ] 3a fewrdata[ 8] 3b fe w r dat a[7:0] 3c ? r amwrdata? 3d fe e d l [ 19:16] 3e fe e d l [ 15:8] 3f fe e d l [ 7:0] 40 hispdflg motmflg dataenb 41 pwrbit bufempty feedfsh scanfsh homesnr lampsts f ebusy motorenb 4 2 validword[ 1 9 : 1 6 ] 43 val i d w o rd[15:8] 4 4 validword[ 7 :0 ] 45 ? r amrddata? 46 ferddata[ 8] 47 ferddata[ 7:0] 48 fe dcnt [19:16] 49 fe dcnt [15:8] 4a fedcnt[ 7 :0] 4b scancnt [19:16] 4c scancnt [15:8] 4d scancnt[ 7 :0] 4e ? g mmrddata? reg. bit7 bit6 bit5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 versi on 1.7 25 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 4 f 5 0 ferda[ 5 : 0 ] 5 1 fewra[ 5 : 0 ] 52 rhi [ 4:0] 53 rl ow [4:0] 54 ghi [4:0] 55 glow[ 4 :0] 56 bhi [ 4:0] 57 bl ow [4:0] 58 vsm p [4:0] vsm p w [ 2:0] 5 9 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 de cse l [ 2:0] st opt i m [ 4:0] 5f fmovdec[ 7:0] 60 z 1 m od[20:16] 61 z 1 m od[15:8] 62 z 1 m od[7:0] 63 z 2 m od[20:16] 64 z 2 m od[15:8] 65 z 2 m od[7:0] 66 phfreq[ 7 :0] 67 st e pse l [ 1:0] m t rpw m [5:0] 68 fstpsel[ 1:0] fastpwm[ 5:0] 69 fshde c[7:0] 6a fmovno[ 7:0] 6b multfilm gpom13 gpom12 gpom11 gpo18 gpo17 6c gpi o 16 gpi o 15 gpi o 14 gpi o 13 gpi o 12 gpi o 11 gpi o 10 gpi o 9 6d gpio8 gpio7 gpoi6 gpio5 gpio4 gpio3 gpio2 gpio1 6e gpoe16 gpoe15 gpoe14 gp o e 1 3 g p o e 1 2 g p o e 1 1 g p o e 1 0 g p o e 9 6f gpoe8 gpoe7 gpoe6 gp o e 5 g p o e 4 g p o e 3 g p o e 2 g p o e 1 70 rsh[4:0] 71 rsl [ 4:0] 72 cph[4:0] 73 cpl [ 4:0] 74 ck1m ap[17:16] 75 ck1m ap[15:8] 76 ck1m ap[7:0] reg. bit7 bit6 bit5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 versi on 1.7 26 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 77 ck3m ap[17:16] 78 ck3m ap[15:8] 79 ck3m ap[7:0] 7a ck4m ap[17:16] 7b ck4m ap[15:8] 7c ck4m ap[7:0] 7d ck1neg ck3neg ck4neg rsneg cpneg bsmpneg v smpneg dlyset 7e gpoled18 gpoled17 gpoled16 gpoled15 gpoled14 gpoled13 7f bsm p dl y[1:0] vsm p dl y[1:0] l e d cnt [ 3:0] 8 0 vrhome[ 1 : 0 ] vrmove[ 1 :0 ] vrback[ 1 :0 ] vrscan[ 1 : 0 ] 81 roffse t [ 8] 82 roffse t [ 7:0] 83 goffse t [ 8] 84 goffse t [ 7:0] 85 boffse t [ 8] 86 boffse t [ 7:0] 87 yenb ybit acycnrlc enoffset ledadd ck4adc autoconf 1. reg : 01h (read/ wri t e) defau lt : 0 0 h b7 :cisset : set: cis scan typ e . : reset: ccd scan typ e . b6: dogenb : set : enabl e wat c h dog of asic(set t i m e out : r eg1e[7: 4 ] ) . : reset: d i sab l e. b5:dvdset : set : enable shadi ng (include whole line shading and area shading two kinds). : reset : disable shading. b4 : reserv ed . b3 : m1 6 d ram : set: to select 1 6 m b its dram (1 m * 1 6 ) . : reset : t o sel ect 4m or 8m bi t s dr am (256*16). b 2 : d r a m s el : set : t h e dr am si ze i s 4m x2 (256kx16x2) bi t s . : reset : t h e dr am si ze i s 4m x1(256kx16x1) bi t s . b1:shdarea :set: enable shading area (depend on scan area and scan dpi). : reset: sh ad in g area is wh o l e lin e. b0 :scan : set: en ab le scan p r o cess. : reset: disable scan process. 2. reg : 02h (read/ wri t e) defau lt : 0 0 h b 7 : nothom e : set : aut o -go-hom e doesn?t go back t o hom e posi t i on. : reset: g o b ack to h o m e p o s itio n au to m a tically. b 6 : a c d c d is : set : di sabl e forward/ backward m ovi ng whenever buffer ful l . : reset: enable forward/backwa rd m oving whenever buffer full. b5:agohom e : set: whenever scan is fi nished, carriage go hom e autom a tically . : reset : di sabl e aut o -go-hom e funct i on. b 4 : m tr pw r : set : t u rn on m o tor power and phase. : reset : t u rn off m o tor power and phase. b3:fastfed : set: enable two table fo r m o tor m oving of the accel eration/deceleration. : reset : di sabl e t w o t a bl e, onl y use si ngl e t a bl e. versi on 1.7 27 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r b2 :mtrrev : set: set m o to r rev e rse m o v i n g . : reset: set m o to r fo rward m o v i n g . b1:homeneg : set : t o i ndi cat e whenever hom e sensor change from hi gh t o l o w (fal l i ng edge) t h en m o t o r is decelerated. r e set : t o i ndi cat e whenever hom e sensor change from l o w t o hi gh (ri si ng edge) t h en m o tor is decelerated. b0:longcurv : set: the deceleration curv e of the fast m oving is table 5. : reset: the deceleration curve of the fast m oving is table 4. 3. reg : 03h (read/ wri t e) defau lt : 0 c h b7:lam pdog : set: to start lam p sleeping m ode(default on). : reset: to disable lam p sleeping m ode. b6:aveenb : set: select dpi average function : reset : sel ect dpi del e t i on funct i on. b5 :xpasel : set: select tran sp aren cy lam p o n . : reset: select flatb e d lam p o n . b4 :lamppw r : set: tu rn o n lamp p o w er. : reset: tu rn o ff lamp p o w er. b3 ~0 :lamptim[3 :0 ] : lam p o n tim e settin g (d efau lt: 4 ) th e u n it is m i n u t e. 4. reg : 04h (read/ wri t e) defau lt : 0 0 h b7 :lineart : set: black /w h ite scan . : reset: co lo r/gray scan . b6 :bitset : set : 1 6 b its im ag e d a ta typ e (= wo rd ). : reset : 8 b its im ag e d a ta typ e (= b y te). b 5 ~ 4 : afem od[1: 0] : t o i ndi cat e afe operat i on m ode. w o lfson type afem od scanm od description cds av ailab l e m a x sam p l e r a t e ti m i ng r e qui rem e nt s 2 2 slow colo r pi xel - by -pi x el yes 5msps *3 channel mclk:vsmp rate is 8:1 1 0,1,3,4,5,6 color pixel-by-pix el yes 6.67msps *3 channel m clk:vsmp rate is 6:1 0 0,1,4,5,6 fast mono yes 13.3msps *1 channel m clk:vsmp rate is 3:1 analog device type afem od scanm od description cds av ailab l e m a x sam p l e r a t e ti m i ng r e qui re m ents 2 0,1,4,5,6 sl ow col o r pi xel - by -pi x el yes mclk:vsmp rate is 3 : 1 1 0,1,2,3,4,5,6 m ono yes m c lk: v sm p r a t e i s 2: 1 0 0,1,2,3,4,5,6 f ast m ono yes m c lk: v sm p r a t e i s 1: 1 b3~2:filter[1:0] : scan co lor type : a.00: color b . 0 1 : r c . 1 0 : g d . 1 1 : b b 1 ~ 0 : f eset[1: 0] : front end operat i on t y pe: a.00: esic t y pe 1. b.01: esic t y pe 2. c . 1 0 : a d i t y p e . d . 1 1 : r e s e r v e d . 5. reg : 05h (read/ wri t e) defaul t : 00h versi on 1.7 28 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r b7 ~6 : dpihw [ 1 : 0 ] : set ccd/cis reso lu tio n 00=600dpi 01=1200dpi 10=2400dpi 1 1 = r e s e r v e d . b5~4: mtllamp[1:0] : to set tim es of the lam p tim e out. 00: 1* lam p tim 01: 2*lam ptim 10: 4*lam ptim 1 1 : r e s e r v e d . b3 : gmmenb : set: en ab le g a m m a co rrectio n . : reset : by pass gam m a correct i on. b2 : reserv ed . b1~0: mtlbase[1:0] : to set output ccd pixel num ber under each system pixel tim e. 00=1 c c d pi xel / s y s t e m pi xel t i m e. 01=2 c c d pi xel s / s y s t e m pi xel t i m e. 10=3 c c d pi xel s / s y s t e m pi xel t i m e. 11=4 c c d pi xel s / s y s t e m pi xel t i m e. 6. reg : 06h (read/ wri t e) defaul t : 00h b 7 ~ 5 : sc anm od[2: 0] : set scan operat i on m ode 000: 12 cl ocks/ p i x el ; norm a l m ode operat i on for scanni ng. include color(pixel rat e ),fi ne gray and fi ne l i n e-art . 001: 12 cl ocks/ p i x el ; by pass m ode operat i on for cal i b rat i on. include color(pixel rate) and fine gray . 010: reserved. 011: reserved. 100: 6 cl ocks/ p i x el ; fast m ode operat i on. include color(line rate),fast gray and fast line-art. 101: 15 cl ocks/ p i x el ; for 16 bi t s col o r out put . 110: 18 cl ocks/ p i x el ; for 16 bi t s col o r out put . b 4 : pw r b i t : w hen power on,set t h i s bi t . to i ndi cat e power has on. defau lt is reset. b3 : gain4 : set: d i g ital sh ad in g g a in =4 tim es system . : reset: d i g ital sh ad in g g a in =8 tim es system . no te: if yo u wan t to g e t m o re p r ecise im ag e q u a lity,yo u can set gain4 b it. b 2 ~ 0 : optest[2: 0] : sel ect asic operat i on t y pe. 000: set norm a l m ode t o capt u re afe i m age. 001: set dram bank,pow er on carriage initiated and adf(m ot ort go) t e st for asic si m u l a t i on. 010: pi xel count pat t e rn for asic i m age t e st . 011: l i n e count pat t e rn for asic i m age t e st . 100: count er and adder t e st for asic si m u l a t i on t e st . 7. reg : 07h (read/ wri t e) defaul t : 00h b3:sramsel : set: dma access for sram. : reset: dma access for dram. b2:fastdma : 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. b1:dmasel : set: dma access dram under com m a nd m ode. : reset: mpu access dram under com m a nd m ode. b 0 : d m a r d w r : set : dm a read dr am under com m a nd m ode. versi on 1.7 29 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r : reset : dm a wri t e dr am under com m a nd m ode. not e : dm a operat i on can be processed under c p u and dm a t y pe. 8. reg : 08h (read/ wri t e) defaul t : 00h b6 : decflag : set :g am m a tab l e is d ecrem en t typ e : reset :g am m a tab l e is in crem en t typ e . b5 : gmmffr : set: to in d i cate th at red ch an n e l gam m a table address ffh is special value. b4 : gmmffg : set: to in d i cate th at red ch an n e l gam m a table address ffh is special value. b3 : gmmffb : set: to in d i cate th at red ch an n e l gam m a table address ffh is special value. b2 : gmmzr : set: to in d i cate th at red ch an n e l gam m a table address 00h is special value. b1: gmmzg : set: to indicate that green channe l gam m a table address 00h is special value. b0 : gmmzb : set: to in d i cate th at b l u e ch an n e l gam m a table address 00h is special value. 9. reg : 09h (read/ wri t e) defaul t : 00h b 7 ~ 6 : m c ntset[1: 0] : t o sel ect t h e uni t of m o t o r t a bl e count er. 00: pi xel count . 01: sy st em cl ock*2. 10: sy st em cl ock*3. 11: sy st em cl ock*4. b 5 ~ 4 : c l kset[1: 0] : t o sel ect t h e sy st em cl ock frequency . 00: 24m hz 01: 30m hz 10: 40m hz 11: 48m hz. b3 : backscan : set: to en ab le b ack ward scan fu n c tio n . : reset: to select fo rward scan fu n c tio n . b2: enhance : set: to enhance epp interface speed for usb2.0 : reset: to select norm a l epp interface speed for usb2.0 b1 : shorttg : set: en ab le sh o r t ccd sh(tg) p e rio d fo r film scan n i n g . b0 : nw ait : set: to d e lay n w ait (h_ b usy) o n e clo c k . 10 . reg : 09h (read/ wri t e) defaul t : 00h b0 : srambuf :set: to select ex tern al sram as th e im ag e b u ffer. :reset: to select ex tern al dram as the im age buffer. 11 . reg : 0dh (write) c o m m a nd : scanner com m a nd. b0 : clrlncnt : set: to clear scancnt(reg 4 b ,reg 4 c ,reg 4 d ). : reset : don?t cl ear sc anc nt. note: for each tim e scanning , you m u st clear scancnt before starting process. 12 . reg : 0eh (write) com m a nd : scanner software reset. it can in itiate aisc system , in clu d i n g lam p an d m o to r, c ont rol regi st ers, i n t e rnal ci rcui t and st at us, but not i n cl udi ng t a bl es i n dram, like gam m a table, shading table and acceleration/d eceleration table. no te: in n o r m a l co n d itio n , it is u n n ecessary to rese t scanner , unl ess t h e scanner i s out of cont rol . 13 . reg : 0fh (write) c o m m a nd : m o t o r m ovi ng. st art m o t o r farward/ backward m ovi ng. 14 . reg : 10,11h (read/ wri t e) defaul t : 00h,00h versi on 1.7 30 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r expr[15:0]: red-led array of cis or red channel tg of ccd exposure tim e setting. not e : can not be program m e d t o l ogi c zero. 15 . reg : 12h,13h (read/ wri t e) defaul t : 00h,00h expg[15:0]: green-led array of cis or green channel tg of ccd exposure tim e setting. not e : can not be program m e d t o l ogi c zero. 16 . reg : 14h,15h (read/ wri t e) defaul t : 00h,00h expb [15: 0] : b l ue-led array of c i s or b l ue channel tg of c c d exposure t i m e. not e : can not be program m e d t o l ogi c zero. 17 . reg : 16h (read/ wri t e) defau lt : 3 2 h 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 in d i cate th e im ag e sen s o r is toshiba cis. b5 :tginv : set: to rev e rse ccd tg. : reset : don?t reverse. b4 :ck1 inv : set: to rev e rse ccd clo c k 1 . : reset : don?t reverse. b3 :ck2 inv : set: to rev e rse ccd clo c k 2 . : reset : don?t reverse. b2 :ctrlinv : set: to rev e rse ccd cp & rs. : reset : don?t reverse. b 1 : c kdis : set : di sabl e c c d tg posi t i on c l ock 1/ 2 si gnal s . ccd tg ccd clo c k : reset : enabl e c c d tg posi t i on c l ock 1/ 2 si gnal s . ccd tg ccd clo c k b 0 : c tr ldis : set : di sabl e c c d tg posi t i on c p & r s si gnal s . ccd tg ccd cp/rs : reset: en ab le ccd tg p o s itio n cp & rs sig n a ls. versi on 1.7 31 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r ccd tg ccd cp/rs 18 . reg : 17h (read/ wri t e) defau lt : 1 4 h b7 ~6 :tgmode[1 :0 ] : to set ccd tg m o d e . 00: wi t hout dum m y l i n e c c d tg t y pe. 01: wi t h refl ect i onal docum ent scanni ng t y pe. 10: wi t h t r ansparency scanni ng t y pe. 11: tgm ode=2 for si m u l a t i on. b5 ~0 :tgw [5 :0 ] : to set ccd tg wid t h . not e : c a n not be program m e d t o l ogi c zero. 19 . reg : 18h (read/ wri t e) defau lt : 0 0 h b 7 : c n set : set : tg and cl ock set t o c a non c i s st y l e. : reset : tg and cl ock i s non-c a non c i s st y l e. b 6 ~ 5 : d c k sel : 00 one t i m e c c d c l ocks speed for dum m y l i n e. 01 t w o t i m es c c d c l ocks speed for dum m y l i n e. 10 three tim es ccd clocks speed for dum m y line. 11 four t i m es c c d c l ocks speed for dum m y l i n e. b 4 : c ktoggle : set : hal f cy cl e per pi xel for c c d c l ock 1/ 2. : reset : one cy cl e per pi xel b 3 ~ 2 : c kdelay: 00 no del a y 01 del a y one sy st em cl ock for c c d c l ock 1/ 2. 10 del a y t w o sy st em s cl ock for c c d c l ock 1/ 2. 11 del a y t h ree sy st em s cl ock for c c d c l ock 1/ 2. b1 ~0 :cksel : 0 0 o n e tim e ccd cl ock speed for capture im age. 01 two tim es ccd clock speed for capture im age. 1 0 th ree tim es ccd clo c k speed for capture im age. 11 four tim es ccd clock speed for capture im age. no te : ccd clo c k sp eed u p lim itatio n : 1. sc anm od=0,1 : 12 cl ocks/ p i x el a. t oggl e c c d : be abl e t o speed up 1,2,3,4 t i m es. b. non-t oggl e c c d : be abl e t o speed up 1,2,3 t i m es. 2. scanmod=2 : reserved. 2. scanmod=3 : reserved. 3. sc anm od=4 : 6 cl ocks/ p i x el a. t oggl e c c d : be abl e t o speed up 1,2,3 t i m es. b. non-t oggl e c c d : can not speed up. 4. sc anm od=5 : 15 cl ocks/ p i x el a.t oggl e c c d : be abl e t o speed up 1,2,3,4 t i m es. b.non-t oggl e c c d : be abl e t o speed up 1,2,3 t i m es. 5. sc anm od=6 : 18 cl ocks/ p i x el a.t oggl e c c d : be abl e t o speed up 1,2,3,4 t i m es. b.non-t oggl e c c d : be abl e t o speed up 1,2,3,4 t i m es. 20 . reg : 19h (read/ wri t e) defau lt : 0 0 h expdm y [7: 0 ] : t o set dum m y l i n e exposure t i m e (uni t = 256 pi xel s t i m e) or c i s led array t u rn-on t i m e. no te: th e u n it is p i x e l tim e. versi on 1.7 32 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r cis sp cis led expdm y for turn on expr/expg/expb for turn off not e : can not be program m e d t o l ogi c zero. 21 . reg : 1ah (read/ wri t e) defau lt : 0 0 h b7 : reserv ed . b6 : reserv ed . b5:m aunal3 : set : ccd clock 3,clock4 m a nual output. : reset : c c d c l ock 3,c l ock4 aut o m a t i c out put . b4:m anual1 : set : ccd clock 1,clock2 m a nual output. : reset : c c d c l ock 1,c l ock2 aut o m a t i c out put . b3 :ck4 inv : set : to rev e rse ccd clo c k 4 . : reset : don?t reverse. b2 :ck3 inv : set : to rev e rse ccd clo c k 3 . : reset : don?t reverse. b1 :lineclp : set : to select ccd lin e clam p i n g . : reset : to select ccd p i x e l clam p i n g . b0:reserved. 22 . reg : 1b h (read/ wri t e) defau lt : 0 0 h reserv ed . 23 . reg : 1ch (read/ wri t e) defau lt : 0 0 h b 7 : c k 4m tgl : t o i ndi cat e c c d cl ock 4 t o use t oggl e funct i on. b 6 : c k 3m tgl : t o i ndi cat e c c d cl ock 3 t o use t oggl e funct i on. b 5 : c k 1m tgl : t o i ndi cat e c c d cl ock 1 t o use t oggl e funct i on. b 4 : c kar ea : set : c c d col oks speed depend on scan area. b 3 : m tlw d : t o set doubl e of t h e wat c h-dog t i m e out . b 2 ~ 0 : t gtim e[2: 0] : c c d li ne peri od sel ect i on. a.000: 1*lper i od(r e g38,r e g39) b.001: 2*lper i od c.010: 4*lper i od d.011: 8*lper i od e.100: 16*lper i od f. 101: 32*lper i od 24 . reg : 1dh (read/ wri t e) defau lt : 0 4 h b 7 : c k4low : t o set c c d cl ock4 are l o w under c c d tg. b 6 : c k3low : t o set c c d cl ock3 are l o w under c c d tg. b 5 : : c k1low : t o set c c d cl ock1,2 are l o w under c c d tg. b 4 ~ 0 : t gshld[4: 0] : t o set c c d tg shoul der wi dt h. not e : you have t o program t h e tgshld >= 2 (m ore t h an t w o) 25 . reg : 1e h (read/ wri t e) defau lt : 2 0 h b 7 ~ 4 : w dtim e[3: 0] : t o set wat c h-dog t i m e the uni t i s 30 seconds. b3 ~0 :linesel[3 : 0 ] : to set cis vertical dpi o r d u m m y lin es. versi on 1.7 33 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r cis : linesel =0 full dpi. =1 1/ 2 dpi =2 1/ 3 dpi ?.. =15 1/ 16 dpi ccd : linesel =0 no dum m y line. =1 1 dum m y line. =2 2 dum m y lines. ? ? =15 15 dum m y l i n es. no te : cis can b e im p l e m en t e d du mm y lin e b y m o to r m o v e m o th od ,no t du mmy lin es. 26 . reg : 1fh (read/ wri t e) defau lt : 0 0 h sc anfed[7: 0 ] : m ove t o scanni ng posi t i on by t a bl e one under t w o t a bl e operat i on. not e : can not be program m e d t o l ogi c zero. 27 . reg : 20h (read/ wri t e) defau lt : 0 0 h b u fsel[7: 0] : t o set buffer condi t i on (uni t = 4k word). scanner execute back ward/forward m oving whenever buffer full. if maxw d < buffer condition , then m o tor m ove forward to scan. 28 . reg : 21h (read/ wri t e) defau lt : 0 0 h stepno[7:0]: to set scanning forwar d slope curve of the acceleration/ deceleration (table one slope). not e : can not be program m e d t o l ogi c zero. 29 . reg : 22h (read/ wri t e) defau lt : 0 0 h fw dstep[7 :0 ] : to set step s n u m b e r o f th e fo rward step s. not e : can not be program m e d t o l ogi c zero. 30 . reg : 23h (read/ wri t e) defau lt : 0 0 h bw dstep[7 :0 ] : to set step s n u m b e r o f th e b ack ward step s. not e : can not be program m e d t o l ogi c zero. 31 . reg : 24h (read/ wri t e) defau lt : 0 0 h fastno[7:0]: to set scanning backwa rd slope curve of the acceleration/ deceleration (table two slope). b u f f e r f u l l p o s i t i o n speed r e g22 r e g21 r e g21 t i m e r e g24 r e g24 r e g23 versi on 1.7 34 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r not e : can not be program m e d t o l ogi c zero. 32 . reg : 25h,26h,27 h (read/ wri t e) defaul t : 00h,00h,00h lincnt[1 9 : 0 ] : to set th e scan lin es n u m b e r. not e : can not be program m e d t o l ogi c zero. 33 . reg : 28h (read/ wri t e) defau lt : 0 0 h gmmw rdata : th is p o r t to write g a m m a tab l e. 34 . reg : 29h (read/ wri t e) defau lt : ffh lam ppw m [ 7: 0] : t o set pw m dut y for l a m p power cont rol . 0: 1/ 256 dut y . 1: 2/ 256 dut y . ? . . 255: 256/ 256 dut y . 35 . reg : 2ah,2b h (read/ wri t e) defaul t : 00h.00h ramaddr[15:0] : to set dram start address to access data. not e: iram _a[19: 0] ={ram addr[15: 0] ,4?b0000}. 36 . reg : 2ch,2dh (read/ wri t e) defaul t : 00h,00h dpiset[10: 0] : set resol u t i on of dpi for average t y pe or del e t i on t y pe. a. average t y pe : di gi t a l average funct i on 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 decrem ent by one dpi. not e : can not be program m e d t o l ogi c zero. 37 . reg : 2e h (read/ wri t e) defau lt : 0 0 h bw hi[7 :0 ] : to set black & w h ite th resh o l d h i g h lev e l. 38 . reg : 2fh (read/ wri t e) defau lt : 0 0 h bw low [ 7 : 0 ] : to set black & w h ite th resh o l d lo w lev e l. bw hi d h bw low b c e f i bandwi d t h g a versi on 1.7 35 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r a,b,c,g : are black pixels d , e,f,h , i : are wh ite p i x e ls 39 . reg : 30h,31h (read/ wri t e) defaul t : 00h,00h str p ixel[15: 0] : t o set t h e begi n pi xel posi t i on (uni t : pi xel count ). str p ixel=(tgw +2*tgshld)+b egi n pi xel s num ber. not e : can not be program m e d t o l ogi c zero. 40 . reg : 32h,33h (read/ wri t e) defaul t : 00h,00h endpixel[15: 0] : t o set t h e end pi xel posi t i on (uni t : pi xel count ). endpixel=(tgw +2*t gshld)+end pi xel s num ber. not e : can not be program m e d t o l ogi c zero. 41 . reg : 34h (write) defau lt : 0 0 h dum m y [7: 0 ] : t o set t h e c c d dum m y & opt i cal bl ack pi xel s posi t i on (uni t : pi xel count ). note : reg30,31,32,33 and 34 setting rule. tgshld(r eg1d) r g w ( r e g17) tgshld(r eg1d) ccd tg ccd clock ccd pixel no: n-1 n 0 1 2 3 4 for exam pl e begi n pi xel i s 65 ,end pi xel i s 100 and c c d dum m y pi xel i s 64, then strpixel=(tgw +2*tgshld)+65. endpixel=(tgw +2*tgshld)+100. dummy =(tgw + 2*tgshld)+64. not e : can not be program m e d t o l ogi c zero. 42 . reg : 35h,36h,37h (read/ wri t e) defaul t : 00h,00h,00h maxw d[1 9 : 0 ] : to set m a x i m u m wo rd size p e r lin e fo r asic estim atio n . if usable buffer size < m axw d,then buffer is full.the scanner execute forward and b ackward m ovi ng. 43 . reg : 38h,39h (read/ wri t e) defaul t : 15h,18h lper iod[15: 0] : t o set li ne peri od(or exposure t i m e) for c c d . uni t : pi xel count not e : can not be program m e d t o l ogi c zero. 44 . reg : 3ah,3b h (read/ wri t e) defaul t : 00h,00h few r data[8: 0] : thi s port i s used t o wri t e dat a t o cont rol regi st er of front -end. 45 . reg : 3ch (read/ wri t e) defau lt : 0 0 h versi on 1.7 36 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r ramw rdata : th is p o r t is u s ed to write d a ta to dram. 46 . reg : 3dh,3e h,3fh (read/ wri t e) defaul t : 00h,00h,00h feedl[19: 0] : t o set feedi ng st eps num ber of m o t o r m ove. not e : can not be program m e d t o l ogi c zero. 47 . reg : 40h (read) b2 :hispdflg : set: m o to r is h i g h - sp eed m o v i n g . b1 :motmflg : set: m o to r is m o v i n g . : reset: m o to r is sto p . b 0 : dataenb : set : scanner i s scanni ng m ode. r e set : scanner i s com m a nd m ode. 48 . reg : 41h (read) b7:pw rbit : to indicate power status. po wer o n in itial,pw rbit=0 ; b6 :bufempty : set: to in d i cate th at th e im ag e b u ffer is em p t y. : reset: to indicate that the im age buffer is not em pty. b5 :feedfsh : set: to in d i cate th at m o to r feed in g is fin i sh ed . : reset: to in d i cate th at m o to r feed in g is n o t fin i sh ed . b4 :scanfsh : set: to in d i cate th at scan is fin i sh ed . : reset: to indicate that scan is not finished. b 3 : hom esnr : set : hom e sensor i s off (i s hom e posi t i on). : reset : hom e sensor i s on (i s not hom e posi t i on). b2 :lampsts : set: lam p is o n . : reset: lam p is o ff. b 1 : f eb usy : set : front end i s busy and can not read/ w ri t e agai n. : reset: fro n t en d is read y an d b e ab le to read /write ag ain . b0 :motorenb : set: m o to r is p r o cessin g . : reset: m o to r is n o t p r o cessin g . 49 . reg : 42h,43h,44h (read) validw o r d [19: 0] : t o i ndi cat e avai l a bl e words to read out in the im age buffer of dram. 50 . reg : 45h (read) ram r ddata : this port for read dram data. 51 . reg : 46h,47h (read) ferddata[8:0] : this port is used to read out data from front-e nd control register. 52 . reg : 48h,49h,4ah (read) fedc nt[19: 0] : t o read m o t o r feedi ng st eps num ber. for exam pl e,i f y ou have set m ovi ng st eps no. and execut e m ovi ng com m a nd. you can read out st eps no. m oved. 53 . reg : 4b h,4ch,4dh (read) sc anc nt[19: 0] : t o read scanner fi ni shed l i n es num ber. 54 . reg : 4e h (read) gm m r ddata : this port to read back the gam m a table. 55 . reg : 50h (read/ wri t e) defau lt : 0 0 h fer da[5: 0] : t h i s port i s read address set t i ng for front end cont rol regi st er read. versi on 1.7 37 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 56 . reg : 51h (read/ wri t e) defau lt : 0 0 h few r a[5: 0] : t h i s port i s wri t e address set t i ng for front end cont rol regi st er wri t e . 57 . reg : 52h,53h (read/ wri t e) defaul t : 00h,00h rhi[4 :0 ] : to latch r ch an n e l h i g h b y te d a ta o f afe. rlow [4 :0 ] : to latch r ch an n e l lo w b y te d a ta o f afe. 58 . reg : 54h,55h (read/ wri t e) defaul t : 00h,00h ghi[4 :0 ] : to latch g ch an n e l h i g h b y te d a ta o f afe. glow [4 :0 ] : to latch g ch an n e l lo w b y te d a ta o f afe. 59 . reg : 56h,57h (read/ wri t e) defaul t : 00h,00h bhi[4 :0 ] : to latch b ch an n e l h i g h b y te d a ta o f afe. blow [4 :0 ] : to latch b ch an n e l lo w b y te d a ta o f afe. (1). c o l o r,fi ne gray or fi ne l i n e-art : 12 phase/ p i x el 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 r [ 15: 8] r [ 7: 0] 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] r h i = 01h r l ow = 03h ghi = 05h glow = 07h b h i = 09h b l ow = 11h (2 ).fast g r ay o r fast lin e-art : 6 p h a se/p ix el 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 r[15:8] r[7:0] r[15:8] r[7:0] r[15:8] r[7:0] r[15:8] r h i = 02h r l ow = 05h 60 . reg : 58h (read/ wri t e) defau lt : 0 0 h b 7 ~ 3 : v sm p[4: 0] : t o set t h e ri si ng edge posi t i on of i m age sam p l i ng for afe. b2 ~0 :vsmpw [2 :0 ] : to set th e p u l se wid t h o f im ag e sam p lin g . (1). c o l o r,fi ne gray or fi ne l i n e-art : 12 phase/ p i x el 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 afe vsm p r e g58=52h : vsm p [4: 0 ] = 10h vsm p w [ 2: 0] =2h versi on 1.7 38 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r (2 ).fast g r ay o r fast lin e-art : 6 p h a se/p ix el 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 vsm p r e g58=0b h : vsm p [4: 0 ] = 01h vsm p w = 3h 61 . reg : 59h (read/ wri t e) defau lt : 0 0 h b 7 ~ 3 : b sm p[4: 0] : t o set t h e ri si ng edge posi t i on of dark vol t a ge sam p l i ng for afe. b 2 ~ 0 : b sm pw [2: 0 ] : t o set t h e pul se wi dt h of dark vol t a ge sam p l i ng. (1). c o l o r,fi ne gray or fi ne l i n e-art : 12 phase/ p i x el 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 afe bsm p r e g59=52h : b s m p [4: 0 ] = 10h b s m p w [ 2: 0] =2h (2 ).fast g r ay o r fast lin e-art : 6 p h a se/p ix el 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 bsmp r e g59=0b h : b s m p [4: 0 ] = 01h b s m p w = 3h 62 . reg : 5ah (read/ wri t e) defau lt : c0 h b7 : adclkinv : set: adc clock reverse. b6 : rlcsel : set: select reset lev e l clam p o n a p i x e l-b y -p ix el b a sis. : reset : don?t sel ect . b 5 ~ 4 : c dsr e f[1: 0] : t o set t h e front -end c d sr ef for l i n e rat e scanni ng t y pe. b3 ~0 :rlc[3 :0 ] : to set th e fro n t -en d rlc fo r lin e rate scan n i n g typ e . 63 . reg : 5b h,5ch (read/ wri t e) defaul t : 00h,00h gmmaddr[9:0]: to set gam m a access start address. 64 . reg : 5dh (read/ wri t e) defau lt : 0 0 h hispd[7: 0 ] : t o set change of t h e m ovi ng speed duri ng m ovi ng. not e : can not be program m e d t o l ogi c zero. 65 . reg : 5e h (read/ wri t e) defau lt : 0 0 h b7~5:decsel[2:0] :select deceler ation steps whenever go hom e. 000:1 steps deceleration 001:2 steps deceleration 010:4 steps deceleration 011:8 steps deceleration versi on 1.7 39 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 100:16 steps deceleration 101:32 steps deceleration 110:64 steps deceleration 111:128 steps deceleration b4~0:stoptim[4:0] :select acceler ation/deceleration stop tim e. no te: stoptim sim u latio n fo r asic m u st b e set to tg tim e=6 , 7 . c a n not be program m e d t o l ogi c zero. 66 . reg : 5fh (read/ wri t e) defau lt : 0 0 h fmovdec[7:0] : to set go-hom e fast m ove decel eration slope steps (t able five slope). not e : can not be program m e d t o l ogi c zero. 67 . reg : 60h,61h,62h (read/ wri t e) defaul t : 00h,00h,00h z1mod[20:0]: to set the slope curve of acceleration/deceleration table m ode value under buffer full m oving. not e : it shoul d be m o re t h an lper iod. 68 . reg : 63h,64h,65h (read/ wri t e) defaul t : 00h,00h,00h z2mod[20:0]: to set the slope curve of acceleration/deceleration m ode value under fi rst t i m e m ovi ng t o scanni ng . not e : it shoul d be m o re t h an lper iod. (1). two t a bl e m ovi ng : speed scanni ng posi t i on buffer ful l posi t i on b d a c t i m e (2). one t a bl e m ovi ng : speed scanni ng posi t i on buffer ful l posi t i on b d a c tim e {a+(b-1)} m ode lper iod = z2m od {c+(d-1)} m ode lper iod = z1m od note: if mcntset[1: 0]=01 or 10 or 11,then (each step curve value + 1)/vcnt. versi on 1.7 40 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r vcnt= system cl ocks per pi xel / (m c n tset+1). 69 . reg : 66h (read/ wri t e) defau lt : 0 0 h phfr eq[7: 0 ] : t o set pw m frequency for m o t o r phase of uni -pol ar. frequency : (24m hz)/ [(phfr e q+1)*4 70 . reg :67h (read/ wri t e) defau lt : 7 f h b7~6:stepsel[1:0] : for t a bl e one or t w o scanni ng m ove st ep t y pe sel ect i on. (1).bi-polar : a.00: ful l st ep (for 1939,1940,2916,6219 or 3966). b.01: hal f st ep (for 1939,1940,2916,6219 or 3966). c.10: quart er st ep (for 2916 or 6219). d . 1 1 : r e s e r v e d . (2).uni -pol ar : a.00: t w o-phase-on ful l st ep. b.01: hal f st ep. c.10: reserved. d.1 1 : si ngl e-phase-on ful l st ep. b 5 ~ 0 : m tr pw m [ 5: 0] : t o set pw m dut y cy cl e for t a bl e one m o t o r phase of uni -pol ar. m t r p w m = 0 1/ 64 dut y = 1 2/ 64 dut y = 2 3/ 64 dut y ?? = 63 64/ 64 dut y not e : if phfr eq < 0fh,t h en pw m set t i ng m u st < (phfr e q+1)*4 71 . reg :68h (read/ wri t e) defau lt : 7 f h fstpsel[1: 0] : for t a bl e t w o fast m ovi ng st ep t y pe sel ect i on. (1).bi-polar : a.00: ful l st ep (for 1939,1940,2916,6219 or 3966). b.01: hal f st ep (for 1939,1940,2916,6219 or 3966). c.10: quart er st ep (for 2916 or 6219). d.1 1 : reserved. (2).uni -pol ar : a.00: t w o-phase-on ful l st ep. b.01: hal f st ep. c.10: reserved. d.1 1 : si ngl e-phase-on ful l st ep. fastpw m [ 5: 0] : t o set pw m dut y cy cl e for t a bl e t w o m o t o r phase of uni -pol ar. fastpw m =0 1/ 64 dut y =1 2/ 64 dut y =2 3/ 64 dut y ? ? =63 64/ 64 dut y not e : if phfr eq < 0fh,t h en pw m set t i ng m u st < (phfr e q+1)*4 72 . reg :69h (read/ wri t e) defau lt : 0 0 h fshdec[7:0]: set scan-finish decelera tion slop steps(table three slope). not e : can not be program m e d t o l ogi c zero. 73 . reg :6ah (read/ wri t e) defau lt : 0 0 h versi on 1.7 41 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r fm ovno[7:0] : set fast m oving sl op steps(table four slope). note: can not be program m e d to logic zero. (1). two t a bl e m ovi ng : speed scanni ng posi t i on scan fi ni shed reg3d,3e,3f r e g6a r e g1f r e g25,26,27 r e g21 r e g69 reg5e[7:5] reg5e[4:0] reg6a tim e r e g 5 f go hom e (2). one t a bl e m ovi ng : speed scanni ng posi t i on scan fi ni shed r e g3d,3e,3f r e g25,26,27 r e g21 r e g69 t i m e r e g 5 f reg5e[7:5] reg6a g o h o m e 74 . reg :6b h (read/ wri t e) defau lt : 0 0 h b7 : multfilm : to co n t ro l m o to r p h a se id le to m eet m u lti-film scan . b 6 : g pom 13 : set : out put m o tor t go. : reset : out put gpo13. b 5 ~ 4 : g pom 12~ 11 : t o sel ect gpio12~ 11 as b i -pol ar m o t o r dri v er v-ref i nput vol t a ge i n order t o cont rol dri v e current . not e : gpio12: 1. pul l up by resi st er t o i ndi cat e t h at asic t u rn on l a m p power wh en ev er p o w er o n in itial. 2. pul l down by resi st er t o i ndi cat e t h at asic t u rn off l a m p p o w er wh en ev er p o w er o n in itial. 3. thi s pi n can cont rol bi -pol ar m o t o r dri v er 1939,1940,2916,6219 or 3955 vref i n order t o cont rol im ax.current. gpio11: thi s pi n can cont rol bi -pol ar m o t o r dri v er 1939,1940,2916,6219 or 3955 vref i n order t o c ont rol im ax. current . versi on 1.7 42 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r b3 : reserved. b2 : reserved. b 1 ~ 0 : g po18~ 17 : out put gpo18,gpo17 port s . 75 . reg :6ch,6dh (read/write) defaul t : 00h,00h gpio[16: 1] : gpio16~ 1 out put s port s 76 . reg :6e h ,6fh (read/ wri t e) defaul t : 00h,00h gpoe[16: 1] : gpo16~ 1 port s out put enabl e set . set ?1? : out put . r e set ?0? : i nput . 77 . reg : 70h,71h (read/ wri t e) defaul t : 15h,17h r s h[4: 0] : set c c d r s ri si ng edge posi t i on. r s l[4: 0] : set c c d r s fal l i ng edge posi t i on. (1). c o l o r,fi ne gray or fi ne l i n e-art : 12 phase/ p i x el 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 ccd rs : rsh=0 8 h rsl=0 b h (2 ).fast g r ay o r fast lin e-art : 6 p h a se/p ix el 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 ccd rs : rsh=0 5 h rsl=0 1 h 78 . reg : 72h,73h (read/ wri t e) defaul t : 15h,17h c p h[4: 0] : set c c d c p ri si ng edge posi t i on. c p l[4: 0] : set c c d c p fal l i ng edge posi t i on. (1). c o l o r,fi ne gray or fi ne l i n e-art : 12 phase/ p i x el 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 ccd cp : cph=0 ah cpl=0 1 h versi on 1.7 43 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r (2 ).fast g r ay o r fast lin e-art : 6 p h a se/p ix el 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 ccd cp : cph=0 3 h cpl=0 5 h 79 . reg : 74h,75h,76h (read/ wri t e) defaul t : 00h,00h,00h c k 1m ap[17: 0] : c c d cl ock 1 bi t s m a ppi ng funct i on. 80 . reg : 77h,78h,79h (read/ wri t e) defaul t : 00h,00h,00h c k 3m ap[17: 0] : c c d cl ock 3 bi t s m a ppi ng funct i on. 81 . reg : 7ah,7b h,7ch (read/ wri t e) defaul t : 00h,00h,00h c k 4m ap[17: 0] : c c d cl ock 4 bi t s m a ppi ng funct i on. 82 . reg : 7dh (read/ wri t e) defau lt : 0 0 h b 7 : c k 1neg : set : c c d cl ock1,cl ock2 out put l o cat e at negat i v e edge posi t i on of sy st em cl ock. : reset : ccd clo c k 1 , clo c k 2 o u t p u t lo cate at p o s itiv e ed g e p o s itio n o f system clo c k . b 6 : c k 3neg : set : c c d cl ock3 out put l o cat e at negat i v e edge posi t i on of sy st em cl ock. : reset : ccd clo c k 3 o u t p u t lo cate at p o s itiv e ed g e p o s itio n o f system clo c k . b 5 : c k 4neg : set : c c d cl ock4 out put l o cat e at negat i v e edge posi t i on of sy st em cl ock. : reset : ccd clo c k 4 o u t p u t lo cate at p o s itiv e ed g e p o s itio n o f system clo c k . b 4 : r s neg : set : c c d r s out put l o cat e at negat i v e edge posi t i on of sy st em cl ock. : reset : ccd rs o u t p u t lo cate at p o s itiv e ed g e p o s itio n o f system clo c k . b 3 : c p neg : t o set c c d c p out put l o cat e at negat i v e edge posi t i on of sy st em cl ock. : reset : ccd cp o u t p u t lo cate at p o s itiv e ed g e p o s itio n o f system clo c k . b 2 : b s m p neg : set : afe vi deo sam p l e out put l o cat e at negat i v e edge posi t i on of sy st em cl ock. : reset : afe v i d e o sam p le o u t p u t lo cate at p o s itiv e ed g e p o s itio n o f system clo c k . b 1 : vsm p neg : set : afe dark sam p l e out put l o cat e at negat i v e edge posi t i on of sy st em cl ock. : reset : afe d a rk sam p le o u t p u t lo cate at p o s itiv e ed g e p o s itio n o f system clo c k . b 0 : dlyset : set : t o enabl e vsm p and b s m p t o del a y out put by 8.33ns uni t : reset : d i sab l e th is fu n c tio n . 83 . reg : 7e h (read/ wri t e) defau lt : 0 0 h b 5 : g poled18 : set : gpio 18 as led out out . : reset : gpio1 8 as g e n e ral i/o. b 4 : g poled17 : set : gpio 17 as led out out . : reset : gpio1 7 as g e n e ral i/o. b 3 : g poled16 : set : gpio 16 as led out out . : reset : gpio1 6 as g e n e ral i/o. b 2 : g poled15 : set : gpio 15 as led out out . : reset : gpio1 5 as g e n e ral i/o. b 1 : g poled14 : set : gpio 14 as led out out . : reset : gpio1 4 as g e n e ral i/o. b 0 : g poled13 : set : gpio 13 as led out out . : reset : gpio1 3 as g e n e ral i/o. versi on 1.7 44 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 84 . reg : 7fh (read/ wri t e) defau lt : 0 0 h b 7 ~ 6 : [ 1: 0] b s m p dly : t o set b s m p out put del a y . 2?b00: no del a y . 2?b01: del a y 8.33ns 2?b10: del a y 16.67ns 2?b11: del a y 25ns. b 5 ~ 4 : [ 1: 0] vsm p dly : t o set vsm p out put del a y . 2?b00: no del a y . 2?b01: del a y 8.33ns 2?b10: del a y 16.67ns 2?b11: del a y 25ns. b 3 ~ 0 : [ 3: 0] ledc n t : t o set led bl i nki ng speed. the uni t i s 100m s. 85 . reg : 80h (read/ wri t e) defaul t : 00h b 7 ~ 6 : vr hom e[1: 0] : t o set t h e vref. of t h e m o t o r dri v er ic for go-hom e m ovi ng. b5 ~4 : vrmove[1 :0 ] : to set th e vref. o f th e m o to r d r iv er ic fo r fast fo rward m o v i n g . b3 ~2 : vrback[1 :0 ] : to set th e vref. o f th e m o to r d r iv er ic fo r b ack ward m o v i n g . b1 ~0 : vrscan[1 : 0 ] : to set th e vref. o f th e m o to r d r iv er ic fo r scan fo rward m o v i n g . 86 . reg : 81h,82h (read/ wri t e) defaul t : 00h,00h b8 ~0 : roffset[8 : 0 ] : to set r ch an n e l offset o f th e afe fo r cis co lo r scan . 87 . reg : 83h,84h (read/ wri t e) defaul t : 00h,00h b8 ~0 : goffset[8 : 0 ] : to set g ch an n e l offset o f th e afe fo r cis co lo r scan . 88 . reg : 85h,86h (read/ wri t e) defaul t : 00h,00h b8 ~0 : boffset[8 : 0 ] : to set b ch an n e l offset o f th e afe fo r cis co lo r scan . 89 . reg : 87h (read/ wri t e) defaul t : 00h b7 : reserv ed . b6 : yenb : set: to en ab le ph_ y o u t p u t o f th e ybit. : reset : t o di sabl e ph_y out put of t h e yb it. b 5 : yb it : t o out put ph_y st at us. b 4 : ac yc nr lc : set : t o generat e r l c / ac yc pul se t o t r i gger w m 8199 aut o -cy c l i ng for line-by-line color scanning. : reset: to d i sab l e th is fu n c tio n . b3 : enoffset : set: to select au to m a tic o ffset co n f ig u r atio n fo r cis scan n i n g . : reset: to d i sab l e th is fu n c tio n . b2 : ledadd : set: enable true gray by controlling cis rgb led array. : reset : norm a l gray by cont rol l i ng c i s si ngl e col o r led array . b 1 : c k 4adc : set : t o sel ect adc c l k out put by c k 4m ap set t i ng. : reset : t o sel ect adc c l k out put by defaul t . b 0 : autoc onf : set : t o enabl e aut o m a t i c channel , offset confi gurat i on or or r l c / ac yc pul si ng for cis color scan. : reset: to d i sab l e th ese fu n c tio n . not e : if yb it=1,t hen yenb =1 ph_y=1; y enb = 0 ph_y=0. if ybit=0,then yenb=1 ph_y=0;yenb=0 ph_y=1. versi on 1.7 45 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 90. shading mapping(chunky for single bank) attribute reso lutio n address[ 19: 0] 600dpi ( d pi hw =00) 00000h~07fffh si z e : 32k 1200dpi ( d pi hw =01) 00000h~0ffffh si z e : 64k shading m a pping 2400dpi ( d pi hw =10) 00000h~1ffffh si z e : 128k 91. shading mapping(planer) attribute reso lutio n address[ 19: 0] red channel 00000h~029ffh green channel 02a00h~053ffh 600dpi ( d pi hw =00) blue channel 05400h~07dffh red channel 00000h~054ffh green channel 05500h~0a9ffh 1200dpi ( d pi hw =01) blue channel 0aa00h~0feffh red channel 00000h~0a7ffh green channel 0a800h~14fffh shading m a pping 2400dpi ( d pi hw =10) blue channel 15000h~1f7ffh versi on 1.7 46 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 92. slope curve table mapping : attribute reso lutio n ta ble no . address[ 19: 0] t a bl e 1 08000 ~ 081ff table 2 08200 ~ 083ff t a bl e 3 08400 ~ 085ff t a bl e 4 08600 ~ 087ff 600dpi ( d pi hw =00) t a bl e 5 08800 ~ 089ff table 1 10000 ~ 101ff table 2 10200 ~ 103ff table 3 10400 ~ 105ff table 4 10600 ~ 107ff 1200dpi ( d pi hw =01) table 5 10800 ~ 109ff table 1 20000 ~ 101ff t a bl e 2 20200 ~ 203ff t a bl e 3 20400 ~205ff t a bl e 4 20600 ~207ff slope cur v e t a ble 2400dpi ( d pi dw =10) t a bl e 5 20800 ~209ff versi on 1.7 47 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 93 . image buffer mapping : dram siz e resolution address[ 19: 0] 600dpi ( d pi hw =00) 09000h~3ffffh 1200dpi ( d pi hw =01) 11000h~3ffffh dram/sram 4m bi t s x 1 2400dpi ( d pi hw =10) 21000h~3ffffh 600dpi ( d pi hw =00) 09000h~7ffffh 1200dpi ( d pi hw =01) 11000h~7ffffh dram 4m bi t s x 2 or 8m bi t s sram 2400dpi ( d pi hw =10) 21000h~7ffffh 600dpi ( d pi hw =00) 09000h~fffffh 1200dpi ( d pi hw =01) 11000h~fffffh dram 16m bi t s 2400dpi ( d pi hw =10) 21000h~fffffh versi on 1.7 48 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 8 package qfp-128l (14*20 mm, f/ p: 3.2 mm): sym b o l s m i n(m m ) nom (m m ) m ax(m m ) a 1 0 . 2 5 0 . 3 5 0 . 4 5 a 2 2 . 5 7 2 . 7 2 2 . 8 7 b 0 . 1 0 0 . 2 0 0 . 3 0 c 0 . 1 0 0 . 1 5 0 . 2 0 d 1 3 . 9 0 1 4 . 0 0 1 4 . 1 0 e 1 9 . 9 0 2 0 . 0 0 2 0 . 1 0 e - 0 . 5 0 - h d 1 7 . 0 0 1 7 . 2 0 1 7 . 4 0 h e 2 3 . 0 0 2 3 . 2 0 2 3 . 4 0 l 0 . 6 5 0 . 8 0 0 . 9 5 l 1 - 1 . 6 0 - y - - 0 . 0 8 k 0 - 1 2 e b 0.08(0.003) m e he d hd l1 a2 a1 y h d versi on 1.7 49 GL841 usb 2.0 2-i n -1 scanner c ont rol l e r 9 revision history rev date descri pt i on 1 . 7 2 0 0 2 0 8 1 4 |
Price & Availability of GL841
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |