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

ST78C34CP40-F

Mfr. #:
Manufacturer:
MaxLinear
Description:
I/O Controller Interface IC INTERNAL FIFO UART
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet