PC87332VLJ-5 NSC [National Semiconductor], PC87332VLJ-5 Datasheet - Page 77

no-image

PC87332VLJ-5

Manufacturer Part Number
PC87332VLJ-5
Description
PC87332VLJ (3.3V/5V) and PC87332VLJ-5 (5V) (SuperI/OTM III Premium Green) Floppy Disk Controller, Dual UARTs, IEEE1284 Parallel Port, and IDE Interfac
Manufacturer
NSC [National Semiconductor]
Datasheet
tended Capabilities Port Protocol and ISA Interface Stan-
dard To highlight the ECP usage some software operations
7 0 Parallel Port
7 6 2 Software Operation
Software operation is detailed in the IEEE document Ex-
are detailed below
1 The software should enable ECP (bit 2 of PCR is 1) after
2 When ECP is enabled and the software wishes to switch
3 When ECP is enabled the software should change direc-
4 The software should switch from mode 010 or 011 to
5 The software should switch to mode 011 when bits 0 and
6 The software should switch to mode 010 when bit 0 of
7 The software should disable ECP (bit 2 of PCR is 0) only
Software may switch from mode 011 backward direction to
modes 000 or 001 when there is an on-going ECP read
cycle In this case the read cycle is aborted by deasserting
AFD The FIFO is reset (empty) and a potential byte expan-
sion (RLE) is automatically terminated since the new mode
is 000 or 001
The ZWS signal is asserted by the ECP when ECP is en-
abled and an ECP register is accessed by host PIO instruc-
tions thus using a host zero wait state cycle
The ECP uses the X1 OSC clock This clock can be frozen
(a power-down mode) When this power-down mode oc-
curs the DMA is disabled all interrupts (except ACK) are
masked and the FIFO registers are not accessible (access
is ignored) The other ECP registers are always accessible
when the ECP is enabled During this period the FIFO status
and contents are not lost although the host reads bit 2 of
ECR as 0 bit 1 of ECR as 1 and bit 0 of ECR as 1 regard-
less of the actual values of these bits When the clock starts
toggling again these bits resume their original functions (and
values)
When the clock is frozen an on-going ECP cycle may be
corrupted but the next ECP cycle will not start This is true
even if in forward direction the FIFO is not empty and in
backward direction the FIFO is not full If the ECP clock
starts or stops toggling during a host cycle that accesses
the FIFO the cycle may yield invalid data
Note 1 The ECP outputs are inactive when the ECP is disabled
Note 2 Only the FIFO DMA RLE are not functional when the clock is fro-
bits 0 –3 of the Parallel Port Control Register (CTR) are
100
modes it should switch only through modes 000 or 001
tion only in mode 001
mode 000 or 001 only when the FIFO is empty
1 of DCR are 0
DCR is 0
when in mode 000 or 001
zen All other registers are accessible and functional The FIFO
DMA RLE are affected by ECR modifications i e they are reset
even when exits from modes 010 011 are carried out while the
clock is frozen
(Continued)
77
7 7 REGISTER DEFINITIONS
DATAR Parallel Port Data Register Same as DTR register
except that read always returns the values of the PD0– 7
pins (not the register latched data)
AFIFO ECP Address FIFO Register Write Only In the for-
ward direction (bit 5 of DCR is 0) a byte written into this
register is pushed into the FIFO and tagged as a command
Unpredictable results will occur when reading this register
Writes to this register during backward direction (bit 5 of
DCR is 1) have no effect and the data is ignored
DSR Data Status Register Read only Same as the current
STR register except for bit 2 which is reserved
Writes to this register have no effect and the data is ignored
Note The FDC has a register of the same name (DSR)
DCR Data Control Register Same as the current SPP CTR
register with the following exceptions
When bit 5 of the DCR is 0 the ECP is in forward direction
and when bit 5 is 1 the ECP is in backward direction
The ECP drives the PD0– 7 pins in the forward direction but
does not drive them in the backward direction
The direction bit bit 5 is readable and writable except in
modes 000 and 010 In modes 000 and 010 the direction bit
is forced to 0 and data written into this bit is ignored
Bit 4 of the DCR enables the ACK deassertion interrupt
event (1
(bit 4 of PCR is 1) clearing this bit clears the ACK pending
interrupt request This bit does not float the IRQ pin
In modes 010 and 011 the STB is controlled by both ECP
hardware and software (bit 0 of this register)
In mode 011 the AFD is controlled by both ECP hardware
and software (bit 1 of this register)
CFIFO Parallel Port FIFO Register Write only A byte writ-
ten or DMAed to this register is pushed into the FIFO and
tagged as data Reading this register has no effect and the
data read is undefined
DFIFO ECP Data FIFO Register In the forward direction
(bit 5 of DCR is 0) a byte written or DMAed to this register
is pushed into the FIFO and tagged as data Reading this
register has no effect and the data read is undefined
In the backward direction (bit 5 of DCR is 1) the ECP auto-
matically issues ECP read cycles to fill the FIFO Reading
this register pops a byte from the FIFO Writing this register
has no effect and the data written is ignored
TFIFO Test FIFO Register A byte written into this register
is pushed into the FIFO A byte read from this register is
popped from the FIFO The ECP does not issue a ECP cycle
to transfer the data to or from the peripheral device
The TFIFO is readable and writable in both directions In the
forward direction (bit 5 of DCR is 0) PD0– 7 is driven but the
data is undefined
e
enable 0
e
mask) If a level interrupt is configured

Related parts for PC87332VLJ-5