![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
ST78C34 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 controller 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. Contents 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. PLCC Package -ERROR BUSY SLCT -ACK -IOW VCC -IOR N.C. PE A1 41 44 43 42 N.C. INTSEL D7 D6 D5 D4 D3 D2 D1 D0 N.C. 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 40 39 38 37 36 35 6 5 4 3 2 1 A0 N.C. PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0 GND N.C. ST78C34CJ44 34 33 32 31 30 29 RESET -STROBE XTAL1 XTAL2 GND N.C. -AUTOFDX INIT -CS INT 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 ST78C34CP40 ST78C34IJ44 ST78C34IP40 44 40 44 40 PLCC PDip PLCC PDip 0 C 0 C -40 C -40 C to + 70 C to + 70 C to + 85 C to + 85 C Rev. 3.00 6-3 -SLCTIN ST78C34 Figure 1, PACKAGE DESCRIPTION, ST78C34 Plastic-DIP Package -ERROR SLCT BUSY -ACK PE INTSEL D7 D6 D5 D4 D3 D2 D1 D0 N.C. INT XTAL1 XTAL2 -CS GND 1 2 3 4 5 6 7 8 40 39 38 37 36 35 34 33 VCC -IOR -IOW A1 A0 N.C. PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0 GND -SLCTIN INIT -AUTOFDX -STROBE RESET 9 10 11 12 13 14 15 16 17 18 19 20 ST78C34CP40 32 31 30 29 28 27 26 25 24 23 22 21 Rev. 3.00 6-4 ST78C34 Figure 2, BLOCK DIAGRAM D0-D7 -IOR -IOW RESET Data bus & Control Logic Printer FIFO Registers Inter Connect Bus Lines & Control signals Printer Data Ports PD0-PD7 Register Select Logic A0-A1 -CS Printer Control Logic -STROBE INIT -AUTOFDX -SELCTIN PE, SELECT BUSY, -ACK -ERROR INT INTSEL Clock & Timing Generator Interrupt Control Logic XTAL2 XTAL1 Rev. 3.00 6-5 ST78C34 SYMBOL DESCRIPTION Symbol 40 -ERROR 1 Pin 44 1 Signal type I Pin Description 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. 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. 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. 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. General purpose input or line printer paper empty (active high, with internal pull-up). An output from the printer to indicate out of paper. 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. 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. 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. 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. Crystal input 2 or buffered clock output. See XTAL1. Chip select (active low). A low at this pin enables the ST78C34 / CPU data transfer operation. SLCT 2 2 I BUSY 3 3 I -ACK 4 4 I PE 5 5 I INTSEL 6 8 I D0-D7 14-7 16-9 I/O INT 16 19 O XTAL1 17 20 I XTAL2 -CS 18 19 21 22 O I Rev. 3.00 6-6 ST78C34 SYMBOL DESCRIPTION Symbol 40 GND RESET 20 21 Pin 44 23 24 Signal type O I Pin Description Signal and power ground. Master reset (active high). A high on this pin will reset all the outputs and internal registers. 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. 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. 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. General purpose I/O or line printer select (open drain active low, with internal pull-up). To select the line printer. Power and signal ground. Bi-directional parallel ports (three state). To transfer data in or out of the ST78C34 parallel port. PD7-PD0 are latched during output mode. Address lines. To select internal registers. Write strobe (active low). A low on this pin will transfer the contents of the CPU data bus to the addressed register. Read strobe (active low). A low level on this pin transfers the contents of the ST78C34 data bus to the CPU. Power supply input. -STROBE 22 25 I/O -AUTOFDXT 23 26 I/O INIT 24 27 I/O -SLCTIN 25 28 I/O GND PD0-PD7 26 27-34 30 31-38 O I/O A0-A1 -IOW 36-37 38 40-41 42 I I -IOR 39 43 I VCC 40 44 I Rev. 3.00 6-7 ST78C34 PRINTER PORT PROGRAMMING TABLE: A1 0 0 1 1 A0 0 1 0 1 WRITE MODE PORT REGISTER CONTROL REGISTER ALTERNATE FUNCTION REGISTER READ MODE PORT REGISTER STATUS REGISTER * COMMAND 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 responds 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 Register bit-0 has no effect on -STROBE. Alternate Function 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 performed. In FIFO mode, data transfer to the printer will be controlled by the printer and will occur at the printer's 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 performed a minimum of three clock after the falling edge of either -ACK or BUSY. The counter is reset whenever the FIFO is reset. If write to parallel port operation is attempted when the FIFO is full, the data will not be Rev. 3.00 6-8 ST78C34 written into the FIFO and the counter will not increment. 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 interrupt 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 Rev. 3.00 6-9 ST78C34 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 interrupt 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 provides 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 Bit-2 1 1 1 1 0 0 0 0 AFR Bit-1 0 0 1 1 0 0 1 1 AFR Bit-0 0 1 0 1 0 1 0 1 TSD (clocks) 3 5 5 9 6 10 10 18 TSW (clocks) 2 4 4 8 4 8 8 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. Rev. 3.00 6-10 ST78C34 ST78C34 EXTERNAL RESET CONDITION Bit-5 Bit-4 INT output STR bit-0 1 1 1 0 STR bit-6 -ACK FIFO empty FIFO full FIFO empty SIGNALS PD0-PD7 -STROBE -AUTOFDXT INIT -SLCTIN RESET STATE Unknown, output mode High High Low High 0 0 1 1 0 1 0 1 Normal mode FIFO empty FIFO full 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 monitored 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 bit6 is the MSB bit of the counter. FBCR BIT-7: FIFO state. 0= FIFO is enabled 1= FIFO is disabled Rev. 3.00 6-11 ST78C34 ST78C34 REGISTER CONFIGURATIONS A1 A0 REGISTER 0 0 0 1 PR STR D7 PD7 BUSY/ -FIFO full 1 D6 PD6 None Latched INT 1 D5 PD5 PE D4 PD4 SLCT D3 PD3 ERROR D2 PD2 Latched INT D1 PD1 1 D0 PD0 1 1 0 COM 1 INT enable INT mask INT type bit-0 FBC-4 -SLCTIN INIT -AUTO- -STROBE FDXT -AUTO- -STROBE FDXT TIMING select bit-1 FBC-1 TIMING select bit-0 FBC-0 1 0 CON X X I/O select INT type bit-1 FBC-5 -SLCTIN INIT 1 1 AFR FIFO enable INT polarity INT source TIMING select bit-2 FBC-2 1 1 FBCR -FIFO status FBC-6 FBC-3 Rev. 3.00 6-12 ST78C34 AC ELECTRICAL CHARACTERISTICS TA=0 - 70 C, Vcc=5.0 V 10% unless otherwise specified. Symbol Parameter Min T1 T2 T3 T8 T9 T12 T13 T14 T15 T16 T17 Tw T19 T21 T23 T24 T25 Tr T26 T39 T40 T41 T42 T43 Clock high pulse duration Clock low pulse duration Clock rise/fall time Chip select setup time Chip select hold time Data setup time Data hold time -IOW delay from chip select -IOW strobe width Chip select hold time from -IOW Write cycle delay Write cycle=T15+T17 Data hold time -IOR delay from chip select -IOR strobe width Chip select hold time from -IOR Read cycle delay Read cycle=T23+T25 Delay from -IOR to data -ACK pulse width PD7 - PD0 setup time PD7 - PD0 hold time Delay from -ACK low to interrupt low Delay from -IOR to reset interrupt 50 50 10 5 0 10 10 10 50 0 55 105 10 10 65 0 55 115 35 75 10 25 5 5 Limits Typ Units Max ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns Conditions External clock 100 pF load Rev. 3.00 6-13 ST78C34 ABSOLUTE MAXIMUM RATINGS Supply range Voltage at any pin Operating temperature Storage temperature Package dissipation 7 Volts GND-0.3 V to VCC+0.3 V 0 C to +70 C -40 C to +150 C 500 mW DC ELECTRICAL CHARACTERISTICS TA=0 - 70 C, Vcc=5.0 V 10% unless otherwise specified. Symbol Parameter Min VILCK VIHCK VIL VIH VOL Clock input low level Clock input high level Input low level Input high level Output low level -0.5 3.0 -0.5 2.2 Limits Typ Units Max 0.6 VCC 0.8 VCC 0.4 V V V V V Conditions IOL= 6.0 mA D7-D0 IOL= 15mA PD7PD0 IOL= 5.0 mA on all other outputs IOH= -6.0 mA D7D0 IOH= -12.0 mA PD7-PD0 IOH= -150 mA SLCTIN, INIT*,-STROBE, -AUTOFDXT IOH= -6.0 mA on all other outputs VOH Output high level 2.4 V ICC IIL IIL RIN ICL Avg. power supply current Input leakage Input leakage Input pullup resistance Clock leakage 4 12 7 10 -450 40 10 mA mA mA kW mA Except Pins 1-6 Pins 1-6 @ Vin=0V Pins 1-6 Rev. 3.00 6-14 ST78C34 A0-A2 T8 -CS T21 -IOR Valid Address T9 Active T23 Active T24 T25 Active T26 D0-D7 Data T19 Data 7834-RD-1 General read timing A0-A2 T8 -CS T14 -IOW Valid Address T9 Active T15 Active T16 T17 Active T12 D0-D7 Data T13 Data 7834-WD-1 General write timing Rev. 3.00 6-15 ST78C34 T39 -ACK T40 -INT Active Active T42 Active Active T43 -IOR T40 Active Active NORMAL MODE INTERRUPT LATCHED MODE SELECT INTSEL T41 PD0-PD7 VALID DATA 7834-PR-1 Interrupt timing T2 T1 EXTERNAL CLOCK 7834-CK-1 T3 External clock timing Rev. 3.00 6-16 ST78C34 RESET INIT INIT LOW FORCES -STROBE HIGH -STROBE 0-2 CLOCK FIFO RESET 1-2 CLOCK 0-2 CLOCK DO-D7 Data Data Data Active Active -IOW -IOR Active PDO-PD7 Data 16553-PW-1 Printer special mode Rev. 3.00 6-17 ST78C34 RESET D0-D7 Active Active Active Active Active PD0-PD7 DATA-1 DATA-2 DATA-3 DATA-4 Active Active Active Active Active -IOW Active Active Active -STROBE Active Active -ACK FIFO EMPTY FIFO EMPTY FIFO EMPTY FIFO mode entered after first -STROBE and -ACK -STROBE generated internally -INTP generated internally 16553-PW-2 Printer auto FIFO mode Rev. 3.00 6-18 ST78C34 -ACK 0-2 CLOCK FIFO READ (INTERNAL) Active 0-2 CLOCK Active 3-6 CLOCKS PD OUTPUT PORTS DATA DATA+1 TSD -STROBE BUSY SELECTED FOR FIFO OPERATION TSW BUSY 2-4 CLOCK FIFO READ (INTERNAL) 5-10 CLOCKS PD OUTPUT PORTS DATA DATA+1 TSD -STROBE Active Active Active TSW 16553-PW-3 Printer FIFO timing with more than one byte in the FIFO Rev. 3.00 6-19 ST78C34 RESET PD PORT Active Active -IOW Active Active PD OUTPUT PORT Active -STROBE Active TSD TSW 16553-PW-4 Printer FIFO, with one byte in the FIFO Rev. 3.00 6-20 Package Dimensions 40 LEAD PLASTIC DUAL-IN-LINE (600 MIL PDIP) Rev. 1.00 40 21 E1 1 D 20 E A2 Seating Plane A L B e B1 A1 eA eB C INCHES SYMBOL A A1 A2 B B1 C D E E1 e eA eB L MIN 0.160 0.015 0.125 0.014 0.030 0.008 1.980 0.600 0.485 MAX 0.250 0.070 0.195 0.024 0.070 0.014 2.095 0.625 0.580 MILLIMETERS MIN 4.06 0.38 3.18 0.36 0.76 0.20 50.29 15.24 12.32 MAX 6.35 1.78 4.95 0.56 1.78 0.38 53.21 15.88 14.73 0.100 BSC 0.600 BSC 0.600 0.115 0 0.700 0.200 15 2.54 BSC 15.24 BSC 15.24 2.92 0 17.78 5.08 15 Note: The control dimension is the inch column Package Dimensions 44 LEAD PLASTIC LEADED CHIP CARRIER (PLCC) Rev. 1.00 D D1 2 1 44 45 x H2 45 x H1 C Seating Plane A2 B1 D D1 D3 BD 2 e R D3 A1 A INCHES SYMBOL A A1 A2 B B1 C D D1 D2 D3 e H1 H2 R MIN 0.165 0.090 0.020 0.013 0.026 0.008 0.685 0.650 0.590 MAX 0.180 0.120 ---. 0.021 0.032 0.013 0.695 0.656 0.630 MILLIMETERS MIN 4.19 2.29 0.51 0.33 0.66 0.19 17.40 16.51 14.99 MAX 4.57 3.05 --- 0.53 0.81 0.32 17.65 16.66 16.00 0.500 typ. 0.050 BSC 0.042 0.042 0.025 0.056 0.048 0.045 12.70 typ. 1.27 BSC 1.07 1.07 0.64 1.42 1.22 1.14 Note: The control dimension is the inch column NOTICE EXAR Corporation reserves the right to make changes to the products contained in this publication in order to improve design, performance or reliability. EXAR Corporation assumes no responsibility for the use of any circuits described 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 circumstances. Copyright 1991 EXAR Corporation Reproduction, in part or whole, without the prior written consent of EXAR Corporation is prohibited. |
Price & Availability of ST78C34IJ44
![]() |
|
|
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] |