English
Language : 

X88C75 Datasheet, PDF (12/27 Pages) Xicor Inc. – Port Expander and E2 Memory
X88C75 SLIC® E2
IRQ
The IRQ pin is an active LOW open-drain output. In
embedded systems applications, this signal is con-
nected to the microcontroller interrupt input pin through
either a direct connection or via an interrupt controller.
Table 1 depicts the three sources of interrupts and their
associated flags. Under normal conditions, the INT and
port interrupt flags are set, if the port which is configured
as an input has its strobe line toggled. If the port interrupt
enable flag is set, or gets set while the INT flag is set,
then the IRQ signal is asserted. The IRQ stays valid as
long as the interrupt flags are not cleared by the software
or the hardware.
Another interrupt source is the End Of Write flag (EOW)
which is set by the hardware at the end of every internal
programming cycle. The interrupt from this source is
controlled by the ENEE bit in ISR. If ENEE is enabled,
then EOW can generate an external interrupt. The
interrupt is cleared by setting EOW to “0”.
Table 1. X88C75 Interrupt Sources
Interrupt
Source
Interrupt
Enable
Status
Flag
INT
Flag
PORT A
PORT B
EOW
ENA
ENB
ENEE
INTA
INTB
EOW
PORTS A & B INTERRUPTS
“1”
“1”
—
2887 PGM T02.1
The X88C75 features two 8-bit I/O ports which are
equipped with a configurable interrupt module. The
interrupts are used to signal the reception of new data at
an input port data latch. When a port is configured as an
output, it can no longer generate any interrupts.
The input port interrupt mechanism is controlled by the
external strobe pins (STRA, STRB). Detecting a valid
transition on the pin will set the interrupt flags and latch
in the input data. The external interrupts from the ports
can be masked off using the interrupt enable bits (ENA,
ENB) in ISR.
Once an external interrupt is asserted, clearing the
interrupt flags will cause the IRQ signal to return to its
idle state. There are two ways of resetting the interrupt
flags. The selection is made using the IRST bit in the
configuration register. If IRST is set, then the interrupt
flags are cleared by writing “0” to the bit positions
corresponding to the interrupt flags (INTA, INTB) in ISR.
When the IRST is cleared, reading the PDR automati-
cally clears the interrupt flags.
SOFTWARE CONTROLLED PORT OPERATIONS
The individual clock signals, that control the PDR input
latches and load the external data present on the port
pins, are generated by XORing the strobe polarity bit
and the strobe input of the port. The strobe polarity bits
(STPA, STPB) in CR can be used to program the active
edge of the strobe inputs. However, if the external
strobe input is permanently tied to VSS or VCC, then the
strobe polarity bit controls the PDR input latch clock
signal.
When a port strobe and its polarity bit have identical
logic levels, the corresponding PDR latch is active and
any change in the port inputs will show up at the PDR
latch outputs. Holding the strobe input at current levels
and changing the strobe polarity bit value will generate
a positive transition on the PDR clock signal, causing
the latch outputs to reflect the previous logic state of the
port pins. The clock transition sets the interrupt flags,
and if the interrupts have been enabled, then an external
interrupt signal will be asserted.
This feature allows the port input operation by perma-
nently tying the STRx inputs to VCC or VSS, and using
the STPx bits in CR to control PDR latches. Another
advantage of this feature are software generated inter-
rupts. Since the clocking of the PDR latch causes the
corresponding port INTx flags to be set, by enabling the
interrupts the microcontroller is forced to execute the
ISR responsible to service the newly latched data.
END OF WRITE (EOW) INTERRUPT
The internal programming cycle requires several milli-
seconds for either a single byte write or a page write.
The updated memory plane is inaccessible while the
programming is in progress. However, the opposite
plane is still available for program fetch and data read
operations.
The X88C75 has two means of signaling end of an
internal programming cycle. In the Toggle Bit Polling
technique, the last written byte is successively read. Bit
6 of read data toggles while the programming cycle is
still in progress. The software has to continually monitor
device responses and determine if it can again access
the plane.
In the other method, at the end of an internal program-
ming cycle, the hardware sets the EOW flag. The
software can either poll this flag or enable the interrupts
by setting the ENEE bit in ISR. Effective use of EOW is
made by clearing it prior to initiating a write operation. If
12