-Software and Register Compatible with
SMSC's Proprietary 82077AA Compatible
Core
-Sophisticated Power Control Circuitry
(PCC) Including Multiple Powerdown
Modes for Reduced Power Consumption
-Supports Two Floppy Drives Directly
-24 mA AT Bus Drivers
-Low Power CMOS Design
!
Floppy Disk Interface on Parallel Port
!
Licensed CMOS 765B Floppy Disk Controller
Core
-Supports Vertical Recording Format
-16 Byte Data FIFO
-100% IBM® Compatibility
-Detects All Overrun and Underrun
Conditions
-48 mA Drivers and Schmitt Trigger Inputs
-DMA Enable Logic
-Data Rate and Drive Control Registers
IBM, PC/XT and PC/AT are registered tradem arks and PS/2 is a trademark of International B usiness Machines Corporation.
SMSC is a registered trademark and Ultra I/O, ChiProtect, and Multi-Mode are trademarks of Standard Microsystems
Corporation
IR REGISTERS - LOGICAL DEVICE 5 ............................................................................................... 100
IR DMA CHANNELS............................................................................................................................101
SMSC DS – FDC37N958FRRev. 09/01/99
IR IRQS................................................................................................................................................ 101
The FDC37N958FR is compliant with ACPI 1.0
and PC 97 and incorporates an 8051 based
keyboard controller; a Flash Interface; four PS/2
ports; real-time clock; SMSC's true CMOS 765B
FDC with advanced digital data separator and 16
byte data FIFO; two 16C550A compatible UARTs,
the second UART contains a Synchronous
Communications Engine to provide for IrDA Ver
1.1 (Fast IR) compliance; one Multi-Mode parallel
port which includes ChiProtect
TM
circuitry plus
EPP and ECP support; 8584 style Access Bus
interface; Serial IRQ peripheral agent interface;
General Purpose I/O; Two independent pulse
width modulators; on-chip 24 mA AT bus drivers
and two 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 NS16C550A. The parallel port is
compatible with IBM PC/AT architecture, as well
as EPP and ECP. The 8051 controller can also
take control of the parallel port interface to provide
remote diagnostics or “Flashing” of the Flash
memory. The FDC37N958FR has three
separate power planes which allows it to provide
“instant on” and system power management
functions. Additionally, the FDC37N958FR
incorporates sophisticated power control circuitry
(PCC). The PCC supports multiple low power
down modes.
The FDC37N958FR’s configuration register set is
compatible with the ISA Plug-and-Play Standard
(Version 1.0a) and provides the functionality to
support Windows '95. Through internal
configuration registers, each of the
FDC37N958FR's logical device's I/O address,
DMA channel and IRQ channel may be
programmed. There are 480 I/O address location
options, 13 IRQ options, and 4 DMA channel
options for each logical device.
The FDC37N958FR does not require any external
filter components and is, therefore, easy to use
and offers lower system cost and reduced board
area. The FDC37N958FR is software and
register compatible with SMSC's proprietary
82077AA core.
45EMCLKEM Serial ClockVCC2
46EMDATEM Se rial DataVCC2
47IMCLKIM Serial ClkVCC2
48IMDATIM Serial DataVCC2
50KBCLKKBD Serial ClockVCC2
51KBDATKBD Serial DataVCC2
52PS2CLK/
53PS2DAT/
101SIRQ /
99PSBCLKPCI Clock inputVCC2I
100PSBDATUART2 InterruptVCC2I/O24
The following FDC output pins can be configured as either Open Drain outputs capable of
sinking 24mA (OD24) or as push-pull outputs capable of driving 12mA and sinking 24mA (O24).
The FDC output pins must tristate when the FDC is in powerdown mode (The board designer
must provide external pull-up resistors on these output pins).
17nRDATARead Disk DataVCC2IS
12nWGATEWrite GateVCC2O24/
11nWDATAWrite Disk DataVCC2O24/
NAMEDESCRIPTION
KEYBOARD
KSO[0:13]Keyboard Scan Outputs(14*8 = 112)
Configuring GPIO4 and GPIO5 as
KSO14 and KSO15 yields a scan
matrix of 16 x 8 = 128.
130RXD1Receive Serial Data 1VCC2I
131TXD1Transmit Serial Data 1VCC2O4
134nRTS1Request to Send 1VCC2O4
135nCTS1Clear to Send 1VCC2I
136nDTR1Data Terminal Ready 1VCC2O4
106nRESET_OUTSystem reset (active low)VCC2O8
197nBAT_LEDBattery LED (0=on)VCC1OD24
110nPWR_LEDPower LED (0=on)VCC1OD24
198nFDD_LEDFloppy LED. This pin is asserted
With the inclusion of Fast IR two additional DMA channels are provided.
W hen GPIO6, GPIO9, GPIO10 and/or GPIO12 are configured as IR_MODE, COM-
TX, nRTS2|IR_MODE, and/or nDTR2 respectively and POWERGOOD=0 (VCC2 low)
then these pins will tri-state to prevent back-biasing of external circuitry.
The Mux Control Column in Table 2 lists the Misc Bits which the 8051 has access to through the three
Multiplexing registers. See the 8051 section of this data sheet for a description of the Multiplexing
registers.
The address map, shown below in Table 3,
shows the set of operating registers and
addresses for each of the logical blocks of the
FDC37N958FR Ultra I/O controller. The base
addresses of the FDC, Parallel, Serial 1 and
Serial 2 ports can be moved via the configuration
registers.
The host processor communicates with the
FDC37N958FR through a series of read/write
registers. The range of base I/O port addresses
for these registers is shown in Table 3. Register
access is accomplished through programmed I/O
or DMA transfers. All registers are 8 bits. Most of
the registers support zero wait-state access
(NOWS). All host interface output buffers are
capable of sinking a minimum of 12 mA.
ISA
FIXED
BASE OFFSETS
+0 : SRA
CYCLE
TYPE
NOWS
+1 : SRB
+2 : DOR
+3 : TSR
+4 : MSR/DSR
+5 : FIFO
+7 : DIR/CCR
+0 : Data / ecpAfifo
Std. ISA I/O
+1 : Status
+2 : Control
+400h : cfifo / ecpDfifo
tfifo / cnfgA
+401h : cnfgB
+402h : ecr
SMSC DS – FDC37N958FRPage 14 Rev. 09/01/99
LOGICAL
DEVICE
LOGICAL
NUMBER
0x04Serial
DEVICE
BASE I/O
RANGE
(NOTE3)
[0x100:0x0FF8]
Port 1
ON 8 BYTE
BOUNDARIES
0x05Serial Port2[0x100:0x0FF8]
ON 8 BYTE
BOUNDARIES
0x62,
0x63
[0x100:0x0FF8]
ON 8 BYTE
BOUNDARIES
0x06RTCNot Relocatable
Fixed Base
Address
FIXED
BASE OFFSETS
+0 : RB/TB $ LSB div
+1 : IER % MSB div
+2 : IIR/FCR
+3 : LCR
+4 : MCR
+5 : LSR
+6 : MSR
+7 : SCR
+0 : RB/TB $ LSB div
+1 : IER % MSB div
+2 : IIR/FCR
+3 : LCR
+4 : MCR
+5 : LSR
+6 : MSR
+7 : SCR
+0 : Register Block N, address 0
+1 : Register Block N, address 1
+2 : Register Block N, address 2
+3 : Register Block N, address 3
+4 : Register Block N, address 4
+5 : Register Block N, address 5
+6 : Register Block N, address 6
+7 : USRT Master Control Reg.
0x70, 0x74 : Address Register
0x71, 0x76 : Data Register
ISA
CYCLE
TYPE
NOWS
NOWS
NOWS
Std. ISA I/O
SMSC DS – FDC37N958FRPage 15 Rev. 09/01/99
LOGICAL
DEVICE
NUMBER
LOGICAL
DEVICE
BASE I/O
RANGE
(NOTE3)
0x07KYBDNot Relocatable
Fixed Base
Address
FIXED
BASE OFFSETS
0x60 : Data Register
0x64 : Command/Status Reg.
ISA
CYCLE
TYPE
NOWS
Note 1:
Note 2:
Note 3:
Refer to the configuration register descriptions for setting the base address
Serial Port 2 supports Infrared.
This chip uses all ISA address bits to decode the base address of each of its logical devices.
SMSC DS – FDC37N958FRPage 16 Rev. 09/01/99
AUTO POWER MANAGEMENT
Auto Power Management (APM) capabilities are
provided for the following logical devices: Floppy
Disk, UART 1, UART 2 and the Parallel Port. For
each logical device, two types of power
management are provided; direct powerdown and
auto powerdown.
System Power Management
See the “8051 System Power Management”
section for details.
FDC Power Management
Direct power management is controlled through
Global Configuration Register 22 (CR22). Refer
to CR22 in the Configuration section for more
information.
Auto Power Management is enabled through bit-0
of CR23. When set, this bit allows the FDC to
enter powerdown when all of the following
conditions have been met:
1.The motor enable pins of the FDC’s DOR
register are inactive (zero).
2.The FDC37N958FR must be idle; the MSR
register = 80h and the FDC’s INTerrupt = 0
(INT may be high even if MSR = 80H due to
polling interrupts).
3.The head unload timer must have expired.
4.The Auto powerdown timer (10msec) must
have timed out.
An internal timer is initiated as soon as the auto
powerdown command is enabled. The
FDC37N958FR is then powered down when all
the conditions are met.
Disabling the auto powerdown mode cancels the
timer and holds the FDC block out of auto
powerdown.
DSR From Powerdown
Bit 6 of the FDC’s DSR register is another FDC
powerdown bit. If DSR powerdown is used when
the FDC37N958FR is in auto powerdown, the
DSR powerdown will override the auto
powerdown. However, when the FDC37N958FR
is awakened from DSR powerdown, the auto
powerdown will once again become effective.
Wake Up From Auto Powerdown
If the FDC37N958FR enters the powerdown state
through the auto powerdown mode, then the
FDC37N958FR can be awakened by reset or by
appropriate access to certain registers.
If a hardware or software reset is used then the
FDC37N958FR will go through the normal reset
sequence. If the access is through the selected
registers, then the FDC resumes operation as
though it was never in powerdown. Besides
activating the RESET pin or one of the software
reset bits in the DOR or DSR registers, the
following register accesses will wake up the
FDC37N958FR:
1.Enabling any one of the motor enable bits in
the DOR register (reading the DOR does not
awaken the FDC37N958FR).
2.A read from the MSR register.
3.A read or write to the Data register.
Once awake, the FDC will reinitiate the auto
powerdown timer for 10 ms. The
FDC37N958FR will powerdown again when all
the powerdown conditions are satisfied.
SMSC DS – FDC37N958FRPage 17 Rev. 09/01/99
Register Behavior
Table 4 shows the AT and PS/2 (including Model
30) configuration registers available. It also shows
the type of access permitted. In order to maintain
software transparency, access to all the registers
is maintained. As Table 4 shows, two sets of
registers are distinguished based on whether their
access results in the FDC37N958FR remaining in
powerdown state or exiting it.
Access to all other registers is possible without
awakening the FDC37N958FR. These registers
can be accessed during powerdown without
changing the status of the FDC37N958FR. A
read from these registers will reflect the true
status as shown in the register description in the
FDC section. Writes to these registers will result
in the FDC37N958FR retaining the data and
subsequently reflecting it when the
FDC37N958FR awakens. Accessing the
FDC37N958FR during powerdown may cause an
increase in the power consumption by the
FDC37N958FR. The FDC37N958FR will revert
back to its low power mode when the access has
been completed.
Pin Behavior
The FDC37N958FR is specifically designed for
portable PC systems in which power conservation
is a primary concern. This makes the behavior of
the pins during powerdown very important.
The pins which interface to the floppy disk drive
are disabled so that no power will be drawn
through the FDC37N958FR as a result of any
voltage applied to the pin within the VCC2 power
supply range. Most of the pins which interface to
the system are left active to monitor system
accesses that may wake up the FDC37N958FR.
SMSC DS – FDC37N958FRPage 18 Rev. 09/01/99
System Interface Pins
Table 5 gives the state of the system interface
pins in the powerdown state. Pins unaffected by
Table 4 - PC/AT and PS/2 Available Registers
the powerdown are labeled "Unchanged". Input
pins are "Disabled" to prevent them from causing
currents internal to the FDC37N958FR when they
have indeterminate input values.
Note 1:
BASE + ADDRESS
AVAILABLE REGISTERSACCESS
PERMITTED
PC/ATPS/2 (Model 30)
Access to these registers DOES NOT wake up the FDC37N 958FR
Access to these registers wakes up the FDC37N958FR
04HMSRMSRR
05HDataDataR/W
Writing to the DOR or DSR does not wake up the FDC37N958FR, however, writing any of the
motor enable bits or doing a software reset (via DOR or DSR reset bits) will wake up the
FDC37N958FR.
SMSC DS – FDC37N958FRPage 19 Rev. 09/01/99
Table 5 - State of System Pins in FDC Auto Powerdown
(see FDD Mode Register, bit-5 in the
All pins in the FDD interface which can be
connected directly to the floppy disk drive itself are
either DISABLED or TRISTATED. Pins used for
local logic control or part programming are
unaffected. Table 6 depicts the state of the floppy
disk drive interface pins in the powerdown state.
Configuration Register Section) the FPD pin
goes high. If the FDC Shutdown bit is not set
then the FPD pin will go high whenever the FDC
bit (see bit 0 of the Power Mgmt Register in the
Configuration Section) is set and the FDC has
entered an auto powerdown state as described
above. If neither the FDC Shutdown bit nor the
FDD Power Down Pin (FPD) Behavior
FDC bit are set then the FPD pin goes active
“high” when the Power- down bit is set (see bit 6
The FPD pin can be used to automatically shut
off power to the floppy disk drive when it is not
required. The FPD pin is an active high output
of the Data Rate Select Register [DSR]) and
“low” when the Powerdown bit is cleared. Refer
to Table 6A.
signal which is driven based on the states of the
SMSC DS – FDC37N958FRPage 20 Rev. 09/01/99
Table 6 - State of Floppy Disk Drive Interface pins in FDC Powerdown
POWER DOWN BIT,
DSR, BIT-6
00 00
10 01
X101 (Note)
XX 11
Note:
The FPD pin will go active when the FDC auto powers down. Refer to the
FDC auto power management section for more details.
STATE IN FDC AUTO
FDD PINS
POWERDOWN
Input Pins
nRDATAInput
nWPROTInput
nTRK0Input
nINDEXInput
nDSKCHGInput
Output Pins
nMTR[1:0]Tristated
nDS[1:0]Tristated
nDIRActive
nSTEPActive
nWDATATristated
WGATETristated
nHDSELActive
DRVDEN[1:0]Active
FPDActive
Table 6A - FPD Pin Behavior
FDC BIT, GCR23 BIT-0
AUTO POWER DOWN
FDC SHUTDOWN BIT,
FDD MODE REGISTER
FPD PIN
STATE
SMSC DS – FDC37N958FRPage 21 Rev. 09/01/99
UART Power Management
Parallel Port Power Management
Direct power management is controlled by CR22.
Refer to CR22 in the Configuration Section for
more information.
Auto power management is enabled by CR23 bit
4 and bit 5. When set, these bits allow the
following auto power management operations:
1.The transmitter enters auto powerdown when
the transmit buffer and shift register are
empty.
2.The receiver enters powerdown when the
following conditions are all met:
A. Receive FIFO is empty
B. The receiver is waiting for a start bit.
Note:
While in powerdown the Ring Indicator
interrupt is still valid.
Exit Auto Powerdown
The transmitter exits powerdown on a write to the
transmit buffer. The receiver exits auto
powerdown when RX D changes state.
Direct power management is controlled by CR22.
Refer to CR22 in the Configuration Section for
more information.
Auto power management is enabled by CR23 bit
3. When set, this bit allows the ECP or EPP
logical parallel port blocks to be placed into
powerdown when not being used.
The EPP logic is in powerdown under any of the
following conditions:
1.EPP is not enabled in the configuration
registers.
2.EPP is not selected through ecr while in ECP
mode.
The ECP logic is in powerdown under any of the
following conditions:
1.ECP is not enabled in the configuration
registers.
2SPP, PS/2 Parallel port or EPP mode is
selected through ecr while in ECP mode.
Exit Auto Powerdown
The parallel port logic can change powerdown
modes when the ECP mode is changed through
the ecr register or when the parallel port mode is
changed through the configuration registers.
SMSC DS – FDC37N958FRPage 22 Rev. 09/01/99
FLOPPY DISK CONTROLLER
The Floppy Disk Controller (FDC) provides the
interface between a host microprocessor and the
Floppy Disk Drives (FDD). 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.
Table 7 - Status, Data and Control Registers
FDC PRIMARY BASE I/O
ADDRESS OFFSETR/WREGISTER
0RStatus Register A (SRA)
1RStatus Register B (SRB)
2R/WDigital Output Register (DOR)
3R/WTape Drive Register (TDR)
4RMain Status Register (MSR)
4WData Rate Select Register (DSR)
5R/WData (FIFO)
6Reserved
7RDigital Input Register (DIR)
7WConfiguration Control Register (CCR)
The FDC is compatible to the 82077AA using
SMSC's proprietary FDC core.
FDC INTERNAL REGISTERS
The FDC contains eight internal registers which
facilitate the interfacing between the host
microprocessor and the disk drive. shows the
addresses required to access these registers.
Registers other than the ones shown are not
supported.
SMSC DS – FDC37N958FRPage 23 Rev. 09/01/99
STATUS REGISTER A (SRA)
FDC I/O Base Address + 0x00 (READ O NLY)
This register is read-only and monitors the state of
the FDC Interrupt pin and several disk interface
SRA - PS/2 Mode
76543210
INT
nDRV2STEPnTRK0 HDSEL nINDXnWPDIR
PENDING
RESET
0N/A0N/A0N/AN/A0
COND.
pins 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 SRA.
BIT 0 DIRECTION
Active high status indicating the direction of head
movement. A logic "1" indicates inward direction;
a logic "0" indicates outward direction.
BIT 1 nWRITE PROTECT
Active low status of the WRITE PROTECT disk
interface input. A logic "0" indicates 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.
SMSC DS – FDC37N958FRPage 24 Rev. 09/01/99
Loading...
+ 286 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.