ECP PARALLEL PORT TIMING...............................................................................................147
2
GENERAL DESCRIPTION
The SMSC FDC37C665GT and FDC37C666GT
Advanced High Performance Multi-Mode
Parallel Port Super I/O Floppy Disk Controller
ICs utilize SMSC's proven SuperCell technology
for increased product reliability and functionality.
The FDC37C665GT is optimized for
motherboard applications while the
FDC37C666GT is oriented towards controller
card applications. Both devices support 1 Mb/s
data rates for vertical recording operation. The
FDC37C665GT is hardware compatible with the
FDC37C651 and FDC37C661 in the Standard
and Enhanced Parallel Port Modes.
The FDC37C665GT and FDC37C666GT
incorporate SMSC's true CMOS 765B floppy
disk controller, advanced digital data separator,
16 byte data FIFO, two 16C550 compatible
UARTs, one Multi-Mode parallel port which
includes ChiProtect circuitry plus EPP and ECP
support, IDE interface, on-chip 24 mA AT bus
drivers, game port chip select (FDC37C666GT
only), general purpose address decoder and
four floppy direct drive support. The true CMOS
765B core provides 100% compatibility with IBM
PC/XT and PC/AT architectures in addition to
providing data overflow and underflow
protection. The SMSC advanced digital data
separator incorporates SMSC's patented data
separator technology, allowing for ease of
testing and use. Both on-chip UARTs are
compatible with the NS16C550. The parallel
port, the IDE interface and the
game port select logic are compatible with IBM
PC/XT and PC/AT architectures, as well as EPP
and ECP. The FDC37C665GT and
FDC37C666GT incorporate sophisticated power
control circuitry (PCC). The PCC supports
multiple low power down modes.
The FDC37C665GT Floppy Disk Controller
incorporates Software Configurable Logic (SCL)
for ease of use. Use of the SCL feature allows
programmable system configuration of key
functions such as the FDC, parallel port, and
UARTs. The parallel port ChiProtect prevents
damage caused by the printer being powered
when the FDC37C665GT or FDC37C666GT is
not powered. The parallel port backdrive current
protection prevents the FDC37C665GT or
FDC37C666GT from sinking current when the
device is powered off and the printer is left
powered on.
The FDC37C665GT and FDC37C666GT do not
require any external filter components and are,
therefore, easy to use and offer lower system
cost and reduced board area. The
FDC37C665GT and FDC37C666GT are
software and register compatible to the
82077AA using SMSC's proprietary floppy disk
controller core.
IBM, PC/XT and PC/AT are registered trademarks and PS/2 is
a trademark of International Business Machines Corporation.
SMSC is a registered trademark and ChiProtect, SuperCell,
and Multi-Mode are trademarks of Standard Microsystems
Corporation
44nI/O ReadnIORIThis active low signal is issued by the host
45nI/O WritenIOWIThis active low signal is issued by the host
46Address EnableAENIActive high Address Enable indicates DMA
28-34
41-43
52FDC DMA
36nDMA Acknowle-
35Terminal CountTCIThis signal indicates to the FDC37C665GT
Data Bus 0-7D0-D7I/O24The data bus connection used by the host
I/O AddressA0-A9IThese host address bits determine the I/O
FDRQO24This active high output is the DMA request
Request
nDACKIAn active low input acknowledging the
dge
TYPEDESCRIPTION
microprocessor to transmit data to and from
the FDC37C665GT. These pins are in a
high-impedance state when not in the output
mode.
microprocessor to indicate a read operation.
microprocessor to indicate a write operation.
operations on the host data bus. Used
internally to qualify appropriate address
decodes.
address to be accessed during nIOR and
nIOW cycles. These bits are latched
internally by the leading edge of nIOR and
nIOW.
for byte transfers of data to the host. This
signal is cleared on the last byte of the data
transfer by the nDACK signal going low (or
by nIOR going low if nDACK was already
low as in demand mode).
request for a DMA transfer of data. This
input enables the DMA read or write
internally.
that data transfer is complete. TC is only
accepted when nDACK or nPDACK is low.
In AT and PS/2 model 30 modes, TC is
active high and in PS/2 mode, TC is active
low.
5
DESCRIPTION OF PIN FUNCTIONS
PIN NO.NAMESYMBOL
38Serial Port
Interrupt
Request
IRQ4
BUFFER
TYPEDESCRIPTION
O24
FDC37C665GT (Motherboard application):
IRQ4 is the interrupt from the Primary Serial
Port (PSP) or Secondary Serial Port (SSP)
when the PSP or SSP have their address
programmed as COM1 or COM3 (as
defined in the Configuration Registers). The
appropriate interrupt from the Serial Port is
enabled/disabled via the Interrupt Enable
Register (IER). The interrupt is reset
inactive after interrupt service. It is disabled
through IER or hardware reset.
Primary Serial
Port Interrupt
37Serial Port
Interrupt
Request
Secondary Serial
Port Interrupt
40Floppy
Controller
Interrupt
Request
PSPIRQ
IRQ3
SSPIRQ
FINTRO24This interrupt from the Floppy Disk
O24
O24
O24
FDC37C666GT (Adapter application):
PSPIRQ is a source of PSP interrupt.
Externally, it should be connected to either
IRQ3 or IRQ4 on PC/AT via jumpers.
FDC37C665GT (Motherboard application):
IRQ3 is the interrupt from the Primary Serial
Port (PSP) or secondary Serial Port (SSP)
when the PSP or SSP have their address
programmed as COM2 or COM4 (as
defined in the Configuration Registers). The
appropriate interrupt from the Serial Port is
enabled/disabled via the Interrupt Enable
Register (IER). The interrupt is reset
inactive after interrupt service. It is disabled
through IER or hardware reset.
FDC37C666GT (Adapter application):
SSPIRQ is a source of SSP interrupt.
Externally, it should be connected to either
IRQ3 or IRQ4 on PC/AT via jumpers.
Controller is enabled/disabled via bit 3 of the
Digital Output Register (DOR).
6
DESCRIPTION OF PIN FUNCTIONS
PIN NO.NAMESYMBOL
39Parallel Port
Interrupt
Request 1
PINTR1O24
BUFFER
TYPEDESCRIPTION
This interrupt from the Parallel Port is
enabled/disabled via bit 4 of the Parallel
Port Control Register. Refer to
configuration registers CR1 and CR3 for
more information.
OD24
57ResetRSTISThis active high signal resets the
FLOPPY DISK INTERFACE
16nRead Disk Data nRDATAISRaw serial bit stream from the disk drive,
10nWrite
Gate
9nWrite
Data
11nHead
Select
nWGATEOD48This active low high current driver allows
nWDATAOD48This active low high current driver provides
nHDSELOD48This high current output selects the floppy
If EPP or ECP Mode is enabled, this output
is pulsed low, then released to allow sharing
of interrupts.
FDC37C665GT and must be valid for 500
ns minimum. The effect on the internal
registers is described in the appropriate
section. The configuration registers are not
affected by this reset. In the
FDC37C666GT, the falling edge of reset
latches the jumper configuration. The
jumper select lines must be valid 50 ns prior
to this edge.
low active. Each falling edge represents a
flux transition of the encoded data.
current to flow through the write head. It
becomes active just prior to writing to the
diskette.
the encoded data to the disk drive. Each
falling edge causes a flux transition on the
media.
disk side for reading or writing. A logic "1"
on this pin means side 0 will be accessed,
while a logic "0" means side 1 will be accessed.
7
DESCRIPTION OF PIN FUNCTIONS
BUFFER
PIN NO.NAMESYMBOL
7nDirection
Control
8nStep PulsenSTEPOD48This active low high current driver issues a
17nDisk ChangenDSKCHGISThis input senses that the drive door is open
4,3nDrive Select
O,1
98nDrive Select 2
nDIROD48This high current low active output
nDS0,1OD48Active low open drain outputs select drives
nDS2
TYPEDESCRIPTION
determines the direction of the head
movement. A logic "1" on this pin means
outward motion, while a logic "0" means
inward motion.
low pulse for each track-to-track movement
of the head.
or that the diskette has possibly been
changed since the last drive selection. This
input is inverted and read via bit 7 of I/O
address 3F7H.
0-1. Refer to Note 2.
OD48
Active low open drain output selects drives
2. Refer to Note 2.
nDrive Select 3
PDIR
97nDrive Select 3
I/O Address 10
2,5nMotor On 0,1nMTR0,1OD48These active low open drain outputs select
96nMotor On 2nMTR2
99nMotor On 3nMTR3
nDS3
PDIR
nDS3
A10
nPDACK
PDRQ
OD48
O4
0D48IIn non-ECP mode: Active low open drain
OD48IMotor On 2: Refer to Note 1.
OD48
O24
In non-ECP mode: Active low open drain
output selects drive 3. Refer to Note 2.
This bit is used to indicate the direction of
the Parallel Port data bus. 0 = output/write
1 = input/read
output selects drive 3. Refer to Note 2.
In ECP Mode, this pin is the A10 address
input.
motor drives 0-1. Refer to Note 1.
In ECP Mode, nMTR2 is the Parallel Port
DMA Acknowledge input. Active Low.
Motor On 3: Refer to Note 1.
In ECP Mode, MTR3 is the Parallel Port
DMA Request output. Active High.
8
DESCRIPTION OF PIN FUNCTIONS
BUFFER
PIN NO.NAMESYMBOL
1Density SelectDENSELOD48Indicates whether a low (250/300 Kb/s) or
14nWrite
Protected
13nTrack 00nTR0ISThis active low Schmitt Trigger input senses
12nIndexnINDEXISThis active low Schmitt Trigger input senses
19,18
Data Rate 0,
Data Rate 1
nWRTPRTISThis active low Schmitt Trigger input senses
DRATE0,
DRATE1
TYPEDESCRIPTION
high (500 Kb/s) data rate has been selected.
This is determined by the IDENT bit in
Configuration Register 3.
from the disk drive that a disk is write
protected. Any write command is ignored.
from the disk drive that the head is
positioned over the outermost track.
from the disk drive that the head is
positioned over the beginning of a track, as
marked by an index hole.
O24IThese two outputs reflect bits 0 and 1
respectively of the Data Rate Register. At
power on, these two outputs are in a high
impedance state (refer to Table 50).
19,18
78,88Receive DataRXD1,
79Transmit DataTXD1
Media ID0,
Media ID1
RXD2
PCF0
In Floppy Enhanced Mode 2 - These bits are
the Media ID 0,1 inputs. The value of these
bits can be read as bits 6 and 7 of the
Floppy Tape register.
SERIAL PORT INTERFACE
IReceiver serial data input.
O4
Transmitter serial data output from Primary
Serial Port.
I
FDC37C666GT (Adapter Mode): Parallel
Port Configuration Control 0. During reset
active this input is read and latched to
define the address of the Parallel Port.
9
DESCRIPTION OF PIN FUNCTIONS
PIN NO.NAMESYMBOL
81nRequest to
Send
nRTS1
BUFFER
TYPEDESCRIPTION
O4
Active low Request to Send output for
Primary Serial Port. Handshake output
signal notifies modem that the UART is
ready to transmit data. This signal can be
programmed by writing to bit 1 of Modem
Control Register (MCR). The hardware
reset will reset the nRTS signal to inactive
mode (high). Forced inactive during loop
mode operation.
Parallel Port
Configuration
Control
91nRequest to
Send
Secondary Serial
Port
Configuration
Control
PCF1
nRTS2
S2CF0
O4
I
FDC37C666GT (Adapter Mode): Parallel
Port Configuration Control 1. During reset
active this input is read and latched to
define the address of the Parallel Port.
Active low Request to Send output for
Secondary Serial Port. Handshake output
signal notifies modem that the UART is
ready to transmit data. This signal can be
programmed by writing to bit 1 of Modem
Control Register (MCR). The hardware
reset will reset the nRTS signal to inactive
mode (high). Forced inactive during loop
mode operation.
I
FDC37C666GT (Adapter Mode): Secondary
Serial Port Configuration Control 0. During
Reset active this input is read and latched to
define the address of the Secondary Serial
Port.
10
DESCRIPTION OF PIN FUNCTIONS
PIN NO.NAMESYMBOL
83nData Terminal
Ready
IDE
Configuration
Control
93nData Terminal
Ready
nDTR1
IDECF
nDTR2
BUFFER
TYPEDESCRIPTION
O4
O4
Active low Data Terminal Ready output for
primary serial port. Handshake output
signal notifies modem that the UART is
ready to establish data communication link.
This signal can be programmed by writing
to bit 0 of Modem Control Register (MCR).
The hardware reset will reset the nDTR
signal to inactive mode (high). Forced
inactive during loop mode operation.
FDC37C666GT (Adapter Mode): IDE
I
Configuration Control. During reset active
this input is read and latched to
enable/disable the IDE.
Active low Data Terminal Ready output for
secondary serial port. Handshake output
signal notifies modem that the UART is
ready to establish data communication link.
This signal can be programmed by writing
to bit 0 of Modem Control Register (MCR),
The hardware reset will reset the nDTR
signal to inactive mode (high). Forced
inactive during loop mode operation.
Secondary Serial
Port
Configuration
Control 1
89Transmit Data 2TXD2
S2CF1
FDCCF
O4
FDC37C666GT (Adapter Mode): Secondary
I
Serial Port Configuration Control 1. During
reset active this input is read and latched to
define the address of the Secondary Serial
Port.
Transmitter Serial Data output from
Secondary Serial Port.
I
FDC37C666GT (Adapter Mode): Floppy
Disk Configuration. This input is read and
latched during Reset to enable/disable the
Floppy Disk Controller.
11
DESCRIPTION OF PIN FUNCTIONS
PIN NO.NAMESYMBOL
82,92nClear to SendnCTS1,
nCTS2
80,90nData Set Ready nDSR1,
nDSR2
85,87nData Carrier
Detect
nDCD1,
nDCD2
BUFFER
TYPEDESCRIPTION
IActive low Clear to Send inputs for primary
and secondary serial ports. Handshake
signal which notifies the UART that the
modem is ready to receive data. The CPU
can monitor the status of nCTS signal by
reading bit 4 of Modem Status Register
(MSR). A nCTS signal state change from
low to high after the last MSR read will set
MSR bit 0 to a 1. If bit 3 of Interrupt Enable
Register is set, the interrupt is generated
when nCTS changes state. The nCTS
signal has no effect on the transmitter.
Note: Bit 4 of MSR is the complement of
nCTS.
IActive low Data Set Ready inputs for
primary and secondary serial ports.
Handshake signal which notifies the UART
that the modem is ready to establish the
communication link. The CPU can monitor
the status of nDSR signal by reading bit 5 of
Modem Status Register (MSR). A nDSR
signal state change from low to high after
the last MSR read will set MSR bit 1 to a 1.
If bit 3 of Interrupt Enable Register is set,
the interrupt is generated when nDSR
changes state. Note: Bit 5 of MSR is the
complement of nDSR.
IActive low Data Carrier Detect inputs for
primary and secondary serial ports.
Handshake signal which notifies the UART
that carrier signal is detected by the
modem. The CPU can monitor the status of
nDCD signal by reading bit 7 of Modem
Status Register (MSR). A nDCD signal
state change from low to high after the last
MSR read will set MSR bit 3 to a 1. If bit 3
of Interrupt Enable Register is set, the
interrupt is generated when nDCD changes
state. Note: Bit 7 of MSR is the
complement of nDCD.
12
DESCRIPTION OF PIN FUNCTIONS
BUFFER
PIN NO.NAMESYMBOL
84,86nRing IndicatornRI1, nRI2IActive low Ring Indicator input for primary
94Drive 2
DRV2
TYPEDESCRIPTION
and secondary serial ports. Handshake
signal which notifies the UART that the
telephone ring signal is detected by the
modem. The CPU can monitor the status of
nRI signal by reading bit 6 of Modem Status
Register (MSR). A nRI signal state change
from low to high after the last MSR read will
set MSR bit 2 to a 1. If bit 3 of Interrupt
Enable Register is set, the interrupt is
generated when nRI changes state. Note:
Bit 6 of MSR is the complement of nRI.
I
In PS/2 mode, this input indicates whether a
second drive is connected; DRV2 should be
low if a second drive is connected. This
status is reflected in a read of Status
Register A. (Only available in
FDC37C665GT. This pin must not be
driven in the FDC37C666GT)
nADRx
Parallel Port
Interrupt
Request 2
nADRx
PINTR2
ECPEN
PARALLEL PORT INTERFACE
O24
O24
I
13
Optional I/O port address decode output.
Refer to Configuration registers CR3, CR8
and CR9 for more information. Active low.
(Available in FDC37C665GT and
FDC37C666GT.) Defaults to tri-state after
power-up. This pin has a 30µa internal pullup.
This interrupt from the Parallel Port is
enabled/disabled via bit 4 of the Parallel
Port Control Register. Refer to
configuration registers CR1 and CR3 for
more information.
FDC37C666GT (Adapter Mode): Enhanced
Parallel Port mode select. Refer to
FDC37C666GT hardware configuration for
more information. Read and latched during
reset active.
DESCRIPTION OF PIN FUNCTIONS
BUFFER
PIN NO.NAMESYMBOL
73nPrinter Select
Input
74nInitiate OutputnINITOD24This output is bit 2 of the printer control
76nAutofeed
Output
77nStrobe OutputnSTROBEOD24An active low pulse on this output is used to
61BusyBUSYIThis is a status output from the printer, a
62nAcknowledgenACKIA low active output from the printer
nSLCTINOD24This active low output selects the printer.
nAUTOFDOD24This output goes low to cause the printer to
TYPEDESCRIPTION
This is the complement of bit 3 of the Printer
Control Register.
0P24Refer to Parallel Port description for use of
this pin in ECP and EPP mode.
register. This is used to initiate the printer
when low.
0P24Refer to Parallel Port description for use of
this pin in ECP and EPP mode.
automatically feed one line after each line is
printed. The nAUTOFD output is the
complement of bit 1 of the Printer Control
Register.
0P24Refer to Parallel Port description for use of
this pin in ECP and EPP mode.
strobe the printer data into the printer. The
nSTROBE output is the complement of bit 0
of the Printer Control Register.
0P24Refer to Parallel Port description for use of
this pin in ECP and EPP mode.
high indicating that the printer is not ready
to receive new data. Bit 7 of the Printer
Status Register is the complement of the
BUSY input. Refer to Parallel Port
description for use of this pin in ECP and
EPP mode.
indicating that it has received the data and
is ready to accept new data. Bit 6 of the
Printer Status Register reads the nACK
input. Refer to Parallel Port description for
use of this pin in ECP and EPP mode.
14
DESCRIPTION OF PIN FUNCTIONS
BUFFER
PIN NO.NAMESYMBOL
60Paper EndPEIAnother status output from the printer, a
59Printer Selected
Status
75nErrornERRIA low on this input from the printer indicates
71-68
66-63
100IOCHRDYIOCHRDYOD24PIn EPP mode, this pin is pulled low to
23nIDE Low Byte
Port DataPD0-PD7I/OP24The bi-directional parallel data bus is used
Enable
SLCTIThis high active output from the printer
nIDEENLO
TYPEDESCRIPTION
high indicating that the printer is out of
paper. Bit 5 of the Printer Status Register
reads the PE input. Refer to Parallel Port
description for use of this pin in ECP and
EPP mode.
indicates that it has power on. Bit 4 of the
Printer Status Register reads the SLCT
input. Refer to Parallel Port description for
use of this pin in ECP and EPP mode.
that there is a error condition at the printer.
Bit 3 of the Printer Status register reads the
nERR input. Refer to Parallel Port
description for use of this pin in ECP and
EPP mode.
to transfer information between CPU and
peripherals.
extend the read/write command. This pin
has an internal pull-up.
IDE
O8
This active low signal is used in both the XT
and AT mode. In the AT mode, this pin is
active when the IDE is enabled and the I/O
address is accessing 1F0H-1F7H and
3F6H-3F7H in primary address mode or
170H-177H and 376H,377H in secondary
address mode. In the XT mode, this signal
is active for accessing 320H-323H, 8 bit
programmed I/O or DMA.
S1CF1
FDC37C666GT (Adapter Mode): Primary
I
Serial Configuration 1. Read and latched
during reset active to select the address of
the Secondary Serial Port.
15
DESCRIPTION OF PIN FUNCTIONS
PIN NO.NAMESYMBOL
24nIDE High Byte
Enable
nIDEENHI
BUFFER
TYPEDESCRIPTION
O8
This signal is active low only in the AT
mode, and when IO16CSB is also active.
The I/O addresses for which this pin reacts
are 1F0H-1F7H in primary address mode or
170H-177H in secondary address mode.
This pin is not used in XT mode.
25nHard Disk Chip
Select
26nHard Disk Chip
Select
27nI/O 16 Bit
Indicator
S1CF0
nHDCS0
IDEACF
nHDCS1
FACF
nIOCS16
I
FDC37C666GT (Adapter Mode): Primary
Serial Configuration 0. Read and latched
during reset active to define the address of
the Secondary Serial Port.
O24IThis is the Hard Disk Chip select
corresponding to addresses 1F0H-1F7H in
primary address mode or 170H-177H in
secondary address mode in the AT mode
and addresses 320H-323H in the XT mode.
FDC37C666GT (Adapter Mode): IDE
Address Control. Refer to FDC37C666GT
hardware configuration for more
information. Read and latched during
reset active.
O24IThis is the Hard Disk Chip select
corresponding to 3F6H,3F7H for primary
address mode or 376H,377H for secondary
address mode in the AT mode and
addresses 3F6H,3F7H in the XT mode.
FDC37C666GT (Adapter Mode): Floppy
Disk Address Control. Refer to
FDC37C666GT hardware configuration for
more information. Read and latched during
reset active.
I
This input indicates, in AT mode only, when
16 bit transfers are to take place. This
signal is generated by the hard disk
interface. Logic "0" = 16 bit mode; logic "1"
= 8 bit mode.
nHDACK
I
In the XT mode, this is the Hard Disk
Controller DMA Acknowledge, low active.
16
DESCRIPTION OF PIN FUNCTIONS
BUFFER
PIN NO.NAMESYMBOL
22IDE Data Bit 7IDED7I/O24IDE data bit 7 in the AT mode. IDED7
58Power GoodPWRGDIFDC37C665GT (Motherboard Mode): This
TYPEDESCRIPTION
transfers data at I/O addresses 1F0H-1F7H
(R/W), 3F6 (R/W), 3F7(W). IDED7 should
be connected to IDE data bit 7. The
FDC37C665GT functions as a buffer
transferring data bit 7 between the IDE
device and the host. During I/O read of
3F7H, IDED7 is the FDC disk change bit. In
the XT mode, IDE7 is not used.
MISCELLANEOUS
input indicates that the power (VCC) is valid.
For device operation, PWRGD must be
active. When PWRGD is inactive, all inputs
to the FDC37C665GT are disconnected and
put in a low power mode, all outputs are put
into high impedance. The contents of all
registers are preserved as long as VCC has a
valid value. The driver current drain in this
mode drops to ISTBY - standby current.
This input has a weak pullup resistor to VCC.
nGame Port
Chip Select
20CLOCK 1X1/CLK1ICLKThe external connection for a parallel
21CLOCK 2X2/CLK2OCLK24 MHz crystal. If an external clock is used,
nGAMECS
PADCF
O4
FDC37C666GT (Adapter Mode): This is the
Game Port Chip Select output - active low.
It will go active when the I/O address is
201H.
I
FDC37C666GT (Adapter Mode): Parallel
Port Mode Control. Refer to FDC37C666GT
hardware configuration for more
information. Read and latched during reset
active.
resonant 24 MHz crystal. A CMOS
compatible oscillator is required if crystal is
not used.
this pin should not be connected. This pin
should not be used to drive any other
drivers.
17
DESCRIPTION OF PIN FUNCTIONS
BUFFER
PIN NO.NAMESYMBOL
15,72PowerV
6,47,
GroundGNDGround pin.
CC
67,95
Note 1: These active low open drain outputs select motor drives 0-3. In non-ECP modes, four drives
can be supported directly. These motor enable bits are controlled by software via the Digital
Output Register (DOR). In ECP mode, MTR0,1 can be used to directly support 2 drives or
can support 4 drives by using an external 2 to 4 decoder.
Note 2: Active low open drain outputs select drives 0-3. In non-ECP modes, four drives can be
supported directly. These drive select outputs are a decode of bits 0 and 1 of the Digital
Output Register and qualified by the appropriate Motor Enable Bit of the DOR (bits 4-7). In
ECP mode, DS0,1 can be used to directly support 2 drives or can support 4 drives by using
an external 2 to 4 decoder.
TYPEDESCRIPTION
+ 5 Volt supply pin.
18
BUFFER TYPE DESCRIPTIONS
BUFFER TYPEDESCRIPTION
I/O24Input/output. 24 mA sink; 12 mA source.
O24Output. 24 mA sink; 12 mA source.
OD24Output. 24 mA sink.
OD24P
OP24Output. 24 mA sink; 4 mA source.
OD48Open drain. 48 mA sink.
O4Output. 4 mA sink; 2.0 mA source.
O8Output. 8 mA sink; 4.0 mA source.
OCLKOutput to external crystal
ICLKInput to Crystal Oscillator Circuit (CMOS levels)
The address map, shown below in Table 1,
shows the addresses of the different blocks of
the Super I/O immediately after power up. The
base addresses of the FDC, IDE, serial and
parallel ports can be moved via the
configuration registers. Some addresses are
used to access more than one register.
Table 1 - FDC37C665GT/666GT Block Addresses
ADDRESSBLOCK NAMENOTES
3F0, 3F1ConfigurationWrite only; Note 1, 2
3F0, 3F1Floppy DiskRead only; Address at power
3F2, 3F3, 3F4, 3F5, 3F7Floppy DiskAddress at power up; Note 2
3F8-3FFSerial Port Com 1Address at power up; Note 2
2F8-2FFSerial Port Com 2Address at power up; Note 2
278-27AParallel PortAddress at power up; Note 2
1F0-1F7, 3F6, 3F7IDEAT Mode; Note 2, 3
Note 1: Configuration registers can only be modified in configuration mode, entered only by writing a
security code sequence to 3F0. The configuration registers can only be read in configuration
mode by accessing 3F1. Access to status registers A and B of the floppy disk is disabled in
configuration mode. Outside of configuration mode, a read of 3F0 accesses status register A
and a read of 3F1 accesses status register B of the floppy disk.
Note 2: Address at power up; These addresses can be changed in the configuration setup.
Note 3: Addresses 320H-323H and 3F5-3F7H for XT Mode. Selectable in configuration setup.
HOST PROCESSOR INTERFACE
The host processor communicates with the
FDC37C665GT/666GT through a series of
read/write registers. The port addresses for
these registers are shown in Table 1. Register
access is accomplished through programmed
I/O or DMA transfers. All registers are 8 bits
wide except the IDE data register at port 1F0H
which is 16 bits wide. All host interface output
buffers are capable of sinking a minimum of 24
mA.
up; Note 2
22
FLOPPY DISK CONTROLLER
The Floppy Disk Controller (FDC) provides the
interface between a host microprocessor and
the floppy disk drives. The FDC integrates the
functions of the Formatter/Controller, Digital
Data Separator, Write Precompensation and
Data Rate Selection logic for an IBM XT/AT
compatible FDC. The true CMOS 765B core
guarantees 100% IBM PC XT/AT compatibility
in addition to providing data overflow and
underflow protection.
The FDC37C665GT and FDC37C666GT are
compatible to the 82077AA using SMSC's
proprietary floppy disk controller core.
Table 2 - Status, Data and Control Registers
PRIMARY
ADDRESS
3F0
3F1
3F2
3F3
3F4
3F4
3F5
3F6
3F7
3F7
SECONDARY
ADDRESSREGISTER
370
371
372
373
374
374
375
R
R
R/W
R/W
R
W
R/W
376
377
377
R
W
FLOPPY DISK CONTROLLER INTERNAL
REGISTERS
The Floppy Disk Controller contains eight
internal registers which facilitate the interfacing
between the host microprocessor and the disk
drive. Table 2 shows the addresses required to
access these registers. Registers other than the
ones shown are not supported. The rest of the
description assumes that the primary addresses
have been selected.
Status Register A
Status Register B
Digital Output Register
Tape Drive Register
Main Status Register
Data Rate Select Register
Data (FIFO)
SRA
SRB
DOR
TSR
MSR
DSR
FIFO
Reserved
Digital Input Register
Configuration Control Register
DIR
CCR
For information on the floppy disk on Parallel Port pins, refer to Configuration Register CR4
and Parallel Port Floppy Disk Controller description.
23
STATUS REGISTER A (SRA)
Address 3F0 READ ONLY
This register is read-only and monitors the state
of the FINTR pin and several disk interface pins,
PS/2 Mode
76543210
INT
nDRV2 STEP nTRK0 HDSEL nINDXnWPDIR
PENDING
RESET
0N/A0N/A0N/AN/A0
COND.
in PS/2 and Model 30 modes. The SRA can be
accessed at any time when in PS/2 mode. In
the PC/AT mode the data bus pins D0 - D7 are
held in a high impedance state for a read of
address 3F0.
BIT 0 DIRECTION
Active high status indicating the direction of
head movement. A logic "1" indicating inward
direction a logic "0" outward.
BIT 1 nWRITE PROTECT
Active low status of the WRITE PROTECT disk
interface input. A logic "0" indicating that the
disk is write protected.
BIT 2 nINDEX
Active low status of the INDEX disk interface
input.
BIT 3 HEAD SELECT
Active high status of the HDSEL disk interface
input. A logic "1" selects side 1 and a logic "0"
selects side 0.
BIT 4 nTRACK 0
Active low status of the TRK0 disk interface
input.
BIT 5 STEP
Active high status of the STEP output disk
interface output pin.
BIT 6 nDRV2
Active low status of the DRV2 disk interface
input pin, indicating that a second drive has
been installed.
BIT 7 INTERRUPT PENDING
Active high bit indicating the state of the Floppy
Disk Interrupt output.
24
PS/2 Model 30 Mode
RESET
COND.
76543210
INT
PENDING
000N/A1N/AN/A1
DRQSTEP
F/F
TRK0nHDSELINDXWPnDIR
BIT 0 nDIRECTION
Active low status indicating the direction of head
movement. A logic "0" indicating inward
direction a logic "1" outward.
BIT 1 WRITE PROTECT
Active high status of the WRITE PROTECT disk
interface input. A logic "1" indicating that the
disk is write protected.
BIT 2 INDEX
Active high status of the INDEX disk interface
input.
BIT 3 nHEAD SELECT
Active low status of the HDSEL disk interface
input. A logic "0" selects side 1 and a logic "1"
selects side 0.
BIT 4 TRACK 0
Active high status of the TRK0 disk interface
input.
BIT 5 STEP
Active high status of the latched STEP disk
interface output pin. This bit is latched with the
STEP output going active, and is cleared with a
read from the DIR register, or with a hardware
or software reset.
BIT 6 DMA REQUEST
Active high status of the DRQ output pin.
BIT 7 INTERRUPT PENDING
Active high bit indicating the state of the Floppy
Disk Interrupt output.
25
STATUS REGISTER B (SRB)
Address 3F1 READ ONLY
This register is read-only and monitors the state
of several disk interface pins, in PS/2 and Model
PS/2 Mode
76543210
RESET
11DRIVE
SEL0
11000000
WDATA
TOGGLE
COND.
30 modes. The SRB can be accessed at any
time when in PS/2 mode. In the PC/AT mode
the data bus pins D0 - D7 are held in a high
impedance state for a read of address 3F1.
RDATA
TOGGLE
WGATEMOT
EN1
MOT
EN0
BIT 0 MOTOR ENABLE 0
Active high status of the MTR0 disk interface
output pin. This bit is low after a hardware reset
and unaffected by a software reset.
BIT 1 MOTOR ENABLE 1
Active high status of the MTR1 disk interface
output pin. This bit is low after a hardware reset
and unaffected by a software reset.
BIT 2 WRITE GATE
Active high status of the WGATE disk interface
output.
BIT 3 READ DATA TOGGLE
Every inactive edge of the RDATA input causes
this bit to change state.
BIT 4 WRITE DATA TOGGLE
Every inactive edge of the WDATA input causes
this bit to change state.
BIT 5 DRIVE SELECT 0
Reflects the status of the Drive Select 0 bit of
the DOR (address 3F2 bit 0). This bit is cleared
after a hardware reset, it is unaffected by a
software reset.
BIT 6 RESERVED
Always read as a logic "1".
BIT 7 RESERVED
Always read as a logic "1".
26
PS/2 Model 30 Mode
nDRV2 nDS1nDS0WDATA
RESET
COND.
76543210
F/F
RDATA
F/F
WGATE
F/F
nDS3nDS2
N/A1100011
BIT 0 nDRIVE SELECT 2
Active low status of the DS2 disk interface
output.
BIT 1 nDRIVE SELECT 3
Active low status of the DS3 disk interface
output.
BIT 2 WRITE GATE
Active high status of the latched WGATE output
signal. This bit is latched by the active going
edge of WGATE and is cleared by the read of
the DIR register.
BIT 3 READ DATA
Active high status of the latched RDATA output
signal. This bit is latched by the inactive going
edge of RDATA and is cleared by the read of the
DIR register.
BIT 4 WRITE DATA
Active high status of the latched WDATA output
signal. This bit is latched by the inactive going
edge of WDATA and is cleared by the read of
the DIR register. This bit is not gated with
WGATE.
BIT 5 nDRIVE SELECT 0
Active low status of the DS0 disk interface
output.
BIT 6 nDRIVE SELECT 1
Active low status of the DS1 disk interface
output.
BIT 7 nDRV2
Active low status of the DRV2 disk interface
input.
27
DIGITAL OUTPUT REGISTER (DOR)
Address 3F2 READ/WRITE
The DOR controls the drive select and motor
enables of the disk interface outputs. It also
76543210
MOT
EN3
RESET
MOT
EN2
MOT
EN1
00000000
COND.
contains the enable for the DMA logic and
contains a software reset bit. The contents of
the DOR are unaffected by a software reset.
The DOR can be written to at any time.
MOT
EN0
DMAEN nRESETDRIVE
SEL1
DRIVE
SEL0
BIT 0 and 1 DRIVE SELECT
These two bits a are binary encoded for the four
drive selects DS0-DS3, thereby allowing only
one drive to be selected at a time.
BIT 2 nRESET
A logic "0" written to this bit resets the Floppy
disk controller. This reset will remain active
until a logic "1" is written to this bit. This
software reset does not affect the DSR and CCR
registers, nor does it affect the other bits of the
DOR register. The minimum reset duration
required is 100ns, therefore toggling this bit by
consecutive writes to this register is a valid
method of issuing a software reset.
BIT 3 DMAEN
PC/AT and Model 30 Mode:
Writing this bit to logic "1" will enable the DRQ,
nDACK, TC and FINTR outputs. This bit being
a logic "0" will disable the nDACK and TC
inputs, and hold the DRQ and FINTR outputs in
a high impedance state. This bit is a logic "0"
after a reset and in these modes.
PS/2 Mode: In this mode the DRQ, nDACK, TC
and FINTR pins are always enabled. During a
reset, the DRQ, nDACK, TC, and FINTR pins
will remain enabled, but this bit will be cleared to
a logic "0".
BIT 4 MOTOR ENABLE 0
This bit controls the MTR0 disk interface output.
A logic "1" in this bit will cause the output pin to
go active.
BIT 5 MOTOR ENABLE 1
This bit controls the MTR1 disk interface output.
A logic "1" in this bit will cause the output pin to
go active.
BIT 6 MOTOR ENABLE 2
This bit controls the MTR2 disk interface output.
A logic "1" in this bit will cause the output pin to
go active.
BIT 7 MOTOR ENABLE 3
This bit controls the MTR3 disk interface output.
A logic "1" in this bit causes the output to go
active.
Table 3 - Drive Activation Values
DRIVEDOR VALUE
0
1
2
3
1CH
2DH
4EH
8FH
28
TAPE DRIVE REGISTER (TDR)
Address 3F3 READ/WRITE
This register is included for 82077 software
compatability. The robust digital data separator
used in the FDC37C665GT does not require its
characteristics modified for tape support. The
contents of this register are not used internal to
the device. The TDR is unaffected by a
software reset. Bits 2-7 are tri-stated when
read in this mode.
TAPE SEL1TAPE SEL2
Table 4- Tape Select Bits
0
0
1
1
0
1
0
1
DRIVE
SELECTED
None
1
2
3
Table 5 - Internal 4 Drive Decode - Normal
DIGITAL OUTPUT REGISTERDRIVE SELECT OUTPUTS
(ACTIVE LOW)
Bit 7Bit 6Bit 5Bit 4Bit1Bit 0nDS3nDS2nDS1nDS0nMTR3nMTR2nMTR1nMTR0