|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
6-3 st78c34 plcc package general purpose parallel printer port with 83 byte fifo description the st78c34 is a monolithic bidirectional parallel port designed to operate as a general purpose i/o port. it contains all the necessary input/output signals to be configured as a centronics printer port. the st78c34 is a general purpose input/output con- troller with 83 byte internal fifo. fifo operation can be enabled or disabled. for centronics printer operation, all registers are mapped to ibm printer port registers. the st78c34 is designed to operate as normal printer interface without any additional settings. con- tents of the fifo will be cleared after reset or setting the init pin to a low state. the auto fifo operation starts after the first -ack is received from the printer. contents of the fifo transfer to the printer at the printer loading speed. features 83 bytes of printer output fifo bi-directional software parallel port bi-directional i/o ports register compatible to ibm xt, at, compatible 386, 486 selectable interrupt polarity selectable fifo interrupts ordering information part number pin package operating temperature st78c34cj44 44 plcc 0 c to + 70 c st78c34cp40 40 pdip 0 c to + 70 c st78c34ij44 44 plcc -40 c to + 85 c ST78C34IP40 40 pdip -40 c to + 85 c rev. 3.00 6 5 4 3 2 1 44 43 42 41 40 7 8 9 10 11 12 13 14 15 16 17 39 38 37 36 35 34 33 32 31 30 29 18 19 20 21 22 23 24 25 26 27 28 n.c. intsel d7 d6 d5 d4 d3 d2 d1 d0 n.c. n.c. int xtal1 xtal2 -cs gnd reset -strobe -autofdx init -slctin n.c. pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 gnd n.c. n.c. pe -ack busy slct -error vcc -ior -iow a1 a0 st78c34cj44
6-4 st78c34 rev. 3.00 plastic-dip package figure 1, package description, st78c34 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 -error slct busy -ack pe intsel d7 d6 d5 d4 d3 d2 d1 d0 n.c. int xtal1 xtal2 -cs gnd vcc -ior -iow a1 a0 n.c. pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 gnd -slctin init -autofdx -strobe reset st78c34cp40 6-5 st78c34 rev. 3.00 figure 2, block diagram d0-d7 -ior -iow reset a0-a1 -cs int i ntsel data bus & control logic register select logic interrupt control logic printer data ports pd0-pd7 printer control logic -strobe init -autofdx -selctin pe, select busy, -ack -error printer fifo registers inter connect bus lines & control signals clock & timing generator xtal1 xtal2 6-6 st78c34 rev. 3.00 symbol description symbol pin signal pin description 40 44 type -error 1 1 i general purpose input or line printer error (active low, with internal pull-up). this is an output from the printer to indicate an error by holding it low during error condition. slct 2 2 i general purpose input or line printer selected (active high, with internal pull-up). this is an output from the printer to indicate that the line printer has been selected. busy 3 3 i general purpose input or line printer busy (active high, with internal pull-up). an output from the printer to indicate printer is not ready to accept data. -ack 4 4 i general purpose input or line printer acknowledge (active low, with internal pull-up). an output from the printer to indicate that data has been accepted successfully. pe 5 5 i general purpose input or line printer paper empty (active high, with internal pull-up). an output from the printer to indicate out of paper. intsel 6 8 i interrupt select mode. the external -ack can be selected as an interrupt source by connecting this pin to the vcc or left open. connecting this pin to gnd will set the interrupt to latched mode, reading the status register resets the int output. d0-d7 14-7 16-9 i/o bi-directional data bus. eight bit, three state data bus to transfer information to or from the cpu. d0 is the least significant bit of the data bus. int 16 19 o interrupt output (selectable active low or high). to signal the state of the printer port. this pin tracks the -ack input pin, when -ack is low int is low and when -ack is high int is high if selected as active low interrupt. xtal1 17 20 i crystal input 1 or external clock input. a crystal can be connected to this pin and xtal2 pin to utilize the internal oscillator circuit. an external clock can be used to clock oscillator circuit. xtal2 18 21 o crystal input 2 or buffered clock output. see xtal1. -cs 19 22 i chip select (active low). a low at this pin enables the st78c34 / cpu data transfer operation. 6-7 st78c34 rev. 3.00 symbol description symbol pin signal pin description 40 44 type gnd 20 23 o signal and power ground. reset 21 24 i master reset (active high). a high on this pin will reset all the outputs and internal registers. -strobe 22 25 i/o general purpose i/o or strobe output (open drain active low, with internal pull-up). to transfer latched data to the external peripheral or printer. -autofdxt 23 26 i/o general purpose i/o or line printer auto feed (open drain active low, with internal pull-up). to signal the printer for continuous form feed. init 24 27 i/o general purpose i/o or line printer initialize (open drain active high, with internal pull-up). to signal the line printer to enter internal initialization routine. -slctin 25 28 i/o general purpose i/o or line printer select (open drain active low, with internal pull-up). to select the line printer. gnd 26 30 o power and signal ground. pd0-pd7 27-34 31-38 i/o bi-directional parallel ports (three state). to transfer data in or out of the st78c34 parallel port. pd7-pd0 are latched during output mode. a0-a1 36-37 40-41 i address lines. to select internal registers. -iow 38 42 i write strobe (active low). a low on this pin will transfer the contents of the cpu data bus to the addressed register. -ior 39 43 i read strobe (active low). a low level on this pin transfers the contents of the st78c34 data bus to the cpu. vcc 40 44 i power supply input. 6-8 st78c34 rev. 3.00 printer port programming table: a1 a0 write mode read mode 0 0 port register port register 0 1 status register * 1 0 control register command register 1 1 alternate function register fifo byte count register * reading the status register will reset the int output. printer functional description the st78c34 parallel port is designed to operate as a normal centronics printer interface. the port contains 83 byte fifo that may be enabled via bit-7 of the alternate function register (afr). after reset, the fifo is disabled and the part will function identical to the st16c552. once the fifo is enabled via afr bit-7, the port will enter fifo mode after the first byte of data is strobed to the printer and the printer re- sponds with either an -ack or busy signal. the st78c34 will remain in fifo mode until the part is reset or init is brought low. while in fifo mode, data transfer to the printer will be controlled by the printer without any user intervention. the printer port also contains a fifo byte counter that maintains a count of the number of bytes remaining in the fifo. the fifo and the fifo byte counter are cleared by a reset or by a change of state of the init pin. all fifo related timing is derived from the clock input to pin 17 of the part. a special parallel port write / read mode is activated when init is held low, either by writing a 0 to control register bit-2 or by forcing the init pin low. in this mode the fifo read pointer is advanced by reading the parallel port instead of the -ack or busy signals. the -strobe output is forced high. this allows the user to perform parallel port write and read from operations without strobing data to the printer. following an init, the parallel port will not be in the fifo mode. control register bit-0 is used as the - strobe, status register bit-7 is the inverse of the busy signal, and int is derived from -ack. the transition into fifo mode will occur after the first - strobe is generated and the printer responds with either an -ack or busy. in fifo mode, -strobe is generated automatically and writing to control regis- ter bit-0 has no effect on -strobe. alternate func- tion register bit 0-2 are used to control the delay and width of -strobe. handshaking between the printer and the st78c34 may be controlled by bit-3 of the alternate function register. setting this bit to a 1 will result in the use of busy instead of -ack for fifo reading and interrupt control. int will transition low when a 1 is written to control register bit-0 and will transition high when a write to parallel port is per- formed. in fifo mode, data transfer to the printer will be controlled by the printer and will occur at the printers maximum data rate. the fifo byte counter is incremented one count for each parallel port write and decremented one count for each fifo read (data taken by printer). a fifo read will be generated at the falling edge of either - ack or busy. the byte counter will require two to three clock cycles to update. hence, a read of fifo byte count register (fbcr) should only be per- formed a minimum of three clock after the falling edge of either -ack or busy. the counter is reset when- ever the fifo is reset. if write to parallel port operation is attempted when the fifo is full, the data will not be 6-9 st78c34 rev. 3.00 written into the fifo and the counter will not incre- ment. two interrupt modes are available and are selected with the intsel pin. if this pin is tied low, a latched interrupt will result. in this mode, int will transition low when a 1 is written to control register bit-0. a reset or reading the status register will clear the interrupt. if intsel pin is tied high, int will transition low when a 1 is written to control register bit-0 and will transition high when a write to the parallel port is issued. this (non-latched) interrupt signal is always available in status register bit-6 regardless of the state of the intsel pin. status register bit-2 will always contain the latched interrupt state. the polarity of the int pin may be inverted by setting alternate function register bit-6 high. the st78c34 provides additional programmable in- terrupt output options by programming the alternate function register bit 4-5. int output can be selected as fifo full or fifo empty interrupt. register descriptions port register bi-directional printer port. writing to this register during output mode will transfer the contents of the data bus to the pd7-pd0 ports . reading this register during input mode will transfer the states of the pd7-pd0 to the data bus. this register will be set to the output mode after reset. pr bit 7-0: pd7-pd0 bi-directional i/o ports. status register this register provides the state of the printer outputs and the interrupt condition. str bit 1-0: this bits are set to 1 normally except when afr bit 5-4 are both set to 1. str bit-2: interrupt condition. 0= an interrupt is pending this bit will be set to 0 at the falling edge of the -ack input. 1= no interrupt is pending reading the status register will set this bit to 1. str bit-3: error input state. 0= error input is in low state 1= error input is in high state str bit-4: slct input state. 0= slct input is in low state 1= slct input is in high state str bit-5: pe input state. 0= pe input is in low state 1= pe input is in high state str bit-6: -ack input state. 0= -ack input is in low state 1= -ack input is in high state str bit-7: busy or fifo full signal. 0= busy input is in high state 1= busy input is in low state fifo is enabled. 0= fifo is full 1= one or more empty locations in fifo command register the state of the -strobe, -autofdxt, init, - slctin pins, and interrupt enable bit can be read by this register regardless of the i/o direction. com bit-0: -strobe input pin. 0= -strobe pin is in high state 1= -strobe pin is in low state com bit-1: -autofdxt input pin. 0= -autofdxt pin is in high state 1= -autofdxt pin is in low state 6-10 st78c34 rev. 3.00 com bit-2: init input pin. 0= init pin is in low state 1= init pin is in high state com bit-3: -slctin input pin. 0= -slctin pin is in high state 1= -slctin pin is in low state com bit-4: interrupt mask. 0= interrupt (int output) is disabled 1= interrupt (int output) is enabled com bit 7-5: not used. are set to 1 permanently. control register. writing to this register will set the state of the - strobe, -autofdxt, init, slctin pins, and in- terrupt mask register. con bit-0: -strobe output control bit. 0= -strobe output is set to high state 1= -strobe output is set to low state con bit-1: -autofdxt output control bit. 0= -autofdxt output is set to high state 1= -autofdxt output is set to low state con bit-2: init output control bit. 0= init output is set to low state 1= init output is set to high state con bit-3: -slctin output control bit. 0= -slctin output is set to high state 1= -slctin output is set to low state con bit-4: interrupt output control bit. 0= int output is disabled (three state mode) 1= int output is enabled con bit-5: i/o select. direction of the pd7-pd0 can be selected by setting or clearing this bit. 0= pd7-pd0 are set for output mode 1= pd7-pd0 are set for input mode con bit 7-6: not used. alternate function register (afr) this register en/disables fifo operation and pro- vides additional capabilities to control -strobe. int and change interrupt functions. afr bit 0-2: timing select. the -strobe delay and width can be controlled by these bits. afr afr afr tsd tsw bit-2 bit-1 bit-0 (clocks) (clocks) 100 3 2 101 5 4 110 5 4 111 9 8 000 6 4 001 10 8 010 10 8 0 1 1 18 16 afr bit-3: interrupt source. 0= -ack input pin is selected as printer handshaking source 1= busy input pin is selected as printer handshaking source afr bit 4-5: interrupt type. state of the int output pin can be selected for one of the following options. 6-11 st78c34 rev. 3.00 bit-5 bit-4 int output str str bit-0 bit-6 0 0 normal mode 1 -ack 0 1 fifo empty 1 fifo empty 1 0 fifo full 1 fifo full 1 1 fifo empty 0 fifo empty afr bit-6: int output polarity. 0= normal. int output follows the -ack input 1= inverted int output afr bit-7: fifo enable / disable function. 0= fifo is disabled( default mode). 1= fifo is enabled. internal 83 byte of fifo is enabled. fifo byte count register (fbcr) state and content of the printer fifo can be moni- tored by reading this register. fcbr bit 0-6: fifo byte count. number of characters left in fifo. fcrb bit-0 is the lsb bit of the counter and fcrb bit- 6 is the msb bit of the counter. fbcr bit-7: fifo state. 0= fifo is enabled 1= fifo is disabled st78c34 external reset condition signals reset state pd0-pd7 unknown, output mode -strobe high -autofdxt high init low -slctin high 6-12 st78c34 rev. 3.00 st78c34 register configurations a1 a0 register d7 d6 d5 d4 d3 d2 d1 d0 0 0 pr pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 0 1 str busy/ none pe slct error latched 1 1 -fifo latched int full int 1 0 com 1 1 1 int -slctin init -auto- -strobe enable fdxt 1 0 con x x i/o int -slctin init -auto- -strobe select mask fdxt 1 1 afr fifo int int int int timing timing timing enable polarity type type source select select select bit-1 bit-0 bit-2 bit-1 bit-0 1 1 fbcr -fifo fbc-6 fbc-5 fbc-4 fbc-3 fbc-2 fbc-1 fbc-0 status 6-13 st78c34 rev. 3.00 symbol parameter limits units conditions min typ max ac electrical characteristics t a =0 - 70 c, vcc=5.0 v 10% unless otherwise specified. t 1 clock high pulse duration 50 ns t 2 clock low pulse duration 50 ns external clock t 3 clock rise/fall time 10 ns t 8 chip select setup time 5 ns t 9 chip select hold time 0 ns t 12 data setup time 10 ns t 13 data hold time 10 ns t 14 -iow delay from chip select 10 ns t 15 -iow strobe width 50 ns t 16 chip select hold time from -iow 0 ns t 17 write cycle delay 55 ns tw write cycle=t 15 +t 17 105 ns t 19 data hold time 10 ns t 21 -ior delay from chip select 10 ns t 23 -ior strobe width 65 ns t 24 chip select hold time from -ior 0 ns t 25 read cycle delay 55 ns tr read cycle=t 23 +t 25 115 ns t 26 delay from -ior to data 35 ns 100 pf load t 39 -ack pulse width 75 ns t 40 pd7 - pd0 setup time 10 ns t 41 pd7 - pd0 hold time 25 ns t 42 delay from -ack low to interrupt low 5 ns t 43 delay from -ior to reset interrupt 5 ns 6-14 st78c34 rev. 3.00 absolute maximum ratings supply range 7 volts voltage at any pin gnd-0.3 v to vcc+0.3 v operating temperature 0 c to +70 c storage temperature -40 c to +150 c package dissipation 500 mw symbol parameter limits units conditions min typ max dc electrical characteristics t a =0 - 70 c, vcc=5.0 v 10% unless otherwise specified. v ilck clock input low level -0.5 0.6 v v ihck clock input high level 3.0 vcc v v il input low level -0.5 0.8 v v ih input high level 2.2 vcc v v ol output low level 0.4 v i ol = 6.0 ma d7-d0 i ol = 15ma pd7- pd0 i ol = 5.0 ma on all other outputs v oh output high level 2.4 v i oh = -6.0 ma d7- d0 i oh = -12.0 ma pd7-pd0 i oh = -150 m a - slctin, init*,-strobe, -autofdxt i oh = -6.0 ma on all other outputs i cc avg. power supply current 4 7 ma i il input leakage 10 m a except pins 1-6 i il input leakage -450 m a pins 1-6 @ vin=0v r in input pullup resistance 12 40 k w pins 1-6 i cl clock leakage 10 m a 6-15 st78c34 rev. 3.00 a0-a2 -cs -ior d0-d7 t8 t9 t23 t21 t24 t25 t26 t19 7834-rd-1 active data data active active valid address a0-a2 -cs -iow d0-d7 t8 t9 t15 t14 t16 t17 t12 t13 7834-wd-1 active data data active active valid address general read timing general write timing 6-16 st78c34 rev. 3.00 -ack -int -ior interrupt latched mode select normal mode intsel t40 t42 t43 t39 valid data t40 t41 pd0-pd7 7834-pr-1 active active active active active active interrupt timing t3 t1 t2 external clock 7834-ck-1 external clock timing 6-17 st78c34 rev. 3.00 reset init -strobe fifo reset do-d7 -iow -ior pdo-pd7 init low forces -strobe high 0-2 clock 1-2 clock 0-2 clock 16553-pw-1 active active active data data data data printer special mode 6-18 st78c34 rev. 3.00 reset fifo empty fifo empty ` fifo empty fifo mode entered after first -strobe and -ack -strobe generated internally -intp generated internally d0-d7 -iow -strobe -ack data-1 data-2 data-3 data-4 pd0-pd7 16553-pw-2 active active active active active active active active active active active active active active active printer auto fifo mode 6-19 st78c34 rev. 3.00 printer fifo timing with more than one byte in the fifo data data+1 0-2 clock 0-2 clock 3-6 clocks tsw tsd -ack fifo read (internal) pd output ports -strobe data data+1 2-4 clock 5-10 clocks tsw tsd fifo read (internal) pd output ports -strobe busy selected for fifo operation busy 16553-pw-3 active active active active active 6-20 st78c34 rev. 3.00 printer fifo, with one byte in the fifo tsd tsw reset pd port -iow pd output port -strobe 16553-pw-4 active active active active active active package dimensions 40 1 21 20 d e 40 lead plastic dual-in-line (600 mil pdip) rev. 1.00 symbol min max min max a 0.160 0.250 4.06 6.35 a 1 0.015 0.070 0.38 1.78 a 2 0.125 0.195 3.18 4.95 b 0.014 0.024 0.36 0.56 b 1 0.030 0.070 0.76 1.78 c 0.008 0.014 0.20 0.38 d 1.980 2.095 50.29 53.21 e 0.600 0.625 15.24 15.88 e 1 0.485 0.580 12.32 14.73 e 0.100 bsc 2.54 bsc e a 0.600 bsc 15.24 bsc e b 0.600 0.700 15.24 17.78 l 0.115 0.200 2.92 5.08 a 0 15 0 15 inches millimeters a 1 e 1 e a l seating plane a 2 a b 1 b c note: the control dimension is the inch column e b e a package dimensions 44 lead plastic leaded chip carrier (plcc) rev. 1.00 1 d d 1 a a 1 d d 1 d 3 a 0.165 0.180 4.19 4.57 a 1 0.090 0.120 2.29 3.05 a 2 0.020 . 0.51 b 0.013 0.021 0.33 0.53 b 1 0.026 0.032 0.66 0.81 c 0.008 0.013 0.19 0.32 d 0.685 0.695 17.40 17.65 d 1 0.650 0.656 16.51 16.66 d 2 0.590 0.630 14.99 16.00 d 3 0.500 typ. 12.70 typ. e 0.050 bsc 1.27 bsc h1 0.042 0.056 1.07 1.42 h2 0.042 0.048 1.07 1.22 r 0.025 0.045 0.64 1.14 symbol min max min max inches millimeters b a 2 b 1 e seating plane d 2 244 note: the control dimension is the inch column d 3 45 x h2 45 x h1 c r notice exar corporation reserves the right to make changes to the products contained in this publication in order to im- prove design, performance or reliability. exar corporation assumes no responsibility for the use of any circuits de- scribed herein, conveys no license under any patent or other right, and makes no representation that the circuits are free of patent infringement. charts and schedules contained here in are only for illustration purposes and may vary depending upon a user's specific application. while the information in this publication has been carefully checked; no responsibility, however, is assumed for inaccuracies. exar corporation does not recommend the use of any of its products in life support applications where the failure or malfunction of the product can reasonably be expected to cause failure of the life support system or to significantly affect its safety or effectiveness. products are not authorized for use in such applications unless exar corporation receives, in writing, assurances to its satisfaction that: (a) the risk of injury or damage has been minimized; (b) the user assumes all such risks; (c) potential liability of exar corporation is adequately protected under the circum- stances. copyright 1991 exar corporation reproduction, in part or whole, without the prior written consent of exar corporation is prohibited. |
Price & Availability of ST78C34IP40 |
|
|
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] |