WINBOND W83977EF-AW
Features
- Capable of ISA Bus IRQ Sharing
- Compliant with Microsoft PC98 Hardware Design Guide
- Plug & Play 1.0A compatible
- Programmable configuration settings
- Reports ACPI status interrupt by SCI# signal issued from any of the 12 IQRs pins or GPIO xx
- Single 24/48 Mhz clock input
- Supports 12 IRQs, 4 DMA channels, full 16-bit address decoding
- Supports DPM (Device Power Management), ACPI
Datasheet
Extracted Text
W83977EF/CTF
WINBOND I/O
W83977EF/CTF Data Sheet Revision History
Version
Pages Dates Version Main Contents
on Web
1N.A.
4, 7, 49, 50, 53,
2
Parallel port pin description
3
4Wake-Up and ACPI function.
5
6
7
8
9
Please note that all data and specifications are subject to change without notice. All the trade marks
LIFE SUPPORT APPLICATIONS
These products are not designed for use in life support appliances, devices, or systems where
malfunction of these products can reasonably be expected to result in personal injury. Winbond
customers using or selling these products for use in such applications do so at their own risk and
agree to fully indemnify Winbond for any damages resulting from such improper use or sales.
sheet belong to their respective owners.of products and companies mentioned in this data
10
A1 0.50 11/09/981, 2, 8, 83, 116
Typo correction.
0.4309/07/98119, 120
Explanation of Keyboard/Mouse
correction
0.4208/17/9814, 15, 16
55, 90, 91
0.41 06/16/98
Data correction
For Beta Site customers only
0.4006/01/98
First published.
W83977EF/ CTF
PRELIMINARY
Table of Contents-
GENERAL DESCRIPTION..........................................................................................1
FEATURES.................................................................................................................2
PIN CONFIGURATION ...............................................................................................5
1.0 PIN DESCRIPTION.....................................................................................................................6
1.1 HOST INTERFACE......................................................................................................................6
1.2 GENERAL PURPOSE I/O PORT.................................................................................................8
1.3 SERIAL PORT INTERFACE........................................................................................................9
............................................................................................................
...............................................................................................
......................................................................................................................
......................................................................................................................
1.8 POWER PINS............................................................................................................................
1.9 ACPI INTERFACE.....................................................................................................................
2.0 FDC FUNCTIONAL DESCRIPTION ...................................................................19
2.1 W83977EF/CTF FDC.................................................................................................................
2.1.1 AT interface ......................................................................................................................... 19
2.1.2 FIFO (Data) ......................................................................................................................... 19
2.1.3 Data Separator .................................................................................................................... 20
2.1.4 Write Precompensation........................................................................................................ 20
2.1.5 Perpendicular Recording Mode ............................................................................................ 21
2.1.6 FDC Core ............................................................................................................................ 21
2.1.7 FDC Commands.................................................................................................................. 21
2.2 REGISTER DESCRIPTIONS.....................................................................................................
2.2.1 Status Register A (SA Register) (Read base address + 0) ................................................... 33
Publication Release Date: March 1999
-I - Revision A1
33
19
18
18
181.7 KBC INTERFACE
161.6 FDC INTERFACE
111.5 MULTI-MODE PARALLEL PORT
101.4 INFRARED INTERFACE
W83977EF/ CTF
PRELIMINARY
2.2.2 Status Register B (SB Register) (Read base address + 1) ................................................... 35
2.2.3 Digital Output Register (DO Register) (Write base address + 2) ........................................... 37
2.2.4 Tape Drive Register (TD Register) (Read base address + 3)................................................ 37
2.2.5 Main Status Register (MS Register) (Read base address + 4).............................................. 38
2.2.6 Data Rate Register (DR Register) (Write base address + 4)................................................. 38
2.2.7 FIFO Register (R/W base address + 5)................................................................................ 40
2.2.8 Digital Input Register (DI Register) (Read base address + 7)................................................ 42
2.2.9 Configuration Control Register (CC Register) (Write base address + 7)................................ 43
3.0 UART PORT .......................................................................................................45
....................
...............................................................................................................
3.2.1 UART Control Register (UCR) (Read/Write)......................................................................... 45
3.2.2 UART Status Register (USR) (Read/Write) .......................................................................... 47
3.2.3 Handshake Control Register (HCR) (Read/Write)................................................................. 48
3.2.4 Handshake Status Register (HSR) (Read/Write) .................................................................. 49
3.2.5 UART FIFO Control Register (UFR) (Write only).................................................................. 50
3.2.6 Interrupt Status Register (ISR) (Read only) .......................................................................... 51
3.2.7 Interrupt Control Register (ICR) (Read/Write)....................................................................... 52
3.2.8 Programmable Baud Generator (BLL/BHL) (Read/Write) ..................................................... 52
3.2.9 User-defined Register (UDR) (Read/Write)........................................................................... 53
4.0 INFRARED (IR) PORTS......................................................................................54
4.1 IR PORT....................................................................................................................................
4.2 CIR PORT(FOR W83977CTF ONLY)........................................................................................
4.2.1 Bank0.Reg0 - Receiver Buffer Registers (RBR) (Read)........................................................ 54
4.2.2 Bank0.Reg1 - Interrupt Control Register (ICR) ..................................................................... 54
4.2.3 Bank0.Reg2 - Interrupt Status Register (ISR)....................................................................... 55
4.2.4 Bank0~3.Reg3 - CIR Control Register 0/Bank Select Register (CTR0/BSR) (BANK0~3)...... 56
4.2.5 Bank0.Reg4 - CIR Control Register (CTR) ........................................................................... 57
4.2.6 Bank0.Reg5 - UART Line Status Register (USR) ................................................................ 58
Publication Release Date: March 1999
-II - Revision A1
54
54
453.2 REGISTER ADDRESS
453.1 UNIVERSAL ASYNCHRONOUS RECEIVER/TRANSMITTER (UART A, UART B)
W83977EF/ CTF
PRELIMINARY
4.2.7 Bank0.Reg6 - Remote Infrared Config Register (RIR_CFG) ................................................. 58
4.2.8 Bank0.Reg7 - User Defined Register (UDR/AUDR).............................................................. 59
4.2.9 Bank1.Reg0~1 - Baud Rate Divisor Latch (BLL/BHL)........................................................... 60
4.2.10 Bank1.Reg2 - Version ID Regiister I (VID).......................................................................... 61
4.2.11 Bank0~3.Reg3 - CIR Control Register 0/Bank Select Register (CTR0/BSR) (BANK0~3).... 61
4.2.12 Bank1.Reg4 - Timer Low Byte Register (TMRL)................................................................. 61
4.2.13 Bank1.Reg5 - Timer High Byte Register (TMRH) ............................................................... 61
........................................................................................
5.0 PARALLEL PORT .............................................................................................63
5.1 PRINTER INTERFACE LOGIC..................................................................................................
.......................................................................................
5.2.1 Data Swapper..................................................................................................................... 65
5.2.2 Printer Status Buffer ............................................................................................................ 65
5.2.3 Printer Control Latch and Printer Control Swapper .............................................................. 66
5.2.4 EPP Address Port................................................................................................................ 66
5.2.5 EPP Data Port 0-3 ............................................................................................................... 67
5.2.6 Bit Map of Parallel Port and EPP Registers.......................................................................... 67
5.2.7 EPP Pin Descriptions.......................................................................................................... 68
5.2.8 EPP Operation..................................................................................................................... 68
..............................................................
5.3.1 ECP Register and Mode Definitions ..................................................................................... 69
5.3.2 Data and ecpAFifo Port........................................................................................................ 70
5.3.3 Device Status Register (DSR)............................................................................................. 70
5.3.4 Device Control Register (DCR) ............................................................................................ 71
5.3.5 cFifo (Parallel Port Data FIFO) Mode = 010 ....................................................................... 72
5.3.6 ecpDFifo (ECP Data FIFO) Mode = 011............................................................................... 72
5.3.7 tFifo (Test FIFO Mode) Mode = 110.................................................................................... 72
5.3.8 cnfgA (Configuration Register A) Mode = 111 ..................................................................... 72
5.3.9 cnfgB (Configuration Register B) Mode = 111 .................................................................... 72
5.3.10 ecr (Extended Control Register) Mode = all....................................................................... 73
Publication Release Date: March 1999
-III - Revision A1
695.3 EXTENDED CAPABILITIES PARALLEL (ECP) PORT
645.2 ENHANCED PARALLEL PORT (EPP)
63
624.3 DEMODULATION BLOCK DIAGRAM
W83977EF/ CTF
PRELIMINARY
5.3.11 Bit Map of ECP Port Registers........................................................................................... 74
5.3.12 ECP Pin Descriptions....................................................................................................... 75
5.3.13 ECP Operation................................................................................................................. 76
5.3.14 FIFO Operation................................................................................................................. 76
5.3.15 DMA Transfers................................................................................................................. 77
5.3.16 Programmed I/O (NON-DMA) Mode.................................................................................. 77
........................................................................................
....................................................................................
6.0 KEYBOARD CONTROLLER ..............................................................................78
6.1 OUTPUT BUFFER....................................................................................................................
6.2 INPUT BUFFER........................................................................................................................
6.3 STATUS REGISTER.................................................................................................................
..............................................................................................................................
6.5 HARDWARE GATEA20/KEYBOARD RESET CONTROL LOGIC............................................
6.5.1 KB Control Register (Logic Device 5, CR-F0)....................................................................... 82
6.5.2 Port 92 Control Register (Default Value = 0x24)................................................................... 82
6.6 ONNOW / SECURITY KEYBOARD AND MOUSE WAKE-UP....................................................
6.6.1 Keyboard Wake-Up Function ............................................................................................... 83
6.6.2 Keyboard Password Wake-Up Function.............................................................................. 83
6.6.3 Mouse Wake-Up Function.................................................................................................... 83
7.0 GENERAL PURPOSE I/O...................................................................................84
7.1 BASIC I/O FUNCTIONS.............................................................................................................
7.2 ALTERNATE I/O FUNCTIONS...................................................................................................
7.2.1 Interrupt Steering ................................................................................................................. 88
7.2.2 Watch Dog Timer Output ..................................................................................................... 89
7.2.3 Power LED .......................................................................................................................... 89
7.2.4 General Purpose Address Decoder...................................................................................... 89
8.0 PLUG AND PLAY CONFIGURATION ................................................................90
Publication Release Date: March 1999
-IV - Revision A1
88
86
83
81
806.4 COMMANDS
79
78
78
775.5 EXTENSION 2FDD MODE (EXT2FDD)
775.4 EXTENSION FDD MODE (EXTFDD)
W83977EF/ CTF
PRELIMINARY
8.1 COMPATIBLE PNP....................................................................................................................
8.1.1 Extended Function Registers ............................................................................................... 90
8.1.2 Extended Functions Enable Registers (EFERs) ................................................................... 91
8.1.3 Extended Function Index Registers (EFIRs), Extended Function Data Registers(EFDRs) .... 91
8.2 CONFIGURATION SEQUENCE...............................................................................................
8.2.1 Enter the extended function mode........................................................................................ 91
8.2.2 Configurate the configuration registers................................................................................. 92
8.2.3 Exit the extended function mode .......................................................................................... 92
8.2.4 Software programming example........................................................................................... 92
9.0 ACPI REGISTERS FEATURES ..........................................................................93
10.0 CONFIGURATION REGISTER........................................................................94
10.1 CHIP (GLOBAL) CONTROL REGISTER..................................................................................
....................................................................................................
...............................................................................
¢)
............................................................................................
...............................................................................................
....................................................................................................
......................................................................................................
10.8 LOGICAL DEVICE 7 (GP I/O PORT I)....................................................................................
10.9 LOGICAL DEVICE 8 (GP I/O PORT II)...................................................................................
10.10 LOGICAL DEVICE A (ACPI).................................................................................................
11.0 SPECIFICATIONS...........................................................................................125
.........................................................................................
.......................................................................................................
........................................................................................................
11.3.1 FDC: Data rate = 1 MB, 500 KB, 300 KB, 250 KB/sec......................................................129
11.3.2 UART/Parallel Port...........................................................................................................131
11.3.3 Parallel Port Mode Parameters ........................................................................................131
Publication Release Date: March 1999
-V - Revision A1
12911.3 AC CHARACTERISTICS
12511.2 DC CHARACTERISTICS
12511.1 ABSOLUTE MAXIMUM RATINGS
118
113
109
10910.7 LOGICAL DEVICE 6 (CIR)
10810.6 LOGICAL DEVICE 5 (KBC)
10510.5 LOGICAL DEVICE 3 (UART B)
10510.4 LOGICAL DEVICE 2 (UART A)
10410.3 LOGICAL DEVICE 1 (PARALLEL PORT)
10010.2 LOGICAL DEVICE 0 (FDC)
94
91
90
W83977EF/ CTF
PRELIMINARY
11.3.4 EPP Data or Address Read Cycle Timing Parameters......................................................132
11.3.5 EPP Data or Address Write Cycle Timing Parameters......................................................133
11.3.6 Parallel Port FIFO Timing Parameters..............................................................................134
11.3.7 ECP Parallel Port Forward Timing Parameters.................................................................134
11.3.8 ECP Parallel Port Reverse Timing Parameters.................................................................134
11.3.9 KBC Timing Parameters ..................................................................................................135
11.3.10 GPIO Timing Parameters...............................................................................................136
11.3.11 Keyboard/Mouse Timing Parameters .............................................................................136
12.0 TIMING WAVEFORMS ..................................................................................137
.......................................................................................................................................
..................................................................................................................
12.2.1 Modem Control Timing.....................................................................................................139
..................................................................................................................
12.3.1 Parallel Port Timing..........................................................................................................140
12.3.2 EPP Data or Address Read Cycle (EPP Version 1.9).......................................................141
12.3.3 EPP Data or Address Write Cycle (EPP Version 1.9) .......................................................142
12.3.4 EPP Data or Address Read Cycle (EPP Version 1.7).......................................................143
12.3.5 EPP Data or Address Write Cycle (EPP Version 1.7) .......................................................144
12.3.6 Parallel Port FIFO Timing.................................................................................................144
12.3.7 ECP Parallel Port Forward Timing....................................................................................145
12.3.8 ECP Parallel Port Reverse Timing....................................................................................145
.......................................................................................................................................
12.4.1 Write Cycle Timing...........................................................................................................146
12.4.2 Read Cycle Timing...........................................................................................................146
12.4.3 Send Data to K/B.............................................................................................................146
12.4.4 Receive Data from K/B.....................................................................................................147
12.4.5 Input Clock.......................................................................................................................147
12.4.6 Send Data to Mouse ........................................................................................................147
12.4.7 Receive Data from Mouse................................................................................................147
12.5 GPIO WRITE TIMING DIAGRAM..........................................................................................
Publication Release Date: March 1999
-VI - Revision A1
148
14612.4 KBC
14012.3 PARALLEL PORT
13812.2 UART/PARALLEL
13712.1 FDC
W83977EF/ CTF
PRELIMINARY
12.6 MASTER RESET (MR) TIMING.............................................................................................
12.7 KEYBOARD/MOUSE WAKE-UP TIMING..............................................................................
13.0 APPLICATION CIRCUITS ..............................................................................149
.....................................................................................
...................................................................................
13.3 FOUR FDD MODE.................................................................................................................
14.0 ORDERING INFORMATION...........................................................................151
15.0 HOW TO READ THE TOP MARKING...........................................................151
16.0 PACKAGE DIMENSIONS ..............................................................................152
Publication Release Date: March 1999
-VII - Revision A1
151
15013.2 PARALLEL PORT EXTENSION 2FDD
14913.1 PARALLEL PORT EXTENSION FDD
148
148
W83977EF/ CTF
PRELIMINARY
GENERAL DESCRIPTION
W83977EF/CTF is an evolving product from Winbond's most popular I/O chip W83877F ---
which integrates the disk drive adapter, serial port (UART), IrDA 1.0 SIR, parallel port, and
configurable plug-and-play registers for the whole chip --- plus additional powerful features: ACPI,
8042 keyboard controller with PS/2 mouse support, 14 general purpose I/O ports, full 16-bit address
and OnNow CIR(W83977CTF only)
Wake-Up.
The disk drive adapter functions of W83977EF/CTF include a floppy disk drive controller compatible
with the industry standard 82077/ 765, data separator, write pre-compensation circuit, decode logic,
data rate selection, clock generator, drive interface control logic, and interrupt and DMA logic. The
wide range of functions integrated onto the W83977EF/CTF greatly reduces the number of
components required for interfacing with floppy disk drives. The W83977EF/CTF supports four 360K,
720K, 1.2M, 1.44M, or 2.88M disk drives and data transfer rates of 250 Kb/s, 300 Kb/s, 500 Kb/s,1
W83977EF/CTF provides two high-speed serial communication ports (UARTs), one of which
supports serial Infrared communication. Each UART includes a 16-byte send/receive FIFO, a
programmable baud rate generator, complete modem control capability, and a processor interrupt
230k, 460k, or 921k bps
W83977EF/CTF supports one PC-compatible printer port (SPP), Bi-directional Printer port (BPP)
and also Enhanced Parallel Port (EPP) and Extended Capabilities Port (ECP). Through the printer
port interface pins, also available are: Extension FDD Mode and Extension 2FDD Mode, allowing one
or two external floppy disk drives to be connected.
The configuration registers support mode selection, function enable/disable, and power down function
selection. Furthermore, the configurable PnP features are compatible with the plug-and-play feature
TM
demand of Windows 95, which makes system resource allocation more efficient than ever.
W83977EF/CTF provides functions that comply with ACPI ( Advanced Configuration and Power
Interface), including support for legacy and ACPI power management through SMI or SCI function
W83977EF/CTF
The keyboard controller is based on 8042 compatible instruction set, with a 2K Byte programmable
TM
ROM and a 256-Byte RAM bank. Keyboard BIOS firmware is available with optional AMIKEY-
TM
Phoenix MultiKey/42
W83977EF/CTF provides the system designer with a set of flexible I/O control functions through
a set of General Purpose I/O ports. These GPIO ports may serve as simple I/O, or may be
individually configured to provide a predefined alternate function.
The W83977EF/CTF also supports Power-loss control, and ensures that the system never fails to
TM
detect any Wake-Up event provided by a chipset such as INTEL PIIX4 .
W83977EF/CTF is made to fully comply with Microsoft PC98 Hardware Design Guide. IRQs,
DMAs, and I/O space resource are flexible to adjust to meet ISA PnP requirements. Moreover,
W83977EF/CTF is made to meet the specification of PC98's requirements in power management:
ACPI DPM
Another benifit is that W83977EF/CTF has the same pin assignment as W83977AF, W83977F,
W83977TF, W83977ATF. This makes the design very flexible.
Publication Release Date: March 1999
-1 - Revision A1
(Device Power Management). and
The
, or customer code.
2,
also has auto power management to reduce power consumption.pins.
The
which support higher speed modems.with baud rates of
system. Both UARTs provide legacy speed with baud rate up to 115.2k bps and also advanced speed
The
Mb/s, and 2 Mb/s.
decoding, OnNow keyboard Wake-Up, OnNow mouse Wake-Up
The
W83977EF/ CTF
PRELIMINARY
FEATURES
General
·Plug & Play 1.0A compatible
·
·
·Compliant with Microsoft PC98
·DPM ACPI
· signal issued from any of the 12 IQRs pins or GPIO xx
·Programmable configuration settings
·Single 24/48 Mhz clock input
FDC
·Compatible with IBM PC AT disk drive systems
·
·Supports vertical recording format
·
·
·Supports floppy disk drives and tape drives
·
·Built-in address mark detection circuit to simplify the read electronics
·
forced to be inactive)
·Supports up to four 3.5-inch or 5.25-inch floppy disk drives
·
·
·3-mode FDD, and its Win95 driver
UART
·
·MIDI compatible
·Fully programmable serial-interface characteristics:
--- Even, odd or no parity bit generation/detection
Publication Release Date: March 1999
-2 - Revision A1
--- 1, 1.5 or 2 stop bits generation
--- 5, 6, 7 or 8-bit characters
Two high-speed 16550 compatible UARTs with 16-byte send/receive FIFOs
Supports
360K/720K/1.2M/1.44M/2.88M format; 250K, 300K, 500K, 1M, 2M bps data transfer rate
Completely compatible with industry standard 82077
FDD anti-virus functions with software write protect and FDD write enable signal (write data signal is
Detects all overrun and underrun conditions
16-byte data FIFOs
DMA enable logic
Variable write pre-compensation with track selectable capability
Reports ACPI status interrupt by SCI#
(Device Power Management), Supports
Hardware Design Guide
Capable of ISA Bus IRQ Sharing
Supports 12 IRQs, 4 DMA channels, full 16-bit address decoding
W83977EF/ CTF
PRELIMINARY
·Internal diagnostic capabilities:
--- Loop-back controls for communications link fault isolation
--- Break, parity, overrun, framing error simulation
·
·Maximum baud rate up to 921k bps
Infrared
·Supports IrDA version 1.0 SIR protocol with maximum baud rate up to 115.2K bps
·
· Supports Consumer Infrared (CIR) port. (for W83977CTF only)
Parallel Port
·Compatible with IBM parallel port
·Supports PS/2 compatible bi-directional parallel port
· - Compatible with IEEE 1284 specification
· - Compatible with IEEE 1284 specification
·
·
Keyboard Controller
TMTM
·8042 based with optional F/W from AMIKKEY-2, Phoenix MultiKey/42
·With 2K bytes of programmable ROM, and 256 bytes of RAM
·
·
·
·
·
·Fast Gate A20 and Hardware Keyboard Reset
·8 Bit Timer/ Counter
·
·
Publication Release Date: March 1999
-3 - Revision A1
6MHz, 8 MHz, 12 MHz, or 16 MHz operating frequency
Supports binary and BCD arithmetic
Supports both interrupt and polling modes
Supports port 92
Supports PS/2 mouse
Software compatibility with the 8042 and PC87911 microcontrollers
Asynchronous Access to Two Data Registers and One status Register
or customer code
Enhanced printer port back-drive current protection
B through parallel port
Extension FDD mode supports disk drive B; and Extension 2FDD mode supports disk drives A and
Supports Extended Capabilities Port (ECP)
Supports Enhanced Parallel Port (EPP)
Supports SHARP ASK-IR protocol with maximum baud rate up to 57,600 bps
for 14.769 Mhz and 1.5M bps for 24 Mhz
-1)Programmable baud generator allows division of 1.8461 Mhz and 24 Mhz by 1 to (2
16
W83977EF/ CTF
PRELIMINARY
General Purpose I/O Ports
·
·
OnNow Funtions
·
·
·CIR(Consumer Infra-Red) Wake-Up by programmable keys (for W83977CTF only)
Package
·
Publication Release Date: March 1999
-4 - Revision A1
128-pin PQFP
Mouse Wake-Up by programmable buttons
Keyboard Wake-Up by programmable keys
pins
output, power LED output, infrared I/O pins, general purpose address decoder, KBC control I/O
General purpose I/O ports can serve as simple I/O ports, interrupt steering inputs, watch-dog timer
14 programmable general purpose I/O ports: 6 dedicate, 8 optional
W83977EF/ CTF
PRELIMINARY
PIN CONFIGURATION
PPPA
WAN
RNS
SSWC
MWOT
IIUL
#NT#
III##//
RRRIIIIIII//GMK/G/GGQQRRRRRRRAAAAAVCRQAVPPCRVPP
111QQQQQQNQ111111AAAAAAAAAAS22LLISC22I
210134567C95S4321C0987654321032B1KKBA0
11999988888877777777766619999998888766
00098765432109876543210987654321098765
210
10364
10463
10562
VSS
10661
IOW#
10760
AEN
10859
10958
D0KBLOCK/GP13
11057
D1
11156
GA20/GP11
D2
112
55
D3VCC
54
113DCDB#
D4
53
114
D5
11552
VCC
11651
D6
11750
D7
11849
MR
DSRB#
119
48
DACK0#/GP16
12047
VSS
DCDA#
121
46
SOUTA/PENKBC
122
45
DACK1#
12344
DTRA#/PNPCSV#
12443
DACK2#RTSA#/HEFRAS
12542
DSRA#
41
126
DACK3#
12740
39
128
31111111111222222222233333333
12345679489036789238012356712450145687
CDD//////////////SPVB/PPVPPPPPP/////II
RRDHRWTWWSDDDMILEUADDDDDDSIEASRRLMCSDD
VVDREDTISSONCC7543LNFRSEPOCS6210RTTKSDDAAETYKIDKARABAIDXXIBRB
TKEEECPNTNDAXNH0N
10G,
G
P
1
0,
/
S
C
I
Publication Release Date: March 1999
-5 - Revision A1
SUSCIN#/GP25
TC
CIRRX/GP24DRQ3
CTSA#
DRQ2
DRQ1
SINA
SCI#/DRQ0/GP17
CTSB#
RTSB
DTRB#
SINB
SOUTB/PEN48
KBRST/GP12
KDATA
IOCHRDY
MDATA
XTAL2
IOR#
XTAL1IRQ15/GP15
IRQ14/GP14
VBAT
W83977EF/ CTF
PRELIMINARY
1.0 PIN DESCRIPTION
8
I/OD
OUT
OUT
OD
OD
IN t
IN c
IN cu
IN cs
IN ts
IN
1.1 Host Interface
SYMBOL PIN I/O FUNCTION
-INt
INt
INt
I/O
-
I/O
-
INts
IOW#INts
INts
OD
INMaster Reset; Active high; MR is low during normal
ts
Publication Release Date: March 1999
-6 - Revision A1
operations.
118MR
extend the host read/write cycle.
24
In EPP Mode, this pin is the IO Channel Ready output to108IOCHRDY
System address bus enable107AEN
CPU I/O write signal106
CPU I/O read signal105IOR#
12t
D7D6
System data bus bits 6-7116-117
12t
D5D0
System data bus bits 0-5109-114
System address bus bit 1591A15
System address bus bits 11-1486-89A11-A14
System address bus bits 0-1074-84A10A0
tsu
resistor- TTL level Schmitt-triggered input pin with internal pull-up
- TTL level Schmitt-triggered input pin
- CMOS level Schmitt-triggered input pin
- CMOS level input pin with internal pull-up resitor
- CMOS level input pin
- TTL level input pin
24
- Open-drain output pin with 24 mA sink capability
12
- Open-drain output pin with 12 mA sink capability
12t
- TTL level output pin with 12 mA source-sink capability
8t
- TTL level output pin with 8 mA source-sink capability
24t
- TTL level bi-directional pin with 24 mA source-sink capabilityI/O
16u
- CMOS level bi-directional pin open drain output with 16 mA sink capability with internal pull-up resistor
16u
- CMOS level bi-directional pin with 16 mA source-sink capability with internal pull-up resistorI/O
12
- CMOS level bi-directional pin with 12 mA source-sink capabilityI/O
12t
- TTL level bi-directional pin with 12 mA source-sink capabilityI/O
- CMOS level bi-directional pin with 8 mA source-sink capabilityI/O
8t
- TTL level bi-directional pin with 8 mA source-sink capabilityI/O
6t
- TTL level bi-directional pin with 6 mA source-sink capabilityI/O
Note: Please refer to Section 11.2 DC CHARACTERISTICS for details.
W83977EF/ CTF
PRELIMINARY
SYMBOL PIN I/O FUNCTION
IN
default)
I/O
(WDTO)
Alternate function from GP16: Watch dog timer output
I/OKBC P15 I/O port. (CR2C bit 5_4 = 10)
OUT
I/O
Alternate function from GP17: Power LED output.
I/OKBC P14 I/O port (CR2C bit 7_6 = 10)
OUT
INts
OUT
INts
OUT
INts
OUT
TCINTerminal Count. When active, this pin indicates termination of a
ts
OUT
OUT
OUT
OUT
OUT
OUT
OUT
OUT
OUT
OUT
Publication Release Date: March 1999
-7 - Revision A1
12t
Interrupt request 12102IRQ12
12t
Interrupt request 11101IRQ11
12t
Interrupt request 10100IRQ10
12t
Interrupt request 992IRQ9
12t
Interrupt request 794IRQ7
12t
Interrupt request 695IRQ6
12t
Interrupt request 596IRQ5
12t
Interrupt request 497IRQ4
12t
Interrupt request 398IRQ3
12t
Interrupt request 199IRQ1
DMA transfer.
128
12t
DMA Channel 3 request signal127DRQ3
DMA Channel 3 Acknowledge signal126DACK3#
12t
DMA Channel 2 request signal125DRQ2
DMA Channel 2 Acknowledge signal124DACK2#
12t
DMA Channel 1 request signal123DRQ1
DMA Channel 1 Acknowledge signal122DACK1#
12t
System Control Interrupt (CR2C bit 7_6 = 11)SCI#
12t
P14
(PLEDO)
12t
General purpose I/O port 1bit 7. (CR2C bit 7_6 = 01)GP17
12t
DMA Channel 0 request signal. (CR2C bit 7_6 = 00, default)121DRQ0
12t
P15
12t
General purpose I/O port 1bit 6. (CR2C bit 5_4 = 01)GP16
tsu
DMA Channel 0 Acknowledge signal. (CR2C bit 5_4 = 00,119DACK0#
1.1 Host Interface, continued
W83977EF/ CTF
PRELIMINARY
SYMBOL PIN I/O FUNCTION
OUT
I/O
Alternate Function 2 from GP14: KBC P17 I/O port.
OUT
OUT
I/O
Alternate Function 2 from GP15: KBC P12 I/O port.
WDTOUTWatch-Dog timer output. (CR2C bit 3_2 = 10)
1INt
1.2 General Purpose I/O Port
SYMBOL PIN I/O FUNCTION
PWR_CTL#OD
I/O
(KBRST)
SMI #ODSystem Management Interrupt. (CR2B bit 4_3 = 00, default)
In the legacy power management mode, SMI# is drive low by the
I/O
Alternate Function from GP21: KBC P13 I/O port.
I/OKBC P16 I/O port. (CR2B bit 4_3 = 10)
PANSWOT#ODPanel Switch output. (CR2B bit 5 = 0, default)
I/OGeneral purpose I/O port 2 bit 2. (CR2B bit 5 = 1)
Alternate Function from GP22: KBC P14 I/O port.
Publication Release Date: March 1999
-8 - Revision A1
(P14)
12t
GP22
12t
72
12t
P16
(P13)
12t
General purpose I/O port 2 bit 1. (CR2B bit 4_3 = 01)GP21
power management events.
12t
70
Alternate Function from GP20: Keyboard reset (KBC P20)
16tu
General purpose I/O port 2 bit 0.GP20
16u
Power supply control69
24 or 48 MHz clock input, selectable through bit 5 of CR24.CLKIN
12t
(P12)
enable output.
Alternate Function 1 from GP15: General purpose address write(GPACS2#)
12t
General purpose I/O port 1 bit 5. (CR2C bit 3_2 = 01)GP15
12t
Interrupt request 15.(CR2C bit 3_2 = 00, default)104IRQ15
12t
Power LED output. (CR2C bit 1_0 = 10)PLEDO
(P17)
decode output.
Alternate Function 1 from GP14: General purpose address(GPACS1#)
12t
General purpose I/O port 1 bit 4. (CR2C bit 1_0 = 01)GP14
12t
Interrupt request 14. (CR2C bit 1_0 = 00, default)103IRQ14
1.1 Host Interface, continued
W83977EF/ CTF
PRELIMINARY
SYMBOL PIN I/O FUNCTION
PANSWIN#INPanel Switch input. (CR2B bit 7_6 = 00, default)t
I/OGeneral purpose I/O port 2 bit 3. (CR2B bit 7_6 = 01)
Alternate Function from GP23: KBC P15 I/O port
INConsumer infrared receiver inputt
Alternate Function from GP24: KBC P16 I/O port
I/O
I/OKBC P13 I/O port. (CR2A bit 5_4 = 10)
INts
Alternate Function from GP25: GATE A20 (KBC P21)
I/O
1.3 Serial Port Interface
SYMBOL PIN I/O FUNCTION
INClear To Send is the modem control input.t
The function of these pins can be tested by reading Bit 4 of the
INData Set Ready. An active low signal indicates the modem ort
I/OUART A Request To Send. An active low signal informs the
During power-on reset, this pin is pulled down internally and is
defined as HEFRAS, which provides the power-on value for
CR26 bit 6 (HEFRAS). A 4.7 k W is recommended if intending to
pull up. (select 370H as configuration I/O port ¢
I/OUART B Request To Send. An active low signal informs the
Publication Release Date: March 1999
-9 - Revision A1
modem or data set that the controller is ready to send data.
RTSB#
8t
50
s address)
HEFRAS
modem or data set that the controller is ready to send data.
RTSA#
8t
43
data to the UART.
DSRB#
49
data set is ready to establish a communication link and transfer
DSRA#
42
handshake status register.
48CTSB#
41CTSA#
12
General purpose I/O port 2 bit 5.GP25
(GA20)
Suspend C input39
SUSC#
12t
P13
12t
General purpose I/O port 2 bit 4 (CR2A bit 5_4 = 01)GP24
(P16)
40CIRRX
(P15)
12t
GP23
73
1.2 General Purpose I/O Port ,continued
W83977EF/ CTF
PRELIMINARY
SYMBOL PIN I/O FUNCTION
I/OUART A Data Terminal Ready. An active low signal informs the
modem or data set that the controller is ready to communicate.
During power-on reset, this pin is pulled down internally and is
defined as PNPCSV#, which provides the power-on value for
W is recommended if intending to
pull up. (clears the default value of FDC, UARTs, and PRT).
I/OUART B Data Terminal Ready. An active low signal informs the
modem or data set that controller is ready to communicate.
INSerial Input. Used to receive serial data through thet
communication link.
I/OUART A Serial Output. Used to transmit serial data out to the
SOUTA
communication link.
During power-on reset, this pin is pulled down internally and is
defined as PENKBC, which provides the power-on value for
CR24 bit 2 (ENKBC). A 4.7 k W resistor is recommended if
SOUTBI/O
power-on value for CR24 bit 6 (EN48). A 4.7 k W
recommended if intending to pull up.
INData Carrier Detect. An active low signal indicates the modemt
INRing Indicator. An active low signal indicates that a ring signal ist
being received from the modem or data set.
1.4 Infrared Interface
SYMBOL PIN I/O FUNCTION
INInfrared Receiver Input.
cs
OUTInfrared Transmitter Output.
Publication Release Date: March 1999
-10 - Revision A1
12t
38IRTX
37IRRX
66RIB#
65RIA#
DCDB#
54
or data set has detected a data carrier.
47DCDA#
resistor is
PEN48
down internally and is defined as PEN48, which provides the
8t
UART B Serial Output. During power-on reset, this pin is pulled53
intending to pull up. (enables KBC).
PENKBC
8t
46
SINB
45, 52SINA
DTRB#
8t
51
CR24 bit 0 (PNPCSV#). A 4.7 k
PNPCSV#
DTRA#
8t
44
1.3 Serial Port Interface, continued
W83977EF/ CTF
PRELIMINARY
1.5 Multi-Mode Parallel Port
SYMBOL PIN I/O FUNCTION
PRINTER MODE: SLCTINt
An active high input on this pin indicates that the printer is
selected. This pin is pulled high internally. Refer to description
of the parallel port for definition of this pin in ECP and EPP
mode.
OD WE2#
This pin is for Extension FDD B; its function is the same as the
WE# pin of FDC.
EXTENSION 2FDD MODE: WE2#OD
This pin is for Extension FDD A and B; its function is the same
as the WE# pin of FDC.
PRINTER MODE: PEINt
An active high input on this pin indicates that the printer has
detected the end of the paper. This pin is pulled high internally.
Refer to description of the parallel port for definition of this pin in
ODEXTENSION FDD MODE: WD2#
This pin is for Extension FDD B; its function is the same as the
WD# pin of FDC.
ODEXTENSION 2FDD MODE: WD2#
This pin is for Extension FDD A and B; its function is the same
as the WD# pin of FDC.
Publication Release Date: March 1999
-11 - Revision A1
12
12
ECP and EPP mode.
19PE
12
12
EXTENSION FDD MODE:
18SLCT
The following pins have alternate functions, which are controlled by CR28 and L3-CRF0.
W83977EF/ CTF
PRELIMINARY
SYMBOL PIN I/O FUNCTION
INPRINTER MODE: BUSYt
An active high input indicates that the printer is not ready to
receive data. This pin is pulled high internally. Refer to
description of the parallel port for definition of this pin in ECP
OD
This pin is for Extension FDD B; the function of this pin is the
same as the MOB# pin of FDC.
OD
This pin is for Extension FDD A and B; the function of this pin is
the same as the MOB# pin of FDC.
INt
An active low input on this pin indicates that the printer has
received data and is ready to accept more data. This pin is
pulled high internally. Refer to description of the parallel port for
definition of this pin in ECP and EPP mode.
OD
This pin is for the Extension FDD B; its function is the same as
the DSB# pin of FDC.
OD
This pin is for Extension FDD A and B; it function is the same as
the DSB# pin of FDC.
INt
An active low input on this pin indicates that the printer has
Refer to description of the parallel port for definition of this pin in
OD
This pin is for Extension FDD B; its function is the same as the
HEAD#pin of FDC.
OD
This pin is for Extension FDD A and B; its function is the same
the HEAD# pin of FDC.
Publication Release Date: March 1999
-12 - Revision A1
as
EXTENSION 2FDD MODE: HEAD2#
12
12
EXTENSION FDD MODE: HEAD2#
ECP and EPP mode.
encountered an error condition. This pin is pulled high internally.
PRINTER MODE: ERR#34ERR#
12
EXTENSION 2FDD MODE: DSB2#
12
EXTENSION FDD MODE: DSB2#
PRINTER MODE: ACK#22ACK#
EXTENSION 2FDD MODE:MOB2#
12
EXTENSION FDD MODE: MOB2#
12
and EPP mode.
21BUSY
1.5 Multi-Mode Parallel Port, continued
W83977EF/ CTF
PRELIMINARY
SYMBOL PIN I/O FUNCTION
OD
Output line for detection of printer selection. This pin is pulled
high internally. Refer to description of the parallel port for
definition of this pin in ECP and EPP mode.
OD
This pin is for Extension FDD B; its function is the same as the
STEP# pin of FDC.
OD
This pin is for Extension FDD A and B; its function is the same as
the STEP# pin of FDC.
INIT#ODPRINTER MODE: INIT#
Output line for the printer initialization. This pin is pulled high
internally. Refer to description of the parallel port for definition of
this pin in ECP and EPP mode.
OD
This pin is for Extension FDD B; its function is the same as the
DIR# pin of FDC.
OD
This pin is for Extension FDD A and B; its function is the same as
the DIR# pin of FDC.
ODPRINTER MODE: AFD#
An active low output from this pin causes the printer to auto feed
a line after a line is printed. This pin is pulled high internally.
Refer to description of the parallel port for definition of this pin in
OD
This pin is for Extension FDD B; its function is the same as the
DRVDEN0 pin of FDC.
OD
This pin is for Extension FDD A and B; its function is the same as
the DRVDEN0 pin of FDC.
Publication Release Date: March 1999
-13 - Revision A1
12
EXTENSION 2FDD MODE: DRVDEN0
12
EXTENSION FDD MODE: DRVDEN0
ECP and EPP mode.
12
35AFD#
12
EXTENSION 2FDD MODE: DIR2#
12
EXTENSION FDD MODE: DIR2#
12
33
12
EXTENSION 2FDD MODE: STEP2#
12
EXTENSION FDD MODE:STEP2#
12
PRINTER MODE: SLIN#32SLIN#
1.5 Multi-Mode Parallel Port, continued
W83977EF/ CTF
PRELIMINARY
SYMBOL PIN I/O FUNCTION
ODPRINTER MODE: STB#
An active low output is used to latch the parallel data into the
printer. This pin is pulled high internally. Refer to description of
the parallel port for definition of this pin in ECP and EPP mode.
-EXTENSION FDD MODE: This pin is a tri-state output.
-EXTENSION 2FDD MODE: This pin is a tri-state output.
I/O
Parallel port data bus bit 0. Refer to description of the parallel
port for definition of this pin in ECP and EPP mode.
INt
This pin is for Extension FDD B; the function of this pin is the
same as the INDEX# pin of FDC. It is pulled high internally.
INt
This pin is for Extension FDD A and B; the function of this pin is
the same as the INDEX# pin of FDC. It is pulled high internally.
I/O
Parallel port data bus bit 1. Refer to description of the parallel
port for definition of this pin in ECP and EPP mode.
INt
This pin is for Extension FDD B; the function of this pin is the
same as the TRAK0# pin of FDC. It is pulled high internally.
INt
This pin is for Extension FDD A and B; the function of this pin is
the same as the TRAK0# pin of FDC. It is pulled high internally.
I/O
Parallel port data bus bit 2. Refer to description of the parallel
port for definition of this pin in ECP and EPP mode.
INEXTENSION FDD MODE: WP2#t
This pin is for Extension FDD B; the function of this pin is the
same as the WP# pin of FDC. It is pulled high internally.
EXTENSION. 2FDD MODE: WP2#
INt
This pin is for Extension FDD A and B; the function of this pin is
the same as the WP# pin of FDC. It is pulled high internally.
Publication Release Date: March 1999
-14 - Revision A1
12t
PD2
PRINTER MODE: PD229
EXTENSION. 2FDD MODE: TRAK02#
EXTENSION FDD MODE: TRAK02#
12t
PD1
PRINTER MODE: PD130
EXTENSION 2FDD MODE: INDEX2#
EXTENSION FDD MODE: INDEX2#
12t
PD0
PRINTER MODE: PD031
12
36STB#
1.5 Multi-Mode Parallel Port, continued
W83977EF/ CTF
PRELIMINARY
SYMBOL PIN I/O FUNCTION
I/O
Parallel port data bus bit 3. Refer to description of the parallel
port for definition of this pin in ECP and EPP mode.
INt
This pin is for Extension FDD B; the function of this pin is the
same as the RDATA# pin of FDC. It is pulled high internally.
INt
This pin is for Extension FDD A and B; this function of this pin is
the same as the RDATA# pin of FDC. It is pulled high
internally.
I/O
Parallel port data bus bit 4. Refer to description of the parallel
port for definition of this pin in ECP and EPP mode.
INt
This pin is for Extension FDD B; the function of this pin is the
same as the DSKCHG# pin of FDC. It is pulled high internally.
INt
This pin is for Extension FDD A and B; this function of this pin is
the same as the DSKCHG# pin of FDC. It is pulled high
internally.
I/O
Parallel port data bus bit 5. Refer to description of the parallel
port for definition of this pin in ECP and EPP mode.
-EXTENSION FDD MODE: This pin is a tri-state output.
-EXTENSION 2FDD MODE: This pin is a tri-state output.
I/O
Parallel port data bus bit 6. Refer to description of the parallel
port for definition of this pin in ECP and EPP mode.
-
EXTENSION FDD MODE: This pin is a tri-state output.
OD
This pin is for Extension FDD A; its function is the same as the
MOA# pin of FDC.
Publication Release Date: March 1999
-15 - Revision A1
12
EXTENSION. 2FDD MODE: MOA2#
12t
PD6
PRINTER MODE: PD624
12t
PD5
PRINTER MODE: PD526
EXTENSION 2FDD MODE: DSKCHG2#
EXTENSION FDD MODE: DSKCHG2#
12t
PD4
PRINTER MODE: PD427
EXTENSION 2FDD MODE: RDATA2#
EXTENSION FDD MODE: RDATA2#
12t
PD3
PRINTER MODE: PD328
1.5 Multi-Mode Parallel Port, continued
W83977EF/ CTF
PRELIMINARY
SYMBOL PIN I/O FUNCTION
I/O
Parallel port data bus bit 7. Refer to description of the parallel
port for definition of this pin in ECP and EPP mode.
EXTENSION FDD MODE: This pin is a tri-state output.-
OD
This pin is for Extension FDD A; its function is the same as the
DSA# pin of FDC.
1.6 FDC Interface
SYMBOL PIN I/O FUNCTION
2ODDrive Density Select bit 0.
3ODDrive Density Select bit 1. (CR2A bit 1_0 = 00, default)
IO
(IRQIN1)Alternate Function from GP10: Interrupt channel input.
IOKBC P12 I/O port. (CR2A bit 1_0 = 10)
OUT
5OD
head is active.
WE#9ODWrite enable. An open drain output.
WD#OD
OD
a pulse to move the head to another track.
OD
Logic 0 = inward motion
ODMotor B On. When set to 0, this pin enables disk drive 1. This is
Publication Release Date: March 1999
-16 - Revision A1
an open drain output.
24
13MOB#
Logic 1 = outward motion
24
Direction of the head step motor. An open drain output.12DIR#
24
Step output pulses. This active low open drain output produces11STEP#
serial data to the selected FDD. An open drain output.
24
Write data. This logic low open drain writes pre-compensation10
24
Logic 0 = side 1
Logic 1 = side 0
24
Head select. This open drain output determines which disk driveHEAD#
12t
System Control Interrupt (CR2A bit 1_0 = 11)SCI#
12t
P12
12t
General purpose I/O port 1 bit 0. (CR2A bit 1_0 = 01)GP10
12
DRVDEN1
24
DRVDEN0
12
EXTENSION 2FDD MODE: DSA2#
12t
PD7
PRINTER MODE: PD723
1.5 Multi-Mode Parallel Port, continued
W83977EF/ CTF
PRELIMINARY
SYMBOL PIN I/O FUNCTION
ODDrive Select A. When set to 0, this pin enables disk drive A.
ODDrive Select B. When set to 0, this pin enables disk drive B.
ODMotor A On. When set to 0, this pin enables disk drive 0. This is
4INcs
whenever the diskette is removed. This input pin is pulled up
internally by a 1 K W
7 of L0-CRF0 (FIPURDWN).
6INThe read data input signal from the FDD. This input pin is pulled
cs
up internally by a 1 K W
bit 7 of L0-CRF0 (FIPURDWN).
WP#7INWrite protected. This active low Schmitt input from the disk
cs
drive indicates that the diskette is write-protected. This input pin
is pulled up internally by a 1 K W
disabled by bit 7 of L0-CRF0 (FIPURDWN).
8INTrack 0. This Schmitt-triggered input from the disk drive is
cs
This input pin is pulled up internally by a 1 K W
resistor can be disabled by bit 7 of L0-CRF0 (FIPURDWN).
INThis Schmitt-triggered input from the disk drive is active low
cs
marked by an index hole. This input pin is pulled up internally by
a 1 K W
(FIPURDWN).
Publication Release Date: March 1999
-17 - Revision A1
resistor. The resistor can be disabled by bit 7 of L0-CRF0
when the head is positioned over the beginning of a track
17INDEX#
resistor. The
active low when the head is positioned over the outermost track.
TRAK0#
resistor. The resistor can be
resistor. The resistor can be disabled by
RDATA#
resistor. The resistor can be disabled by bit
Diskette change. This signal is active low at power on andDSKCHG#
an open drain output.
24
16MOA#
This is an open drain output.
24
15DSB#
This is an open drain output.
24
14DSA#
1.6 FDC Interface, continued
W83977EF/ CTF
PRELIMINARY
1.7 KBC Interface
SYMBOL PIN I/O FUNCTION
I/O
MDATAI/O
I/O
I/O
I/OKBC GATE A20 (P21) Output. (CR2A bit 6 = 0, default)
I/OGeneral purpose I/O port 1 bit 1. (CR2A bit 6 = 1)
(IRQIN2)Alternate Function from GP11: Interrupt channel input.
I/OW83C45 Keyboard Reset (P20) Output. (CR2A bit 7 = 0, default)
I/OGeneral purpose I/O port 1 bit 2. (CR2A bit 7 = 1)
(WDTO)Alternate Function 1 from GP12 : Watchdog timer output.
INW83C45 KINH (P17) Input. (CR2B bit 0 = 0, default)
ts
I/OGeneral purpose I/O port 1 bit 3. (CR2B bit 0 = 1)
1.8 POWER PINS
SYMBOL PIN FUNCTION
+5V power supply for the digital circuitry
1.9 ACPI Interface
SYMBOL PIN I/O FUNCTION
VBATBattery voltage input
INC
O
Publication Release Date: March 1999
-18 - Revision A1
8t
32.768Khz Clock Output61XTAL2
32.768Khz Clock Input63XTAL1
NA64
120
Ground25, 62, 90,GND
+5V stand-by power supply for the digital circuitry71VSB
115
20, 55, 85,VCC
16t
GP13
58KBLOCK
12t
GP12
12t
57KBRST
12t
GP11
12t
56GA20
16u
PS2 Mouse Clock68MCLK
16u
Keyboard Clock67KCLK
16u
PS2 Mouse Data60
16u
Keyboard Data59KDATA
W83977EF/ CTF
PRELIMINARY
2.0 FDC FUNCTIONAL DESCRIPTION
2.1 W83977EF/CTF FDC
The floppy disk controller of the W83977EF/CTF integrates all of the logic required for floppy disk
control. The FDC implements a PC/AT or PS/2 solution. All programmable options default to
compatible values. The FIFO provides better system performance in multi-master systems. The
The FDC includes the following blocks: AT interface, Precompensation, Data Rate Selection, Digital
2.1.1 AT interface
The interface consists of the standard asynchronous signals: RD#, WR#, A0-A3, IRQ, DMA control,
and a data bus. The address lines select between the configuration registers, the FIFO and
control/status registers. This interface can be switched between PC/AT, Model 30, or PS/2 normal
2.1.2 FIFO (Data)
The FIFO is 16 bytes in size and has programmable threshold values. All command parameter
information and disk data transfers go through the FIFO. Data transfers are governed by the RQM
The FIFO defaults to disabled mode after any form of reset. This maintains PC/AT hardware
compatibility. The default values can be changed through the CONFIGURE command. The
advantage of the FIFO is that it allows the system a larger DMA latency without causing disk errors.
The following tables give several examples of the delays with a FIFO. The data are based upon the
following formula:
´ (1/DATA/RATE) *8 - 1.5 mS = DELAY
FIFO THRESHOLD MAXIMUM DELAY TO SERVICING AT 500K BPS
Data Rate
1 Byte
´ mS - 1.5 mS = 14.5 mS
2 Byte ´ mS - 1.5 mS = 30.5 mS
8 Byte ´ mS - 1.5 mS = 6.5 mS
´ mS - 1.5 mS = 238.5 mS
FIFO THRESHOLD MAXIMUM DELAY TO SERVICING AT 1M BPS
Data Rate
1 Byte ´ mS - 1.5 mS = 6.5 mS
2 Byte
´ mS - 1.5 mS = 14.5 mS
8 Byte
´ mS - 1.5 mS = 62.5 mS
´ mS - 1.5 mS = 118.5 mS
Publication Release Date: March 1999
-19 - Revision A1
8 15
15 Byte
8 8
8 2
8 1
16 15
15 Byte
16 8
16 2
16 1
THRESHOLD #
and DIO bits in the Main Status Register.
modes. The PS/2 register sets are a superset of the registers found in a PC/AT.
Data Separator, FIFO, and FDC Core.
digital data separator supports up to 2 M bits/sec data rate.
W83977EF/ CTF
PRELIMINARY
At the start of a command the FIFO is always disabled and command parameters must be sent based
upon the RQM and DIO bit settings in the main status register. When the FDC enters the command
execution phase, it clears the FIFO of any data to ensure that invalid data are not transferred.
An overrun and underrun will terminate the current command and the data transfer. Disk writes will
complete the current sector by generating a 00 pattern and valid CRC. Reads require the host to
DMA transfers are enabled with the SPECIFY command, and are initiated by the FDC by activating
the DRQ pin during a data transfer command. The FIFO is enabled directly by asserting DACK# and
Note that if the DMA controller is programmed to function in verify mode, a pseudo read is performed
by the FDC based only onDACK#. This mode is only available when the FDC has been configured
into byte mode (FIFO disabled) and is programmed to do a read. With the FIFO enabled the above
¡
2.1.3 Data Separator
The function of the data separator is to lock onto the incoming serial read data. When a lock is
achieved the serial front end logic of the chip is provided with a clock which is synchronized to the
read data. The synchronized clock, called the Data Window, is used to internally sample the serial
data portion of the bit cell, and the alternate state samples the clock portion. Serial to parallel
The Digital Data Separator (DDS) has three parts: control logic, error adjustment, and speed tracking.
The DDS circuit cycles once every 12 clock cycles ideally. Any data pulse input will be synchronized
and then adjusted by immediate error adjustment. The control logic will generate RDD and RWD for
every pulse input. During any cycle where no data pulse is present, the DDS cycles are based on
2.1.4 Write Precompensation
The write precompensation logic is used to minimize bit shifts in the RDDATA stream from the disk
drive. Shifting of bits is a known phenomenon in magnetic media and is dependent on the disk media
and the floppy drive.
The FDC monitors the bit stream that is being sent to the drive. The data patterns that require
precompensation are well known. Depending upon the pattern, the bit is shifted either early or late
relative to the surrounding bits.
Publication Release Date: March 1999
-20 - Revision A1
speed. A digital integrator is used to keep track of the speed changes in the input data stream.
conversion logic separates the read data into clock and data bytes.
operation is performed by using the new VERIFY command. No DMA operation is needed.
addresses need not be valid.
remove the remaining data so that the result phase may be entered.
W83977EF/ CTF
PRELIMINARY
2.1.5 Perpendicular Recording Mode
The FDC is also capable of interfacing directly to perpendicular recording floppy drives. Perpendicular
recording differs from the traditional longitudinal method in that the magnetic bits are oriented
vertically. This method packs more data bits into the same area.
FDCs with perpendicular recording drives can read standard 3.5" floppy disks, and can read and write
perpendicular media. Some manufacturers offer drives that can read and write standard and
perpendicular media in a perpendicular media drive.
A single command puts the FDC into perpendicular mode. All other commands operate as they
normally do. The perpendicular mode requires a 1 Mbps data rate for the FDC. At this data rate the
2.1.6 FDC Core
The W83977EF/CTF FDC is capable of performing twenty commands. Each command is initiated by
a multi-byte transfer from the microprocessor. The result can also be a multi-byte transfer back to the
Command
The microprocessor issues all required information to the controller to perform a specific operation.
Execution
The controller performs the specified operation.
Result
After the operation is completed, status information and other housekeeping information is provided
2.1.7 FDC Commands
Command Symbol Descriptions:
C:
D:
DIR:Step Direction
DIR = 1, step in
rive Select 0
Disk Drive Select 1
Publication Release Date: March 1999
-21 - Revision A1
Enable CountEC:
Data LengthDTL:
DS1:
Disk DDS0:
DIR = 0, step out
Data Pattern
Cylinder number 0 - 256
to the microprocessor.
microprocessor. Each command consists of three phases: command, execution, and result.
FIFO eases the host interface bottleneck due to the speed of data transfer to or from the disk.
W83977EF/ CTF
PRELIMINARY
EOT:End of Track
EFIFO:Enable FIFO
EIS:Enable Implied Seek
EOT:End of track
FIFOTHR:
GAP:
GPL:
H:
HUT:
Lock EFIFO, FIFOTHR, PTRTRK bits prevent chip from being affected by software
MFM:MFM or FM Mode
MT:Multitrack
N:
Number
OW:Overwritten
Polling Disable
R:
Relative Cylinder Number
R/W:Read/Write
SK:
SRT:Step Rate Time
ST0:
ST1:
ST2:
ST3:
WG:Write gate alters timing of WE
Publication Release Date: March 1999
-22 - Revision A1
Status Register 3
Status Register 2
Status Register 1
Status Register 0
Skip deleted data address mark
Sector/per cylinderSC:
RCN:
Record
Precompensation Start Track NumberPRETRK:
POLL:
Present Cylinder NumberPCN:
Non-DMA ModeND:
New CylinderNCN:
The number of data bytes written in a sector
reset
LOCK:
Head Unload Time
Head Load TimeHLT:
Head number selectHDS:
Head number
Gap Length
Gap length selection
FIFO Threshold
W83977EF/ CTF
PRELIMINARY
(1) Read Data
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW MT MFM SK 0 0 1 1 0
W 0 0 0 0 0 HDS DS1 DS0
W---------------------- C ------------------------Sector ID information prior
to command execution
W---------------------- H ------------------------
W---------------------- R ------------------------
W---------------------- N ------------------------
W-------------------- EOT -----------------------
W-------------------- GPL -----------------------
W-------------------- DTL -----------------------
Execution
R-------------------- ST0 -----------------------Status information after
Rcommand execution
-------------------- ST1 -----------------------
R
-------------------- ST2 -----------------------
R---------------------- C ------------------------Sector ID information after
command execution
R---------------------- H ------------------------
R---------------------- R ------------------------
R---------------------- N ------------------------
Publication Release Date: March 1999
-23 - Revision A1
Result
FDD and system
Data transfer between the
Command codes
W83977EF/ CTF
PRELIMINARY
(2) Read Deleted Data
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW MT MFM SK 0 1 1 0 0
W 0 0 0 0 0 HDS DS1 DS0
W---------------------- C ------------------------Sector ID information prior
to command execution
W---------------------- H ------------------------
W---------------------- R ------------------------
W---------------------- N ------------------------
W-------------------- EOT -----------------------
W-------------------- GPL -----------------------
W-------------------- DTL -----------------------
Execution
R-------------------- ST0 -----------------------Status information after
command execution
R-------------------- ST1 -----------------------
R-------------------- ST2 -----------------------
R---------------------- C ------------------------Sector ID information after
command execution
R---------------------- H ------------------------
R---------------------- R ------------------------
R---------------------- N ------------------------
Publication Release Date: March 1999
-24 - Revision A1
Result
FDD and system
Data transfer between the
Command codes
W83977EF/ CTF
PRELIMINARY
(3) Read A Track
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 MFM 0 0 0 0 1 0
W 0 0 0 0 0 HDS DS1 DS0
W---------------------- C ------------------------Sector ID information prior
to command execution
W---------------------- H ------------------------
W---------------------- R ------------------------
W---------------------- N ------------------------
W-------------------- EOT -----------------------
W-------------------- GPL -----------------------
W-------------------- DTL -----------------------
Execution
cylinders from index hole to
EOT
R-------------------- ST0 -----------------------Status information after
command execution
R-------------------- ST1 -----------------------
R-------------------- ST2 -----------------------
R---------------------- C ------------------------Sector ID information after
command execution
R---------------------- H ------------------------
R---------------------- R ------------------------
R---------------------- N ------------------------
Publication Release Date: March 1999
-25 - Revision A1
Result
reads contents of all
FDD and system; FDD
Data transfer between the
Command codes
W83977EF/ CTF
PRELIMINARY
(4) Read ID
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 MFM 0 0 1 0 1 0
W 0 0 0 0 0 HDS DS1 DS0
ExecutionThe first correct ID
information on the cylinder
R-------------------- ST0 -----------------------Status information after
command execution
R-------------------- ST1 -----------------------
R-------------------- ST2 -----------------------
R---------------------- C ------------------------
R
---------------------- H ------------------------
completed
R
---------------------- R ------------------------
R
---------------------- N ------------------------
(5) Verify
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW MT MFM SK 1 0 1 1 0
W EC 0 0 0 0 HDS DS1 DS0
W---------------------- C ------------------------Sector ID information prior
to command execution
W---------------------- H ------------------------
W---------------------- R ------------------------
W---------------------- N ------------------------
W-------------------- EOT -----------------------
W-------------------- GPL -----------------------
-------------------- DTL/SC -------------------
Execution
R-------------------- ST0 -----------------------Status information after
command execution
R-------------------- ST1 -----------------------
R-------------------- ST2 -----------------------
R---------------------- C ------------------------Sector ID information after
command execution
R---------------------- H ------------------------
R---------------------- R ------------------------
R---------------------- N ------------------------
Publication Release Date: March 1999
-26 - Revision A1
Result
place
No data transfer takes
Command codes
command has been
Disk status after the
Result
is stored in Data Register
Command codes
W83977EF/ CTF
PRELIMINARY
(6) Version
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 0 0 1 0 0 0 0
R 1 0 0 1 0 0 0 0
(7) Write Data
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW MT MFM 0 0 0 1 0 1
W 0 0 0 0 0 HDS DS1 DS0
W---------------------- C ------------------------Sector ID information prior
to Command execution
W---------------------- H ------------------------
W---------------------- R ------------------------
W---------------------- N ------------------------
W-------------------- EOT -----------------------
W-------------------- GPL -----------------------
W-------------------- DTL -----------------------
Execution
R-------------------- ST0 -----------------------Status information after
Command execution
R-------------------- ST1 -----------------------
R-------------------- ST2 -----------------------
R---------------------- C ------------------------Sector ID information after
Command execution
R---------------------- H ------------------------
R---------------------- R ------------------------
R---------------------- N ------------------------
Publication Release Date: March 1999
-27 - Revision A1
Result
FDD and system
Data transfer between the
Command codes
Enhanced controllerResult
Command code
W83977EF/ CTF
PRELIMINARY
(8) Write Deleted Data
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW MT MFM 0 0 1 0 0 1
W 0 0 0 0 0 HDS DS1 DS0
W---------------------- C ------------------------Sector ID information prior
to command execution
W---------------------- H ------------------------
W---------------------- R ------------------------
W---------------------- N ------------------------
W-------------------- EOT -----------------------
W-------------------- GPL -----------------------
W-------------------- DTL -----------------------
Execution
R-------------------- ST0 -----------------------Status information after
command execution
R-------------------- ST1 -----------------------
R-------------------- ST2 -----------------------
R---------------------- C ------------------------Sector ID information after
command execution
R---------------------- H ------------------------
R---------------------- R ------------------------
R---------------------- N ------------------------
Publication Release Date: March 1999
-28 - Revision A1
Result
FDD and system
Data transfer between the
Command codes
W83977EF/ CTF
PRELIMINARY
(9) Format A Track
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 MFM 0 0 1 1 0 1
W 0 0 0 0 0 HDS DS1 DS0
W---------------------- N ------------------------
W--------------------- SC -----------------------
W--------------------- GPL --------------------- Gap 3
W---------------------- D ------------------------ Filler Byte
ExecutionW---------------------- C ------------------------
for Each
W---------------------- H ------------------------
W---------------------- R ------------------------
W---------------------- N ------------------------
R-------------------- ST0 -----------------------Status information after
command execution
R-------------------- ST1 -----------------------
R-------------------- ST2 -----------------------
R---------------- Undefined -------------------
R
---------------- Undefined -------------------
R
---------------- Undefined -------------------
R
---------------- Undefined -------------------
(10) Recalibrate
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 0 0 0 0 1 1 1
W 0 0 0 0 0 0 DS1 DS0
Execution
Publication Release Date: March 1999
-29 - Revision A1
Interrupt
Head retracted to Track 0
Command codes
Result
Repeat:
Sector
Input Sector Parameters
Sectors/Cylinder
Bytes/Sector
Command codes
W83977EF/ CTF
PRELIMINARY
(11) Sense Interrupt Status
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 0 0 0 1 0 0 0
R ---------------- ST0 -------------------------Status information at the end
R ---------------- PCN -------------------------
(12) Specify
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 0 0 0 0 0 1 1
W| ---------SRT ----------- | --------- HUT ---------- |
W |------------ HLT ----------------------------------| ND
(13) Seek
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 0 0 0 1 1 1 1
W 0 0 0 0 0 HDS DS1 DS0
W-------------------- NCN -----------------------
ExecutionR
(14) Configure
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 0 0 1 0 0 1 1Configure information
W 0 0 0 0 0 0 0 0
W0 EIS EFIFO POLL | ------ FIFOTHR ----|
W| --------------------PRETRK ----------------------- |
Execution
Publication Release Date: March 1999
-30 - Revision A1
Internal registers written
cylinder on diskette
Head positioned over proper
Command codes
Command codes
of each seek operation
Result
Command code
W83977EF/ CTF
PRELIMINARY
(15) Relative Seek
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 1 DIR 0 0 1 1 1 1
W 0 0 0 0 0 HDS DS1 DS0
W | -------------------- RCN ---------------------------- |
(16) Dumpreg
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 0 0 0 1 1 1 0
R ----------------------- PCN-Drive 0--------------------
R ----------------------- PCN-Drive 1 -------------------
R ----------------------- PCN-Drive 2--------------------
R ----------------------- PCN-Drive 3 -------------------
R --------SRT ------------------ | --------- HUT --------
R ----------- HLT -----------------------------------| ND
R ------------------------ SC/EOT ----------------------
RLOCK 0 D3 D2 D1 D0 GAP WG
R0 EIS EFIFO POLL | ------ FIFOTHR --------
R-----------------------PRETRK -------------------------
(17) Perpendicular Mode
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 0 0 1 0 0 1 0
W OW 0 D3 D2 D1 D0 GAP WG
(18) Lock
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandWLOCK 0 0 1 0 1 0 0
R 0 0 0 LOCK 0 0 0 0
Publication Release Date: March 1999
-31 - Revision A1
Result
Command Code
Command Code
Result
Registers placed in FIFO
Command codes
W83977EF/ CTF
PRELIMINARY
(19) Sense Drive Status
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW 0 0 0 0 0 1 0 0
W 0 0 0 0 0 HDS DS1 DS0
R ---------------- ST3 -------------------------Status information about
disk drive
(20) Invalid
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
CommandW ------------- Invalid Codes -----------------Invalid codes (no
R -------------------- ST0 ----------------------ST0 = 80H
Publication Release Date: March 1999
-32 - Revision A1
Result
standby state)
operation- FDC goes to
Result
Command Code
W83977EF/ CTF
PRELIMINARY
2.2 Register Descriptions
There are several status, data, and control registers in W83977EF/CTF. These registers are defined
ADDRESS REGISTER
OFFSET READ WRITE
SA REGISTER
SB REGISTER
DO REGISTER
TD REGISTERTD REGISTER
MS REGISTERDR REGISTER
DT (FIFO) REGISTERDT (FIFO) REGISTER
DI REGISTERCC REGISTER
2.2.1 Status Register A (SA Register) (Read base address + 0)
This register is used to monitor several disk interface pins in PS/2 and Model 30 modes. In PS/2
mode, the bit definitions for this register are as follows:
27654310
DIR
WP#
INDEX#
HEAD
TRAK0#
STEP
DRV2#
INIT PENDING
INIT PENDING (Bit 7):
This bit indicates the value of the floppy disk interrupt output.
DRV2# (Bit 6):
0
1
STEP (Bit 5):
This bit indicates the complement of STEP# output.
TRAK0#(Bit 4):
This bit indicates the value of TRAK0# input.
Publication Release Date: March 1999
-33 - Revision A1
A second drive has not been installed
A second drive has been installed
base address + 7
base address + 5
base address + 4
base address + 3
base address + 2
base address + 1
base address + 0
below:
W83977EF/ CTF
PRELIMINARY
HEAD (Bit 3):
This bit indicates the complement of HEAD# output.
0
1
This bit indicates the value of INDEX# output.
WP#(Bit 1):
0
1
DIR (Bit 0)
This bit indicates the direction of head movement.
0
1
In PS/2 Model 30 mode, the bit definitions for this register are as follows:
27654310
DIR#
WP
INDEX
HEAD#
TRAK0
STEP F/F
DRQ
INIT PENDING
INIT PENDING (Bit 7):
This bit indicates the value of the floppy disk interrupt output.
DRQ (Bit 6):
This bit indicates the value of DRQ output pin.
STEP F/F (Bit 5):
This bit indicates the complement of latched STEP# output.
TRAK0 (Bit 4):
This bit indicates the complement of TRAK0# input.
HEAD# (Bit 3):
This bit indicates the value of HEAD# output.
0
1
Publication Release Date: March 1999
-34 - Revision A1
side 0
side 1
inward direction
outward direction
disk is not write-protected
disk is write-protected
INDEX#(Bit 2):
side 1
side 0
W83977EF/ CTF
PRELIMINARY
INDEX (Bit 2):
This bit indicates the complement of INDEX# output.
WP (Bit 1):
0
1
DIR#(Bit 0)
This bit indicates the direction of head movement.
0
1
2.2.2 Status Register B (SB Register) (Read base address + 1)
This register is used to monitor several disk interface pins in PS/2 and Model 30 modes. In PS/2
mode, the bit definitions for this register are as follows:
21765430
11
WE
WDATA Toggle
Drive SEL0
Drive SEL0 (Bit 5):
This bit indicates the status of DO REGISTER bit 0 (drive select bit 0).
WDATA Toggle (Bit 4):
This bit changes state at every rising edge of the WD# output pin.
RDATA Toggle (Bit 3):
WE (Bit 2):
This bit indicates the complement of the WE# output pin.
MOT EN B (Bit 1)
This bit indicates the complement of the MOB# output pin.
MOT EN A (Bit 0)
This bit indicates the complement of the MOA# output pin.
In PS/2 Model 30 mode, the bit definitions for this register are as follows:
Publication Release Date: March 1999
-35 - Revision A1
This bit changes state at every rising edge of the RDATA# output pin.
RDATA Toggle
MOT EN B
MOT EN A
outward direction
inward direction
disk is write-protected
disk is not write-protected
W83977EF/ CTF
PRELIMINARY
21765430
DSC#
DSD#
WE F/F
RDATA F/F
WD F/F
DSA#
DSB#
DRV2#
DRV2# (Bit 7):
DSB# (Bit 6):
DSA# (Bit 5):
WD F/F(Bit 4):
This bit indicates the complement of the latched WD# output pin at every rising edge of the WD#
RDATA F/F(Bit 3):
This bit indicates the complement of the latched RDATA# output pin .
WE F/F (Bit 2):
This bit indicates the complement of latched WE# output pin.
DSD# (Bit 1):
0 Drive D has been selected
1 Drive D has not been selected
DSC# (Bit 0):
0 Drive C has been selected
1 Drive C has not been selected
Publication Release Date: March 1999
-36 - Revision A1
output pin.
This bit indicates the status of DSA# output pin.
This bit indicates the status of DSB# output pin.
1 A second drive has not been installed
0 A second drive has been installed
W83977EF/ CTF
PRELIMINARY
2.2.3 Digital Output Register (DO Register) (Write base address + 2)
The Digital Output Register is a write-only register controlling drive motors, drive selection, DRQ/IRQ
enable, and FDC resetting. All the bits in this register are cleared by the MR pin. The bit definitions
765432
2.2.4 Tape Drive Register (TD Register) (Read base address + 3)
This register is used to assign a particular drive number to the tape drive support mode of the data
separator. This register also holds the media ID, drive type, and floppy boot drive information of the
floppy disk drive. In normal floppy mode, this register includes only bit 0 and 1. The bit definitions are
21765430
XXXXXX
If three mode FDD function is enabled (EN3MODE = 1 in CR9), the bit definitions are as follows:
21765430
Publication Release Date: March 1999
-37 - Revision A1
Media ID1
Media ID0
Drive type ID1
Drive type ID0
Floppy boot drive 1
Floppy boot drive 0
Tape Sel 1
Tape Sel 0
Tape sel 1
Tape sel 0
as follows:
Motor Enable D. Motor D on when active high
Motor Enable C. Motor C on when active high
Motor Enable B. Motor B on when active high
Motor Enable A. Motor A on when active high
Active high enable DRQ/IRQ
DMA and INT Enable
Active low resets FDC
Floppy Disk Controller Reset
11 select drive D
10 select drive C
01 select drive B
Drive Select: 00 select drive A
1-0
are as follows:
W83977EF/ CTF
PRELIMINARY
Media ID1 Media ID0 (Bit 7, 6):
These two bits are read only. These two bits reflect the value of CR8 bit 3, 2.
Drive type ID1 Drive type ID0 (Bit 5, 4):
These two bits reflect two of the bits of CR7. Which two bits are reflected depends on the last drive
selected in the DO REGISTER.
Floppy Boot drive 1, 0 (Bit 3, 2):
These two bits reflect the value of CR8 bit 1, 0.
Tape Sel 1, Tape Sel 0 (Bit 1, 0):
These two bits assign a logical drive number to the tape drive. Drive 0 is not available as a tape drive
and is reserved as the floppy disk boot drive.
TAPE SEL 1 TAPE SEL 0 DRIVE SELECTED
00
011
102
113
2.2.5 Main Status Register (MS Register) (Read base address + 4)
controller. The bit definitions for this register are as follows:
76543210
FDD 0 Busy, (D0B = 1), FDD number 0 is in the SEEK mode.
FDD 1 Busy, (D1B = 1), FDD number 1 is in the SEEK mode.
FDD 2 Busy, (D2B = 1), FDD number 2 is in the SEEK mode.
FDD 3 Busy, (D3B = 1), FDD number 3 is in the SEEK mode.
FDC Busy, (CB). A read or write command is in the process when CB = HIGH.
Non-DMA mode, the FDC is in the non-DMA mode, this bit is set only during the
execution phase in non-DMA mode.
Transition to LOW state indicates execution phase has ended.
If DIO = LOW then transfer is from processor to Data Register.
Request for Master (RQM). A high on this bit indicates Data Register is ready to send or receive data to or from the processor.
2.2.6 Data Rate Register (DR Register) (Write base address + 4)
The Data Rate Register is used to set the transfer rate and write precompensation. The data rate of
the FDC is programmed by the CC REGISTER for PC-AT and PS/2 Model 30 and PS/2 mode, and
not by the DR REGISTER. The real data rate is determined by the most recent write to either of the
DR REGISTER or CC REGISTER.
Publication Release Date: March 1999
-38 - Revision A1
DATA INPUT/OUTPUT, (DIO). If DIO= HIGH then transfer is from Data Register to the processor.
The Main Status Register is used to control the flow of data between the microprocessor and the
None
W83977EF/ CTF
PRELIMINARY
17654320
0
DRATE0
DRATE1
POWER DOWN
S/W RESET
S/W RESET (Bit 7):
POWER-DOWN (Bit 6):
0 FDC in normal mode
PRECOMP2 PRECOMP1 PRECOMP0 (Bit 4, 3, 2):
These three bits select the value of write precompensation. The following tables show the
precompensation values for the combination of these bits.
PRECOMP
PRECOMPENSATION DELAY
2 1 02 Mbps Tape drive
0 0 0Default DelaysDefault Delays
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
DATA RATE DEFAULT PRECOMPENSATION DELAYS
1 MB/S
2 MB/S
Publication Release Date: March 1999
-39 - Revision A1
20.8 nS
41.67nS
125 nS500 KB/S
125 nS300 KB/S
125 nS250 KB/S
0.00 nS (disabled)0.00 nS (disabled)
125.00 nS250.00 nS
104.2 nS208.33 nS
83.3 nS166.67 nS
62.5nS125.00 nS
41.17 nS83.34 nS
20.8 nS41.67 nS
250K - 1 Mbps
1 FDC in power-down mode
This bit is the software reset bit.
PRECOMP2
PRECOMP1
PRECOMP0
W83977EF/ CTF
PRELIMINARY
DRATE1 DRATE0 (Bit 1, 0):
00 500 KB/S (MFM), 250 KB/S (FM), RWC#= 1
01 300 KB/S (MFM), 150 KB/S (FM), RWC#= 0
10 250 KB/S (MFM), 125 KB/S (FM), RWC#= 0
11 1 MB/S (MFM), Illegal (FM), RWC#= 1
The 2 MB/S data rate for Tape drive is only supported by setting 01 to DRATE1 and DRATE0 bits, as
well as setting 10 to DRT1 and DRT0 bits, which are two of the Configure Register CRF4 or CRF5
bits in logic device 0. Please refer to the function description of CRF4 or CRF5 and data rate table for
individual data rates setting.
2.2.7 FIFO Register (R/W base address + 5)
The Data Register consists of four status registers in a stack, with only one register presented to the
data bus at a time. This register stores data, commands, and parameters and provides diskette-drive
status information. Data bytes are passed through the data register to program or obtain results after
a command. In the W83977EF/CTF, this register defaults to FIFO disabled mode after reset. The
FIFO can change its value and enable its operation through the CONFIGURE command.
Status Register 0 (ST0)
7-65321-04
US1, US0 Drive Select:
HD Head address:
1 Head selected
0 Head selected
NR Not Ready:
EC Equipment Check:
1 When a fault signal is received from the FDD or the track
0 signal fails to occur after 77 step pulses
0 No error
SE Seek end:
0 seek error
IC Interrupt Code:
00 Normal termination of command
01 Abnormal termination of command
10 Invalid command issue
11 Abnormal termination because the ready signal from FDD changed state during command execution
Publication Release Date: March 1999
-40 - Revision A1
1 seek end
0 Drive is ready
1 Drive is not ready
11 Drive D selected
10 Drive C selected
01 Drive B selected
00 Drive A selected
These two bits select the data rate of the FDC and reduced write current control.
W83977EF/ CTF
PRELIMINARY
Status Register 1 (ST1)
76543210
Missing Address Mark. 1 When the FDC cannot detect the data address mark
or the data address mark has been deleted.
NW (Not Writable). 1 If a write Protect signal is detected from the diskette drive during
execution of write data.
ND (No DATA). 1 If specified sector cannot be found during execution of a read, write or verifly data.
Not used. This bit is always 0.
OR (Over Rum). 1 If the FDC is not serviced by the host system within a certain time interval during data transfer.
DE (data Error).1 When the FDC detects a CRC error in either the ID field or the data field.
Not used. This bit is always 0.
EN (End of track). 1 When the FDC tries to access a sector beyond the final sector of a cylinder.
Status Register 2 (ST2)
74321065
1 During execution of the Scan command
SH (Scan Equal Hit)
WC (Wrong Cylinder)
Status Register 3 (ST3)
64210753
WP Write Protected
Publication Release Date: March 1999
-41 - Revision A1
FT Fault
RY Ready
TO Track 0
TS Two-Side
HD Head Address
US1 Unit Select 1
US0 Unit Select 0
Not used. This bit is always 0
0 No error
1 During execution of the read data or scan command
CM (Control Mark)
0 No error
1 If the FDC detects a CRC error in the data field
DD (Data error in the Data field)
1 Indicates wrong Cylinder
0 No error
1 During execution of the Scan command, if the equal condition is satisfied
0 No error
SN (Scan Not satisfied)
0 No error
1 Bad Cylinder
BC (Bad Cylinder)
0 No error
when reading data from the media
(or the address mark has been deleted)
1 If the FDC cannot find a data address mark
MD (Missing Address Mark in Data Field).
W83977EF/ CTF
PRELIMINARY
2.2.8 Digital Input Register (DI Register) (Read base address + 7)
The Digital Input Register is an 8-bit read-only register used for diagnostic purposes. In a PC/XT or
AT only Bit 7 is checked by the BIOS. When the register is read, Bit 7 shows the complement
, while other bits of the data bus remain in tri-state. Bit definitions are as follows:
76543210
xxxxxxx
x
DSKCHG
In the PS/2 mode, the bit definitions are as follows:
76543201
1111
HIGH DENS#
DRATE0
DRATE1
DSKCHG
DSKCHG (Bit 7):
This bit indicates the complement of the DSKCHG# input.
DRATE1 DRATE0 (Bit 2, 1):
These two bits select the data rate of the FDC. Refer to the DR register bits 1 and 0 for the settings
HIGHDENS#(Bit 0):
0 500 KB/S or 1 MB/S data rate (high density FDD)
1 250 KB/S or 300 KB/S data rate
Publication Release Date: March 1999
-42 - Revision A1
corresponding to the individual data rates.
Bit 6-3: These bits are always a logic 1 during a read.
During a read of this register, these bits are in tri-state
Reserved for the hard disk controller
ofDSKCHG#
W83977EF/ CTF
PRELIMINARY
In the PS/2 Model 30 mode, the bit definitions are as follows:
76543201
000
DRATE0
DRATE1
NOPREC
DMAEN
DSKCHG#
DSKCHG (Bit 7):
DMAEN (Bit 3):
This bit indicates the value of DO REGISTER bit 3.
NOPREC (Bit 2):
This bit indicates the value of CC REGISTER NOPREC bit.
DRATE1 DRATE0 (Bit 1, 0):
2.2.9 Configuration Control Register (CC Register) (Write base address + 7)
This register is used to control the data rate. In the PC/AT and PS/2 mode, the bit definitions are as
43217650
xxxxxx
X: Reserved
DRATE1 DRATE0 (Bit 1, 0):
In the PS/2 Model 30 mode, the bit definitions are as follows:
Publication Release Date: March 1999
-43 - Revision A1
These two bits select the data rate of the FDC.
Bit 7-2: Reserved. These bits should be set to 0.
DRATE1
DRATE0
follows:
These two bits select the data rate of the FDC.
Bit 6-4: These bits are always a logic 1 during a read.
This bit indicates the status of DSKCHG# input.
W83977EF/ CTF
PRELIMINARY
21765430
XXXXX
NOPREC
X:
NOPREC (Bit 2):
DRATE1 DRATE0 (Bit 1, 0):
Publication Release Date: March 1999
-44 - Revision A1
These two bits select the data rate of the FDC.
This bit indicates no precompensation. It has no function and can be set by software.
Bit 7-3: Reserved. These bits should be set to 0.
Reserved
DRATE1
DRATE0
W83977EF/ CTF
PRELIMINARY
3.0 UART PORT
3.1 Universal Asynchronous Receiver/Transmitter (UART A, UART B)
The UARTs are used to convert parallel data into serial format on the transmit side, and convert serial
data to parallel format on the receiver side. The serial format, in order of transmission and reception,
is a start bit, followed by five to eight data bits, a parity bit (if programmed) and one, one and half
(five-bit format only) or two stop bits. The UARTs are capable of handling divisors of 1 to 65535 and
producing a 16x clock for driving the internal transmitter logic. Provisions are also included to use
this 16x clock to drive the receiver logic. The UARTs also support the MIDI data rate. Furthermore,
the UARTs also include complete modem control capability, and a processor interrupt system that
may be software trailed to the computing time required to handle the communication link. The
UARTs have a FIFO mode to reduce the number of interrupts presented to the CPU. In each UART,
there are 16-byte FIFOs for both receive and transmit mode.
3.2 Register Address
3.2.1 UART Control Register (UCR) (Read/Write)
Control Register controls and defines the protocol for asynchronous data communications,
76543210
Data length select bit 0 (DLS0)
Data length select bit 1(DLS1)
Multiple stop bits enable (MSBE)
Parity bit enable (PBE)
Even parity enable (EPE)
Parity bit fixed enable (PBFE)
Set silence enable (SSE)
Baudrate divisor latch access bit (BDLAB)
Bit 7: BDLAB. When this bit is set to a logical 1, designers can access the divisor (in 16-bit binary
format) from the divisor latches of the baudrate generator during a read or write operation.
When this bit is reset, the Receiver Buffer Register, the Transmitter Buffer Register, or the
Bit 6: SSE. A logical 1 forces the Serial Output (SOUT) to a silent state (a logical 0). Only IRTX is
affected by this bit; the transmitter is not affected.
Bit 5: PBFE. When PBE and PBFE of UCR are both set to a logical 1,
(1) if EPE is logical 1, the parity bit is fixed as logical 0 to transmit and check.
(2) if EPE is logical 0, the parity bit is fixed as logical 1 to transmit and check.
Publication Release Date: March 1999
-45 - Revision A1
Interrupt Control Register can be accessed.
including data length, stop bit, parity, and baud rate selection.
The UART
W83977EF/ CTF
PRELIMINARY
Bit Number
Register Address Base 0 1 2 3 4 5 6 7
RRBR
B
R
TTBR
B
(
IICRTBR USRHSR0000
R
(EUSRI)(EHSRI)
(ERDRI)(ETBREI)
I"0" if00FIFOsFIFOs
R
()
****
UARTUFRRCVR
C
R
UARTUCR
R
(PBE)(EPE)(SSE)
HHCRIRQ000
CRI
R
(DTR)(RTS)
UART SUSRTBRTSR
R
(RDR)(OER)(PBER)(TBRE)(TSRE)
(NSER)(SBD)
HHSRCTSDSRDCD
S
(DCD)
(TCTS)(TDSR)(TDCD)(CTS)(DSR)(RI)
UUDR
R
B
L
D
H
Publication Release Date: March 1999
-46 - Revision A1
**: These bits are always 0 in 16450 Mode.
*: Bit 0 is the least significant bit. The least significant bit is the first bit serially transmitted or received.
igh
BDLAB = 1
atch Livisor
Bit 15Bit 14Bit 13Bit 12Bit 11Bit 10Bit 9Bit 8BHLaudrate B+ 1
BDLAB = 1
ow Latch
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0BLLivisor Daudrate+ 0
egister
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0efined Dser+ 7
(FERI)
DetectIndicatorReadyto SendTogglingEdgeTogglingTogglingegister Rtatus
Data CarrierRingData SetClearRI Fallingandshake+ 6
(RFEI) **
IndicationDetectedError
ErrorEmptyEmptyByteBitErrorErrorReadyegister
RX FIFOSilentNo StopParity BitOverrunRBR Datatatus+ 5
EnableInputSendReadyegister
LoopbackEnabletoTerminalontrol
InternalLoopbackRequestDataandshake+ 4
(BDLAB)(DLS1)(DLS0)
PBFE)(MSBE)
Access BitBit 1Bit 0
LatchEnableEnableEnableEnableEnableSelectSelect
DivisorSilenceBit FixedParityBitStop BitsLengthLengthegister
BaudrateSetParityEvenParityMultipleDataDataontrol C+ 3
(MSB)(LSB)(Write Only)
Active LevelActive LevelSelectResetResetegister
InterruptInterruptModeFIFOFIFOEnableontrol
RXRXReversedReservedDMAXMITFIFO FIFO+ 2
Bit (2)**Bit (1)Bit (0)
PendingRead Only
EnabledEnabled
StatusStatusStatusInterruptegister
InterruptInterruptInterruptISRtatus Snterrupt+ 2
EnableEnable
EnableEnableInterruptInterrupt
BDLAB = 0
Interrupt InterruptEmptyReadyegister
RBR Dataontrol Cnterrupt+ 1
Write Only)
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0BDLAB = 0
egister Ruffer
TX DataTX DataTX DataTX DataTX DataTX DataTX DataTX Dataransmitter+ 0
(Read Only)
egister
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0BDLAB = 0
uffer
RX DataRX DataRX DataRX DataRX DataRX DataRX DataRX Dataeceiver+ 0
TABLE 3-1 UART Register Bit Map
W83977EF/ CTF
PRELIMINARY
Bit 4: EPE. This bit describes the number of logic 1's in the data word bits and parity bit only when bit
3 is programmed. When this bit is set, an even number of logic 1's are sent or checked. When
Bit 3: PBE. When this bit is set, the position between the last data bit and the stop bit of the SOUT
will be stuffed with the parity bit at the transmitter. For the receiver, the parity bit in the same
Bit 2: MSBE. This bit defines the number of stop bits in each serial character that is transmitted or
received.
(2) If MSBE is set to a logical 1, and data length is 5 bits, one and a half stop bits are sent and
(3) If MSBE is set to a logical 1, and data length is 6, 7, or 8 bits, two stop bits are sent and
Bits 0 and 1: DLS0, DLS1. These two bits define the number of data bits that are sent or checked in
TABLE 3-2 WORD LENGTH DEFINITION
DLS1 DLS0 DATA LENGTH
00
01
10
11
Publication Release Date: March 1999
-47 - Revision A1
8 bits
7 bits
6 bits
5 bits
each serial character.
checked.
checked.
(1) If MSBE is set to a logical 0, one stop bit is sent and checked.
position as the transmitter will be detected.
the bit is reset, an odd number of logic 1's are sent or checked.
W83977EF/ CTF
PRELIMINARY
3.2.2 UART Status Register (USR) (Read/Write)
This 8-bit register provides information about the status of the data transfer during communication.
27643105
RBR Data ready (RDR)
Overrun error (OER)
Parity bit error (PBER)
No stop bit error (NSER)
Silent byte detected (SBD)
Transmitter Buffer Register empty (TBRE)
Transmitter Shift Register empty (TSRE)
RX FIFO Error Indication (RFEI)
Bit 7: RFEI. In 16450 mode, this bit is always set to a logic 0. In 16550 mode, this bit is set to a logic
1 when there is at least one parity bit error, no stop bit error or silent byte detected in the FIFO.
In 16550 mode, this bit is cleared by reading from the USR if there are no remaining errors left
in the FIFO.
Bit 6: TSRE. In 16450 mode, when TBR and TSR are both empty, this bit will be set to a logical 1. In
16550 mode, if the transmit FIFO and TSR are both empty, it will be set to a logical 1. Other
Bit 5: TBRE. In 16450 mode, when a data character is transferred from TBR to TSR, this bit will be
set to a logical 1. If ETREI of ICR is a logical 1, an interrupt will be generated to notify the CPU
to write the next data. In 16550 mode, this bit will be set to a logical 1 when the transmit FIFO
is empty. It will be reset to a logical 0 when the CPU writes data into TBR or FIFO.
Bit 4: SBD. This bit is set to a logical 1 to indicate that received data are kept in silent state for a full
word time, including start bit, data bits, parity bit, and stop bits. In 16550 mode, it indicates the
same condition for the data on top of the FIFO. When the CPU reads USR, it will clear this bit
to a logical 0.
Bit 3: NSER. This bit is set to a logical 1 to indicate that the received data have no stop bit. In 16550
mode, it indicates the same condition for the data on top of the FIFO. When the CPU reads
USR, it will clear this bit to a logical 0.
Bit 2: PBER. This bit is set to a logical 1 to indicate that the parity bit of received data is wrong. In
16550 mode, it indicates the same condition for the data on top of the FIFO. When the CPU
reads USR, it will clear this bit to a logical 0.
Bit 1: OER. This bit is set to a logical 1 to indicate received data have been overwritten by the next
received data before they were read by the CPU. In 16550 mode, it indicates the same
condition instead of FIFO full. When the CPU reads USR, it will clear this bit to a logical 0.
Bit 0: RDR. This bit is set to a logical 1 to indicate received data are ready to be read by the CPU in
the RBR or FIFO. After no data are left in the RBR or FIFO, the bit will be reset to a logical 0.
Publication Release Date: March 1999
-48 - Revision A1
than in these two cases, this bit will be reset to a logical 0.
W83977EF/ CTF
PRELIMINARY
3.2.3 Handshake Control Register (HCR) (Read/Write)
This register controls the pins of the UART used for handshaking peripherals such as modem, and
controls the diagnostic mode of the UART.
27543106
000
Data terminal ready (DTR)
Request to send (RTS)
Loopback RI input
IRQ enable
Internal loopback enable
Bit 4: When this bit is set to a logical 1, the UART enters diagnostic mode by an internal loopback, as
(1) SOUT is forced to logical 1, and SIN is isolated from the communication link instead of the
TSR.
(2) Modem output pins are set to their inactive state.
(3) Modem input pins are isolated from the communication link and connect internally as DTR
(bit 0 of HCR) ®DSR#, RTS ( bit 1 of HCR) ®CTS#, Loopback RI input ( bit 2 of HCR) ®
RI#and IRQ enable ( bit 3 of HCR) ®
Aside from the above connections, the UART operates normally. This method allows the
CPU to test the UART in a convenient way.
Bit 3: The UART interrupt output is enabled by setting this bit to a logic 1. In the diagnostic mode this
bit is internally connected to the modem control input DCD#.
Bit 2: This bit is used only in the diagnostic mode. In the diagnostic mode this bit is internally
connected to the modem control input RI#.
Bit 1: This bit controls the RTS# output. The value of this bit is inverted and output to RTS#.
Bit 0: This bit controls the DTR# output. The value of this bit is inverted and output to DTR#.
3.2.4 Handshake Status Register (HSR) (Read/Write)
This register reflects the current state of four input pins for handshake peripherals such as a modem,
Publication Release Date: March 1999
-49 - Revision A1
and records changes on these pins.
DCD#.
follows:
W83977EF/ CTF
PRELIMINARY
76543210
toggling (TCTS)
CTS#
toggling (TDSR)
DSR#
RI falling edge (FERI)
toggling (TDCD)
DCD#
Clear to send (CTS)
Data set ready (DSR)
Ring indicator (RI)
Data carrier detect (DCD)
Bit 7: This bit is the opposite of the DCD# input. This bit is equivalent to bit 3 of HCR in loopback
mode.
Bit 6: This bit is the opposite of the RI # input. This bit is equivalent to bit 2 of HCR in loopback
mode.
Bit 5: This bit is the opposite of the DSR# input. This bit is equivalent to bit 0 of HCR in loopback
mode.
Bit 4: This bit is the opposite of the CTS# input. This bit is equivalent to bit 1 of HCR in loopback
mode.
Bit 2: FERI. This bit indicates that the RI # pin
3.2.5 UART FIFO Control Register (UFR) (Write only)
This register is used to control the FIFO functions of the UART.
21765430
FIFO enable
Receiver FIFO reset
Transmitter FIFO reset
DMA mode select
Reserved
Reserved
RX interrupt active level (LSB)
RX interrupt active level (MSB)
Bit 6, 7: These two bits are used to set the active level for the receiver FIFO interrupt. For example, if
the interrupt active level is set as 4 bytes, once there are more than 4 data characters in the
receiver FIFO, the interrupt will be activated to notify the CPU to read the data from the FIFO.
Publication Release Date: March 1999
-50 - Revision A1
Bit 0: TCTS. This bit indicates that the CTS# pin has changed state after HSR was read.
Bit 1: TDSR. This bit indicates that the DSR# pin has changed state after HSR was read by the CPU.
read by the CPU.
has changed from low to high state after HSR was
Bit 3: TDCD. This bit indicates that the DCD# pin has changed state after HSR was read by the CPU.
W83977EF/ CTF
PRELIMINARY
TABLE 3-3 FIFO TRIGGER LEVEL
BIT 7 BIT 6 RX FIFO INTERRUPT ACTIVE LEVEL (BYTES)
00
01
10
11
Bit 4, 5:
Bit 3:When this bit is programmed to logic 1, the DMA mode will change from mode 0 to mode 1 if
UFR bit 0 = 1.
Bit 2: Setting this bit to a logical 1 resets the TX FIFO counter logic to initial state. This bit will clear to
a logical 0 by itself after being set to a logical 1.
Bit 1: Setting this bit to a logical 1 resets the RX FIFO counter logic to initial state. This bit will clear to
a logical 0 by itself after being set to a logical 1.
Bit 0: This bit enables the 16550 (FIFO) mode of the UART. This bit should be set to a logical 1
before other bits of UFR are programmed.
3.2.6 Interrupt Status Register (ISR) (Read only)
This register reflects the UART interrupt status, which is encoded by different interrupt sources into 3
76543210
00
0 if interrupt pending
Interrupt Status bit 0
Interrupt Status bit 1
Interrupt Status bit 2
FIFOs enabled
FIFOs enabled
Bit 7, 6:
Bit 5, 4:
Bit 3: In 16450 mode, this bit is 0. In 16550 mode, both bit 3 and 2 are set to a logical 1 when a time-
Bit 2, 1: These two bits identify the priority level of the pending interrupt, as shown in the table below.
Bit 0: This bit is a logical 1 if there is no interrupt pending. If one of the interrupt sources has
occurred, this bit will be set to a logical 0.
Publication Release Date: March 1999
-51 - Revision A1
out interrupt is pending.
These two bits are always logic 0.
These two bits are set to a logical 1 when UFR bit 0 = 1.
bits.
Reserved
14
08
04
01
W83977EF/ CTF
PRELIMINARY
ISR INTERRUPT SET AND FUNCTION
3210
0001--
0110
0100
1100
0010
0000
3.2.7 Interrupt Control Register (ICR) (Read/Write)
This 8-bit register allows the five types of controller interrupts to activate the interrupt output signal
separately. The interrupt system can be totally disabled by resetting bits 0 through 3 of the Interrupt
Control Register (ICR). A selected interrupt can be enabled by setting the appropriate bits of this
register to a logical 1.
53764210
0000
RBR data ready interrupt enable (ERDRI)
TBR empty interrupt enable (ETBREI)
UART receive status interrupt enable (EUSRI)
Handshake status interrupt enable (EHSRI)
Bit 2: EUSRI. Setting this bit to a logical 1 enables the UART status register interrupt.
Bit 1: ETBREI. Setting this bit to a logical 1 enables the TBR empty interrupt.
Bit 0: ERDRI. Setting this bit to a logical 1 enables the RBR data ready interrupt.
Publication Release Date: March 1999
-52 - Revision A1
Bit 3: EHSRI. Setting this bit to a logical 1 enables the handshake status register interrupt.
Bit 7-4: These four bits are always logic 0.
** Bit 3 of ISR is enabled when bit 0 of UFR is logical 1.
3. FERI = 1 4. TDCD = 1
Read HSR1. TCTS = 1 2. TDSR = 1Handshake statusFourth
third)
2. Read ISR (if priority is
1. Write data into TBRTBR emptyTBR EmptyThird
access of RX FIFO.
characters period of time since last
Read RBRData present in RX FIFO for 4FIFO Data TimeoutSecond
data under active level reached
2. Read RBR until FIFO2. FIFO interrupt active level
1. Read RBR1. RBR data readyRBR Data ReadySecond
3. NSER = 1 4. SBD = 1
Status
Read USR1. OER = 1 2. PBER =1UART ReceiveFirst
No Interrupt pending -
priority
Clear InterruptInterrupt SourceInterrupt TypeInterruptBitBitBitBit
TABLE 3-4 INTERRUPT CONTROL FUNCTION
W83977EF/ CTF
PRELIMINARY
3.2.8 Programmable Baud Generator (BLL/BHL) (Read/Write)
Two 8-bit registers, BLL and BHL, compose a programmable baud generator that uses 24 MHz to
generate a 1.8461 MHz frequency and divides it by a divisor from 1 to 2-1. The output frequency of
the baud generator is the baud rate multiplied by 16, and this is the base frequency for the transmitter
and receiver. The table in the next page illustrates the use of the baud generator with a frequency of
1.8461 MHz. In high-speed UART mode (refer to CR0C bit7 and CR0C bit6), the programmable
baud generator directly uses 24 MHz and the same divisor as the normal speed divisor. In high-
3.2.9 User-defined Register (UDR) (Read/Write)
BAUD RATE FROM DIFFERENT PRE-DIVIDER
Pre-Div: 13Pre-Div:1.625Pre-Div: 1.0 Decimal divisor used
clock
2304
1536
1047
857
768
384
192
96
64
58
48
32
24
16
12
6
3
2
1
Publication Release Date: March 1999
-53 - Revision A1
Note. Pre-Divisor is determined by CRF0 of UART A and B.
** The percentage error for all baud rates, except where indicated otherwise, is 0.16%.
**1497600921600115200
**74880046080057600
**49920030720038400
**24960015360019200
**124800768009600
**93600576007200
**62400384004800
**46800288003600
**31200192002400
0.53%26000160002000
**23400144001800
**1560096001200
**78004800600
**39002400300
**19501200150
0.099%1478.51076134.5
0.18%1430880110
**97560075
**65040050
24M Hz14.769M Hz1.8461M Hz
desired and actualto generate 16X
Error Percentage between
TABLE 3-5 BAUD RATE TABLE
This is a temporary register that can be accessed and defined by the user.
speed mode, the data transmission rate can be as high as 1.5 Mbps.
16
W83977EF/ CTF
PRELIMINARY
4.0 INFRARED (IR) PORTS
4.1 IR PORT
The Infrared (IR) function provides point-to-point (or multi-point to multi-point) wireless
communication which can operate under various transmission protocols including IrDA 1.0 SIR,
SHARP ASK-IR. IR port shares the same port with UART B port in W83977EF/CTF. Please refer to
section 11.5 for configuration information.
4.2 CIR PORT(For W83977CTF only)
The CIR port of the W83977CTF is an independent device, and supports an T-period mode, Over-
sampling mode and Over-sampling mode with re-sync for demodulation of cir signal. Refer to the
configuration registers for more information on disabling, address selecting and IRQ selectiing .The
4.2.1 Bank0.Reg0 - Receiver Buffer Registers (RBR) (Read)
Receiver Buffer Register is read only. When the CIR pulse train has been detected and passed by the
internal signal filter, the data samped and shifted into shifter register will write into Receiver Buffer
4.2.2 Bank0.Reg1 - Interrupt Control Register (ICR)
Bit Name Read/Write Description
7Read/WriteEnable Global Interrupt. Write 1, enable interrupt. Write
0, disable global interrupt.
-
2Read/WriteEnable Timer Interrupt.
1Read/Write
0Read/WriteReceiver Thershold-Level Interrupt Enable.
Publication Release Date: March 1999
-54 - Revision A1
EN_RX_I
Enable Line-Status-Register interrupt.En_LSR_I
EN_TMR_I
ReservedReserved6-3
EN_GLBI
Power on default <7:0> = 00000000 binary
Register. In the CIR, this port only supports PIO mode and the address port is defined in the PnP.
function of each CIR register is described below.
W83977EF/ CTF
PRELIMINARY
4.2.3 Bank0.Reg2 - Interrupt Status Register (ISR)
Bit Name Read/Write Description
-
2TMR_ITimer Interrupt. Set to 1 when timer count to 0. This bit
will be affected by (1) the timer registers are defined in
Bank4.Reg0 and Bank1.Reg0~1, (2) EN_TMR(Enable
Timer, in Bank0.Reg3.Bit2) should be set to 1, (3)
ENTMR_I (Enable Timer Interrupt, in Bank0.Reg1.Bit2)
1Line-Status-Register interrupt. Set to 1 when overrun,
or time out, or RBR Ready in the Line Status Register
0Receiver Thershold-Level Interrupt. Set to 1 when (1)
the Receiver Buffer Register (RBR) is equal or larger
than the threshold level, (2) RBR occurs time-out if the
receiver buffer register has valid data and below the
threshold level. Clear to 0 when RBR is less than
threshold level from reading RBR.
Publication Release Date: March 1999
-55 - Revision A1
Read OnlyRXTH_I
(LSR) sets to 1. Clear to 0 when LSR is read.
Read OnlyLSR_I
should be set to 1.
Read Only
ReservedReserved7-3
Power on default <7:0> = 00000000 binary
W83977EF/ CTF
PRELIMINARY
4.2.4 Bank0~3.Reg3 - CIR Control Register 0/Bank Select Register (CTR0/BSR)
(BANK0~3)
Bit Name Read/Write Description
Read/WriteBank Select Register. These two bits share the same
address so that Bank Select Register (BSR) can be
BNK_SEL<1:0> = 00 Select Bank 0.
BNK_SEL<1:0> = 01 Select Bank 1.
BNK_SEL<1:0> = Reserved.
BNK_SEL<1:0> = Reserved.
Read/WriteReceiver FIFO Threshold Level. It sets the RXTH_I to
become 1 when the Receiver FIFO Threshold Level is
RXFTL<1:0> = 00 -- 1 byte
3TMR_TSTRead/WriteTimer Test. Write to 1, then reading the TMRL/TMRH
will return the programmed values of TMRL/TMRH, that
is, it does not return down count counter value. This bit
is for test timer register.
2Read/WriteEnable timer. Write to 1, enable the timer
1Read/WriteSetting this bit to a logical 1 resets the RX FIFO
counter logic to initial state. This bit will clear to a
logical 0 by itself after being set to a logical 1.
0Read/WriteTimer input clock.
TMR_CLK = 0, input clock set to 1K Hz.
TMR_CLK = 1, input clock set to 24M Hz. This clock is
Publication Release Date: March 1999
-56 - Revision A1
tested by Winbond. Do not publish.
TMR_CLK
RXF_RST
EN_TMR
RXFTL<1:0> = 11 -- 14 bytes
RXFTL<1:0> = 10 -- 8 bytes
RXFTL<1:0> = 01 -- 4 bytes
equal or larger than the defined value shown as follows.
RXFTL1/05-4
programmed to desired Bank in any Bank.
BNK_SEL<1:0>7-6
Power on default <7:0> = 00000000 binary
W83977EF/ CTF
PRELIMINARY
4.2.5 Bank0.Reg4 - CIR Control Register (CTR)
Bit Name Read/Write Description
Read/WriteReceiver Frequency Range 2~0. These bits select the
input frequency of the receiver ranges. For the input
signal, that is through a band pass filter, i.e., if the
frequency of the input signal is located at this defined
range then the signal will be received.
Read/WriteReceiver Frequency Select 4~0. Select the receiver
RX_FR2~0 (Low Frequency)
001 010 011
RX_FSL4~0 Min. Max. Min. Max. Min. Max.
0001026.129.624.731.723.434.2
28.232.026.734.325.336.9
00011
29.433.327.835.726.338.4
00100
30.034.028.436.526.939.3
00101
0011031.435.629.638.128.141.0
0011132.136.430.339.028.742.0
0100032.837.231.039.829.442.9
33.6* 38.1*31.740.830.144.0
01001
34.439.032.541.830.845.0
01011
36.241.034.244.032.447.3
01100
0110137.242.135.145.133.248.6
0111138.243.236.046.334.149.9
1000040.345.738.149.036.152.7
41.547.139.250.437.254.3
10010
42.848.540.451.938.356.0
10011
44.150.041.753.639.557.7
10101
1011145.551.643.055.340.759.6
1101048.755.246.059.143.663.7
1101150.457.147.661.245.165.9
54.361.551.365.948.671.0
11101
Publication Release Date: March 1999
-57 - Revision A1
Note that the other non-defined values are reserved.
Table: Low Frequency range select of receiver.
operation frequency.
RX_FSL<4:0>4-0
RX_FR<2:0>7-5
Power on default <7:0> = 0010,1001 binary
W83977EF/ CTF
PRELIMINARY
4.2.6 Bank0.Reg5 - UART Line Status Register (USR)
Bit Name Read/Write Description
--
2Read/WriteSet to 1 when receiver FIFO or frame status FIFO
occurs time-out. Read this bit to clear.
1Read/WriteReceived FIFO overrun. Read to clear.
0Read/WriteThis bit is set to a logical 1 to indicate received data are
ready to be read by the CPU in the RBR or FIFO. After
no data are left in the RBR or FIFO, the bit will be reset
to a logical 0.
4.2.7 Bank0.Reg6 - Remote Infrared Config Register (RIR_CFG)
Bit Name Read/Write Description
Sampling Mode Select. Select internal decoder
SMPSEL<1:0>Read/Write
methodology from the internal filter. Selected decoder
mode will determine the receive data format. The
SMPSEL<1:0> = 00 T-Period Sample Mode.
SMPSEL<1:0> = 01 Over-Sampling Mode.
SMPSEL<1:0> = 10 Over-Sampling with re-sync.
SMPSEL<1:0> = 11 FIFO Test Mode.
The T-period code format is defined as follows.
(Number of bits) - 1
B7 B6 B5 B4 B3 B2 B1 B0
Bit value
The Bit value is set to 0, when the low signal will be
received. The Bit value is set to 1, when the high signal
will be received. The opposite results will be generated
Publication Release Date: March 1999
-58 - Revision A1
when the bit RXINV (Bank0.Reg6.Bit0) is set to 1.
sampling mode is shown bellow:
7-6
Power on default <7:0> = 0000,0000 binary
RDR
OV_ERR
RX_TO
Reserved7-3
Power on default <7:0> = 0000,0000 binary
W83977EF/ CTF
PRELIMINARY
Bit Name Read/Write Description
Read/Write
LP_SL<1:0> = 01 Select R.B.P. signal
LP_SL<1:0> = 10 Select D.B.P. signal.
Receiver Demodulation Source Selection.
Read/Write
RXDMSL<1:0> = 00 select B.P. and L.P. filter.
RXDMSL<1:0> = 01 select B.P. but not L.P.
Baud Rate Pre-divisor. Set to 0, the baud rate
1Read/Write
generator input clock is set to 1.8432M Hz which is set
to pre-divisor into 13. When set to 0, the pre-divisor is
set to 1, that is, the input clock of baud rate generator is
Receiving Signal Invert. Write to 1, Invert the receiving0Read/Write
4.2.8 Bank0.Reg7 - User Defined Register (UDR/AUDR)
Bit Name Read/Write Description
7Read/WriteReceive Active. Set to 1 whenever a pulse or pulse-
train is detected by the receiver. If a 1 is written into the
bit position, the bit is cleared and the receiver is de-
actived. When this bit is set, the receiver samples the
IR input continuously at the programmed baud rate and
transfers the data to the receiver FIFO.
6Set to 1 whenever a pulse or pulse-train (modulated
pulse) is detected by the receiver. Can be used by the
5--
FIFO Level Value. Indicates how many bytes there are
in the current received FIFO. Can read these bits then
get the FIFO level value and successively read RBR by
the prior value.
Publication Release Date: March 1999
-59 - Revision A1
Read OnlyFOLVAL4-0
Reserved
sofware to detect idle condition. Cleared Upon Read.
Read OnlyRX_PD
RXACT
Power on default <7:0> = 0000,0000 binary
signal.
RXINV
set to 24M Hz.
PRE_DIV
RXDMSL<1:0> = 11 do not pass demodulation.
RXDMSL<1:0> = 10 Reserved.
RXDMSL<1:0>3-2
LP_SL<1:0> = 11 Reserved.
LP_SL<1:0> = 00 Select raw IRRX signal.
LP_SL<1:0>5-4
Low pass filter source selcetion.
4.2.7 Bank0.Reg6 - Remote Infrared Config Register (RIR_CFG), continued
W83977EF/ CTF
PRELIMINARY
4.2.9 Bank1.Reg0~1 - Baud Rate Divisor Latch (BLL/BHL)
The two registers of BLL and BHL are baud rate divisor and are the same as for the legacy UART
port. The table below illustrates the use of the baud generator with a frequency of 18,461 Mhz. The
output frequency of the baud generator is the baud rate multiplied by 16. In high-speed UART mode
(relies to Bank 0, Reg 6, Bit 1) the programmable baud generator directly uses 24 Mhz and the same
BAUD RATE USING 24 MHZ TO GENERATE 1.8461 MHZ
Decimal divisor used to
6
3
2
1
1
Publication Release Date: March 1999
-60 - Revision A1
** The percentage error for all baud rates, except where indicated otherwise, is 0.16%
Note 1: Only use in high speed mode, when Bank0.Reg6.Bit1 is set.
0%1.5M
Note 1
**115200
**57600
** 38400
**19200
**129600
**167200
**244800
**323600
**482400
0.53%582000
**641800
**961200
**192600
**384300
**768150
0.099%857134.5
0.18%1047110
**153675
**230450
desired and actualgenerate 16X clock
Percent error difference between Desired Baud Rate
TABLE 3-5 BAUD RATE TABLE
divisor. In high-speed mode, the baud rate can be as high as 1.5 M bps.
W83977EF/ CTF
PRELIMINARY
4.2.10 Bank1.Reg2 - Version ID Regiister I (VID)
Bit Name Read/Write Description
Version ID, default is set to 0x10.
4.2.11 Bank0~3.Reg3 - CIR Control Register 0/Bank Select Register (CTR0/BSR)
(BANK0~3)
4.2.12 Bank1.Reg4 - Timer Low Byte Register (TMRL)
Bit Name Read/Write Description
Read/WriteTimer Low Byte Register. This is a 12-bit timer (another
4-bit is defined in Bank1.Reg5) for which resolution is 1
ms, that is, the programmed maximum time is 2
ms. The timer is a down-counter. The timer starts down
count when the bit EN_TMR (Enable Timer) of
zero and EN_TMR=1, the TMR_I is set to 1. When the
counter down counts to zero, a new initial value will be
re-loaded into the timer counter.
4.2.13 Bank1.Reg5 - Timer High Byte Register (TMRH)
Bit Name Read/Write Description
Read/Write
Publication Release Date: March 1999
-61 - Revision A1
Timer High Byte Register. See Bank1.Reg4.TMRH3-0
Reserved.Reserved7-4
Power on default <7:0> = 0000,0000 binary
Bank0.Reg2. is set to 1. When the timer down counts to
-1
12
TMRL7-0
Power on default <7:0> = 0000,0000 binary
This register is defined same as in Bank0.Reg3.
Read OnlyVID7-0
Power on default <7:0> = 0001,0000 binary
W83977EF/ CTF
PRELIMINARY
4.3 Demodulation Block Diagram
Low Pass
Filter
Demodulation
Selection
Source
LP_SL<1:0>
Selection
RXDMSL<1:0>
00
01Low
Pass
BandMUX00
CIRRX
Filter
Pass
Demod.10
Filter
SamplingShifter
Block
(B.P.)
&01&
RX
MUXHold
FIFO
10
11
Baud RateSampling Clock
Generator
Publication Release Date: March 1999
-62 - Revision A1
W83977EF/ CTF
PRELIMINARY
5.0 PARALLEL PORT
5.1 Printer Interface Logic
The parallel port of the W83977EF/CTF makes possible the attachment of various devices that
accept eight bits of parallel data at standard TTL level. The W83977EF/CTF supports an IBM XT/AT
compatible parallel port (SPP), bi-directional parallel port (BPP), Enhanced Parallel Port (EPP),
Extended Capabilities Parallel Port (ECP), Extension FDD mode (EXTFDD). and Extension 2FDD
mode (EXT2FDD) on the parallel port. Refer to the configuration registers for more information on
Table 5-1 shows the pin definitions for different modes of the parallel port.
TABLE 5-1-1 PARALLEL PORT CONNECTOR AND PIN DEFINITIONS
PIN NUMBER
HOST PIN
OF
SPP EPP ECP
CONNECTOR ATTRIBUTE
W83977EF/CTF
2
1OnSTBnWrite
2
I
2
InWait
2
I
2
ISLCT
2
O
12
InERR
12
OnINITnINIT
12
O
Publication Release Date: March 1999
-63 - Revision A1
3. For more information, refer to the IEEE 1284 standard.
2. High Speed Mode
1. Compatible Mode
n
Frequently asked questions
What makes Elite.Parts unique?

What kind of warranty will the W83977EF-AW have?

Which carriers does Elite.Parts work with?

Will Elite.Parts sell to me even though I live outside the USA?

I have a preferred payment method. Will Elite.Parts accept it?

What they say about us
FANTASTIC RESOURCE
One of our top priorities is maintaining our business with precision, and we are constantly looking for affiliates that can help us achieve our goal. With the aid of GID Industrial, our obsolete product management has never been more efficient. They have been a great resource to our company, and have quickly become a go-to supplier on our list!
Bucher Emhart Glass
EXCELLENT SERVICE
With our strict fundamentals and high expectations, we were surprised when we came across GID Industrial and their competitive pricing. When we approached them with our issue, they were incredibly confident in being able to provide us with a seamless solution at the best price for us. GID Industrial quickly understood our needs and provided us with excellent service, as well as fully tested product to ensure what we received would be the right fit for our company.
Fuji
HARD TO FIND A BETTER PROVIDER
Our company provides services to aid in the manufacture of technological products, such as semiconductors and flat panel displays, and often searching for distributors of obsolete product we require can waste time and money. Finding GID Industrial proved to be a great asset to our company, with cost effective solutions and superior knowledge on all of their materials, it’d be hard to find a better provider of obsolete or hard to find products.
Applied Materials
CONSISTENTLY DELIVERS QUALITY SOLUTIONS
Over the years, the equipment used in our company becomes discontinued, but they’re still of great use to us and our customers. Once these products are no longer available through the manufacturer, finding a reliable, quick supplier is a necessity, and luckily for us, GID Industrial has provided the most trustworthy, quality solutions to our obsolete component needs.
Nidec Vamco
TERRIFIC RESOURCE
This company has been a terrific help to us (I work for Trican Well Service) in sourcing the Micron Ram Memory we needed for our Siemens computers. Great service! And great pricing! I know when the product is shipping and when it will arrive, all the way through the ordering process.
Trican Well Service
GO TO SOURCE
When I can't find an obsolete part, I first call GID and they'll come up with my parts every time. Great customer service and follow up as well. Scott emails me from time to time to touch base and see if we're having trouble finding something.....which is often with our 25 yr old equipment.
ConAgra Foods