WINBOND I/O W83877TF/W83877TG
Release Date: May 2006 Version: 0.7
W83877TF/W83877TG
W83877TF Datasheet Revision History
PAGES DATES VERSION VERSION ON WEB MAIN CONTENTS
1 2 3
n.a. n.a. 1, 8, 9, 63, 65, 78, 80,104107, 116, 118, 119, 133 n.a.
03/20/97 05/20/97 03/20/98
0.50 0.60 0.61
Not published, for internal reference only. First published. Typo correction and data calibrated
4 5 6 7 8 9 10
05/04/06
0.7
Add the lead-free parts W83877TG
-I-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
Table of Contents1. 2. 3. 4. GENERAL DESCRIPTION .............................................................................................................. 1 FEATURES ...................................................................................................................................... 2 PIN CONFIGURATION .................................................................................................................... 4 PIN DESCRIPTION......................................................................................................................... 5 4.1 4.2 4.3 4.4 5. 5.1 Host Interface.......................................................................................................................... 5 Serial Port Interface ................................................................................................................ 7 Multi-Mode Parallel Port.......................................................................................................... 8 FDC Interface........................................................................................................................ 13 W83877TF/TG FDC .............................................................................................................. 15
5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 AT interface ............................................................................................................................ 15 FIFO (Data) ............................................................................................................................ 15 Data Separator ....................................................................................................................... 16 Write Precompensation .......................................................................................................... 16 Perpendicular Recording Mode .............................................................................................. 16 Tape Drive.............................................................................................................................. 17 FDC Core ............................................................................................................................... 17 FDC Commands..................................................................................................................... 17 FDC Instruction Sets .............................................................................................................. 18 Status Register A (SA Register) (Read base address + 0)..................................................... 26 Status Register B (SB Register) (Read base address + 1)..................................................... 28 Digital Output Register (DO Register) (Write base address + 2) ............................................ 30 Tape Drive Register (TD Register) (Read base address + 3)................................................. 30 Main Status Register (MS Register) (Read base address + 4)............................................... 31 Data Rate Register (DR Register) (Write base address + 4) .................................................. 31 FIFO Register (R/W base address + 5) .................................................................................. 33 Digital Input Register (DI Register) (Read base address + 7)................................................. 34 Configuration Control Register (CC Register) (Write base address + 7) ................................ 36
FDC FUNCTIONAL DESCRIPTION .............................................................................................. 15
5.2
Register Descriptions ............................................................................................................ 26
5.2.1 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9
6.
UART PORT................................................................................................................................... 37 6.1 6.2 Universal Asynchronous Receiver/Transmitter (UART A, UART B) .................................... 37 Register Address................................................................................................................... 37
6.2.1 6.2.2 6.2.3 6.2.4 UART Control Register (UCR) (Read/Write) .......................................................................... 38 UART Status Register (USR) (Read/Write) ............................................................................ 39 Handshake Control Register (HCR) (Read/Write) .................................................................. 40 Handshake Status Register (HSR) (Read/Write).................................................................... 41
-II -
W83877TF/W83877TG
6.2.5 6.2.6 6.2.7 6.2.8 6.2.9 UART FIFO Control Register (UFR) (Write only).................................................................... 42 Interrupt Status Register (ISR) (Read only) ............................................................................ 43 Interrupt Control Register (ICR) (Read/Write)......................................................................... 44 Programmable Baud Generator (BLL/BHL) (Read/Write)....................................................... 44 User-defined Register (UDR) (Read/Write) ............................................................................ 45
7.
PARALLEL PORT ......................................................................................................................... 46 7.1 7.2 Printer Interface Logic ........................................................................................................... 46 Enhanced Parallel Port (EPP)............................................................................................... 48
7.2.1 7.2.2 7.2.3 7.2.4 7.2.5 7.2.6 7.2.7 7.2.8 Data Swapper......................................................................................................................... 48 Printer Status Buffer ............................................................................................................... 48 Printer Control Latch and Printer Control Swapper................................................................. 49 EPP Address Port................................................................................................................... 49 EPP Data Port 0-3 .................................................................................................................. 50 Bit Map of Parallel Port and EPP Registers............................................................................ 50 EPP Pin Descriptions ............................................................................................................. 51 EPP Operation ....................................................................................................................... 51 ECP Register and Mode Definitions ....................................................................................... 52 Data and ecpAFifo Port .......................................................................................................... 53 Device Status Register (DSR) ................................................................................................ 53 Device Control Register (DCR)............................................................................................... 54 cFifo (Parallel Port Data FIFO) Mode = 010 ........................................................................... 54 ecpDFifo (ECP Data FIFO) Mode = 011................................................................................. 54 tFifo (Test FIFO Mode) Mode = 110 ....................................................................................... 55 cnfgA (Configuration Register A) Mode = 111 ........................................................................ 55 cnfgB (Configuration Register B) Mode = 111 ........................................................................ 55 ecr (Extended Control Register) Mode = all............................................................................ 56 Bit Map of ECP Port Registers ............................................................................................... 57 ECP Pin Descriptions ............................................................................................................. 58 ECP Operation ....................................................................................................................... 59 FIFO Operation ...................................................................................................................... 59 DMA Transfers ....................................................................................................................... 60 Programmed I/O (NON-DMA) Mode....................................................................................... 60
7.3
Extended Capabilities Parallel (ECP) Port............................................................................ 52
7.3.1 7.3.2 7.3.3 7.3.4 7.3.5 7.3.6 7.3.7 7.3.8 7.3.9 7.3.10 7.3.11 7.3.12 7.3.13 7.3.14 7.3.15 7.3.16
7.4 7.5 8. 9.
Extension FDD Mode (EXTFDD) .......................................................................................... 60 Extension 2FDD Mode (EXT2FDD) ...................................................................................... 60
PLUG AND PLAY CONFIGURATION ........................................................................................... 61 ACPI /LEGACY FEATURE AND AUTO POWER MANAGEMENT ............................................... 61 9.1 9.2 ACPI/Legacy power management ........................................................................................ 61 Device(auto) power management......................................................................................... 61 Publication Release Date: May 2006 Revision 0.7
-III-
W83877TF/W83877TG
10. SERIAL IRQ ................................................................................................................................... 62 10.1 Start Frame ........................................................................................................................... 63 10.2 IRQ/Data Frame.................................................................................................................... 63 10.3 Stop Frame ........................................................................................................................... 64 10.4 Reset and Initialization .......................................................................................................... 64 11. EXTENDED FUNCTION REGISTERS .......................................................................................... 65 11.1 Extended Functions Enable Registers (EFERs)................................................................... 65 11.2 Extended Function Index Registers (EFIRs), Extended Function Data Registers(EFDRs) . 66
11.2.1 11.2.2 11.2.3 11.2.4 11.2.5 11.2.6 11.2.7 11.2.8 11.2.9 Configuration Register 0 (CR0), default = 00H ....................................................................... 66 Configuration Register 1 (CR1), default = 00H ....................................................................... 67 Configuration Register 2 (CR2), default = 00H ....................................................................... 68 Configuration Register 3 (CR3), default = 30H ....................................................................... 68 Configuration Register 4 (CR4), default = 00H ....................................................................... 69 Configuration Register 5 (CR5), default = 00H ....................................................................... 70 Configuration Register 6 (CR6), default = 00H ....................................................................... 70 Configuration Register 7 (CR7), default = 00H ....................................................................... 72 Configuration Register 8 (CR8), default = 00H ....................................................................... 73
11.2.10 Configuration Register 9 (CR9), default = 0CH ...................................................................... 74 11.2.11 Configuration Register A (CR0A), default = 00H .................................................................... 75 11.2.12 Configuration Register B (CR0B), default = 0CH.................................................................... 75 11.2.13 Configuration Register C (CR0C), default = 28H .................................................................... 76 11.2.14 Configuration Register D (CR0D), default = A3H ................................................................... 78 11.2.15 Configuration Register E (CR0E), Configuration Register F (CR0F) ...................................... 79 11.2.16 Configuration Register 10 (CR10), default = 00H ................................................................... 80 11.2.17 Configuration Register 11 (CR11), default = 00H ................................................................... 80 11.2.18 Configuration Register 12 (CR12), default = 00H ................................................................... 81 11.2.19 Configuration Register 13 (CR13), default = 00H ................................................................... 81 11.2.20 Configuration Register 14 (CR14), default = 00H ................................................................... 82 11.2.21 Configuration Register 15 (CR15), default = 00H ................................................................... 83 11.2.22 Configuration Register 16 (CR16), default = 04H ................................................................... 85 11.2.23 Configuration Register 17 (CR17), default = 00H ................................................................... 86 11.2.24 Configuration Register 18 (CR18), default=00H ..................................................................... 87 11.2.25 Configuration Register 19 (CR19), default=00H ..................................................................... 88 11.2.26 Configuration Register 20 (CR20) .......................................................................................... 89 11.2.27 Configuration Register 23 (CR23) .......................................................................................... 89 11.2.28 Configuration Register 24 (CR24) .......................................................................................... 90 11.2.29 Configuration Register 25 (CR25) .......................................................................................... 90 11.2.30 Configuration Register 26 (CR26) .......................................................................................... 91 11.2.31 Configuration Register 27 (CR27) .......................................................................................... 91 11.2.32 Configuration Register 28 (CR28) .......................................................................................... 93
-IV -
W83877TF/W83877TG
11.2.33 Configuration Register 29 (CR29) .......................................................................................... 94 11.2.34 Configuration Register 2C (CR2C), default=00H .................................................................... 94 11.2.35 Configuration Register 2D (CR2D), default=00H .................................................................... 95 11.2.36 Configuration Register 31 (CR31), default=00H ..................................................................... 96 11.2.37 Configuration Register 32 (CR32), default=00H ..................................................................... 98 11.2.38 Configuration Register 33 (CR33), default=00H ..................................................................... 99 11.2.39 Configuration Register 34 (CR34), default=00H ..................................................................... 99 11.2.40 Configuration Register 35 (CR35), default=00H ................................................................... 100 11.2.41 Configuration Register 36 (CR36), default=00H ................................................................... 100 11.2.42 Configuration Register 37 (CR37), default=00H ................................................................... 101 11.2.43 Configuration Register 38 (CR38), default=00H ................................................................... 101 11.2.44 Configuration Register (CR39), default=00H ........................................................................ 102 11.2.45 Configuration Register 3A (CR3A), default=00H .................................................................. 102 11.2.46 Configuration Register 3B (CR3B), default=00H .................................................................. 103 11.2.47 Configuration Register 40 (CR40), default=00H ................................................................... 103 11.2.48 Configuration Register 41 (CR41), default=00H ................................................................... 104 11.2.49 Configuration Register 42 (CR42), default=N/A.................................................................... 105 11.2.50 Configuration Register 43 (CR43), default=00H ................................................................... 106 11.2.51 Configuration Register 44 (CR44), default=00H ................................................................... 106 11.2.52 Configuration Register 45 (CR45), default=00H ................................................................... 106 11.2.53 Bit Map Configuration Registers ........................................................................................... 107
11.3 ACPI Registers Features .................................................................................................... 109 11.4 ACPI Registers (ACPIRs) ................................................................................................... 111
11.4.1 11.4.2 11.4.3 11.4.4 11.4.5 11.4.6 11.4.7 11.4.8 11.4.9 Power Management 1 Status Register 1 (PM1STS1) .......................................................... 112 Power Management 1 Status Register 2 (PM1STS2) .......................................................... 112 Power Management 1 Enable Register 1(PM1EN1)............................................................. 113 Power Management 1 Enable Register 2 (PM1EN2)............................................................ 113 Power Management 1 Control Register 1 (PM1CTL1) ......................................................... 114 Power Management 1 Control Register 2 (PM1CTL2) ......................................................... 115 Power Management 1 Control Register 3 (PM1CTL3) ......................................................... 115 Power Management 1 Control Register 4 (PM1CTL4) ......................................................... 116 Power Management 1 Timer 1 (PM1TMR1) ......................................................................... 116
11.4.10 Power Management 1 Timer 2 (PM1TMR2) ......................................................................... 117 11.4.11 Power Management 1 Timer 3 (PM1TMR3) ......................................................................... 117 11.4.12 Power Management 1 Timer 4 (PM1TMR4) ......................................................................... 118 11.4.13 General Purpose Event 0 Status Register 1 (GP0STS1) ..................................................... 118 11.4.14 General Purpose Event 0 Status Register 2 (GP0STS2) ..................................................... 119 11.4.15 General Purpose Event 0 Enable Register 1 (GP0EN1) ...................................................... 119 11.4.16 General Purpose Event 0 Enable Register 2 (GP0EN2) ...................................................... 120 11.4.17 General Purpose Event 1 Status Register 1 (GP1STS1) ..................................................... 121
-V-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
11.4.18 General Purpose Event 1 Status Register 2 (GP1STS2) ..................................................... 121 11.4.19 General Purpose Event 1 Enable Register 1 (GP1EN1) ...................................................... 122 11.4.20 General Purpose Event 1 Enable Register 2 (GP1EN2) ...................................................... 122 11.4.21 Bit Map Configuration Registers ........................................................................................... 123
12. SPECIFICATIONS ....................................................................................................................... 124 12.1 Absolute Maximum Ratings ................................................................................................ 124 12.2 DC CHARACTERISTICS .................................................................................................... 124 12.3 AC Characteristics .............................................................................................................. 126
12.3.1 12.3.2 12.3.3 12.3.4 12.3.5 12.3.6 12.3.7 12.3.8 FDC: Data rate = 1 MB/500 KB/300 KB/250 KB/sec. ........................................................... 126 UART/Parallel Port ............................................................................................................... 128 Parallel Port Mode Parameters............................................................................................. 128 EPP Data or Address Read Cycle Timing Parameters ......................................................... 129 EPP Data or Address Write Cycle Timing Parameters ......................................................... 130 Parallel Port FIFO Timing Parameters.................................................................................. 131 ECP Parallel Port Forward Timing Parameters .................................................................... 131 ECP Parallel Port Reverse Timing Parameters .................................................................... 131
13. TIMING WAVEFORMS ................................................................................................................ 132 13.1 FDC ..................................................................................................................................... 132 13.2 UART/Parallel ..................................................................................................................... 133
13.2.1 13.3.1 13.3.2 13.3.3 13.3.4 13.3.5 13.3.6 13.3.7 13.3.8 Modem Control Timing ......................................................................................................... 134 Parallel Port Timing .............................................................................................................. 135 EPP Data or Address Read Cycle (EPP Version 1.9) .......................................................... 136 EPP Data or Address Write Cycle (EPP Version 1.9)........................................................... 137 EPP Data or Address Read Cycle (EPP Version 1.7) .......................................................... 138 EPP Data or Address Write Cycle (EPP Version 1.7)........................................................... 139 Parallel Port FIFO Timing ..................................................................................................... 139 ECP Parallel Port Forward Timing........................................................................................ 140 ECP Parallel Port Reverse Timing........................................................................................ 140
13.3 Parallel Port......................................................................................................................... 135
14. APPLICATION CIRCUITS ........................................................................................................... 141 14.1 Parallel Port Extension FDD ............................................................................................... 141 14.2 Parallel Port Extension 2FDD ............................................................................................. 142 14.3 Four FDD Mode .................................................................................................................. 142 15. ORDERING INFORMATION........................................................................................................ 143 16. HOW TO READ THE TOP MARKING......................................................................................... 144 17. PACKAGE DIMENSION .............................................................................................................. 145
-VI -
W83877TF/W83877TG
1. GENERAL DESCRIPTION
W83877TF/TG is an enhanced version from Winbond's most popular I/O chip W83877F --- which integrates the disk drive adapter, serial port (UART), IrDA 1.0 SIR, parallel port, configurable Plugand-Play registers for the whole chip --- plus additional powerful features: ACPI / legacy power management, serial IRQ, and IRQ sharing. The disk drive adapter functions of W83877TF/TG include a floppy disk 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, interrupt and DMA logic. The wide range of functions integrated into W83877TF/TG greatly reduces the number of components required for interfacing with floppy disk drives. W83877TF/TG 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 Mb/S, and 2 Mb/S. W83877TF/TG 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 system. One of the UARTs support infrared (IR) IrDA1.0. Both UARTs provide legacy speed with baud rate up to 115.2K and provide advanced speed with baud rate up to 230k, 460k, and 921k bps which support higher speed Modems. W83877TF/TG 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. This function is especially valuable for notebook computer applications. Winbond W83877TF/TG provides functions that comply with ACPI (Advanced Configuration and Power Interface), which includes support of legacy and ACPI power management through SMI or SCI function pins. One 24-bits power management timer is implemented with the carry notify interrupt. W83877TF/TG also has auto power management mode to reduce the power consumption. The serial IRQ for PCI architecture is supported, ISA IRQs (IRQ1~IRQ15) can be cascaded into one IRQSER pin. W83877TF/TG also features ISA bus IRQ sharing and allows two or more devices to share the same IRQ pin.
TM PC97 Hardware Design Guide. IRQs, W83877TF/TG is made to fully comply with Microsoft DMAs, and I/O space resources are flexible to adjust to meet ISA PnP requirement. Moreover W83877TF/TG is made to meet the specification of PC97's requirement in the power management: ACPI and DPM (Device Power Management).
The configuration registers support mode selection, function enable/disable, and power down function selection. Furthermore, the configurable PnP registers are compatible with the Plug-and-Play feature demand of Windows 95TM , which makes system resource allocation more efficient than ever. Another benefit of W83877TF/TG is that it is pin-to-pin compatible to W83877F, and all of the 100-pin Winbond I/O IC family. Thus makes the design of applications very convenient and flexible.
-1-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
2. FEATURES
General:
Plug & Play 1.0A Compliant Support 8 IRQs (ISA), or 15 IRQs (Serial IRQ), 3 DMA channels, and 480 re-locatable address Capable of ISA Bus IRQ Sharing Comply with Microsoft PC 97 Hardware Design Guide Support DPM (Device Power Management), ACPI Report ACPI status interrupt by SCI signal from SCI pin, serial IRQ IRQSER pin, or IRQ A~H pins Single 24MHz/48MHZ clock input
FDC:
Compatible with IBM PC AT disk drive systems Variable write pre-compensation with track selectable capability DMA enable logic Supports floppy disk drives and tape drives Detects all overrun and underrun conditions Built-in address mark detection circuit to simplify the read electronics FDD anti-virus functions with software write protect and FDD write enable signal (write data signalwas forced to be inactive) Supports up to four 3.5-inch or 5.25-inch floppy disk drives Completely compatible with industry standard 82077 360K/720K/1.2M/1.44M/2.88M format; 250K, 300K, 500K, 1M, 2M bps data transfer rate Supports vertical recording format Support 3-mode FDD, and its Win95 driver 16-byte data FIFOs
UART:
Two high-speed 16550 compatible UARTs with 16-byte send/receive FIFOs MIDI compatible Fully programmable serial-interface characteristics: − − − − − 5, 6, 7 or 8-bit characters Even, odd or no parity bit generation/detection 1, 1.5 or 2 stop bits generation Loop-back controls for communications link fault isolation Break, parity, overrun, framing error simulation -2 -
Internal diagnostic capabilities:
W83877TF/W83877TG
Programmable baud generator allows division of 1.8461 MHz and 24 MHz by 1 to (216-1) Maximum baud rate is up to 921k bps for 14.768MHz and 1.5M bps for 24MHz
Infrared:
Supports IrDA version 1.0 SIR protocol with maximum baud rate up to 115.2K bps Supports SHARP ASK-IR protocol with maximum baud rate up to 57600 bps
Parallel Port:
Compatible with IBM parallel port Supports PS/2 compatible bi-directional parallel port Supports Enhanced Parallel Port (EPP) − Compatible with IEEE 1284 specification Supports Extended Capabilities Port (ECP) − Compatible with IEEE 1284 specification Extension FDD mode supports disk drive B; and Extension 2FDD mode supports disk drives A and B through parallel port Enhanced printer port back-drive current protection
Others:
Programmable configuration settings Immediate or automatic power-down mode for the power management All hardware power-on settings have internal pull-up or pull-down resistors as default value Dedicated Infrared Communication Pins
Package:
100-pin QFP (W83877TF/TG), and also 100-pin LQFP (W83877TD/TG)
-3-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
3. PIN CONFIGURATION
/ D / S T K //R M M AN C A O O KWH 1 B A 0PG0
X X X X X
/ R D // A V GI I A T D DD D DD D DNO OE A A AA AD AA AA A A7 6 5 4 3 2 1 0 DWRN9 8 7 6 5 D 4 3 2 1 0
X X X X X X X X X X X X X X X X
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51
INDEX STEP DSA DSB WE WD RWC HEAD DIR GND IRQ_H IRQ_B IRQIN IRRX2 IRTX2 IRQ_A TC DACK_B IRQ_F DRQ_B
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X
50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31
X
X
RIB DCDB DSRB CTSB DTRB RTSB IRQ_C SOUTB SINB DACK_A GND DRQ_A SOUTA IRQ_D RTSA DTRA CTSA DSRA DCDA RIA
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
I// RCS QS C I G
D R Q | C
I MC/ PP PP PP V PP/ OR L S D D D D D D D D D D KM0 1 2 3 4 5 D6 7 A C II H C N R K D | Y C
/ S T B
/ A F D
/ I N I T
/ S L I N
I R Q | E
BG/ PS/ S UNAEL EI SDC CRN Y K TRA
-4 -
W83877TF/W83877TG
4. PIN DESCRIPTION
(Note: Refer to section 12.2 DC CHARACTERISTICS for details.) I/O8tc - TTL level output pin with 8 mA source-sink capability; CMOS level input voltage I/O12t - TTL level bi-directional pin with 12 mA source-sink capability I/O24t - TTL level bi-directional pin with 24 mA source-sink capability OUT8t - TTL level output pin with 8 mA source-sink capability OUT12t - TTL level output pin with 12 mA source-sink capability OD12 - Open-drain output pin with 12 mA sink capability OD24 - Open-drain output pin with 24 mA sink capability INt INc - TTL level input pin - CMOS level input pin INts - TTL level Schmitt-triggered input pin INcs - CMOS level Schmitt-triggered input pin
4.1
Host Interface
PIN I/O FUNCTION
SYMBOL
D0−D7 A0−A9 A10 IOCHRDY MR
CS
66-73 51-55 57-61 75 5 6 2 62 63 64 100 98 4 18 97 93
I/O24t INt INt OD24 INts INt INt INts INts OUT12t INts OUT12t INts INts INt
System data bus bits 0-7. System address bus bits 0-9. In ECP Mode, this pin is the A10 address input. In EPP Mode, this pin is the IO Channel Ready output to extend the host read/write cycle. Master Reset. Active high. MR is low during normal operations. Active low chip select signal. System address bus enable. CPU I/O read signal. CPU I/O write signal. DMA request signal B. DMA Acknowledge signal B. DMA request signal C. DMA Acknowledge signal C. Terminal Count. When active, this pin indicates termination of a DMA transfer. Interrupt request input for IRQ routing ; For example , the IRQ12 can be routed into this port when PS/2 mouse is not installed.
AEN
IOR
IOW
DRQ_B
DACK_B
DRQ_C
DACK_ C
TC IRQIN
-5-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
Host Interface, continued
SYMBOL
PIN
I/O
FUNCTION
IRQ_ A
96
OUT12t I/O12t
Interrupt request signal A, when CR16 Bit 5 (G1IQSEL) = 0. General Purpose I/O port 1, when CR16 Bit 5 (G1IQSEL) = 1. Interrupt request signal B, when CR16 Bit 4 (G0IQSEL) = 0. General Purpose I/O port 0, when CR16 Bit 4 (G0IQSEL) = 1. Interrupt request signal C. Interrupt request signal D. Interrupt request signal E. Interrupt request signal F. Interrupt request signal G. PCI clock input, when the serial IRQ function is selected. Interrupt request signal H. Serial interrupt input/output, when the Serial IRQ mode is selected by setting IRQMODS bit in CR31 register. For the ACPI power management, SCI is active low 200ns for the power management events, which generate an SCI interrupt in the ACPI mode. 24MHz/48MHZ clock input. CLKINSEL bit in CR2C register should be correctly reset/set according to the input frequency. For the legacy power management, the SMI is active low 200ns for the power management events, which generate an SMI interrupt in the legacy power management mode. This SMI output is enabled by setting the SMI_EN bit in CR3A register.
GIO1
IRQ_ B
92
OUT12t I/O12t
GIO0 IRQ_C IRQ_D IRQ_E IRQ_F IRQ_G PCICLK IRQ_H SERIRQ
SCI
44 37 23 99 1 91
OUT12t OUT12t OUT12t OUT12t OUT12t INt OUT12t I/O12t
3
OD12
CLKIN
SMI
7 8
INt OD12
DACK_ A DRQ_A
41 39
INts OUT12t
DMA acknowledge signal A. DMA request signal A.
-6 -
W83877TF/W83877TG
4.2 Serial Port Interface
PIN I/O FUNCTION
SYMBOL
SINA SINB/IRRX1
RIA RIB DCDA DCDB DSRA DSRB CTSA CTSB DTRA
30 42 31 50 32 49 33 48 34 47 35
INt INt INt INt
Serial Input. It is used to receive serial data from the communication link. Ring Indicator. An active low indicates that a ring signal is being received by the modem or data set. Data Carrier Detect. An active low indicates the modem or data set has detected a data carrier. Data Set Ready. An active low indicates the modem or data set is ready to establish a communication link and transfer data to the UART. Clear To Send. It is the modem control input. The function of these pins can be tested by reading Bit 4 of the handshake status register.
INt
I/O8tc
UART A Data Terminal Ready. An active low 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 PHEFRAS, which provides the power-on value for CR16 bit 0 (HEFRAS). While it is at Low, it selects the EFER (Extended Functions Enable Register) to be 250H. While it is at High, it selects the EFER to be 3F0H. A 4.7 kΩ is recommended when intends to pull up at power-on reset.
PHEFRAS
RTSA
36
I/O8tc
UART A Request To Send. An active low informs the modem or data set that the controller is ready to send data. During power-on reset, this pin is pulled up internally and is defined as PPNPCVS, which provides the power-on value for CR16 bit 2 (PNPCVS). While it is at Low, all PnP-related registers (CR20 to CR29) are all set to be 0s. While it is at High, all PnP-related registers (CR20 to CR 29) are set to default values. A 4.7 kΩ is recommended when intends to pull down at power-on reset.
PPNPCVS
SOUTA PENFDC
38
I/O8tc
UART A Serial Output. It is used to transmit serial data out to the communication link. During power-on reset, this pin is pulled up internally and used to enable or disable the FDC. While it is at Low, FDC PnP-related register (CR20) is set to be 0, i.e. FDC is disabled. While it is at High, CR20 is set to the default value, i.e. FDC is enabled. A 4.7 kΩ is recommended when intends to pull down at power-on reset.
-7-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
Serial Port Interface, continued
SYMBOL
PIN
I/O
FUNCTION
SOUTB IRTX1 PIRQMDS
43
I/O8tc
UART B Serial Output. It is used to transmit serial data out to the communication link. During power-on reset, this pin is pulled down internally and is defined as PIRQMDS to select the IRQ mode. While it is at Low, IRQ pins can be set to Normal mode or IRQ sharing mode which decided by CR18. If it is at High, the Serial IRQ mode is selected. A 4.7 kΩ is recommended when intending to pull up at power-on reset.
RTSB
45
I/O8tc
UART B Request To Send. An active low informs the modem or data set that the controller is ready to send data. During power-on reset, this pin is pulled down internally and is defined as PGOIQSEL, which provides the power-on value for CR16 bit 4 and bit 5 (G0IQSEL & G1IQSEL). While it is at Low, pins 92 and 96 function as IRQ pins IRQ_B,IRQ_A respectively. While it is at high, pins 92 and 96 function as General Purpose I/O pins GIO0,GIO1 respectively. A 4.7 kΩ is recommended when intends to pull up at power-on reset.
PGOIQSEL
DTRB
46 95 94
I/O8tc OUT12t INt
UART B Data Terminal Ready. An active low informs the modem or data set that the controller is ready to communicate. Functions as a InfraRed data transmission line. Functions as a InfraRed data receiving line.
IRTX2 IRRX2
4.3
Multi-Mode Parallel Port
The following pins have six functions, which are controlled by bits PRTMOD0, PRTMOD1, and PRTMOD2 of CR0 and CR9 (refer to section 11.0, Extended Functions).
SYMBOL PIN I/O FUNCTION
BUSY
24
INt
PRINTER MODE: BUSY An active high input indicates that the printer is not ready to receive data. This pin is pulled high internally. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: MOB2 This pin is for Extension FDD B; the function of this pin is the same as that of the MOB pin.
OD12
EXTENSION 2FDD MODE: MOB2 This pin is for Extension FDD A and B; the function of this pin is the same as that of the MOB pin.
-8 -
W83877TF/W83877TG
Multi-Mode Parallel Port, continued
SYMBOL
PIN
I/O
FUNCTION
ACK
26
INt
PRINTER MODE: ACK 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 the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: DSB2 This pin is for the Extension FDD B; its functions are the same as those of the DSB pin.
OD12
EXTENSION 2FDD MODE: DSB2 This pin is for Extension FDD A and B; the function of this pin is the same as that of the DSB pin.
PE
27
INt
PRINTER MODE: PE 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 the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: WD2 This pin is for Extension FDD B; its function is the same as that of the WD pin.
OD12
EXTENSION 2FDD MODE: WD2 This pin is for Extension FDD A and B; this function of this pin is the same as that of the WD pin.
SLCT
28
INt
PRINTER MODE: SLCT An active high input on this pin indicates that the printer is selected. This pin is pulled high internally. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: WE2 This pin is for Extension FDD B; its functions are the same as those of the WE pin.
OD12
EXTENSION 2FDD MODE: WE2 This pin is for Extension FDD A and B; this function of this pin is the same as that of the WE pin.
-9-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
Multi-Mode Parallel Port, continued
SYMBOL
PIN
I/O
FUNCTION
ERR
29
INt
PRINTER MODE: ERR An active low input on this pin indicates that the printer has encountered an error condition. This pin is pulled high internally. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: HEAD2 This pin is for Extension FDD B; its function is the same as that of the HEAD pin.
OD12
EXTENSION 2FDD MODE: HEAD2 This pin is for Extension FDD A and B; its function is the same as that of the HEAD pin.
SLIN
22
OD12
PRINTER MODE: SLIN Output line for detection of printer selection. This pin is pulled high internally. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: STEP2 This pin is for Extension FDD B; its function is the same as that of the STEP pin.
OD12
EXTENSION 2FDD MODE: STEP2 This pin is for Extension FDD A and B; its function is the same as that of the STEP pin .
INIT
21
OD12
PRINTER MODE: INIT Output line for the printer initialization. This pin is pulled high internally. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: DIR2 This pin is for Extension FDD B; its function is the same as that of the DIR pin.
OD12
EXTENSION 2FDD MODE: DIR2 This pin is for Extension FDD A and B; its function is the same as that of the DIR pin.
-10 -
W83877TF/W83877TG
Multi-Mode Parallel Port, continued
SYMBOL
PIN
I/O
FUNCTION
AFD
20
OD12
PRINTER 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 the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: RWC2 This pin is for Extension FDD B; its function is the same as that of the RWC pin.
OD12
EXTENSION 2FDD MODE: RWC2 This pin is for Extension FDD A and B; its function is the same as that of the RWC pin.
STB
19
OD12
PRINTER MODE: STB An active low output is used to latch the parallel data into the printer. This pin is pulled high internally. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
PD0 9 I/O24t
EXTENSION FDD MODE: NC pin EXTENSION 2FDD MODE: NC pin PRINTER MODE: PD0 Parallel port data bus bit 0. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
INt
EXTENSION FDD MODE: INDEX2 This pin is for Extension FDD B; the function of this pin is the same as that of the INDEX pin. This pin is pulled high internally.
INt
EXTENSION 2FDD MODE: INDEX2 This pin is for Extension FDD A and B; this function of this pin is the same as INDEX pin. This pin is pulled high internally.
PD1
10
I/O24t
PRINTER MODE: PD1 Parallel port data bus bit 1. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
INt
EXTENSION FDD MODE: TRAK02 This pin is for Extension FDD B; the function of this pin is the same as that of the TRAK0 pin. This pin is pulled high internally.
INt
EXTENSION. 2FDD MODE: TRAK02 This pin is for Extension FDD A and B; this function of this pin is the same as TRAK0 pin. This pin is pulled high internally.
-11-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
Multi-Mode Parallel Port, continued
SYMBOL
PIN
I/O
FUNCTION
PD2
11
I/O24t
PRINTER MODE: PD2 Parallel port data bus bit 2. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
INt
EXTENSION FDD MODE: WP2 This pin is for Extension FDD B; the function of this pin is the same as that of the WP pin. This pin is pulled high internally.
INt
EXTENSION. 2FDD MODE: WP2 This pin is for Extension FDD A and B; this function of this pin is the same as that of the WP pin. This pin is pulled high internally.
PD3
12
I/O24t
PRINTER MODE: PD3 Parallel port data bus bit 3. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
INt
EXTENSION FDD MODE: RDATA2 Motor on B for Extension FDD B; the function of this pin is the same as that of the RDATA pin. This pin is pulled high internally.
INt
EXTENSION 2FDD MODE: RDATA2 This pin is for Extension FDD A and B; this function of this pin is the same as that of the RDATA pin. This pin is pulled high internally.
PD4
13
I/O24t
PRINTER MODE: PD4 Parallel port data bus bit 4. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
INt
EXTENSION FDD MODE: DSKCHG2 Drive select B for Extension FDD B; the function of this pin is the same as that of DSKCHG pin. This pin is pulled high internally.
INt
EXTENSION 2FDD MODE: DSKCHG2 This pin is for Extension FDD A and B; this function of this pin is the same as that of the DSKCHG pin. This pin is pulled high internally.
PD5
14
I/O24t
PRINTER MODE: PD5 Parallel port data bus bit 5. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
I/O24t I/O24t
EXTENSION FDD MODE: This pin is a tri-state output. EXTENSION 2FDD MODE: This pin is a tri-state output.
-12 -
W83877TF/W83877TG
Multi-Mode Parallel Port, continued
SYMBOL
PIN
I/O
FUNCTION
PD6
16
I/O24t
PRINTER MODE: PD6 Parallel port data bus bit 6. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
-
EXTENSION FDD MODE: NC pin EXTENSION. 2FDD MODE: MOA2 This pin is for Extension FDD A; its function is the same as that of the MOA pin.
OD24
PD7
17
I/O24t
PRINTER MODE: PD7 Parallel port data bus bit 7. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD24
EXTENSION FDD MODE: NC pin EXTENSION 2FDD MODE: DSA2 This pin is for Extension FDD A; its function is the same as that of the DSA pin.
4.4
WE DIR
FDC Interface
PIN I/O FUNCTION
SYMBOL
85 89
OD24 OD24
Write enable. An open drain output. Direction of the head step motor. An open drain output. Logic 1 = outward motion Logic 0 = inward motion Head select. This open drain output determines which disk drive head is active. Logic 1 = side 0 Logic 0 = side 1 Reduced write current. This signal can be used on two-speed disk drives to select the transfer rate. An open drain output. Logic 0 = 250 Kb/s Logic 1 = 500 Kb/s When bit 5 of CR9 (EN3MODE) is set to high, the three-mode FDD function is enabled, and the pin will have a different definition. Refer to the EN3MODE bit in CR9. Write data. This logic low open drain writes precompensation serial data to the selected FDD. An open drain output. Step output pulses. This active low open drain output produces a pulse to move the head to another track.
HEAD
88
OD24
RWC
87
OD24
WD
86 82
OD24 OD24
STEP
-13-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
FDC Interface, continued
SYMBOL
PIN
I/O
FUNCTION
INDEX
81
INcs
This schmitt input from the disk drive is active low when the head is positioned over the beginning of a track marked by an index hole. This input pin is pulled up internally by an approximately 1K ohm resistor. The resistor can be disabled by bit 4 of CR6 (FIPURDWN). Track 0. This schmitt input from the disk drive is active low when the head is positioned over the outermost track. This input pin is pulled up internally by an approximately 1K ohm resistor. The resistor can be disabled by bit 4 of CR6 (FIPURDWN). Write protected. This active low schmitt input from the disk drive indicates that the diskette is write-protected. This input pin is pulled up internally by an approximately 1K ohm resistor. The resistor can be disabled by bit 4 of CR6 (FIPURDWN). The read data input signal from the FDD. This input pin is pulled up internally by an approximately 1K ohm resistor. The resistor can be disabled by bit 4 of CR6 (FIPURDWN). Diskette change. This signal is active low at power on and whenever the diskette is removed. This input pin is pulled up internally by an approximately 1K ohm resistor. The resistor can be disabled by bit 4 of CR6 (FIPURDWN). Motor A On. When set to 0, this pin enables disk drive 0. This is an open drain output. Motor B On. When set to 0, this pin enables disk drive 1. This is an open drain output. Drive Select A. When set to 0, this pin enables disk drive A. This is an open drain output. Drive Select B. When set to 0, this pin enables disk drive B. This is an open drain output. +5 power supply for the digital circuitry. Ground.
TRAK0
78
INcs
WP
77
INcs
RDATA
74
INcs
DSKCHG
76
INcs
MOA MOB DSA DSB
79 80 83 84 15, 56 25, 40 65, 90
OD24 OD24 OD24 OD24
VDD GND
-14 -
W83877TF/W83877TG
5. FDC FUNCTIONAL DESCRIPTION
5.1 W83877TF/TG FDC
The floppy disk controller of W83877TF/TG 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 digital data separator supports up to data rate 1 M bits/sec. (2 M bits/sec for fast tape drive) The FDC includes the following blocks: AT interface, Precompensation, Data Rate Selection, Digital Data Separator, FIFO, and FDC Core.
5.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 modes. The PS/2 register sets are a superset of the registers found in a PC/AT.
5.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 and DIO bits in the Main Status Register. 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: THRESHOLD × (1/Data Rate) *8 - 1.5 μS = DELAY
FIFO THRESHOLD MAXIMUM DELAY TO SERVICING AT 500K BPS
Data Rate 1 Byte 2 Byte 8 Byte 15 Byte
FIFO THRESHOLD
1 × 16 μS - 1.5 μS = 14.5 μS 2 × 16 μS - 1.5 μS = 30.5 μS 8 × 16 μS - 1.5 μS = 6.5 μS 15 × 16 μS - 1.5 μS = 238.5 μS
MAXIMUM DELAY TO SERVICING AT 1M BPS
Data Rate 1 Byte 2 Byte 8 Byte 15 Byte 1 × 8 μS - 1.5 μS = 6.5 μS 2 × 8 μS - 1.5 μS = 14.5 μS 8 × 8 μS - 1.5 μS = 62.5 μS 15 × 8 μS - 1.5 μS = 118.5 μS
-15-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
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 remove the remaining data so that the result phase may be entered. 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 addresses need not be valid. Note that if the DMA controller is programmed to function in verify mode a pseudo read is performed by the FDC based only on DACK . 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 operation is performed by using the new VERIFY command. No DMA operation is needed.
5.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 conversion logic separates the read data into clock and data bytes. 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 speed. A digital integrator is used to keep track of the speed changes in the input data stream.
5.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.
5.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 scheme 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 FIFO eases the host interface bottleneck due to the speed of data transfer to or from the disk.
-16 -
W83877TF/W83877TG
5.1.6 Tape Drive
The W83877TF/TG supports standard tape drives (1 Mbps, 500 Kbps, 250 Kbps) and new fast tape drive (2M bps).
5.1.7
FDC Core
The W83877TF/TG 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 microprocessor. Each command consists of three phases: command, execution, and result. 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 to the microprocessor.
5.1.8
FDC Commands
Command Symbol Descriptions: C: Cylinder number 0 - 256 D: Data Pattern DIR: Step Direction DIR = 0, step out DIR = 1, step in DS0: Disk Drive Select 0 DS1: Disk Drive Select 1 DTL: Data Length EC: Enable Count EOT: End of Track EFIFO: Enable FIFO EIS: Enable Implied Seek EOT: End of track FIFOTHR: FIFO Threshold GAP: Gap length selection GPL: Gap Length H: Head number HDS: Head number select HLT: Head Load Time HUT: Head Unload Time LOCK: Lock EFIFO, FIFOTHR, PTRTRK bits prevent affected by software reset MFM: MFM or FM Mode
Publication Release Date: May 2006 Revision 0.7
-17-
W83877TF/W83877TG
MT: N: NCN: ND: OW: PCN: POLL: PRETRK: R: RCN: R/W: SC: SK: SRT: ST0: ST1: ST2: ST3: WG: Multitrack The number of data bytes written in a sector New Cylinder Number Non-DMA Mode Overwritten Present Cylinder Number Polling Disable Precompensation Start Track Number Record Relative Cylinder Number Read/Write Sector/per cylinder Skip deleted data address mark Step Rate Time Status Register 0 Status Register 1 Status Register 2 Status Register 3 Write gate alters timing of WE
5.1.9
FDC Instruction Sets
R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
(1) Read Data
PHASE
Command
W W W W W W W W W
MT
0
MFM
0
SK
0
0
0
0
0
1
HDS
1
DS1
0
DS0
Command codes Sector ID information prior to command execution
---------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------------------------- EOT ------------------------------------------ GPL ------------------------------------------ DTL -----------------------
Execution Result R R R R R R R -------------------- ST0 ------------------------------------------ ST1 ------------------------------------------ ST2 -------------------------------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------
Data transfer between the FDD and system Status information after command execution Sector ID information after command execution
-18 -
W83877TF/W83877TG
(2) Read Deleted Data
PHASE R/W D7 D6 D5 D4 D3 D2 D1 D0 REMARKS
Command
W W W W W W W W W
MT
0
MFM
0
SK
0
0
0
1
0
1
HDS
0
DS1
0
DS0
Command codes Sector ID information prior to command execution
---------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------------------------- EOT ------------------------------------------ GPL ------------------------------------------ DTL -----------------------
Execution Result R R R R R R R -------------------- ST0 ------------------------------------------ ST1 ------------------------------------------ ST2 -------------------------------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------
Data transfer between the FDD and system Status information after command execution
Sector ID information after command execution
-19-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
(3) Read A Track
PHASE R/W D7
0 0
D6
MFM 0
D5
0 0
D4
0 0
D3
0 0
D2
0 HDS
D1
1 DS1
D0
0 DS0
REMARKS
Command
W W W W W W W W W
Command codes Sector ID information prior to command execution
---------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------------------------- EOT ------------------------------------------ GPL ------------------------------------------ DTL -----------------------
Execution
Data transfer between the FDD and system; FDD reads contents of all cylinders from index hole to EOT R R R R R R R -------------------- ST0 ------------------------------------------ ST1 ------------------------------------------ ST2 -------------------------------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N -----------------------Status information after command execution Sector ID information after command execution
Result
(4) Read ID
PHASE R/W D7
0 0
D6
MFM 0
D5
0 0
D4
0 0
D3
1 0
D2
0 HDS
D1
1 DS1
D0
0 DS0
REMARKS
Command Execution
W W
Command codes The first correct ID information on the cylinder is stored in Data Register
Result
R R R R R R R
-------------------- ST0 ------------------------------------------ ST1 ------------------------------------------ ST2 -------------------------------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------
Status information after command execution
Disk status after the command has been completed
-20 -
W83877TF/W83877TG
(5) Verify
PHASE R/W D7
MT EC
D6
MFM 0
D5
SK 0
D4
1 0
D3
0 0
D2
1 HDS
D1
1 DS1
D0
0 DS0
REMARKS
Command
W W W W W W W W
Command codes Sector ID information prior to command execution
---------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------------------------- EOT ------------------------------------------ GPL ------------------------------------------ DTL/SC -------------------
Execution Result R R R R R R R
(6) Version
PHASE R/W D7
0 1
No data transfer takes place -------------------- ST0 ------------------------------------------ ST1 ------------------------------------------ ST2 -------------------------------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N -----------------------Sector ID information after command execution Status information after command execution
D6
0 0
D5
0 0
D4
1 1
D3
0 0
D2
0 0
D1
0 0
D0
0 0
REMARKS
Command Result
W W
Command codes Enhanced controller
-21-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
(7) Write Data
PHASE R/W D7
MT 0
D6
MFM 0
D5
0 0
D4
0 0
D3
0 0
D2
1 HDS
D1
0 DS1
D0
1 DS0
REMARKS
Command
W W W W W W W W W
Command codes Sector ID information prior to Command execution
---------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------------------------- EOT ------------------------------------------ GPL ------------------------------------------ DTL -----------------------
Execution Result R R R R R R R -------------------- ST0 ------------------------------------------ ST1 ------------------------------------------ ST2 -------------------------------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------
Data transfer between the FDD and system Status information after Command execution Sector ID information after Command execution
(8) Write Deleted Data
PHASE R/W D7
MT 0
D6
MFM 0
D5
0 0
D4
0 0
D3
1 0
D2
0 HDS
D1
0 DS1
D0
1 DS0
REMARKS
Command
W W W W W W W W W
Command codes Sector ID information prior to command execution
---------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------------------------- EOT ------------------------------------------ GPL ------------------------------------------ DTL -----------------------
Execution Result R R R R R R R -------------------- ST0 ------------------------------------------ ST1 ------------------------------------------ ST2 -------------------------------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------
Data transfer between the FDD and system Status information after command execution Sector ID information after command execution
-22 -
W83877TF/W83877TG
(9) Format A Track
PHASE R/W D7
0 0
D6
MFM 0
D5
0 0
D4
0 0
D3
1 0
D2
1 HDS
D1
0 DS1
D0
1 DS0
REMARKS
Command
W W W W W W
Command codes Bytes/Sector Sectors/Cylinder Gap 3 Filler Byte Input Sector Parameters
---------------------- N -------------------------------------------- SC ------------------------------------------- GPL ------------------------------------------ D --------------------------------------------- C --------------------------------------------- H --------------------------------------------- R --------------------------------------------- N ------------------------------------------- ST0 ------------------------------------------ ST1 ------------------------------------------ ST2 -------------------------------------- Undefined ---------------------------------- Undefined ---------------------------------- Undefined ---------------------------------- Undefined -------------------
Execution for Each Sector Repeat: Result
W W W W R R R R R R R
Status information after command execution
(10) Recalibrate
PHASE R/W D7
0 0
D6
0 0
D5
0 0
D4
0 0
D3
0 0
D2
1 0
D1
1 DS1
D0
1 DS0
REMARKS
Command Execution
W W
Command codes Head retracted to Track 0 Interrupt
(11) Sense Interrupt Status
PHASE R/W D7
0
D6
0
D5
0
D4
0
D3
1
D2
0
D1
0
D0
0
REMARKS
Command Result
W R R
Command codes Status information at the end of each seek operation
---------------- ST0 ---------------------------------------- PCN -------------------------
-23-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
(12) Specify
PHASE R/W D7
0
D6
0
D5
0
D4
0
D3
0
D2
0
D1
1
D0
1
REMARKS
Command
W W W
Command codes
| ---------SRT ----------- | --------- HUT ---------- | |------------ HLT -----------------------------------| ND
(13) Seek
PHASE R/W D7
0 0
D6
0 0
D5
0 0
D4
0 0
D3
1 0
D2
1 HDS
D1
1 DS1
D0
1 DS0
REMARKS
Command
W W W
Command codes
-------------------- NCN ----------------------Head positioned over proper cylinder on diskette
Execution
R
(14) Configure
PHASE R/W D7
0 0
D6
0 0
D5
0 0
D4
1 0
D3
0 0
D2
0 0
D1
1 0
D0
1 0
REMARKS
Command
W W W W
Configure information
0
EIS EFIFO POLL | ------ FIFOTHR ----| Internal registers written
| --------------------PRETRK ---------------------- |
Execution
(15) Relative Seek
PHASE R/W D7
1 0
D6
DIR 0
D5
0 0
D4
0 0
D3
1 0
D2
1 HDS
D1
1 DS1
D0
1 DS0
REMARKS
Command
W W W
Command codes
| -------------------- RCN ---------------------------- |
-24 -
W83877TF/W83877TG
(16) Dumpreg
PHASE R/W D7
0
D6
0
D5
0
D4
0
D3
1
D2
1
D1
1
D0
0
REMARKS
Command Result
W R R R R R R R R R R
Registers placed in FIFO
-------------------- PCN-Drive 0------------------------------------ PCN-Drive 1 ----------------------------------- PCN-Drive 2------------------------------------ PCN-Drive 3 ----------------------- SRT ----------- | -------- HUT --------------------- HLT -------------------------------------| ND -------------------- SC/EOT -------------------LOCK 0 0 D3 D2 D1 D0 GAP WG EIS EFIFO POLL| --- FIFOTHR ---- |
--------------------PRETRK ---------------------
(17) Perpendicular Mode
PHASE R/W D7
0 OW
D6
0 0
D5
0 D3
D4
1 D2
D3
0 D1
D2
0 D0
D1
1 GAP
D0
0 WG
REMARKS
Command
W W
Command code
(18) Lock
PHASE R/W D7
LOCK 0
D6
0 0
D5
0 0
D4
1 LOCK
D3
0 0
D2
1 0
D1
0 0
D0
0 0
REMARKS
Command Result
W R
Command code
(19) Sense Drive Status
PHASE R/W D7
0 0
D6
0 0
D5
0 0
D4
0 0
D3
0 0
D2
1 HDS
D1
0 DS1
D0
0 DS0
REMARKS
Command Result
(20) Invalid
PHASE
W W R
Command code Status information about disk drive
---------------- ST3 -------------------------
R/W
D7
D6
D5
D4
D3
D2
D1
D0
REMARKS
Command
W
------------- Invalid Codes -----------------
Invalid codes (no operation FDC goes into standby state) ST0 = 80H
Result
R
-------------------- ST0 ----------------------
-25-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
5.2 Register Descriptions
There are several status, data, and control registers in W83877TF/TG. These registers are defined below:
ADDRESS OFFSET READ REGISTER WRITE
base address + 0 base address + 1 base address + 2 base address + 3 base address + 4 base address + 5 base address + 7
SA REGISTER SB REGISTER TD REGISTER MS REGISTER DT (FIFO) REGISTER DI REGISTER DO REGISTER TD REGISTER DR REGISTER DT (FIFO) REGISTER CC REGISTER
5.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:
7 6 5 4 3 2 1 0
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 A second drive has been installed 1 A second drive has not been installed STEP (Bit 5):
This bit indicates the complement of STEP output.
TRAK0 (Bit 4):
This bit indicates the value of TRAK0 input. HEAD (Bit 3): This bit indicates the complement of HEAD output. 0 side 0 1 side 1
-26 -
W83877TF/W83877TG
INDEX (Bit 2):
This bit indicates the value of INDEX output.
WP (Bit 1):
0 1
disk is write-protected disk is not write-protected
DIR (Bit 0) This bit indicates the direction of head movement. 0 1 outward direction inward direction
In PS/2 Model 30 mode, the bit definitions for this register are as follows:
7 6 5 4 3 2 1 0
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 side 1 1 side 0
-27-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
INDEX (Bit 2): This bit indicates the complement of INDEX output. WP (Bit 1): 0 disk is not write-protected 1 disk is write-protected
DIR (Bit 0) This bit indicates the direction of head movement. 0 inward direction 1 outward direction
5.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:
7 1 6 1 MOT EN A MOT EN B WE RDATA Toggle WDATA Toggle Drive SEL0 5 4 3 2 1 0
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): This bit changes state at every rising edge of the RDATA output pin. 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:
-28 -
W83877TF/W83877TG
7
6
5
4
3
2
1
0
DSC DSD WE F/F RDATA F/F WD F/F DSA DSB DRV2
DRV2 (Bit 7):
0 1
A second drive has been installed A second drive has not been installed
DSB (Bit 6):
This bit indicates the status of DSB output pin.
DSA (Bit 5):
This bit indicates the status of DSA output pin. WD F/F(Bit 4): This bit indicates the complement of the latched WD output pin at every rising edge of the WD output pin. 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 1
Drive D has been selected Drive D has not been selected
DSC (Bit 0):
0 1
Drive C has been selected Drive C has not been selected
-29-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
5.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 are as follows:
7 6 5 4 3 2 1-0 Drive Select: 00 select drive A 01 select drive B 10 select drive C 11 select drive D Floppy Disk Controller Reset Active low resets FDC DMA and INT Enable Active high enable DRQ/IRQ Motor Enable A. Motor A on when active high Motor Enable B. Motor B on when active high Motor Enable C. Motor C on when active high Motor Enable D. Motor D on when active high
5.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 as follows:
7 X 6 X 5 X 4 X 3 X 2 X Tape sel 0 Tape sel 1 1 0
If three mode FDD function is enabled (EN3MODE = 1 in CR9), the bit definitions are as follows:
7 6 5 4 3 2 1 0
Tape Sel 0 Tape Sel 1 Floppy boot drive 0 Floppy boot drive 1 Drive type ID0 Drive type ID1 Media ID0 Media ID1
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.
-30 -
W83877TF/W83877TG
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
0 0 1 1
0 1 0 1
None 1 2 3
5.2.5
Main Status Register (MS Register) (Read base address + 4)
The Main Status Register is used to control the flow of data between the microprocessor and the controller. The bit definitions for this register are as follows:
7 6 5 4 3 2 1 0
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. DATA INPUT/OUTPUT, (DIO). If DIO= HIGH then transfer is from Data Register to the processor. 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.
5.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.
7 6 5 0 DRATE0 DRATE1 PRECOMP0 PRECOMP1 PRECOMP2 POWER DOWN S/W RESET 4 3 2 1 0
-31-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
S/W RESET (Bit 7): This bit is the software reset bit. POWER-DOWN (Bit 6): 0 FDC in normal mode 1 FDC in power-down 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.
PRECOM 2 1 0
PRECOMPENSATION DELAY
250K - 1Mbps Default Delays 41.67 nS 83.34 nS 125.00 nS 166.67 nS 208.33 nS 250.00 nS 0.00 nS (disabled)
2 Mbps Tape drive Default Delays 20.8nS 41.17nS 62.5nS 83.3nS 104.2nS 125.00nS 0.00nS (disabled)
0 0 0 0 1 1 1 1
0 0 1 1 0 0 1 1
0 1 0 1 0 1 0 1
DATA RATE
DEFAULT PRECOMPENSATION DELAYS
250 KB/S 300 KB/S 500 KB/S 1 MB/S 2 MB/S
125 nS 125 nS 125 nS 41.67 nS 20.8 nS
DRATE1 DRATE0 (Bit 1, 0): These two bits select the data rate of the FDC and reduced write current control. 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 2MB/S data rate for Tape drive is only supported by setting 01 to DRATE1 and DRATE0 bits, as well as setting 10 to DRTA1 and DRTA0 bits which are two of the Configuration CR2D. Please refer to the function of CR2D and the data rate table for individual data rates setting.
-32 -
W83877TF/W83877TG
5.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 W83877TF/TG, 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-6 5 4 3 2 1-0
US1, US0 Drive Select: 00 Drive A selected 01 Drive B selected 10 Drive C selected 11 Drive D selected HD Head address: 1 Head selected 0 Head selected NR Not Ready: 1 Drive is not ready 0 Drive is 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: 1 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 executio
Status Register 1 (ST1)
7 6 5 4 3 2 1 0
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.
-33-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
Status Register 2 (ST2)
7 6 5 4 3 2 1 0
MD (Missing Address Mark in Data Field). 1 If the FDC cannot find a data address mark (or the address mark has been deleted) when reading data from the media 0 No error BC (Bad Cylinder) 1 Bad Cylinder 0 No error SN (Scan Not satisfied) 1 During execution of the Scan command 0 No error SH (Scan Equal Hit) 1 During execution of the Scan command, if the equal condition is satisfied 0 No error WC (Wrong Cylinder) 1 Indicates wrong Cylinder DD (Data error in the Data field) 1 If the FDC detects a CRC error in the data field 0 No error CM (Control Mark) 1 During execution of the read data or scan command 0 No error Not used. This bit is always 0
Status Register 3 (ST3)
7 6 5 4 3 2 1 0
US0 Unit Select 0 US1 Unit Select 1 HD Head Address TS Two-Side TO Track 0 RY Ready WP Write Protected FT Fault
5.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 of
DSKCHG , while other bits of the data bus remain in tri-state. Bit definitions are as follows:
7 6 5 4 3 2 1 0
xxxxxxx for hard disk controller x Reservedreadthe this register, these bits are in tri-stat During a of
DSKCHG
-34 -
W83877TF/W83877TG
In the PS/2 mode, the bit definitions are as follows:
7 6 1 5 1 4 1 3 1 HIGH DENS DRATE0 DRATE1 2 1 0
DSKCHG
DSKCHG (Bit 7): This bit indicates the complement of the DSKCHG input. Bit 6-3: These bits are always a logic 1 during a read. 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 corresponding to the individual data rates.
HIGH DENS (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 In the PS/2 Model 30 mode, the bit definitions are as follows:
7 6 0 5 0 4 0 DRATE0 DRATE1 NOPREC DMAEN 3 2 1 0
DSKCHG
DSKCHG (Bit 7): This bit indicates the status of DSKCHG input. Bit 6-4: These bits are always a logic 1 during a read. 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): These two bits select the data rate of the FDC.
-35-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
5.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 follows:
7 6 5 4 3 2 1 0
x
x
x
x
x
x
DRATE0 DRATE1
X: Reserved Bit 7-2: Reserved. These bits should be set to 0. DRATE1 DRATE0 (Bit 1, 0): These two bits select the data rate of the FDC. In the PS/2 Model 30 mode, the bit definitions are as follows:
7 X 6 X 5 X 4 X 3 X DRATE0 DRATE1 NOPREC 2 1 0
X: Reserved Bit 7-3: Reserved. These bits should be set to 0. NOPREC (Bit 2): This bit indicates no precompensation. It has no function and can be set by software. DRATE1 DRATE0 (Bit 1, 0): These two bits select the data rate of the FDC.
-36 -
W83877TF/W83877TG
6. UART PORT
6.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 (fivebit 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 16byte FIFOs for both receive and transmit mode.
6.2
Register Address
BIT NUMBER
TABLE 6-1 UART Register Bit Map
REGISTER ADDRESS BASE
RBR Receiver Buffer BDLAB = 0 Register (Read Only) 8 8 BDLAB = 0 9 BDLAB = 0 Transmitter Buffer Register (Write Only) Interrupt Control Register TBR
0
RX Data Bit 0 TX Data Bit 0 ICR
1
RX Data Bit 1 TX Data Bit 1
2
RX Data Bit 2 TX Data Bit 2 USR Interrupt Enable (EUSRI) Interrupt Status Bit (1) XMIT FIFO Reset
3
RX Data Bit 3 TX Data Bit 3 HSR Interrupt Enable (EHSRI) Interrupt Status Bit (2)** DMA Mode Select
4
RX Data Bit 4 TX Data Bit 4 0
5
RX Data Bit 5 TX Data Bit 5 0
6
RX Data Bit 6 TX Data Bit 6 0
7
RX Data Bit 7 TX Data Bit 7 0
TBR RBR Data Empty Ready Interrupt Interrupt Enable Enable (ERDRI) (ETBREI) "0" if Interrupt Pending FIFO Enable Interrupt Status Bit (0) RCVR FIFO Reset
A
Interrupt Status Register (Read Only)
ISR
0
0
FIFOs Enabled **
FIFOs Enabled ** RX Interrupt Active Level (MSB) Baud rate Divisor Latch Access Bit (BDLAB) 0
A
UART FIFO UFR Control Register (Write Only) UART Control Register UCR
Reserved Reversed
RX Interrupt Active Level (LSB) Set Silence Enable (SSE) 0
B
Data Length Select Bit 0 (DLS0) Data Terminal Ready (DTR)
Data Length Select Bit 1 (DLS1) Request to Send (RTS)
Multiple Stop Bits Enable (MSBE) Loopback RI Input
Parity Bit Enable (PBE) IRQ Enable
Even Parity Enable (EPE) Internal Loopback Enable
Parity Bit Fixed Enable PBFE) 0
C
Handshake Control Register
HCR
-37-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
Register Address, continued.
BIT NUMBER REGISTER ADDRESS BASE
D UART Status Register Handshake Status Register User Defined Register Baudrate Divisor Latch Low Baudrate Divisor Latch High USR
0
RBR Data Ready (RDR) HSR CTS Toggling (TCTS) UDR Bit 0
1
Overrun Error (OER) DSR Toggling (TDSR) Bit 1
2
Parity Bit Error (PBER) RI Falling Edge (FERI) Bit 2
3
No Stop Bit Error (NSER) DCD Toggling (TDCD) Bit 3
4
Silent Byte Detected (SBD) Clear to Send (CTS) Bit 4
5
TBR Empty (TBRE) Data Set Ready (DSR) Bit 5
6
TSR Empty (TSRE) Ring Indicator (RI) Bit 6
7
RX FIFO Error Indication (RFEI) ** Data Carrier Detect (DCD) Bit 7
E
F
8 BDLAB = 1 9 BDLAB = 1
BLL
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6
Bit 7
BHL
Bit 8
Bit 9
Bit 10
Bit 11
Bit 12
Bit 13
Bit 14
Bit 15
*: Bit 0 is the least significant bit. The least significant bit is the first bit serially transmitted or received. **: These bits are always 0 in 16450 mode.
6.2.1
UART Control Register (UCR) (Read/Write)
The UART Control Register controls and defines the protocol for asynchronous data communications, including data length, stop bit, parity, and baud rate selection.
7 6 5 4 3 2 1 0
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 baud rate generator during a read or write operation. When this bit is reset, the Receiver Buffer Register, the Transmitter Buffer Register, or the Interrupt Control Register can be accessed. Bit 6: SSE. A logical 1 forces the Serial Output (SOUT) to a silent state (a logical 0). Only SOUT 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 a logical 1, the parity bit is fixed as a logical 0 to transmit and check. (2) if EPE is a logical 0, the parity bit is fixed as a logical 1 to transmit and check.
-38 -
W83877TF/W83877TG
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 the bit is reset, an odd number of logic 1's are sent or checked. 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 position as the transmitter will be detected. Bit 2: MSBE. This bit defines the number of stop bits in each serial character that is transmitted or received. (1) If MSBE is set to a logical 0, one stop bit is sent and checked. (2) If MSBE is set to a logical 1, and data length is 5 bits, one and a half stop bits are sent and checked. (3) If MSBE is set to a logical 1, and data length is 6, 7, or 8 bits, two stop bits are sent and checked. Bits 0 and 1: DLS0, DLS1. These two bits define the number of data bits that are sent or checked in each serial character. TABLE 6-2 WORD LENGTH DEFINITION
DLS1 DLS0 DATA LENGTH
0 0 1 1
0 1 0 1
5 bits 6 bits 7 bits 8 bits
6.2.2
UART Status Register (USR) (Read/Write)
This 8-bit register provides information about the status of the data transfer during communication.
2
7
6
5
4
3
1
0
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.
-39-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
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 than these two cases, this bit will be reset to a logical 0. 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.
6.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.
7 0 6 0 5 0 Data terminal ready (DTR) Request to send (RTS) Loopback RI input IRQ enable Internal loopback enable 4 3 2 1 0
Bit 4: When this bit is set to a logical 1, the UART enters diagnostic mode by an internal loopback, as follows: (1) SOUT is forced to a 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) → DCD .
Aside from the above connections, the UART operates normally. This method allows the CPU to test the UART in a convenient way.
-40 -
W83877TF/W83877TG
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. 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 . In the diagnostic mode this bit is internally
6.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 and records changes on these pins.
7 6 5 4 3 2 1 0
CTS toggling (TCTS) DSR toggling (TDSR) RI falling edge (FERI) DCD toggling (TDCD) 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 3: TDCD. This bit indicates that the DCD pin has changed state after HSR was read by the CPU. Bit 2: FERI. This bit indicates that the RI pin has changed from low to high state after HSR was read by the CPU. Bit 1: TDSR. This bit indicates that the DSR pin has changed state after HSR was read by the CPU. Bit 0: TCTS. This bit indicates that the CTS pin has changed state after HSR was read by the CPU.
-41-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
6.2.5 UART FIFO Control Register (UFR) (Write only)
7 6 5 4 3 2 1 0
This register is used to control the FIFO functions of the UART.
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. TABLE 6-3 FIFO TRIGGER LEVEL
BIT 7 BIT 6 RX FIFO INTERRUPT ACTIVE LEVEL (BYTES)
0 0 1 1 Bit 4, 5: Reserved
0 1 0 1
01 04 08 14
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.
-42 -
W83877TF/W83877TG
6.2.6 Interrupt Status Register (ISR) (Read only)
This register reflects the UART interrupt status, which is encoded by different interrupt sources into 3 bits.
7 6 5 0 4 0 0 if interrupt pending Interrupt Status bit 0 Interrupt Status bit 1 Interrupt Status bit 2 FIFOs enabled FIFOs enabled 3 2 1 0
Bit 7, 6: These two bits are set to a logical 1 when UFR bit 0 = 1. Bit 5, 4: These two bits are always logic 0. 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 timeout interrupt is pending. 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. TABLE 6-4 INTERRUPT CONTROL FUNCTION
ISR
Bit 3 0 0 0 Bit 2 0 1 1 Bit 1 0 1 0 Bit 0 1 0 0 Interrupt priority First Second Interrupt Type UART Receive Status RBR Data Ready
INTERRUPT SET AND FUNCTION
Interrupt Source No Interrupt pending 1. OER = 1 2. PBER =1 Read USR 1. Read RBR 2. Read RBR until FIFO data under active level Read RBR 3. NSER = 1 4. SBD = 1 1. RBR data ready 2. FIFO interrupt active level reached Clear Interrupt -
1
1
0
0
Second
FIFO Data Timeout
Data present in RX FIFO for 4 characters period of time since last access of RX FIFO. TBR empty
0
0
1
0
Third
TBR Empty
1. Write data into TBR 2. Read ISR (if priority is third)
0
0
0
0
Fourth
Handshake status
1. TCTS = 1 3. FERI = 1
2. TDSR = 1 4. TDCD = 1
Read HSR
** Bit 3 of ISR is enabled when bit 0 of UFR is logical 1.
-43-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
6.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.
7 0 6 0 5 0 4 0 RBR data ready interrupt enable (ERDRI) TBR empty interrupt enable (ETBREI) UART receive status interrupt enable (EUSRI) Handshake status interrupt enable (EHSRI) 3 2 1 0
Bit 7-4: These four bits are always logic 0. Bit 3: EHSRI. Setting this bit to a logical 1 enables the handshake status register interrupt. 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.
6.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 216-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 below 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-speed mode, the data transmission rate can be as high as 1.5M bps.
-44 -
W83877TF/W83877TG
6.2.9 User-defined Register (UDR) (Read/Write)
This is a temporary register that can be accessed and defined by the user. TABLE 6-5 BAUD RATE TABLE
BAUD RATE USING 24 MHZ TO GENERATE 1.8461 MHZ DESIRED BAUD RATE DECIMAL DIVISOR USED TO GENERATE 16X CLOCK PERCENT ERROR DIFFERENCE BETWEEN DESIRED AND ACTUAL
50 75 110 134.5 150 300 600 1200 1800 2000 2400 3600 4800 7200 9600 19200 38400 57600 115200 230400 460800 921600 1.5M
2304 1536 1047 857 768 384 192 96 64 58 48 32 24 16 12 6 3 2 1 4
Note 1
** ** 0.18% 0.099% ** ** ** ** ** 0.53% ** ** ** ** ** ** ** ** ** ** ** ** 0%
2 Note 1 1 Note 1 1 Note 2
Note 1: Only use in high speed mode, when FASTA/FASTB bits are set (refer to CR19 bit1 and CR19 bit0). Note 2: Only use in high speed mode, when TURA/TURB bits are set (refer to CR0C bit7 and bit6).
** The percentage error for all baud rates, except where indicated otherwise, is 0.16%
-45-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
7. PARALLEL PORT
7.1 Printer Interface Logic
The parallel port of the W83877TF/TG makes possible the attachment of various devices that accept eight bits of parallel data at standard TTL level. W83877TF/TG 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 disabling, power-down, and on selecting the mode of operation. Table 7-1 shows the pin definitions for different modes of the parallel port.
TABLE 7-1-A Parallel Port Connector and Pin Definition for SPP/EPP/ECP Modes
HOST CONNECTOR PIN NUMBER OF W83877TF PIN ATTRIBUTE SPP EPP ECP
1 2-9 10 11 12 13 14 15 16 17
Notes:
19 9-14,16-17 26 24 27 28 20 29 21 22
O I/O I I I I O I O O
nSTB PD nACK BUSY PE SLCT nAFD nERR nINIT nSLIN
nWrite PD Intr nWait PE Select nDStrb nError nInit nAStrb
nSTB, HostClk PD nACK, PeriphClk BUSY, PeriphAck2 PEerror, nAckReverse2 SLCT, Xflag nAFD, HostAck2 nFault1, nPeriphRequest2 nINIT1, nReverseRqst2 nSLIN1 , ECPMode2
n : Active Low 1. Compatible Mode 2. High Speed Mode 3. For more information, refer to the IEEE 1284 standard.
-46 -
W83877TF/W83877TG
TABLE 7-1-B Parallel Port Connector and Pin Definition for EXTFDD and EXT2FDD Modes
HOST CONNECTOR PIN NUMBER OF W83877TF PIN ATTRIBUTE SPP PIN ATTRIBUTE EXT2FDD PIN ATTRIBUTE EXTFD D
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
19 9 10 11 12 13 14 15 16 26 24 27 28 20 29 21 22
O I/O I/O I/O I/O I/O I/O I/O I/O I I I I O I O O
nSTB PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 nACK BUSY PE SLCT nAFD nERR nINIT nSLIN
--I I I I I --OD OD OD OD OD OD OD OD OD OD
--INDEX2 TRAK02 WP2 RDATA 2 DSKCHG2 --MOA 2 DSA 2 DSB2 MOB2 WD2 WE2 RWC2 NERR2 DIR2 STEP2
--I I I I I ------OD OD OD OD OD OD OD OD
--INDEX2
RDATA 2 DSKCHG -------
WD2 WE2 RWC2
DIR2
-47-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
7.2 Enhanced Parallel Port (EPP)
A2 A1 A0 REGISTER NOTE
TABLE 7-2 PRINTER MODE AND EPP REGISTER ADDRESS
0 0 0 0 0 1 1 1 1
Notes:
0 0 1 1 1 0 0 1 1
0 1 0 0 1 0 1 0 1
Data port (R/W) Printer status buffer (Read) Printer control latch (Write) Printer control swapper (Read) EPP address port (R/W) EPP data port 0 (R/W) EPP data port 1 (R/W) EPP data port 2 (R/W) EPP data port 2 (R/W)
1 1 1 1 2 2 2 2 2
1. These registers are available in all modes. 2. These registers are available only in EPP mode.
7.2.1
Data Swapper
The system microprocessor can read the contents of the printer's data latch by reading the data swapper.
7.2.2
Printer Status Buffer
The system microprocessor can read the printer status by reading the address of the printer status buffer. The bit definitions are as follows:
7 6 5 4 3 2 1 1 1 TMOUT ERROR SLCT PE ACK BUSY 0
Bit 7: This signal is active during data entry, when the printer is off-line during printing, when the print head is changing position, or during an error state. When this signal is active, the printer is busy and cannot accept data. Bit 6: This bit represents the current state of the printer's ACK signal. A 0 means the printer has received a character and is ready to accept another. Normally, this signal will be active for approximately 5 microseconds before BUSY stops. Bit 5: A 1 means the printer has detected the end of paper. Bit 4: A 1 means the printer is selected.
-48 -
W83877TF/W83877TG
Bit 3: A 0 means the printer has encountered an error condition. Bit 1, 2: These two bits are not implemented and are logic one during a read of the status register. Bit 0: This bit is valid in EPP mode only. It indicates that a 10 μS time-out has occurred on the EPP bus. A logic 0 means that no time-out error has occurred; a logic 1 means that a time-out error has been detected. Writing a logic 1 to this bit will clear the time-out status bit; writing a logic 0 has no effect.
7.2.3
Printer Control Latch and Printer Control Swapper
The system microprocessor can read the contents of the printer control latch by reading the printer control swapper. Bit definitions are as follows:
7 1 6 1 STROBE AUTO FD INIT SLCT IN IRQ ENABLE DIR 5 4 3 2 1 0
Bit 7, 6: These two bits are a logic one during a read. They can be written. Bit 5: Direction control bit When this bit is a logic 1, the parallel port is in input mode (read); when it is a logic 0, the parallel port is in output mode (write). This bit can be read and written. In SPP mode, this bit is invalid and fixed at zero. Bit 4: A 1 in this position allows an interrupt to occur when ACK changes from low to high. Bit 3: A 1 in this bit position selects the printer. Bit 2: A 0 starts the printer (50 microsecond pulse, minimum). Bit 1: A 1 causes the printer to line-feed after a line is printed. Bit 0: A 0.5 microsecond minimum high active pulse clocks data into the printer. Valid data must be present for a minimum of 0.5 microseconds before and after the strobe pulse.
7.2.4
EPP Address Port
7 6 5 4 3 2 1 0
The address port is available only in EPP mode. Bit definitions are as follows:
PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7
-49-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
The contents of DB0-DB7 are buffered (non-inverting) and output to ports PD0-PD7 during a write operation. The leading edge of IOW causes an EPP address write cycle to be performed, and the trailing edge of IOW latches the data for the duration of the EPP write cycle. PD0-PD7 ports are read during a read operation. The leading edge of IOR causes an EPP address read cycle to be performed and the data to be output to the host CPU.
7.2.5
EPP Data Port 0-3
7 6 5 4 3 2 1 0
These four registers are available only in EPP mode. Bit definitions of each data port are as follows:
PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7
When accesses are made to any EPP data port, the contents of DB0-DB7 are buffered (non-inverting) and output to the ports PD0-PD7 during a write operation. The leading edge of IOW causes an EPP data write cycle to be performed, and the trailing edge of IOW latches the data for the duration of the EPP write cycle. During a read operation, ports PD0-PD7 are read, and the leading edge of IOR causes an EPP read cycle to be performed and the data to be output to the host CPU.
7.2.6
Bit Map of Parallel Port and EPP Registers
REGISTER 7 6 5 4 3 2 1 0
Data Port (R/W) Status Buffer (Read) Control Swapper (Read) Control Latch (Write) EPP Address Port (R/W) EPP Data Port 0 (R/W) EPP Data Port 1 (R/W) EPP Data Port 2 (R/W) EPP Data Port 3 (R/W)
PD7
BUSY
PD6
ACK
PD5 PE 1 DIR PD5 PD5 PD5 PD5 PD5
PD4 SLCT IRQEN IRQ PD4 PD4 PD4 PD4 PD4
PD3
ERROR
PD2 1
INIT INIT
PD1 1
AUTOFD AUTOFD
PD0 TMOUT
STROBE STROBE
1 1 PD7 PD7 PD7 PD7 PD7
1 1 PD6 PD6 PD6 PD6 PD6
SLIN SLIN PD3 PD3 PD3 PD3 PD3
PD2 PD2 PD2 PD2 PD2
PD1 PD1 PD1 PD1 PD1
PD0 PD0 PD0 PD0 PD0
-50 -
W83877TF/W83877TG
7.2.7
nWrite PD Intr nWait PE Select nDStrb nError nInits nAStrb
EPP Pin Descriptions
TYPE EPP DESCRIPTION
EPP NAME
O I/O I I I I O I O O
Denotes an address or data read or write operation. Bi-directional EPP address and data bus. Used by peripheral device to interrupt the host. Inactive to acknowledge that data transfer is completed. Active to indicate that the device is ready for the next transfer. Paper end; same as SPP mode. Printer selected status; same as SPP mode. This signal is active low. It denotes a data read or write operation. Error; same as SPP mode. This signal is active low. When it is active, the EPP device is reset to its initial operating mode. This signal is active low. It denotes an address read or write operation.
7.2.8
EPP Operation
When the EPP mode is selected in the configuration register, the standard and bi-directional modes are also available. The PDx bus is in the standard or bi-directional mode when no EPP read, write, or address cycle is currently being executed. In this condition all output signals are set by the SPP Control Port and the direction is controlled by DIR of the Control Port. A watchdog timer is required to prevent system lockup. The timer indicates that more than 10 μS have elapsed from the start of the EPP cycle to the time WAIT is de-asserted. The current EPP cycle is aborted when a time-out occurs. The time-out condition is indicated in Status bit 0. EPP Operation The EPP operates on a two-phase cycle. First, the host selects the register within the device for subsequent operations. Second, the host performs a series of read and/or write byte operations to the selected register. Four operations are supported on the EPP: Address Write, Data Write, Address Read, and Data Read. All operations on the EPP device are performed synchronously. EPP Version 1.9 Operation The EPP read/write operation can be completed under the following conditions: a. If the nWait is active low, when the read cycle (nWrite inactive high, nDStrb/nAStrb active low) or write cycle (nWrite active low, nDStrb/nAStrb active low) starts, the read/write cycle proceeds normally and will be completed when nWait goes inactive high. b. If nWait is inactive high, the read/write cycle will not start. It must wait until nWait changes to active low, at which time it will start as described above. EPP Version 1.7 Operation The EPP read/write cycle can start without checking whether nWait is active or inactive. Once the read/write cycle starts, however, it will not terminate until nWait changes from active low to inactive high.
Publication Release Date: May 2006 Revision 0.7
-51-
W83877TF/W83877TG
7.3 Extended Capabilities Parallel (ECP) Port
This port is software and hardware compatible with existing parallel ports, so it may be used as a standard printer mode if ECP is not required. It provides an automatic high burst-bandwidth channel that supports DMA for ECP in both the forward (host to peripheral) and reverse (peripheral to host) directions. Small FIFOs are used in both forward and reverse directions to improve the maximum bandwidth requirement. The size of the FIFO is 16 bytes. The ECP port supports an automatic handshake for the standard parallel port to improve compatibility mode transfer speed. The ECP port supports run-length-encoded (RLE) decompression (required) in the hardware. Compression is accomplished by counting identical bytes and transmitting an RLE byte that indicates how many times the next byte is to be repeated. The hardware support for compression is optional. For more information about the ECP Protocol, refer to the Extended Capabilities Port Protocol and ISA Interface Standard.
7.3.1
data
ECP Register and Mode Definitions
NAME ADDRESS I/O ECP MODES FUNCTION
Base+000h Base+000h Base+001h Base+002h Base+400h Base+400h Base+400h Base+400h Base+401h Base+402h
R/W R/W R R/W R/W R/W R/W R R/W R/W
000-001 011 All All 010 011 110 111 111 All
Data Register ECP FIFO (Address) Status Register Control Register Parallel Port Data FIFO ECP FIFO (DATA) Test FIFO Configuration Register A Configuration Register B Extended Control Register
ecpAFifo dsr dcr cFifo ecpDFifo tFifo cnfgA cnfgB ecr
Note: The base addresses are specified by CR23, which are determined by configuration register or hardware setting.
MODE
DESCRIPTION
000 001 010 011 100 101 110 111
SPP mode PS/2 Parallel Port mode Parallel Port Data FIFO mode ECP Parallel Port mode EPP mode (If this option is enabled in the CR9 and CR0 to select ECP/EPP mode) Reserved Test mode Configuration mode
Note: The mode selection bits are bit 7-5 of the Extended Control Register.
-52 -
W83877TF/W83877TG
7.3.2 Data and ecpAFifo Port
Modes 000 (SPP) and 001 (PS/2) (Data Port) During a write operation, the Data Register latches the contents of the data bus on the rising edge of the input. The contents of this register are output to the PD0-PD7 ports. During a read operation, ports PD0-PD7 are read and output to the host. The bit definitions are as follows:
7 6 5 4 3 2 1 0
PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7
Mode 011 (ECP FIFO-Address/RLE) A data byte written to this address is placed in the FIFO and tagged as an ECP Address/RLE. The hardware at the ECP port transmits this byte to the peripheral automatically. The operation of this register is defined only for the forward direction. The bit definitions are as follows:
7 6 5 4 3 2 1 0
Address or RLE
Address/RLE
7.3.3
Device Status Register (DSR)
These bits are at low level during a read of the Printer Status Register. The bits of this status register are defined as follows:
7 6 5 4 3 2 1 1 1 0 1
nFault Select PError nAck nBusy
Bit 7: This bit reflects the complement of the Busy input. Bit 6: This bit reflects the nAck input.
Publication Release Date: May 2006 Revision 0.7
-53-
W83877TF/W83877TG
Bit 5: This bit reflects the PError input. Bit 4: This bit reflects the Select input. Bit 3: This bit reflects the nFault input. Bit 2-0: These three bits are not implemented and are always logic one during a read.
7.3.4
Device Control Register (DCR)
7 1 6 1 Strobe Autofd nInit Select In AckInt En Direction 5 4 3 2 1 0
The bit definitions are as follows:
Bit 6, 7: These two bits are logic one during a read and cannot be written. Bit 5: This bit has no effect and the direction is always out if mode = 000 or mode = 010. Direction is valid in all other modes. 0 the parallel port is in output mode. 1 the parallel port is in input mode. Bit 4: Interrupt request enable. When this bit is set to a high level, it may be used to enable interrupt requests from the parallel port to the CPU due to a low to high transition on the ACK input. Bit 3: This bit is inverted and output to the SLIN output. 0 1 The printer is not selected. The printer is selected.
Bit 2: This bit is output to the INIT output. Bit 1: This bit is inverted and output to the AFD output. Bit 0: This bit is inverted and output to the STB output.
7.3.5
cFifo (Parallel Port Data FIFO) Mode = 010
This mode is defined only for the forward direction. The standard parallel port protocol is used by a hardware handshake to the peripheral to transmit bytes written or DMAed from the system to this FIFO. Transfers to the FIFO are byte aligned.
7.3.6
ecpDFifo (ECP Data FIFO) Mode = 011
When the direction bit is 0, bytes written or DMAed from the system to this FIFO are transmitted by a hardware handshake to the peripheral using the ECP parallel port protocol. Transfers to the FIFO are byte aligned. When the direction bit is 1, data bytes from the peripheral are read under automatic hardware handshake from ECP into this FIFO. Reads or DMAs from the FIFO will return bytes of ECP data to the system.
-54 -
W83877TF/W83877TG
7.3.7 tFifo (Test FIFO Mode) Mode = 110
Data bytes may be read, written, or DMAed to or from the system to this FIFO in any direction. Data in the tFIFO will not be transmitted to the parallel port lines. However, data in the tFIFO may be displayed on the parallel port data lines.
7.3.8
cnfgA (Configuration Register A) Mode = 111
This register is a read-only register. When it is read, 10H is returned. This indicates to the system that this is an 8-bit implementation.
7.3.9
cnfgB (Configuration Register B) Mode = 111
The bit definitions are as follows:
7
6
5
4
3
2 1
1 1
0 1
IRQx 0 IRQx 1 IRQx 2 intrValue compress
Bit 7: This bit is read-only. It is at low level during a read. This means that this chip does not support hardware RLE compression. Bit 6: Returns the value on the ISA IRQ line to determine possible conflicts. Bit 5-3: Reflect the IRQ resource assigned for ECP port.
CNFGB[5:3] IRQ RESOURCE
000 001 010 011 100 101 110 111
reflect other IRQ resources selected by PnP register (default) IRQ7 IRQ9 IRQ10 IRQ11 IRQ14 IRQ15 IRQ5
Bit 2-0: These five bits are at high level during a read and can be written.
-55-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
7.3.10
ecr (Extended Control Register) Mode = all
7 6 5 4 3 2 1 0
This register controls the extended ECP parallel port functions. The bit definitions are follows:
Empty Full Service Intr DMA En nErrIntr En MODE MODE MODE
Bit 7-5: These bits are read/write and select the mode. 000 001 Standard Parallel Port mode. The FIFO is reset in this mode. PS/2 Parallel Port mode. This is the same as 000 except that direction may be used to tri-state the data lines and reading the data register returns the value on the data lines and not the value in the data register. Parallel Port FIFO mode. This is the same as 000 except that bytes are written or DMAed to the FIFO. FIFO data are automatically transmitted using the standard parallel port protocol. This mode is useful only when direction is 0. ECP Parallel Port Mode. When the direction is 0 (forward direction), bytes placed into the ecpDFifo and bytes written to the ecpAFifo are placed in a single FIFO and transmitted automatically to the peripheral using ECP Protocol. When the direction is 1 (reverse direction) bytes are moved from the ECP parallel port and packed into bytes in the ecpDFifo. Selects EPP Mode. In this mode, EPP is active if the EPP supported option is selected. Reserved. Test Mode. The FIFO may be written and read in this mode, but the data will not be transmitted on the parallel port. Configuration Mode. The confgA and confgB registers are accessible at 0x400 and 0x401 in this mode.
010
011
100 101 110 111
Bit 4: Read/Write (Valid only in ECP Mode) 1 0 Bit 3: Read/Write 1 0 Enables DMA. Disables DMA unconditionally. Disables the interrupt generated on the asserting edge of nFault. Enables an interrupt pulse on the high to low edge of nFault. If nFault is asserted (interrupt) an interrupt will be generated and this bit is written from a 1 to 0.
-56 -
W83877TF/W83877TG
Bit 2: Read/Write 1 0 Disables DMA and all of the service interrupts. Enables one of the following cases of interrupts. When one of the service interrupts has occurred, the serviceIntr bit is set to a 1 by hardware. This bit must be reset to 0 to re-enable the interrupts. Writing a 1 to this bit will not cause an interrupt. (a) dmaEn = 1: During DMA this bit is set to a 1 when terminal count is reached. (b) dmaEn = 0 direction = 0: This bit is set to 1 whenever there are writeIntr Threshold or more bytes free in the FIFO. (c) dmaEn = 0 direction = 1: This bit is set to 1 whenever there are readIntr Threshold or more valid bytes to be read from the FIFO.
Bit 1: Read only 0 1 Bit 0: Read only 0 1 The FIFO contains at least 1 byte of data. The FIFO is completely empty. The FIFO has at least 1 free byte. The FIFO cannot accept another byte or the FIFO is completely full.
7.3.11
Bit Map of ECP Port Registers
D7 D6
PD6 nAck 1
D5
PD5 PError Directio
D4
PD4 Select ackIntEn
D3
PD3 nFault SelectIn
D2
PD2 1 nInit
D1
PD1 1 autofd
D0
PD0
NOTE
2
Data ecpAFifo Dsr Dcr cFifo ecpDFifo tFifo cnfgA cnfgB Ecr
Notes:
PD7 Addr/RLE nBusy 1 ECP Data FIFO Test FIFO 0 compress
Address or RLE field 1 strobe
1 1 2 2 2
Parallel Port Data FIFO
0 intrValue MODE
0 1
1 1 nErrIntrEn
0 1 dmaEn
0 1 serviceIntr
0 1 full
0 1 empty
1. These registers are available in all modes. 2. All FIFOs use one common 16-byte FIFO.
-57-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
7.3.12 ECP Pin Descriptions
NAME TYPE DESCRIPTION
nStrobe (HostClk)
O
The nStrobe registers data or address into the slave on the asserting edge during write operations. This signal handshakes with Busy. These signals contains address or data or RLE data. This signal indicates valid data driven by the peripheral when asserted. This signal handshakes with nAutofd in reverse. This signal desserts to indicate that the peripheral can accept data. It indicates whether the data lines contain ECP command information or data in the reverse direction. When in reverse direction, normal data are transferred when Busy (PeriphAck) is high and an 8-bit command is transferred when it is low. This signal is used to acknowledge a change in the direction of the transfer (asserted = forward). The peripheral drives this signal low to acknowledge nReverseRequest. The host relies upon nAckReverse to determine when it is permitted to drive the data bus. Indicates printer on line. Requests a byte of data from the peripheral when it is asserted. This signal indicates whether the data lines contain ECP address or data in the forward direction. When in forward direction, normal data are transferred when nAutoFd (HostAck) is high and an 8-bit command is transferred when it is low. Generates an error interrupt when it is asserted. This signal is valid only in the forward direction. The peripheral is permitted (but not required) to drive this pin low to request a reverse transfer during ECP Mode. This signal sets the transfer direction (asserted = reverse, deasserted = forward). This pin is driven low to place the channel in the reverse direction. This signal is always deasserted in ECP mode.
PD nAck (PeriphClk) Busy (PeriphAck)
I/O I I
PError (nAckReverse)
I
Select (Xflag) nAutoFd (HostAck)
I O
nFault (nPeriphRequest)
I
nInit (nReverseRequest)
O
nSelectIn (ECPMode)
O
-58 -
W83877TF/W83877TG
7.3.13 ECP Operation
The host must negotiate on the parallel port to determine if the peripheral supports the ECP protocol before ECP operation. After negotiation, it is necessary to initialize some of the port bits. The following are required: (a) Set direction = 0, enabling the drivers. (b) Set strobe = 0, causing the nStrobe signal to default to the deasserted state. (c) Set autoFd = 0, causing the nAutoFd signal to default to the deasserted state. (d) Set mode = 011 (ECP Mode) ECP address/RLE bytes or data bytes may be sent automatically by writing the ecpAFifo or ecpDFifo, respectively. Mode Switching Software will execute P1284 negotiation and all operations prior to a data transfer phase under programmed I/O control (mode 000 or 001). Hardware provides an automatic control line handshake, moving data between the FIFO and the ECP port only in the data transfer phase (mode 011 or 010). If the port is in mode 000 or 001 it may switch to any other mode. If the port is not in mode 000 or 001 it can only be switched into mode 000 or 001. The direction can be changed only in mode 001. When in extended forward mode, the software should wait for the FIFO to be empty before switching back to mode 000 or 001. In ECP reverse mode the software waits for all the data to be read from the FIFO before changing back to mode 000 or 001. Command/Data ECP mode allows the transfer of normal 8-bit data or 8-bit commands. In the forward direction, normal data are transferred when HostAck is high and an 8-bit command is transferred when HostAck is low. The most significant bits of the command indicate whether it is a run-length count (for compression) or a channel address. In the reverse direction, normal data are transferred when PeriphAck is high and an 8-bit command is transferred when PeriphAck is low. The most significant bit of the command is always zero. Data Compression The W83877TF/TG supports run length encoded (RLE) decompression in hardware and can transfer compressed data to a peripheral. Note that the odd (RLE) compression in hardware is not supported. In order to transfer data in ECP mode, the compression count is written to the ecpAFifo and the data byte is written to the ecpDFifo.
7.3.14
FIFO Operation
The FIFO threshold is set in configuration register 5. All data transfers to or from the parallel port can proceed in DMA or Programmed I/O (non-DMA) mode, as indicated by the selected mode. The FIFO is used by selecting the Parallel Port FIFO mode or ECP Parallel Port Mode. After a reset, the FIFO is disabled.
-59-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
7.3.15 DMA Transfers
DMA transfers are always to or from the ecpDFifo, tFifo, or CFifo. The DMA uses the standard PC DMA services. The ECP requests DMA transfers from the host by activating the PDRQ pin. The DMA will empty or fill the FIFO using the appropriate direction and mode. When the terminal count in the DMA controller is reached, an interrupt is generated and serviceIntr is asserted, which will disable the DMA.
7.3.16
Programmed I/O (NON-DMA) Mode
The ECP or parallel port FIFOs can also be operated using interrupt driven programmed I/O. Programmed I/O transfers are to the ecpDFifo at 400H and ecpAFifo at 000H or from the ecpDFifo located at 400H, or to/from the tFifo at 400H. The host must set the direction, state, dmaEn = 0 and serviceIntr = 0 in the programmed I/O transfers. The ECP requests programmed I/O transfers from the host by activating the IRQ pin. The programmed I/O will empty or fill the FIFO using the appropriate direction and mode.
7.4
Extension FDD Mode (EXTFDD)
In this mode, the W83877TF/TG changes the printer interface pins to FDC input/output pins, allowing the user to install a second floppy disk drive (FDD B) through the DB-25 printer connector. The pin assignments for the FDC input/output pins are shown in Table 8-1. After the printer interface is set to EXTFDD mode, the following occur: (1) Pins MOB and DSB will be forced to inactive state. (2) Pins DSKCHG , RDATA , WP , TRAK0 , INDEX will be logically ORed with pins PD4-PD0 to serve as input signals to the FDC. (3) Pins PD4-PD0 each will have an internal resistor of about 1K ohm to serve as pull-up resistor for FDD open drain/collector output. (4) If the parallel port is set to EXTFDD mode after the system has booted DOS or another operating system, a warm reset is needed to enable the system to recognize the extension floppy drive.
7.5
Extension 2FDD Mode (EXT2FDD)
In this mode, the W83877TF/TG changes the printer interface pins to FDC input/output pins, allowing the user to install two external floppy disk drives through the DB-25 printer connector to replace internal floppy disk drives A and B. The pin assignments for the FDC input/output pins are shown in Table 8-1. After the printer interface is set to EXTFDD mode, the following occur: (1) Pins MOA , DSA , MOB , and DSB will be forced to inactive state. (2) Pins DSKCHG , RDATA , WP , TRAK0 , and INDEX will be logically ORed with pins PD4-PD0 to serve as input signals to the FDC. (3) Pins PD4-PD0 each will have an internal resistor of about 1K ohm to serve as pull-up resistor for FDD open drain/collector output. (4) If the parallel port is set to EXT2FDD mode after the system has booted DOS or another operating system, a warm reset is needed to enable the system to recognize the extension floppy drive.
-60 -
W83877TF/W83877TG
8. PLUG AND PLAY CONFIGURATION
A powerful new plug-and-play function has been built into the W83877TF/TG to help simplify the task of setting up a computer environment. With appropriate support from BIOS manufacturers, the system designer can freely allocate Winbond I/O devices (i.e., the FDC, PRT and UART ) in the PC's I/O space (100H - 3FFH). In addition, the W83877TF/TG also provides 8 interrupt requests and 3 DMA pairs for designers to assign in interfacing FDCs, UARTs, and PRTs. Hence this powerful I/O chip offers greater flexibility for system designers. The PnP feature is implemented through a set of Extended Function Registers (CR20 to 29). Details on configuring these registers are given in Section 11. The default values of these PnP-related registers set the system to a configuration compatible with environments designed with previous Winbond I/O chips.
9. ACPI /LEGACY FEATURE AND AUTO POWER MANAGEMENT
9.1 ACPI/Legacy power management
W83877TF/TG supports both ACPI and legacy power management models. For the ACPI power management, the SCI pin is dedicated to the SCI interrupt signal for the SCI interrupt handler; For the legacy power management, the SMI pin is dedicated to the SMI interrupt signal for the SMI interrupt handler. Two register blocks is used for the ACPI/Legacy power management. They are the PM1 and GPE register blocks. Their base addresses are held in the W83877TF/TG configuration registers CR33 and CR34 respectively. Configuration registers CR40 to CR45 are for the legacy power management. The above configuration registers hold the interrupt event enable and status bits of the SMI interrupts. Control over the routing of SCI and SMI interrupts to the output pins is also contained in the above registers. One 24-bit power management timer is also implemented. It provides an accurate time value used by the system software to measure and profiles system idleness.
9.2
Device(auto) power management
W83877TF/TG also provides the auto power management function for each device within it. They are the printer port, FDC, UART A, and UART B devices in W83877TF/TG respectively. Device idle and trap status are provided to indicate the device's working/sleeping state. Device idle timer with programmable initial value is provided for each device, which enter the powerdown state when the powerdown conditions are met. Any access to certain registers and external event input will wake up the devices. The global stand-by timer deals with the other logic part excluding the printer port, FDC, UART A , and UART B devices. The global stand-by timer reloads and counts down as soon as the 4 devices enter the powerdown mode and W83877TF/TG enters the powerdown mode as soon as it expires. Once any device is awakened, the global stand-by is also awakened. The initial count values of the devices are held in the configuration registers CR35 to CR39.
-61-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
10. SERIAL IRQ
W83877TF/TG supports a serial IRQ scheme. This allow a signal line to be used to report the legacy ISA interrupt requests. Because more than one device may need to share the signal serial IRQ signal line, an open drain signal scheme is used. The clock source is the PCI clock. The serial interrupt is transferred on the IRQSER signal, one cycle consisting of three frames types: a start frame, several IRQ/Data frame, and one Stop frame. The serial interrupt scheme adheres to the Serial IRQ Specification for PCI System, Version 6.0.
Timing Diagrams For IRQSER Cycle Start Frame timing with source sampled a low pulse on IRQ1
SL or H PCICLK IRQSER
START FRAME H R T S
IRQ0 FRAME R T
IRQ1 FRAME S R T S
IRQ2 FRAME R T
1 START
Drive Source H=Host Control
IRQ1
Host Controller SL=Slave Control R=Recovery
None
IRQ1 T=Turn-around
None S=Sample
1. Start Frame pulse can be 4-8 clocks wide.
Stop Frame Timing with Host using 17 IRQSER sampling period
IRQ14 FRAME S PCICLK IRQSER 1 STOP 3 START R T S IRQ15 FRAME R T S IOCHCK FRAME R T
2 I
STOP FRAME H R T
NEXT CYCLE
Drive
None H=Host Control
IRQ15 R=Recovery
None T=Turn-around
Host Controller S=Sample I=Idle
1. Stop pulse is 2 clocks wide for Quiet mode, 3 clocks wide for Continuous mode. 2. There may be none, one or more Idle states during the Stop Frame. 3. The next IRQSER cycle's Start Frame pulse may or may not start immediately after the turn-around clock of the Stip Frame.
-62 -
W83877TF/W83877TG
10.1 Start Frame
There are two modes of operation for the IRQSER Start frame: Quiet mode and Continuous mode. In the Quiet mode, the peripheral drives the SERIRQ signal active low for one clock, and then tristates it. This brings all the states machines of the peripherals from idle to active states. the host controller will then take over driving IRQSER signal low in the next clock and will continue driving the IRQSER low for programmable 3 to 7 clock periods. This makes the total number of clocks low for 4 to 8 clock periods. After these clocks, the host controller will drive the IRQSER high for one clock and then tri-stated. In the Continuous mode, only the host controller initiates the START frame to update IRQ/Data line information. The host controller drives the IRQSER signal low for 4 to 8 period clocks. Upon reset, the IRQSER signal is defaulted to the Continuous mode for the host controller to initiate the first Start frame.
10.2 IRQ/Data Frame
Once the start frame has been initiated, all the peripherals must start counting frames based on the rising edge of the start pulse. Each IRQ/Data Frame is three clocks: Sample phase, Recovery phase, and Turn-around phase. During the Sample phase, the peripheral drives SERIRQ low if the corresponding IRQ should be active. If the corresponding IRQ is inactive, then IRQSER must be left tri-stated. During the Recovery phase, the peripheral device drives the IRQSER high. During the Turn-around phase, the peripheral device left the IRQSER tri-stated. The IRQ/Data Frame has a number of specific order, as shown in Table 10-1. Table 10-1 IRQSER Sampling periods
IRQ/DATA FRAME SIGNAL SAMPLED # OF CLOCKS PAST START
1 2 3 4 5 6 7 8 9 10 11 12 13 14
IRQ0 IRQ1
SMI
2 5 8 11 14 17 20 23 26 29 32 35 38 41
IRQ3 IRQ4 IRQ5 IRQ6 IRQ7 IRQ8 IRQ9 IRQ10 IRQ11 IRQ12 IRQ13
-63-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
IRQ/Data Frame, continued
IRQ/DATA FRAME
SIGNAL SAMPLED
# OF CLOCKS PAST START
15 16 17 18 19 20 21 32:22
IRQ14 IRQ15
IOCHCK INTA INTB INTC INTD
44 47 50 53 56 59 62 95
Unassigned
10.3 Stop Frame
After all IRQ/Data Frames have completed , the host controller will terminate IRQSER by a Stop frame. Only the host controller can initiate the Stop frame by driving IRQSER low for 2 or 3 clocks. If the Stop Frame is low for 2 clocks, the next IRQSER cycle's Sample mode is the Quiet mode. If the Stop Frame is low for 3 clocks, the next IRQSER cycle's Sample mode is the Continuous mode.
10.4 Reset and Initialization
After MR reset, IRQSER Slaves are put into the Continuous(Idle) mode. The Host Controller is responsible for starting the initial IRQSER Cycle to collect system's IRQ/Data default values. The system then follows with the Continuous/Quiet mode protocol (Stop Frame pulse width) for subsequent IRQSER cycles. It's the Host Controller's responsibility to provide the default values to 8259's and other system logic before the first IRQSER cycle is performed. For IRQSER system suspend, insertion, or removal application, the Host controller should be programmed into Continuous(Idle) mode first. This is to guarantee IRQSER bus in the Idle state before the system configuration changes.
-64 -
W83877TF/W83877TG
11. EXTENDED FUNCTION REGISTERS
The W83877TF/TG provides many configuration registers for setting up different types of configurations. After power-on reset, the state of the hardware setting of each pin will be latched by the relevant configuration register to allow the W83877TF/TG to enter the proper operating configuration. To protect the chip from invalid reads or writes, the configuration registers cannot be accessed by the user. There are four ways to enable the configuration. n registers to be read or written. HEFERE (CR0C bit 5) and HEFRAS (CR16 bit 0) can be used to select one out of these four methods of entering the Extended Function mode as follows:
HEFRAS HEFERE ADDRESS AND VALUE
0 0 1 1
0 1 0 1
write 88H to the location 250H write 89H to the location 250H (power-on default) write 86H to the location 3F0H twice write 87H to the location 3F0H twice
First, a specific value must be written once (88H/89H) or twice (86H/87H) to the Extended Functions Enable Register (I/O port address 250H or 3F0H). Second, an index value (00H-19H, 20H-29H, 2CH2DH, 31H-3AH, 40H-45H) must be written to the Extended Functions Index Register (I/O port address 251H or 3F0H) to identify which configuration register is to be accessed. The designer can then access the desired configuration register through the Extended Functions Data Register (I/O port address 252H or 3F1H). After programming of the configuration register is finished, an additional value should be written to EFERs to exit the Extended Function mode to prevent unintentional access to those configuration registers. In the case of EFER at 250H, this additional value can be any value other than 88H if HEFERE = 0 and 89H if HEFERE = 1. While EFER is at 3F0H, this additional value must be AAH. The designer can also set bit 6 of CR9 (LOCKREG) to high to protect the configuration registers against accidental accesses. The configuration registers can be reset to their default or hardware settings only by a cold reset (pin MR = 1). A warm reset will not affect the configuration registers.
11.1 Extended Functions Enable Registers (EFERs)
After a power-on reset, the W83877TF/TG enters the default operating mode. Before the W83877TF/TG enters the extended function mode, a specific value must be programmed into the Extended Function Enable Register (EFER) so that the extended function register can be accessed. The Extended Function Enable Registers are write-only registers. On a PC/AT system, their port addresses are 250H or 3F0H (as described in the above section).
-65-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
11.2 Extended Function Index Registers (EFIRs), Extended Function Data Registers(EFDRs)
After the extended function mode is entered, the Extended Function Index Register (EFIR) must be loaded with an index value (0H, 1H, 2H, ..., or 29H) to access Configuration Register 0 (CR0), Configuration Register 1 (CR1), Configuration Register 2 (CR2), and so forth through the Extended Function Data Register (EFDR). The EFIRs are write-only registers with port address 251H or 3F0H (as described in section 11.0) on PC/AT systems; the EFDRs are read/write registers with port address 252H or 3F1H (as described in section 11.0) on PC/AT systems. The function of each configuration register is described below.
11.2.1
Configuration Register 0 (CR0), default = 00H
When the device is in Extended Function mode and EFIR is 0H, the CR0 register can be accessed through EFDR. The bit definitions for CR0 are as follows:
7 6 5 4 3 2 1 0
IPD reserved PRTMODS0 PRTMODS1 reserved reserved reserved reserved
Bit 7-bit 4: Reserved. PRTMOD1 PRTMOD0 (Bit 3, 2): These two bits and PRTMOD2 (CR9 bit 7) determine the parallel port mode of the W83877TF (as shown in the following Table 11-1). Table 11-1
PRTMODS2 (BIT 7 OF CR9) PRTMODS1 (BIT 3 OF CR0) PRTMODS0 (BIT 2 OF CR0)
0 0 0 0 1 1 1 1
0 0 1 1 0 0 1 1
0 1 0 1 0 1 0 1
Normal EXTFDC Reserved EXT2FDD Reserved EPP/SPP ECP ECP/EPP
-66 -
W83877TF/W83877TG
00
Normal Mode (Default), PRTMOD2 = 0 Default state after power-on reset. In this mode, the W83877TF is fully compatible with the SPP and BPP mode. Extension FDD Mode (EXTFDD), PRTMOD2 = 0 Reserved, PRTMOD2 = 0 Extension 2FDD Mode (EXT2FDD), PRTMOD2 = 0 Reserved, PRTMOD2 = 1 EPP Mode and SPP Mode, PRTMOD2 = 1 ECP Mode, PRTMOD2 = 1 ECP Mode and EPP Mode, PRTMOD2 = 1
01 10 11 00 01 10 11
Bit 1: Reserved. IPD (Bit 0): This bit is used to select the W83877TF/TG's legacy power-down functions. When the bit 0 is set to 1, W83877TF/TG will stop its clock internally and enter power-down (IPD) mode immediately. W83877TF/TG will not leave the power-down mode until either a system power-on reset from the MR pin or this bit is reset to 0 to program the chip back to power-on state.
11.2.2
Configuration Register 1 (CR1), default = 00H
When the device is in Extended Function mode and EFIR is 01H, the CR1 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
reserved reserved reserved reserved reserved reserved reserved ABCHG
ABCHG (Bit 7): This bit enables the FDC AB Change Mode. Default to be enabled at power-on reset. 0 1 Drives A and B assigned as usual Drive A and drive B assignments exchanged
Bit 6-bit 0: Reserved.
-67-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
11.2.3 Configuration Register 2 (CR2), default = 00H
When the device is in Extended Function mode and EFIR is 02H, the CR2 register can be accessed through EFDR. This register is reserved.
11.2.4
Configuration Register 3 (CR3), default = 30H
When the device is in Extended Function mode and EFIR is 03H, the CR3 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
SUBMIDI SUAMIDI reserved reserved reserved EPPVER reserved reserved
Bit 7-bit 6: Reserved. EPPVER (Bit 5): This bit selects the EPP version of parallel port: 0 1 Bit 4: Reserved. Bit 3-bit 2: Reserved. SUAMIDI (Bit 1): This bit selects the clock divide rate of UARTA. 0 (default) 1 SUBMIDI (Bit 0): This bit selects the clock divide rate of UARTB. 0 (default) 1 Enables MIDI support, UARTB clock = 24 MHz divided by 12 Disables MIDI support, UARTB clock = 24 MHz divided by 13 Enables MIDI support, UARTA clock = 24 MHz divided by 12 Disables MIDI support, UARTA clock = 24 MHz divided by 13 Selects the EPP 1.9 version Selects the EPP 1.7 version (default)
-68 -
W83877TF/W83877TG
11.2.5 Configuration Register 4 (CR4), default = 00H
When the device is in Extended Function mode and EFIR is 04H, the CR4 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
URBTRI URATRI reserved PRTTRI URBPWD URAPWD reserved PRTPWD
PRTPWD (Bit 7): 0 Supplies power to the parallel port (default) 1 Puts the parallel port in power-down mode Bit 6: Reserved. URAPWD (Bit 5): 0 Supplies power to COMA (default) 1 Puts COMA in power-down mode URBPWD (Bit 4): 0 Supplies power to COMB (default) 1 Puts COMB in power-down mode PRTTRI (Bit 3): This bit enables or disables the tri-state outputs of parallel port in power-down mode. 0 The output pins of the parallel port will not be tri-stated when parallel port is in powerdown mode. (default) 1 The output pins of the parallel port will be tri-stated when parallel port is in powerdown mode. Bit 2: Reserved. URATRI (Bit 1): This bit enables or disables the tri-state outputs of UARTA in power-down mode. 0 The output pins of UARTA will not be tri-stated when UARTA is in power-down mode. 1 The output pins of UARTA will be tri-stated when UARTA is in power-down mode. URBTRI (Bit 0): This bit enables or disables the tri-state outputs of UARTB in power-down mode. 0 The output pins of UARTB will not be tri-stated when UARTB is in power-down mode. 1 The output pins of UARTB will be tri-stated when UARTB is in power-down mode.
-69-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
11.2.6 Configuration Register 5 (CR5), default = 00H
When the device is in Extended Function mode and EFIR is 05H, the CR5 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
ECPFTHR0 ECPFTHR1 ECPFTHR2 ECPFTHR3 reserved reserved reserved reserved
Bit 7- bit 4: Reserved ECPFTHR3-0 (bit 3-0): These four bits define the FIFO threshold for the ECP mode parallel port. The default value is 0000 after power-up.
11.2.7
Configuration Register 6 (CR6), default = 00H
When the device is in Extended Function mode and EFIR is 06H, the CR6 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
reserved FDCTRI reserved FDCPWD FIPURDWM SEL4FDD reserved reserved
Bit 7- bit 6: Reserved SEL4FDD (Bit 5): Selects four FDD mode 0 1 Selects two FDD mode (default, see Table 11-2) Selects four FDD mode
DSA , DSB , MOA and MOB output pins are encoded as show in Table 11-3 to select four drives.
-70 -
W83877TF/W83877TG
Table 11-2
DO REGISTER ( 3F2H ) BIT 7 BIT 6 BIT 5 BIT 4 BIT 1 BIT 0
MOB
MOA
DSB
DSA
DRIVE SELECTED
0 0 0 0 1 Table 11-3
0 0 0 1 0
0 0 1 0 0
0 1 0 0 0
0 0 0 0 1
0 0 1 1 1
1 1 0 1 1
1 0 1 1 1
1 1 0 1 1
1 0 1 1 1
-FDD A FDD B ---
DO REGISTER ( 3F2H ) BIT 7 BIT 6 BIT 5 BIT 4 BIT 1 BIT 0
MOB
MOA
DSB
DSA
DRIVE SELECTED
0 0 0 0 1
0 0 0 1 0
0 0 1 0 0
0 1 0 0 0
X 0 0 1 1
X 0 1 0 1
1 0 0 0 0
1 0 0 0 0
x 0 0 1 1
x 0 1 0 1
-FDD A FDD B FDD C FDD D
FIPURDWN (Bit 4): This bit controls the internal pull-up DSKCHG , and WP . 0 1 FDCPWD (Bit 3): This bit controls the power to the FDC. 0 1 Bit 2: Reserved. resistors of the FDC input pins RDATA , INDEX , TRAK0 , The internal pull-up resistors of FDC are turned on. (default) The internal pull-up resistors of FDC are turned off.
Power is supplied to the FDC. (default) Puts the FDC in power-down mode.
FDCTRI (Bit 1): This bit enables or disables the tri-state outputs of the FDC in power-down mode. 0 The output pins of the FDC will not be tri-stated when FDC is in power-down mode. 1 The output pins of the FDC will be tri-stated when FDC is in power-down mode. Bit 0: Reserved.
-71-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
11.2.8 Configuration Register 7 (CR7), default = 00H
When the device is in Extended Function mode and EFIR is 07H, the CR7 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
FDD A type 0 FDD A type 1 FDD B type 0 FDD B type 1 FDD C type 0 FDD C type 1 FDD D type 0 FDD D type 1
FDD D type 1, 0 (Bit 7, 6): These two bits select the type of FDD D. Selects normal mode. When RWC = 0, the data transfer rate is 250 Kb/s. When RWC = 1, the data transfer rate is 500 Kb/s. Three mode FDD select (EN3MODE = 1): 00 01 10 11
RWC = 0, selects 1.2 MB high-density FDD. RWC = 1, selects 1.44 MB high-density FDD.
Don't care RWC , selects 720 KB double-density FDD.
FDD C type 1, 0 (Bit 5, 4): These two bits select the type of FDD C. 00 Selects normal mode. When RWC = 0, the data transfer rate is 250 kb/s. When RWC = 1, he data transfer rate is 500 kb/s.
RWC = 0, selects 1.2 MB high-density FDD. RWC = 1, selects 1.44 MB high-density FDD.
Three mode FDD select (EN3MODE = 1): 01 10 11
Don't care RWC , selects 720 KB double-density FDD.
FDD B type 1, 0 (Bit 3, 2): These two bits select the type of FDD B. Selects normal mode. When RWC = 0, the data transfer rate is 250 Kb/s. When RWC = 1, the data transfer rate is 500 Kb/s. Three mode FDD select (EN3MODE = 1): 01 10 11
RWC = 0, selects 1.2 MB high-density FDD. RWC = 1, selects 1.44 MB high-density FDD.
00
Don't care RWC , selects 720 KB double-density FDD.
-72 -
W83877TF/W83877TG
FDD A type 1, 0 (Bit 1, 0): These two bits select the type of FDD A. 00 Selects normal mode. When RWC = 0, the data transfer rate is 250 Kb/s. When RWC = 1, the data transfer rate is 500 Kb/s.
RWC = 0, selects 1.2 MB high-density FDD.
Three mode FDD select (EN3MODE = 1): 01 10 11
RWC = 1, selects 1.44 MB high-density FDD.
Don't care RWC , selects 720 KB double-density FDD.
11.2.9
Configuration Register 8 (CR8), default = 00H
When the device is in Extended Function mode and EFIR is 08H, the CR8 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
Floppy Boot Drive 0 Floppy Boot Drive 1 Media ID 0 Media ID 1 SWWP DISFDDWR reserved reserved
Bit 7 - bit 6: Reserved. DISFDDWR (Bit 5): This bit enables or disables FDD write data. 0 1 Enables FDD write Disables FDD write (forces pins WE , WD to stay high)
Once this bit is set high, the FDC operates normally, but because pin WE is inactive, the FDD will not write data to diskettes. For example, if a diskette is formatted with DISFDDWR = 1, after the format command has been executed, messages will be displayed that appear to indicate that the format is complete. If the diskette is removed from the disk drive and inserted again, however, typing the DIR command will reveal that the contents of the diskette have not been modified and the diskette was not actually reformatted. Because as the operating system (e.g., DOS) reads the diskette files, it keeps the files in memory, if there is a write operation, DOS will write data to the diskette and memory simultaneously. When DOS wants to read the diskette, it will first search for the files in memory. If DOS finds the file in memory, it will not issue a read command to read the diskette. When DISFDDWR = 1, DOS still writes data to the diskette and memory, but only the data in memory are updated. If a read operation is performed, data are read from memory first, and not from the diskette. The action of removing the diskette from the drive and inserting it again forces the DSKCHG pin active. DOS will then read the contents of the
-73-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
diskette and will show that the contents have not been modified. The same holds true with write commands. This disable FDD write function allows users to protect diskettes against computer viruses by ensuring that no data are written to the diskette. SWWP (Bit 4): 0 1 Normal, use WP to determine whether the FDD is write-protected or not FDD is always write-protected
Media ID 1 Media ID 0 (Bit 3, 2): These two bits hold the media ID bit 1, 0 for three mode Floppy Boot Drive 1 Floppy Boot Drive 0 (Bit 1, 0) These two bits hold the value of floppy boot drive 1 and drive 0 for three mode
11.2.10
Configuration Register 9 (CR9), default = 0CH
When the device is in Extended Function mode and EFIR is 09H, the CR9 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
CHIP ID0 CHIP ID1 CHIP ID2 CHIP ID3 reserved EN3MODE LOCKREG PRTMODS2
PRTMODS2 (Bit 7): This bit and PRTMODS1, PRTMODS0 (bits 3, 2 of CR0) select the operating mode of the W83877TF/TG. Refer to the descriptions of CR0. LOCKREG (Bit 6): This bit enables or disables the reading and writing of all configuration registers. 0 Enables the reading and writing of CR0-CR45 1 Disables the reading and writing of CR0-CR45 (locks W83877TF/TG extension functions) EN3MODE (Bit 5): This bit enables or disables three mode FDD selection. When this bit is high, it enables the read/write 3F3H register. 0 Disables 3 mode FDD selection 1 Enables 3 mode FDD selection When three mode FDD function is enabled, the value of RWC depends on bit 5 and bit 4 of TDR(3F3H). The values of RWC and their meaning are shown in Table 11-4.
-74 -
W83877TF/W83877TG
Table 11-4
BIT 5 OF TDR BIT 4 OF TDR
RWC
RWC = 0
RWC = 1
0 0 1 1 Bit 4: Reserved.
0 1 0 1
Normal 0 1 X
250K bps 1.2 M FDD X X
500K bps X 1.4M FDD X
CHIP ID 3, CHIP ID 2, CHIP ID 1, CHIP ID 0 (Bit 3-bit 0): These four bits are read-only bits that contain chip identification information. The value is 0CH for W83877TF/TG during a read.
11.2.11
Configuration Register A (CR0A), default = 00H
When the device is in Extended Function mode and EFIR is 0AH, the CRA register can be accessed through EFDR. This register is reserved.
11.2.12
Configuration Register B (CR0B), default = 0CH
When the device is in Extended Function mode and EFIR is 0BH, the CRB register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
DRV2EN INVERTZ MFM IDENT ENIFCHG RXW4C TXW4C reserved
Bit 7: Reserved. TXW4C (Bit 6): This bit is active high. When active, the IR controller will wait for a 4-character period of time after the end of last receiving before it can start transmitting data. RXW4C (Bit 5): This bit is active high. When active, the IR controller will wait for a 4-character period of time after the end of last transmitting before it can start receiving data. ENIFCHG (Bit 4): This bit is active high. When active, it enables host interface mode change, which is determined by IDENT (Bit 3) and MFM (Bit 2).
-75-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
IDENT (Bit 3): This bit indicates the type of drive being accessed and changes the level on RWC (pin 87). 0 1
RWC will be active low for high data rates (typically used for 3.5" drives) RWC will be active high for high data rates (typically used for 5.25" drives)
When hardware reset or ENIFCHG is a logic 1, IDENT and MFM select one of three interface modes, as shown in Table 11-5. Table 11-5
IDENT MFM INTERFACE
0 0 1 1 MFM (Bit 2):
0 1 0 1
Model 30 mode PS/2 mode AT mode AT mode
This bit and IDENT select one of the three interface modes (PS/2 mode, Model 30, or PC/AT mode). INTVERTZ (Bit 1): This bit determines the polarity of all FDD interface signals. 0 1 FDD interface signals are active low FDD interface signals are active high
DRV2EN (Bit 0): PS/2 mode only
When this bit is a logic 0, this indicates that a second drive is installed and is reflected in status register A.
11.2.13
Configuration Register C (CR0C), default = 28H
When the device is in Extended Function mode and EFIR is 0CH, the CR0C register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
TX2INV RX2INV reserved URIRSEL reserved HEFERE TURB TURA
-76 -
W83877TF/W83877TG
TURA (Bit 7): 0 1 TURB (Bit 6): 0 1 MHz HEFERE (Bit 5): this bit combines with HEFRAS (CR16 bit 0) to define how to enable Extended Function Registers.
HEFRAS HEFERE ADDRESS AND VALUE
the clock source of UART A is 1.8462 MHZ (24 MHz divide 13) (default) the clock source of UART A is 24 MHz, it can make the baudrate of UART A up to 1.5 MHz the clock source of UART B is 1.8462 MHz (24 MHz divide 13) (default) the clock source of UART B is 24 MHz, it can make the baudrate of UART A up to 1.5
0 0 1 1
0 1 0 1
write 88H to the location 250H write 89H to the location 250H (default) write 86H to the location 3F0H twice write 87H to the location 3F0H twice
The default value of HEFERE is 1. Bit 4: Reserved. URIRSEL (Bit 3): 0 select UART B as IR function. 1 select UART B as normal function. The default value of URIRSEL is 1. Bit 2: Reserved. RX2INV (Bit 1): 0 the SINB pin of UART B function or IRRX pin of IR function in normal condition. 1 inverse the SINB pin of UART B function or IRRX pin of IR function TX2INV (Bit 0): 0 the SOUTB pin of UART B function or IRTX pin of IR function in normal condition. 1 inverse the SOUTB pin of UART B function or IRTX pin of IR function.
-77-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
11.2.14 Configuration Register D (CR0D), default = A3H
When the device is in Extended Function mode and EFIR is 0DH, the CR0D register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
IRMODE0 IRMODE1 IRMODE2 HDUPLX SIRRX0 SIRRX1 SIRTX0 SIRTX1
SIRTX1 (Bit 7): IRTX pin selection bit 1 SIRTX0 (Bit 6): IRTX pin selection bit 0
SIRTX1 SIRTX0 IRTX OUTPUT ON PIN
0 0 1 1 SIRRX1 (Bit 5): IRRX pin selection bit 1 SIRRX0 (Bit 4): IRRX pin selection bit 0
SIRRX1
0 1 0 1
disabled IRTX1 (pin 43) IRTX2 (pin 95) disabled
SIRRX0
IRRX INPUT ON PIN
0 0 1 1 HDUPLX (Bit 3): 0 1
0 1 0 1
disabled IRRX1 (pin 42) IRRX2 (pin 94) disabled
The IR function is Full Duplex. The IR function is Half Duplex.
IRMODE2 (Bit 2): IR function mode selection bit 2 IRMODE1 (Bit 1): IR function mode selection bit 1 IRMODE0 (Bit 0): IR function mode selection bit 0
-78 -
W83877TF/W83877TG
IR MODE IR FUNCTION IRTX IRRX
00X 010* 011* 100 101 110 111*
Disable IrDA IrDA ASK-IR ASK-IR ASK-IR ASK-IR
tri-state Active pulse 1.6 μS Active pulse 3/16 bit time Inverting IRTX pin Inverting IRTX & 500 KHZ clock Inverting IRTX Inverting IRTX & 500 KHZ clock
high Demodulation into SINB Demodulation into SINB routed to SINB routed to SINB Demodulation into SINB Demodulation into SINB
Note: The notation is normal mode in the IR function.
The SIR schematic diagram for registers CRC and CRD is shown below.
HUPLX (CRD.bit3) IRRX1
Demodulation
Transmission Time Frame 16550A
SIN2
IR-DA SIN 1 MUX 0 RX2INV URIRSEL (CRC.bit1) (CRC.bit3) IRDA Mod. 3/16 IRDA Mod. Mod1.6u
IRMODE2,1=00
1 MUX 0
1 MUX 0 IRMODE1 (CRD.bit1)
Demodulation
ASK_IR
UART2 SOUT
IRMODE2 (CRD.bit2) 1 IRDA 0 MUX
01 00 10 MUX11
IRRX2
+5V NCS0 (default) +5V
SIRRX1~0 CR0D.bit5,4 disable IRTX1 SOUT2 IRTX2 NCS1 (default)
0 1 MUX 0 1 MUX IRMODE2 (CRD.bit2) TX2INV URIRSEL CRC.bit0 (CRC,bit3) 11,00 01
IRMODE0 (CRD.bit0) 1 500KHZ 0 MUX IRMODE0 (CRD.bit0)
10 MUX
SIRTX1~0 CRD.bit7,6
11.2.15
Configuration Register E (CR0E), Configuration Register F (CR0F)
Reserved for testing. Should be kept all 0's.
-79-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
11.2.16 Configuration Register 10 (CR10), default = 00H
When the device is in Extended Function mode and EFIR is 10H, the CR10 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
GIO0AD0 GIO0AD1 GIO0AD2 GIO0AD3 GIO0AD4 GIO0AD5 GIO0AD6 GIO0AD7
GIO0AD7-GIO0AD0 (Bit 7-bit 0): GIOP0 (pin 92) address bit 7 - bit 0.
11.2.17 Configuration Register 11 (CR11), default = 00H
When the device is in Extended Function mode and EFIR is 11H, the CR11 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
GIO0AD8 GIO0AD9 GIO0AD10 reserved reserved reserved G0CADM0 G0CADM1
G0CADM1-G0CADM0 (Bit 7, 6): GIOP0 address bit compare mode selection
G0CADM1 G0CADM0 GIOP0 PIN
0 0 1 1 Bit 5-bit 3: Reserved
0 1 0 1
compare GIO0AD10-GIO0AD0 with SA10-SA0 compare GIO0AD10-GIO0AD1 with SA10-SA1 compare GIO0AD10-GIO0AD2 with SA10-SA2 compare GIO0AD10-GIO0AD3 with SA10-SA3
GIO0AD10-GIO0AD8 (Bit 2-bit 0): GIOP0 (pin 92) address bit 10-bit 8.
-80 -
W83877TF/W83877TG
11.2.18 Configuration Register 12 (CR12), default = 00H
When the device is in Extended Function mode and EFIR is 12H, the CR12 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
GIO1AD0 GIO1AD1 GIO1AD2 GIO1AD3 GIO1AD4 GIO1AD5 GIO1AD6 GIO1AD7
GIO1AD7-GIO1AD0 (Bit 7-bit 0): GIOP1 (pin 96) address bit 7-bit 0.
11.2.19 Configuration Register 13 (CR13), default = 00H
When the device is in Extended Function mode and EFIR is 13H, the CR13 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
GIO1AD8 GIO1AD9 GIO1AD10 reserved reserved reserved G1CADM0 G1CADM1
G1CADM1-G1CADM0 (bit 7, 6): GIOP1 address bit compare mode selection
G1CADM1 G1CADM0 GIOP1 PIN
0 0 1 1 Bit 5- bit 3: Reserved
0 1 0 1
compare GIO1AD10-GIO1AD0 with SA10-SA0 compare GIO1AD10-GIO1AD1 with SA10-SA1 compare GIO1AD10-GIO1AD2 with SA10-SA2 compare GIO1AD10-GIO1AD3 with SA10-SA3
GIO1AD10-GIO1AD8 (Bit 2-bit 0): GIOP1 (pin 96) address bit 10-bit 8.
-81-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
11.2.20 Configuration Register 14 (CR14), default = 00H
When the device is in Extended Function mode and EFIR is 14H, the CR14 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
GDA0IPI GDA0OPI GCS0IOW GCS0IOR GIO0CSH GIOP0MD0 GIOP0MD1 GIOP0MD2
GIOP0MD2-GIOP0MD0 (Bit 7-bit 5): GIOP0 pin mode selection
GIOP0MD2 GIOP0MD1 GIOP0MD0 GIOP0 PIN
0 0
0 0
0 1
inactive (tri-state) as a data output pin (SD0→GIOP0), when (AEN = L) AND (NIOW = L) AND (SA10-0 = GIO0AD10-0), the value of SD0 will be present on GIOP0 as a data input pin (GIOP0→SD0), when (AEN = L) AND (NIOR = L) AND (SA10-0 = GIO0AD10-0), the value of GIOP0 will be present on SD0 as a data input/output pin (GIOP0↔SD0). When (AEN = L) AND (NIOW = L) AND (SA10-0 = GIO0AD10-0), the value of SD0 will be present on GIOP0 When (AEN = L) AND (NIOR = L) AND (SA10-0 = GIO0AD10-0), the value of GIOP0 will be present on SD0
0
1
0
0
1
1
1
X
X
as a Chip Select pin, the pin will be active at (AEN = L) AND (SA10-0 = GIO0AD10-0) OR (NIOR = L) OR (NIOW = L)
GIO0CSH(Bit 4): 0 1 the Chip Select pin will be active LOW when (AEN = L) AND (SA10-0 = GIO0AD100) OR (NIOR = L) OR (NIOW = L) the Chip Select pin will be active HIGH when (AEN = L) AND (SA10-0 = GIO0AD100) OR (NIOR = L) OR (NIOW = L)
GCS0IOR (Bit 3): See below.
-82 -
W83877TF/W83877TG
GCS0IOW (Bit 2): See below.
GCS0IOR GCS0IOW
0 0 1 1
0 1 0 1
GIOP0 functions as a Chip Select pin, and will be active when (AEN = L) AND (SA10-0 = GIO0AD10-0) GIOP0 functions as a Chip Select pin, and will be active when (AEN = L) AND (SA10-0 = GIO0AD10-0) AND (NIOW = L) GIOP0 functions as a Chip Select pin, and will be active when (AEN = L) AND (SA10-0 = GIO0AD10-0) AND (NIOR = L) GIOP0 functions as a Chip Select pin, and will be active when (AEN = L) AND (SA10-0 = GIO0AD10-0) AND (NIOW = L OR NIOR = L)
GDA0OPI (Bit 1): See below. GDA0IPI (Bit 0): See below.
GDA0OPI GDA0IPI
0 0 1 1
0 1 0 1
GIOP0 functions as a data pin, and GIOP0→SD0, SD0→GIOP0 GIOP0 functions as a data pin, and inverse GIOP0→SD0, SD0→ GIOP0 GIOP0 functions as a data pin, and GIOP0→SD0, inverse SD0→ GIOP0 GIOP0 functions as a data pin, and inverse GIOP0→SD0, inverse SD0 →GIOP0
11.2.21 Configuration Register 15 (CR15), default = 00H
When the device is in Extended Function mode and EFIR is 15H, the CR15 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
GDA0IPI GDA0OPI GCS0IOW GCS0IOR GIO0CSH GIOP0MD0 GIOP0MD1 GIOP0MD2
-83-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
GIOP1MD2-GIOP1MD0 (Bit 7-bit 5): GIOP1 pin mode selection
GIOP1MD2 GIOP1MD1 GIOP1MD0 GIOP1 PIN
0 0
0 0
0 1
inactive (tri-state) as a data output pin (SD1→GIOP1), when (AEN = L) AND (NIOW = L) AND (SA10-0 = GIO1AD10-0), the value of SD1 will be present on GIOP1 as a data input pin (GIOP1→SD1), when (AEN = L) AND (NIOR = L) AND (SA10-0 = GIO1AD10-0), the value of GIOP1 will be present on SD1 as a data input/output pin (GIOP1↔SD1). When (AEN = L) AND (NIOW = L) AND (SA10-0 = GIO1AD10-0), the value of SD1 will be present on GIOP1 When (AEN = L) AND (NIOR = L) AND (SA10-0 = GIO1AD10-0), the value of GIOP1 will be present on SD1 as a Chip Select pin, the pin will be active at (AEN = L) AND (SA10-0 = GIO1AD10-0) OR (NIOR = L) OR (NIOW = L)
0
1
0
0
1
1
1
X
X
GIO1CSH (Bit 4): 0 1 the Chip Select pin will active LOW when (AEN = L) AND (SA10-0 = GIOAD10-0) OR (NIOR = L) OR (NIOW = L) the Chip Select pin will active HIGH when (AEN = L) AND (SA10-0 = GIOAD10-0) OR (NIOR = L) OR (NIOW = L)
GCS1IOR (Bit 3): See below. GCS1IOW (Bit 2): See below.
GCS1IOR GCS1IOW
0 0 1 1
0 1 0 1
GIOP1 functions as a Chip Select pin, and will be active when (AEN = L) AND (SA10-0 = GIO1AD10-0) GIOP1 functions as a Chip Select pin, and will be active when (AEN = L) AND (SA10-0 = GIO1AD10-0) AND (NIOW = L) GIOP1 functions as a Chip Select pin, and will be active when (AEN = L) AND (SA10-0 = GIO1AD10-0) AND (NIOR = L) GIOP1 functions as a Chip Select pin, and will be active when (AEN = L) AND (SA10-0 = GIO1AD10-0) AND (NIOW = L OR NIOR = L)
GDA0OPI (Bit 1): See below.
-84 -
W83877TF/W83877TG
GDA1IPI (Bit 0): See below.
GDA1OPI GDA1IPI
0 0 1 1
0 1 0 1
GIOP1 functions as a data pin, and GIOP1→SD1, SD1→GIOP1 GIOP1 functions as a data pin, and inverse GIOP1→SD1, SD1→ GIOP1 GIOP1 functions as a data pin, and GIOP1→SD1, inverse SD1→ GIOP1 GIOP1 functions as a data pin, and inverse GIOP1→ SD1, inverse SD1→GIOP1
11.2.22 Configuration Register 16 (CR16), default = 04H
When the device is in Extended Function mode and EFIR is 16H, the CR16 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
HEFRAS reserved PNPCVS reserved G0IQSEL G1IQSEL reserved reserved
Bit 7-bit 6: Reserved. G1IQSEL (Bit 5): 0 1 pin 96 function as IRQ_A. pin 96 function as GIO1.
The corresponding power-on setting pin is NRTSB (pin 45). G0IQSEL (Bit 4): 0 1 pins 92 function as IRQ_B. pins 92 function as GIO0.
The corresponding power-on setting pin is NRTSB (pin 45). Bit 3: Reserved. PNPCVS (bit 2): 0 1 PnP-related registers (CR20, CR23-29) reset to be all 0s. default settings for these registers.
-85-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
The corresponding power-on setting pin is NRTSA (pin 36).
PNP REGISTER PNPCVS = 1 PNPCVS = 0
CR20 CR23 CR24 CR25 CR26 CR27 CR28 CR29
FCH DEH FEH BEH 23H 05H 43H 60H
00H 00H 00H 00H 00H 00H 00H 00H
Note: The new value of PNPCVS must be complementary to the old one to make an effective change. For example, the user must set PNPCVS to 1 first and then reset it to 0 to reset these PnP registers if the present value of PNPCVS is 0.
Bit 1: Reserved. HEFRAS (Bit 0): combines with HEFERE (bit 5 of CR0C) to define how to access Extended Function Registers (refer to bit 5 of CR0C description). The corresponding power-on setting pin is NDTRA (pin 35).
11.2.23 Configuration Register 17 (CR17), default = 00H
When the device is in Extended Function mode and EFIR is 17H, the CR17 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
DSUBLGRQ DSUALGRQ DSPRLGRQ DSFDLGRQ PRIRQOD reserved reserved reserved
Bit 7-bit 5: Reserved. PRIRQOD (Bit 4): 0 1 printer IRQ ports are totem-poles in SPP mode and open-drains in ECP/EPP mode. printer IRQ ports are totem-poles in all modes.
DSFDLGRQ (Bit 3): 0 1 enable FDC legacy mode on IRQ and DRQ selections. DO register bit 3 has effect on selecting IRQ. disable FDC legacy mode on IRQ and DRQ selections. DO register bit 3 has no effect on selecting IRQ.
-86 -
W83877TF/W83877TG
DSPRLGRQ (Bit 2): 0 1 enable PRT legacy mode on IRQ and DRQ selections. DCR bit 4 has effect on selecting IRQ. disable PRT legacy mode on IRQ and DRQ selections. DCR bit 4 has no effect on selecting IRQ.
DSUALGRQ (Bit 1): 0 1 enable UART A legacy mode on IRQ selection. MCR bit 3 has effect on selecting IRQ. disable UART A legacy mode on IRQ selection. MCR bit 3 has no effect on selecting IRQ.
DSUBLGRQ (Bit 0): 0 1 enable UART B legacy mode on IRQ selection. MCR bit 3 has effect on selecting IRQ. disable UART B legacy mode on IRQ selection. MCR bit 3 has no effect on selecting IRQ.
11.2.24
Configuration Register 18 (CR18), default=00H
When the device is in Extended Function mode and EFIR is 18H, the CR18 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
SHARA SHARB SHARC SHARD SHARE SHARF SHARG SHARH
This register is used to select whether these interrupt request pins are in the IRQ sharing mode. While in the IRQ sharing mode, the corresponding pin is low active for 200ns for the interrupt request and keeps tri-stated otherwise. SHARH (Bit 7): 0 1 SHARG (Bit 6): 0 1 pin IRQ_G in the legacy ISA IRQ mode. pin IRQ_G in the IRQ sharing mode. pin IRQ_H in the legacy ISA IRQ mode. pin IRQ_H in the IRQ sharing mode.
-87-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
SHARF (Bit 5): 0 1 SHARE (Bit 4): 0 1 SHARD (Bit 3): 0 1 SHARC (Bit 2): 0 1 SHARB(Bit 1): 0 1 SHARA (Bit 0): 0 1 pin IRQ_A in the legacy ISA IRQ mode. pin IRQ_A in the IRQ sharing mode. pin IRQ_B in the legacy ISA IRQ mode. pin IRQ_B in the IRQ sharing mode. pin IRQ_C in the legacy ISA IRQ mode. pin IRQ_C in the IRQ sharing mode. pin IRQ_D in the legacy ISA IRQ mode. pin IRQ_D in the IRQ sharing mode. pin IRQ_E in the legacy ISA interrupt mode. pin IRQ_E in the IRQ sharing mode. pin IRQ_F in the legacy ISA IRQ mode. pin IRQ_F in the IRQ sharing mode.
11.2.25 Configuration Register 19 (CR19), default=00H
When the device is in Extended Function mode and EFIR is 19H, the CR19 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
FASTB FASTA reserved reserved reserved reserved reserved reserved
-88 -
W83877TF/W83877TG
This register is used for the high speed modem application. While the bit is set to logic 1 it can make the baudrate of UART up to 921.2KBPS (the clock source of UART is 14.769MHz) for high speed transmit/receive. Bit 7 - bit 2: Reserved. FASTA (Bit 1): 0 1 FASTB (Bit 0): 0 1 the clock source of UART B is the same as the frequency of TURB (CR0C bit 6) and SUBMIDI (CR3 bit 0) selected. the clock source of UART B is 14.769MHZ. the clock source of UART A is the same as the frequency of TURA (CR0C bit 7) and SUAMIDI (CR3 bit 1) selected. the clock source of UART A is 14.769MHZ.
11.2.26 Configuration Register 20 (CR20)
When the device is in Extended Function mode and EFIR is 20H, the CR20 register can be accessed through EFDR. Default = FCH if CR16 bit 2 = 1; default = 00H if CR16 bit 2 = 0. The bit definitions are as follows:
7 6 5 4 3 2 1 0
reserved reserved FDCAD2 FDCAD3 FDCAD4 FDCAD5 FDCAD6 FDCAD7
This register is used to select the base address of the Floppy Disk Controller (FDC) from 100H-3F0H on 16-byte boundaries. NCS = 0 and A10 = 0 are required to access the FDC registers. A[3:0] are always decoded as 0xxxb. FDCAD7-FDCAD2 (Bit 7-bit 2): match A[9:4]. Bit 7 = 0 and bit 6 = 0 disable this decode. Bit 1-bit 0: Reserved, fixed at zero.
11.2.27 Configuration Register 23 (CR23)
When the device is in Extended Function mode and EFIR is 23H, the CR23 register can be accessed through EFDR. Default = DEH if CR16 bit 2 = 1; default = 00H if CR16 bit 2 = 0. The bit definitions are as follows:
-89-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
7 6 5 4 3 2 1 0
PRTAD0 PRTAD1 PRTAD2 PRTAD3 PRTAD4 PRTAD5 PRTAD6 PRTAD7
This register is used to select the base address of the parallel port. If EPP is disable, the parallel port can be set from 100H-3FCH on 4-byte boundaries. If EPP is enable, the parallel port can be set from 100H-3F8H on 8-byte boundaries. NCS = 0 and A10 = 0 are required to access the parallel port when in compatible, bi-directional, or EPP modes. A10 is active in ECP mode. PRTAD7-PRTAD0 (Bit 7-bit 0): match A[9:2]. Bit 7 = 0 and bit 6 = 0 disable this decode.
11.2.28 Configuration Register 24 (CR24)
When the device is in Extended Function mode and EFIR is 24H, the CR24 register can be accessed through EFDR. Default = FEH if CR16 bit 2 = 1; default = 00H if CR16 bit 2 = 0. The bit definitions are as follows:
7 6 5 4 3 2 1 0
reserved URAAD1 URAAD2 URAAD3 URAAD4 URAAD5 URAAD6 URAAD7
This register is used to select the base address of the UART A from 100H-3F8H on 8-byte boundaries. NCS = 0 and A10 = 0 are required to access the UART A registers. A[2:0] are don't-care conditions. URAAD7-URAAD1 (Bit 7-bit 1): match A[9:3]. Bit 7 = 0 and bit 6 = 0 disable this decode. Bit 0: Reserved, fixed at zero.
11.2.29 Configuration Register 25 (CR25)
When the device is in Extended Function mode and EFIR is 25H, the CR25 register can be accessed through EFDR. Default = BEH if CR16 bit 2 = 1; default = 00H if CR16 bit 2 = 0. The bit definitions are as follows:
7 6 5 4 3 2 1 0
reserved URBAD1 URBAD2 URBAD3 URBAD4 URBAD5 URBAD6 URBAD7
-90 -
W83877TF/W83877TG
This register is used to select the base address of the UART B from 100H-3F8H on 8-byte boundaries. NCS = 0 and A10 = 0 are required to access the UART B registers. A[2:0] are don't-care conditions. URBAD7-URBAD1 (Bit 7-bit 1): match A[9:3]. Bit 7 = 0 and bit 6 = 0 disable this decode. Bit 0: Reserved, fixed at zero.
11.2.30 Configuration Register 26 (CR26)
When the device is in Extended Function mode and EFIR is 26H, the CR26 register can be accessed through EFDR. Default = 23H if CR16 bit 2 = 1; default = 00H if CR16 bit 2 = 0. The bit definitions are as follows:
7 6 5 4 3 2 1 0
PRTDQS0 PRTDQS1 PRTDQS2 PRTDQS3 FDCDQS0 FDCDQS1 FDCDQS2 FDCDQS3
FDCDQS3-FDCDQS0 (Bit 7-bit 4): Allocate DMA resource for FDC. PRTDQS3-PRTDQS0 (Bit 3-bit 0): Allocate DMA resource for PRT.
BIT 7- BIT4, BIT 3 - BIT 0 DMA SELECTED
0000 0001 0010 0011
None DMA_A DMA_B DMA_C
11.2.31 Configuration Register 27 (CR27)
When the device is in Extended Function mode and EFIR is 27, the CR27 register can be accessed through EFDR. Default = 05H if CR6 bit 2 = 1; default = 00H if CR16 bit 2 = 0. The bit definitions are as follows:
7 6 5 4 3 2 1 0
PRTIQS0 PRTIQS1 PRTIQS2 PRTIQS3 reserved ECPIRQx0 ECPIRQx1 ECPIRQx2
-91-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
ECPIRQx2-ECPIRQx0 (Bit7-bit 5): These bits are configurable equivalents to bit[5:3] of cnfgB register in ECP mode except that cnfgB[5:3] are read-only bits. They indicate the IRQ resource assigned for the ECP printer port. It is the software designer's responsibility to ensure that CR27[7:5] and CR27[3:0] are consistent. For example, CR27[7:5] should be filled with 001 (select IRQ 7) if CR27[3:0] are to be programmed as 0101 (select IRQ_E) while IRQ_E is connected to IRQ 7.
CR27[7:5] IRQ RESOURCE
000 001 010 011 100 101 110 111 Bit 4: Reserved.
reflect other IRQ resources selected by CR27[3:0] (default) IRQ 7 IRQ 9 IRQ 10 IRQ 11 IRQ 14 IRQ 15 IRQ 5
PRTIQS3-PRTIQS0 (Bit 3-bit 0): Select IRQ resource for the parallel port. Any unselected IRQ pin is in tri-state.
CR27[3:0] SELECT IRQ PIN
0000 0001 0010 0011 0100 0101 0110 0111 1000
None IRQ_A IRQ_B IRQ_C IRQ_D IRQ_E IRQ_F IRQ_G IRQ_H
While in the Serial IRQ mode (IRQMODS=1, CR31 bit2), the above selection is invalid and all the IRQ signal pins, from IRQ_A to IRQ_H, are all in tri-state. The parallel port IRQ is dedicated to the SERIRQ pin. For the host controller to correctly sample the parallel port IRQ, the parallel port IRQ should be programmed to appear in one of IRQ/Data Frame sampling periods. In Serial IRQ mode, the definition of PRTIQS3-PRTIQS0 (bit 3-bit 0) is as follows: PRTIQS3-PRTIQS0 (Bit 3-bit 0): Select the IRQ/Data Frame sampling period on the SERIRQ pin.
-92 -
W83877TF/W83877TG
CR27[3:0]
IRQ/DATA FRAME PERIOD
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
None IRQ1 Reserved for SMI IRQ3 IRQ4 IRQ5 IRQ6 IRQ7 IRQ8 IRQ9 IRQ10 IRQ11 IRQ12 IRQ13 IRQ14 IRQ15
11.2.32 Configuration Register 28 (CR28)
When the device is in Extended Function mode and EFIR is 28, the CR28 register can be accessed through EFDR. Default = 43H if CR6 bit 2 = 1; default = 00H if CR16 bit 2 = 0. The bit definitions are as follows:
7 6 5 4 3 2 1 0
URBIQS0 URBIQS1 URBIQS2 URBIQS3 URAIQS0 URAIQS1 URAIQS2 URAIQS3
URAIQS3-URAIQS0 (Bit 7-bit 4): Allocate interrupt resource for UART A. URBIQS3-URBIQS0 (Bit 3-bit 0): Allocate interrupt resource for UART B.
-93-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
11.2.33 Configuration Register 29 (CR29)
When the device is in Extended Function mode and EFIR is 29, the CR29 register can be accessed through EFDR. Default = 62H if CR6 bit 2 = 1; default = 00H if CR16 bit 2 = 0. The bit definitions are as follows:
7 6 5 4 3 2 1 0
IQNIQS0 IQNIQS1 IQNIQS2 IQNIQS3 FDCIQS0 FDCIQS1 FDCIQS2 FDCIQS3
FDCIQS3-FDCIQS0 (Bit 7-bit 4): Allocate interrupt resource for FDC. IQNIQS3-IQNIQS0 (Bit 3-bit 0): Allocate interrupt resource for IRQIN.
11.2.34 Configuration Register 2C (CR2C), default=00H
When the device is in Extended Function mode and EFIR is 2CH, the CR2C register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
reserved reserved CLKINSEL reserved reserved reserved reserved reserved
Bit 7 - bit 3 : Reserved. CLKINSEL (Bit 2): Clock input frequency selection. This pin should be reset/set according the CLKIN pin. 0 1 the clock source on CLKIN pin is 24 MHz.(default) the clock source on CLKIN pin is 48 MHz.
Bit 1- bit 0: Reserved.
-94 -
W83877TF/W83877TG
11.2.35 Configuration Register 2D (CR2D), default=00H
When the device is in Extended Function mode and EFIR is 2DH, the CR2D register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
DRTA0 DRTA1 DIS_PRECOMP0 DRTB0 DRTB1 DIS_PRECOMP1 reserved reserved
This register controls the data rate selection for FDC. It also controls if precompensation is enabled. Bit 7 - bit 6: Reserved. DIS_PRECOMP1 (Bit 5): This bit controls if precompensation is enabled for FDD B. 0 1 enable precompensation for FDD B disable precompensation for FDD B
DRTB1, DRTB0 (Bit 4,3): These two bits combining with data rate selection bits in Date Rate Register select the operational data rate for FDD B as shown in last table. DIS_PRECOMP0 (Bit 2): This bit controls if precompensation is enabled for FDD A. 0 1 enable precompensation for FDD A disable precompensation for FDD A
DRTA1, DRTA0 (Bit 1 - bit 0): These two bits combining with data rate selection bits in Date Rate Register select the operational data rate for FDD A as follows:
-95-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
DRIVE RATE TABLE DRTA1 DRTA0
DATA RATE DRATE1 DRATE0
OPERATIONAL DATA RATE MFM FM
0 0 0 0 0 0 0 0 1 1 1 1
0 0 0 0 1 1 1 1 0 0 0 0
1 0 0 1 1 0 0 1 1 0 0 1
1 0 1 0 1 0 1 0 1 0 1 0
1M 500K 300K 250K 1M 500K 500K 250K 1M 500K 2M 250K
--250K 150K 125K --250K 250K 125K --250K --125K
11.2.36 Configuration Register 31 (CR31), default=00H
When the device is in Extended Function mode and EFIR is 31H, the CR31 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
reserved reserved IRQMODS reserved SCIIRQ0 SCIIRQ1 SCIIRQ2 SCIIRQ3
SCIIRQ3 ~ SCIIRQ0 (Bit 7 - bit 4): The four bits select one IRQ pin for the SCI signal except for dedicated SCI signal output pin. Any unselected pin is in tri-state.
-96 -
W83877TF/W83877TG
CR31[7:4]
MAPPED IRQ PIN
0000 0001 0010 0011 0100 0101 0110 0111 1000
None (default) IRQ_A IRQ_B IRQ_C IRQ_D IRQ_E IRQ_F IRQ_G IRQ_H
While in the Serial IRQ mode (IRQMODS=1, CR31 bit 2), the above selection is invalid and all the IRQ signal pins, from IRQ_A to IRQ_H, are all in tri-state. The SCI interrupt output is dedicated to the SERIRQ pin. For the host controller to correctly sample the SCI interrupt, the SCI interrupt should be programmed to appear in one of IRQ/Data Frame sampling periods. In Serial IRQ mode, the definition of SCIIQS3-SCIIQS0 (bit 7-bit 4) is as follows: SCIIQS3-SCIIQS0 (bit 7-bit 4): Select the IRQ/Data sampling period on the SERIRQ pin.
CR27[7:4] IRQ/DATA FRAME PERIOD
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Bit 3: Reserved.
None IRQ1 Reserved for SMI IRQ3 IRQ4 IRQ5 IRQ6 IRQ7 IRQ8 IRQ9 IRQ10 IRQ11 IRQ12 IRQ13 IRQ14 IRQ15
-97-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
IRQMODS (Bit 2): IRQ mode selection. W83877TF/TG supports: (1) legacy ISA IRQ mode or ISA IRQ sharing mode. (2) Serial IRQ mode used in the PCI bus. In the legacy ISA IRQ sharing mode, the selected IRQ pin for the device's IRQ is defined in the configuration registers CR27 - CR29. In the ISA IRQ sharing mode, configuration register CR18 indicates which IRQ pin is in the IRQ sharing mode. 0: 1: Bit 1 - bit 0: Reserved. legacy ISA IRQ mode or ISA IRQ sharing mode.(default) Serial IRQ mode used in PCI bus.
11.2.37 Configuration Register 32 (CR32), default=00H
When the device is in Extended Function mode and EFIR is 32H, the CR32 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
URBPME URAPME FDCPME PRTPME reserved reserved reserved CHIPPME
CHIPPME (Bit 7): W83877TF/TG chip power management enable. 0 1 disable the ACPI/Legacy and the auto power management functions. enable the ACPI/Legacy and the auto power management functions.
Bit 6 - bit 4: Reserved. PRTPME (Bit 3): Printer port power management enable. 0 1 . FDCPME (Bit 2): FDC power management enable. 0 1 . disable the auto power management function. enable the auto power management function, if this bit and CHIPPME(CR32 bit 7) are both set to 1. disable the auto power management function. enable the auto power management function, if this bit and CHIPPME(CR32 bit 7) are both set to 1.
-98 -
W83877TF/W83877TG
URAPME (Bit 1): UART A power management enable. 0 1 . URBPME (Bit 0): UART B power management enable. 0 1 disable the auto power management functions. enable the auto power management function, if this bit and CHIPPME(CR32 bit 7) are both set to 1. disable and the auto power management function. enable auto power management function, if this bit and CHIPPME(CR32 bit 7) are both set to 1.
11.2.38 Configuration Register 33 (CR33), default=00H
When the device is in Extended Function mode and EFIR is 33H, the CR33 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
reserved reserved PM1AD2 PM1AD3 PM1AD4 PM1AD5 PM1AD6 PM1AD7
PM1AD7 - PM1AD2 (Bit 7 - bit 2): Base address of the power management register block PM1. This address is the base address of PM1a_EVT_BLK in the ACPI specification. The based address should range from 01,0000,0000b to 11,1111,0000b ,i.e., 100H ~ 3F0H, where bit 1 and bit 0 of the base address should be set to 0 and the based address is in the 16-byte alignment. Note that the based address of PM1a_CNT_BLK is equal to PM1a_EVT_BLK + 4, and PM_TMR_BLK is equal to PM1a_EVT_BLK + 8. Bit 1 - bit 0: Reserved, fixed at 0.
11.2.39 Configuration Register 34 (CR34), default=00H
When the device is in Extended Function mode and EFIR is 34H, the CR34 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
reserved GPEAD1 GPEAD2 GPEAD3 GPEAD4 GPEAD5 GPEAD6 GPEAD7
-99-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
GPEAD7 - GPEAD1 (Bit7 - bit 1): Base address of the power management register block GPE. This address is the base address of GPE0_BLK in the ACPI specification. The based address should range from 01,0000,0000b to 11,1111,1000b ,i.e., 100H ~ 3F8H, where bit 0 of the base address should be set to 0 and the based address is in the 8-byte alignment. Note that the base address of GPE1_BLK is GPE0_BLK + 4. Bit 0: Reserved, fixed at 0.
11.2.40 Configuration Register 35 (CR35), default=00H
When the device is in Extended Function mode and EFIR is 35H, the CR35 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
URACNT0 URACNT1 URACNT2 URACNT3 URACNT4 URACNT5 URACNT6 URACNT7
URACNT7 - URACNT0 (Bit 7 - bit 0): UART A idle timer count. This register is used to specify the initial value of UART A idle timer. Once UART A enters the working state (that is, after any access to this device, any IRQ, and any external input), the power down machine of UART A reloads this count value and the idle timer counts down. When the timer counts down to zero, UART A enters the power down state ,i.e., sleeping state. If this register is set to 00H, the power down function will be invalid. The time resolution of this value is minute or second, which is defined by the TMIN_SEL bit of the CR3A. Note that (1). this register is valid only when the power management function of UART A is enabled, that is, CHIPPME=1 (CR32 bit 7) and URAPME=1 (CR32 bit 1), (2). If the register is set to 00H, UART A will remain in the current state(working or sleeping).
11.2.41 Configuration Register 36 (CR36), default=00H
When the device is in Extended Function mode and EFIR is 36H, the CR36 register can be accessed through EFDR. The bit definitions are as follows:
2 1
7
6
5
4
3
0
URBCNT0 URBCNT1 URBCNT2 URBCNT3 URBCNT4 URBCNT5 URBCNT6 URBCNT7
-100 -
W83877TF/W83877TG
URBCNT7 - URBCNT0 (Bit 7 - bit 0): UART B idle timer count. This register is used to specify the initial value of UART B idle timer. Once UART B enters the working state (that is, after any access to this device, any IRQ, and any external input), the power down machine of UART B reloads this count value and the idle timer counts down. When the timer counts down to zero, UART B enters the power down state ,i.e., sleeping state. If this register is set to 00H, the power down function will be invalid. The time resolution of this value is minute or second, which is defined by the TMIN_SEL bit of CR3A. Note that (1). this register is valid only when the power management function of UART B is enabled, that is, CHIPPME=1 (CR32 bit 7) and URBPME=1 (CR32 bit 0), (2). If the register is set to 00H, UART B will remain in the current state(working or sleeping).
11.2.42 Configuration Register 37 (CR37), default=00H
When the device is in Extended Function mode and EFIR is 37H, the CR37 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
FDCCNT0 FDCCNT1 FDCCNT2 FDCCNT3 FDCCNT4 FDCCNT5 FDCCNT6 FDCCNT7
FDCCNT7 - FDCCNT0 (Bit 7 - bit 0): FDC idle timer count. This register is used to specify the initial value of FDC idle timer. Once FDC enters the working state (that is, after any access to this device, any IRQ, and any external input), the power down machine of FDC reloads this count value and the idle timer counts down. When the timer counts down to zero, FDC enters the power down state ,i.e., sleeping state. If this register is set to 00H, the power down function will be invalid. The time resolution of this value is minute or second, which is defined by the TMIN_SEL bit of the CR3A. Note that (1). this register is valid only when the power management function of FDC is enabled, that is, CHIPPME=1 (CR32 bit 7) and FDCPME=1 (CR32 bit 2), (2). If the register is set to 00H, FDC will remain in the current state(working or sleeping).
11.2.43 Configuration Register 38 (CR38), default=00H
When the device is in Extended Function mode and EFIR is 38H, the CR38 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
PRTCNT0 PRTCNT1 PRTCNT2 PRTCNT3 PRTCNT4 PRTCNT5 PRTCNT6 PRTCNT7
-101-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
PRTCNT7 - PRTCNT0 (Bit 7 - bit 0): printer port idle timer count. This register is used to specify the initial value of the printer port idle timer. Once the printer port enters the working state (that is, after any access to this device, any IRQ, and any external input), the power down machine of the printer port reloads this count value and this idle timer counts down. When the timer counts down to zero, printer port enters the power down state ,i.e., sleeping state. If this register is set to 00H, the power down function will be invalid. The time resolution of this value is minute or second, which is defined by the TMIN_SEL bit of CR3A. Note that (1). this register is valid only when the power management function of the printer port is enabled, that is, CHIPPME=1 (CR32 bit 7) and PRTPME=1 (CR32 bit 3), (2). If the register is set to 00H, the printer port will remain in the current state(working or sleeping).
11.2.44 Configuration Register (CR39), default=00H
When the device is in Extended Function mode and EFIR is 39H, the CR39 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
GSBCNT0 GSBCNT1 GSBCNT2 GSBCNT3 GSBCNT4 GSBCNT5 GSBCNT6 GSBCNT7
GSBCNT7 - GSBCNT0 (Bit 7 - bit 0): global stand-by idle timer count. Once all devices of the chip (including UART A, UART B, FDC and the printer port) are in the power down state, the power down machine of W83877TF/TG chip loads this register value and counts down. When the timer counts to zero, the whole chip enters the power down state, i.e., sleeping state. If this register is set to 0, the power down function will be invalid. The time resolution of this register value is minute or second, which is defined by the TMIN_SEL bit of CR3A. Note that (1). this register is valid when the CHIPPME = 1 (CR32 bit 7), and (2) If the register is set to 00H, W83877TF/TG chip will remain in the current state(working or sleeping).
11.2.45 Configuration Register 3A (CR3A), default=00H
When the device is in Extended Function mode and EFIR is 3AH, the CR3A register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
UPULLEN SMI_EN reserved reserved reserved TMIN_SEL reserved reserved
Bit 7 - bit 6 : Reserved, fixed at 0.
-102 -
W83877TF/W83877TG
TMIN_SEL (Bit 5): Time resolution of the auto power machines of all devices. CR35 to CR39 store the initial counts of the devices. 0 1 one second one minute
Bit 4 - bit 2: Reserved, fixed at 0. SMI_EN (Bit 1): SMI output pin enable. While an SMI event is raised on the output of the SMI logic, this bit determines whether the SMI interrupt will be generated on the SMI output SMI pin and on the Serial IRQ IRQSER pin while in Serial IRQ mode. 0 1 disable enable
UPULLEN (Bit 0): Enable the pull up of IRQSER pin in Serial IRQ mode. 0 1 disable the pull up of IRQSER pin. enable the pull up of IRQSER pin.
11.2.46 Configuration Register 3B (CR3B), default=00H
Reserved for testing. Should be kept all 0's.
11.2.47 Configuration Register 40 (CR40), default=00H
When the device is in Extended Function mode and EFIR is 40H, the CR40 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
URBIDLSTS URAIDLSTS FDCIDLSTS PRTIDLSTS reserved reserved reserved reserved
Bit 7 - bit 4 : Reserved, fixed at 0. Bit 3 - bit 0 : Devices' idle status. These bits indicate that the individual device's idle timer expires due to no I/O access, IRQ, and external input to the device respectively. These 4 bits are controlled by the printer port, FDC, UART A, and UART B power down machines individually. The bits are set/cleared by W83877TF/TG automatically. Writing a 1 can also clear this bit, and writing a 0 has no effect.
-103-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
PRTIDLSTS (Bit 3): printer port idle status. 0 1 printer port is now in the working state. printer port is now in the sleeping state due to no printer port access, IRQ, DMA acknowledge, and no transition on BUSY, ACK , PE, SLCT, and ERR pins.
FDCIDLSTS (Bit 2): FDC idle status. 0 1 FDC is now in the working state. FDC is now in the sleeping state due to no FDC access, no IRQ, no DMA acknowledge, and no enabling of the motor enable bits in the DOR register.
URAIDLSTS (Bit 1): UART A idle status. 0 1 UART A is now in the working state. UART A is now in the sleeping state due to no UART A access, no IRQ, the receiver is now waiting for a start bit, the transmitter shift register is now empty, and no transition on MODEM control input lines.
URBIDLSTS (Bit 0): UART B idle status. 0 1 UART B is now in the working state. UART B is now in the sleeping state due to no UART B access, no IRQ, the receiver is now waiting for a start bit, the transmitter shift register is now empty, and no transition on MODEM control input lines.
11.2.48 Configuration Register 41 (CR41), default=00H
When the device is in Extended Function mode and EFIR is 41H, the CR41 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
URBTRAPSTS URATRAPSTS FDCTRAPSTS PRTTRAPSTS reserved reserved reserved reserved
Bit 7 - bit 4 : Reserved, fixed at 0. Bit 3 - bit 0 : Devices' trap status. These bits indicate that the individual device wakes up due to any I/O access, IRQ, and external input to the device respectively. The device's idle timer reloads the initial count value from CR35-CR39, depending on which device wakes up. These 4 bits are controlled by the printer port, FDC, UART A, and UART B power down machines individually. The bits are set/cleared by W83877TF/TG automatically. Writing a 1 can also clear this bit, and writing a 0 has no effect.
-104 -
W83877TF/W83877TG
PRTTRAPSTS (Bit 3): printer port trap status. 0 1 the printer port is now in the sleeping state. the printer port is now in the working state due to any printer port access, any IRQ, any DMA acknowledge, and any transition on BUSY, ACK , PE, SLCT, and ERR pins.
FDCTRAPSTS (Bit 2): FDC trap status. 0 1 FDC is now in the sleeping state. FDC is now in the working state due to any FDC access, any IRQ, any DMA acknowledge, and any enabling of the motor enable bits in the DOR register.
URATRAPSTS (Bit 1): UART A trap status. 0 1 UART A is now in the sleeping state. UART A is now in the working state due to any UART A access, any IRQ, the receiver begins receiving a start bit, the transmitter shift register begins transmitting a start bit, and any transition on MODEM control input lines.
URBTRAPSTS (Bit 0): UART B trap status. 0 1 UART B is now in the sleeping state. UART B is now in the working state due to any UART B access, any IRQ, the receiver begins receiving a start bit, the transmitter shift register begins transmitting a start bit, and any transition on MODEM control input lines.
11.2.49 Configuration Register 42 (CR42), default=N/A
When the device is in Extended Function mode and EFIR is 42H, the CR42 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
URBIRQSTS URAIRQSTS FDCIRQSTS PRTIRQSTS reserved reserved reserved reserved
Bit 7 - bit 4 : Reserved, fixed at 0. Bit 3 - bit 0 : Device's IRQ status . These bits indicate the IRQ pin status of the individual device respectively. The device's IRQ status bit is set or cleared at their source device, writing a 1 or 0 has no effect.
-105-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
PRTIRQSTS (Bit 3) : printer port IRQ status. While the IRQ type of printer port is edge trigger-type, this bit will set and reset immediately. As the software reads this bit, it indicates low level. The software must read the IRQ status bit in the printer port device register to correctly identify whether the printer port IRQ occurs. FDCIRQSTS (Bit 2) : FDC IRQ status. URAIRQSTS (Bit 1) : UART A IRQ status. URBIRQSTS (Bit 0) : UART B IRQ status.
11.2.50 Configuration Register 43 (CR43), default=00H
When the device is in Extended Function mode and EFIR is 43H, the CR43 register can be accessed through EFDR. This register is reserved.
11.2.51 Configuration Register 44 (CR44), default=00H
When the device is in Extended Function mode and EFIR is 44H, the CR44 register can be accessed through EFDR. This register is reserved.
11.2.52 Configuration Register 45 (CR45), default=00H
When the device is in Extended Function mode and EFIR is 45H, the CR45 register can be accessed through EFDR. The bit definitions are as follows:
7 6 5 4 3 2 1 0
URBIRQEN URAIRQEN FDCIRQEN PRTIRQEN reserved reserved reserved reserved
Bit 7 - bit 4 : Reserved, fixed at 0. Bit 3 - bit 0 : Enable bits of the SMI generation due to the device's IRQ. These bits enable the generation of an SMI interrupt due to any IRQ of the devices respectively. These 4 bits control the printer port, FDC, UART A, and UART B SMI logic's individually. The SMI logic output for the IRQs is as follows: SMI logic output = (URBIRQEN and URBIRQSTS) or (URAIRQEN and URAIRQSTS) or (FDCIRQEN and FDCIRQSTS) or (PRTIRQEN and PRTIRQSTS) If any device's IRQ is raised, the corresponding IRQ status bit in CR42 is set. If the device's enable bit is set and SMI_EN(in CR3A) and CHIPPME(in CR32) is both set, then SMI interrupt occurs on the SMI output pin. PRTIRQEN (Bit 3): 0 1 disable the generation of an SMI interrupt due to the printer port's IRQ. enable the generation of an SMI interrupt due to the printer port's IRQ.
-106 -
W83877TF/W83877TG
FDCIRQEN (Bit 2): 0 1 URAIRQEN (Bit 1): 0 1 URBIRQEN (Bit 0): 0 1 disable the generation of an SMI interrupt due to the UART B's IRQ. enable the generation of an SMI interrupt due to the UART B's IRQ. disable the generation of an SMI interrupt due to the UART A's IRQ. enable the generation of an SMI interrupt due to the UART A's IRQ. disable the generation of an SMI interrupt due to the FDC's IRQ. enable the generation of an SMI interrupt due to the FDC's IRQ.
11.2.53 Bit Map Configuration Registers
Table 11-1: Bit Map of Configuration Registers
Register CR0 CR1 CR2 CR3 CR4 CR5 CR6 CR7 CR8 CR9 CRA CRB CRC CRD CR10 CR11 CR12 CR13 CR14 CR15 CR16 CR17 CR18 CR19 CR20 CR23 CR24 CR25 CR26 Power-on Reset Value 0000 0000 0000 0000 0000 0000 0011 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1010 0000 0000 0000 1100 0010 1000 1010 0011 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00ss 0s0s1 0000 0000 0000 0000 0000 0000 1111 11002 1101 11102 1111 11102 1011 11102 0010 00112 D7 0 ABCHG 0 0 PRTPWD 0 0 FDD D T1 0 PRTMODS2 0 0 TURA SIRTX1 GIO0AD7 G0CADM1 GIO1AD7 G1CADM1 GIOP0MD2 GIOP1MD2 0 0 SHARH 0 FDCAD7 PRTAD7 URAAD7 URBAD7 FDCDQS3 D6 0 0 0 0 0 0 0 FDD D T0 0 LOCKREG 0 Tx4WC TURB SIRTX0 GIO0AD6 G0CADM0 GIO1AD6 G1CADM0 GIOP0MD1 GIOP1MD1 0 0 SHARG 0 FDCAD6 PRTAD6 URAAD6 URBAD6 FDCDQS2 D5 0 0 0 EPPVER URAPWD 0 SEL4FDD FDD C T1 DISFDDWR EN3MODE 0 Rx4WC HEFERE SIRRX1 GIO0AD5 0 GIO1AD5 0 GIOP0MD0 GIOP1MD0 G1IQSEL 0 SHARF 0 FDCAD5 PRTAD5 URAAD5 URBAD5 FDCDQS1 D4 0 0 0 0 URBPWD 0 FIPURDWN FDD C T0 SWWP 0 0 ENIFCHG 0 SIRRX0 GIO0AD4 0 GIO1AD4 0 GIO0CSH GIO1CSH G0IQSEL PRIRQOD SHARE 0 FDCAD4 PRTAD4 URAAD4 URBAD4 FDCDQS0 D3 PRTMODS1 0 0 0 PRTTRI ECPFTHR3 FDCPWD FDD B T1 MEDIA 1 CHIP ID 3 0 IDENT URIRSEL HDUPLX GIO0AD3 0 GIO1AD3 0 GCS0IOR GCS1IOR 0 DSFDLGRQ SHARD 0 FDCAD3 PRTAD3 URAAD3 URBAD3 PRTDQS3 D2 PRTMODS0 0 0 0 0 ECPFTHR2 0 FDD B T0 MEDIA 0 CHIP ID 2 0 MFM 0 IRMODE2 GIO0AD2 GIO0AD10 GIO1AD2 GIO1AD10 GCS0IOW GCS1IOW PNPCVS DSPRLGRQ SHARC 0 FDCAD2 PRTAD2 URAAD2 URBAD2 PRTDQS2 D1 0 0 0 SUAMIDI URATRI ECPFTHR1 FDCTRI FDD A T1 BOOT 1 CHIP ID 1 0 INVERTZ RX2INV IRMODE1 GIO0AD1 GIO0AD9 GIO1AD1 GIO1AD9 GDA0OPI GDA1OPI 0 DSUALGRQ SHARB FASTA 0 PRTAD1 URAAD1 URBAD1 PRTDQS1 D0 IPD 0 0 SUBMIDI URBTRI ECPFTHR0 0 FDD A T0 BOOT 0 CHIP ID 0 0 DRV2EN TX2INV IRMODE0 GIO0AD0 GIO0AD8 GIO1AD0 GIO1AD8 GDA0IPI GDA1IPI HEFRAS DSUBLGRQ SHARA FASTB 0 PRTAD0 0 0 PRTDQS0
-107-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
Bit Map Configuration Registers, continued
Register CR27 CR28 CR29 CR2C CR2D CR31 CR32 CR33 CR34 CR35 CR36 CR37 CR38 CR39 CR3A CR40 CR41 CR42 CR43 CR44 CR45 Power-on Reset Value 0000 01012 0100 00112 0110 00002 0000 0000 0000 0000 0000 0s00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
D7 ECPIRQx2 URAIQS3 FDCIQS3 0 0 SCIIRQ3 CHIPPME PM1AD7 GPEAD7 URACNT7 URBCNT7 FDCCNT7 PRTCNT7 GSBCNT7 0 0 0 0 0 0 0
D6 ECPIRQx1 URAIQS2 FDCIQS2 0 0 SCIIRQ2 0 PM1AD6 GPEAD6 URACNT6 URBCNT6 FDCCNT6 PRTCNT6 GSBCNT6 0 0 0 0 0 0 0
D5 ECPIRQx0 URAIQS1 FDCIQS1 0 DISPRECOM1 SCIIRQ1 0 PM1AD5 GPEAD5 URACNT5 URBCNT5 FDCCNT5 PRTCNT5 GSBCNT5 TMIN_SEL 0 0 0 0 0 0
D4 0 URAIQS0 FDCIQS0 0 DRTB 1 SCIIRQ0 0 PM1AD4 GPEAD4 URACNT4 URBCNT4 FDCCNT4 PRTCNT4 GSBCNT4 0 0 0 0 0 0 0
D3 PRTIQS3 URBIQS3 IQNIQS3 0 DRTB 0
D2 PRTIQS2 URBIQS2 IQNIQS2
D1 PRTIQS1 URBIQS1 IQNIQS1
D0 PRTIQS0 URBIQS0 IQNIQS0
CLKINSEL 0 0 DISDRTA 1 DRTA 0 PRECOM0 0 IRQMODS 0 0 PRTPME FDCPME URAPME URBPME PM1AD3 PM1AD2 0 0 GPEAD3 GPEAD2 GPEAD1 0 URACNT3 URACNT2 URACNT1 URACNT0 URBCNT3 URBCNT2 URBCNT1 URBCNT0 FDCCNT3 FDCCNT2 FDCCNT1 FDCCNT0 PRTCNT3 PRTCNT2 PRTCNT1 PRTCNT0 GSBCNT3 GSBCNT2 GSBCNT1 GSBCNT0 0 0 SMI_EN UPULLEN PRTIDLSTS FDCIDLSTS URAIDLSTS URBIDLSTS PRTTRAPS FDCTRAPS URATRAPS URBTRAPS TS TS TS TS PRTIRQSTS FDCIRQSTS URAIRQSTS URBIRQSTS 0 0 0 0 0 0 0 0 PRTIRQEN FDCIRQEN URAIRQEN URBIRQEN
Notes: 1. 's' means its value depends on corresponding power-on setting pin. 2. These default values are valid when CR16 bit 2 is 1 during power-on reset; They will be all 0's if CR16 bit 2 is 0.
-108 -
W83877TF/W83877TG
11.3 ACPI Registers Features
W83877TF/TG supports both the ACPI and legacy power management's. The switch logic of the power management block generates an SMI interrupt in the legacy mode and an SCI interrupt in the ACPI mode. For the legacy mode, the SMI_EN bit is used. If it is set, it routes the power management events from the SMI interrupt logic to the SMI output pin. For the ACPI mode, the SCI_EN bit is used. If it is set, it route the power management events to the SCI interrupt logic. The SMI_EN bit is located in the CR3A register and the SCI_EN bit is located in the PM1 register block. See the following figure for illustration.
IRQs
SMI events SMI_EN
SMI Logic
0 1 SCI_EN
IRQs PM Timer
SMI output Logic
SMI
SCI output Logic SCI Logic
IRQs
SCI WAK_STS
SCI events
Device Idle Timers Device Trap Global STBY Timer
Sleep/Wake State machine
Clock Control
The SMI interrupt is routed to pin SMI , which is dedicated for the SMI interrupt output. Another way to output the SMI interrupt is to route to pin IRQSER, which is the signal pin in the Serial IRQ mode. The SCI interrupt is routed to pin SCI , which is dedicated for the SCI function. The other way to output the SCI interrupt is to route to one interrupt request signal pin IRQA~H, which is selected through CR31 bit[7:4]. Another way is output the SCI interrupt is to route to pin IRQSER.
-109-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
SMI to SCI/SCI to SMI and Bus Master For the process of generating an interrupt from SMI to SCI or from SCI to SMI, see the following figure for illustration.
clear from SMI to SCI BIOS_RLS GBL_EN clear from SCI to SMI GBL_RLS BIOS_EN clear Bus Master SCI BM_CNTPL BM_RLD set To SCI Logic BM_STS set To SMI Logic BIOS_STS set To SCI Logic GBL_STS
: Status bit : Enable bit
For the BIOS software to raise an event to the ACPI software, BIOS_RLS, GBL_EN, and GBL_STS bits are involved. GBL_EN is the enable bit and the GBL_STS is the status bit. Both are controlled by the ACPI software. If BIOS_RLS is set by the BIOS software and GBL_EN is set by the ACPI software, an SCI interrupt is raised. Writing a 1 to BIOS_RLS sets it to logic 1 and also sets GBL_STS to logic 1; Writing a 0 to BIOS_RLS has no effect. Writing a 1 to GBL_STS clears it to logic 0 and also clears BIOS_RLS to logic 0; writing a 0 to GBL_STS has no effect. For the ACPI software to raise an event to the BIOS software, GBL_RLS, BIOS_EN, and BIOS_STS bits are involved. BIOS_EN is the enable bit and the BIOS_STS is the status bit. Both are controlled by the BIOS software. If GBL_RLS is set by the ACPI software and BIOS_EN is set by the BIOS software, an SMI is raised. Writing a 1 to GBL_RLS sets it to logic 1 and also sets BIOS_STS to logic 1; Writing a 0 to GBL_RLS has no effect. Writing a 1 to BIOS_STS clears it to logic 0 and also clears GBL_RLS to logic 0; writing a 0 to BIOS_STS has no effect. For the bus master to raise an event to the ACPI software, BM_CNTRL, BM_RLD, and BM_STS bits are involved. Both BM_RLD and BM_STS are controlled by the ACPI software. If BM_CNTRL is set by the BIOS software and BM_RLD is set by the ACPI software, an SCI interrupt is raised. Writing a 1 to BM_CNTRL sets it to logic 1 and also sets BM_STS to logic 1; Writing a 0 to BM_CNTRL has no effect. Writing a 1 to BM_STS clears it to logic 0 and also clears BM_CNTRL to logic 0; writing a 0 to BM_STS has no effect.
-110 -
W83877TF/W83877TG
Power Management Timer In the ACPI specification, it requires a power management timer. The power management timer is a 24-bit fixed rate free running count-up timer that runs off a 3.579545MHZ clock. The power management timer has the corresponding status bit (TMR_STS) and enable bit (TMR_EN). The TMR_STS bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. If the TMR_EN bit is set, the setting of the TMR_STS bit will generate an SCI interrupt. Three registers are used to read the timer value, they are located in the PM1 register block. The power management timer has one enable bit (TMR_ON) to turn if on or off. The TMR_ON is located in GPE register block. If it is cleared to 0, the power management timer function would not work. There are no timer reset requirements, except that the timer should function after power-up. See the following figure for illustration.
TMR_ON 3.579545 MHz 24 bit counter Bits (23-0) 24 TMR_EN TMR_VAL TMR_STS To SCI Logic
11.4 ACPI Registers (ACPIRs)
The ACPI register model consists of the fixed register blocks that perform the ACPI functions. A register block may be a event register block which deals with ACPI events or a control register block which deals with control features. The ordering in the event register block is the status register, followed by the enable register. Each event register, if implemented, contains two two register: a status register and an enable register, both in 16-bit size. The status register indicates what defined function needs the ACPI System Control Interrupt (SCI). While the hardware event occurs, the defined status bit is set. However, to generate the SCI, the associated enable bit is required to be set. If the enable bit is not set, the software can examine the state of the hardware event by reading the status bit without generating an SCI interrupt. Any status bit, unless otherwise noted, can only be set by some defined hardware event. It is cleared by writing a 1 to its bit position and writing a 0 has no effect. Except for some special status bits, every status bit has an associated enable bit in the same bit position in the enable register. Those status bits which have no respective enable bit are read for special purposes. Revered or un-implemented enable bits always return zero, and writing to these bits should have no effect. The control bit in the control register provides some special control functions over the hardware event, or some special control over SCI event. Reversed or un-implemented control bits always return zero, and writing to those bits should have no effect. Table 11-4 lists the PM1 register block and the relative locations of the registers within it. The base address of PM1 register block is named as PM1a_EVT_BLK in the ACPI specification. The based address should range from 01,0000,0000b to 11,1111,0000b ,i.e., 100H ~ 3F0H, where bit 1 and bit 0 of PM1 register block should be set to 0 and the based address is in the 16-byte alignment. Table 11-5 lists the GPE register block and the relative locations within it. The base address of power management event block GPE is named as GPE0_BLK in the ACPI specification. The based address should range from 01,0000,0000b to 11,1111,1000b ,i.e., 100H ~ 3F8H, where bit 0 of the base address should be set to 0 and the base address is in the 8-byte alignment.
Publication Release Date: May 2006 Revision 0.7
-111-
W83877TF/W83877TG
11.4.1 Power Management 1 Status Register 1 (PM1STS1)
System I/O Space 00h Read/write 8 bits
7 6 5 4 3 2 1 0
Register Location: Default Value: Attribute: Size:
TMR_STS Reserved Reserved Reserved BM_STS GBL_STS Reserved Reserved
BIT
NAME
DESCRIPTION
0
TMR_STS
1-3 4
Reserved BM_STS
5
GBL_STS
6-7
Reserved
This bit is the timer carry status bit. This bit gets set anytime the bit 23 of the 24-bit counter changes(whenever the MSB changes from low to high or high to low). While TMR_EN and TMR_STS are set a power magnet event is raised. This bit is only set by hardware and can only be cleared by the software writing a 1 to this bit position. Writing a 0 has no effect. Reserved. This is the bus master status bit. Writing a 1 to BM_CNTRL also sets BM_STS. Writing a 1 clears this bit and also clears BM_CNTRL. Writing a 0 has no effect. This is the global status bit. This bit is set when the BIOS want the attention of the SCI handler. BIOS sets this bit by setting BIOS_RLS and can only be cleared by software writing a 1 to this bit position. Writing a 1 to this bit position also clears BIOS_RLS. Writing a 0 has no effect. Reserved. These bits always return a value of zero.
11.4.2
Power Management 1 Status Register 2 (PM1STS2)
+1H System I/O Space 00h Read/write 8 bits
7 6 5 4 3 2 1 0
Register Location: Default Value: Attribute: Size:
Reserved Reserved Reserved Reserved Reserved Reserved Reserved WAK_STS
-112 -
W83877TF/W83877TG
BIT
NAME
DESCRIPTION
0-6 7
Reserved WAK_STS
Reserved. This bit is set when the system is in the sleeping state and an enabled resume event occurs. Upon setting this bit, the sleeping/working state machine will transition the system to the working state. This bit is only set by hardware and is cleared by software writing a 1 to this bit position or by the sleeping/working state machine automatically upon the global standby timer expires. Writing a 0 has no effect. Once the WAK_STS is cleared and all devices have been in sleeping state, the whole chip enters the sleeping state.
11.4.3
Power Management 1 Enable Register 1(PM1EN1)
+2H System I/O Space 00h Read/write 8 bits
7 6 5 4 3 2 1 0
Register Location: Default Value: Attribute: Size:
TMR_EN Reserved Reserved Reserved GBL_EN Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0
TMR_EN
This is the timer carry interrupt enable bit. When this bit is set then an SCI event is generated anytime the TMR_STS bit is set. When this bit is reset then no interrupt is generated when the TMR_STS bit is set. Reserved. These bits always return a value of zero. The global enable bit. When both the GBL_EN bit and the GBL_STS bit are set, an SCI interrupt is raised. Reserved.
1-4 5 6-7
Reserved GBL_EN Reserved
11.4.4
Power Management 1 Enable Register 2 (PM1EN2)
+3H System I/O Space 00h Read/write 8 bits
Publication Release Date: May 2006 Revision 0.7
Register Location: Default Value: Attribute: Size:
-113-
W83877TF/W83877TG
7
6
5
4
3
2
1
0
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0-7
Reserved
Reserved. These bits always return a value of zero.
11.4.5
Power Management 1 Control Register 1 (PM1CTL1)
+4H System I/O Space 00h Read/write 8 bits
7 6 5 4 3 2 1 0
Register Location: Default Value: Attribute: Size:
SCI_EN BM_RLD GBL_RLD Reserved Reserved Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0
SCI_EN
Selects the power management event to be either an SCI or an SMI interrupt. When this bit is set, then the power management events will generate an SCI interrupt. When this bit is reset and SMI_EN bit is set, then the power management events will generate an SMI interrupt. This is the bus master reload enable bit. If this bit is set and BM_CNTRL is set, an SCI interrupt is raised. The global release bit. This bit is used by the ACPI software to raise an event to the BIOS software. The BIOS software has a corresponding enable and status bit to control its ability to receive the ACPI event. Setting GBL_RLS sets BIOS_STS, and it generates an SMI interrupt if BIOS_EN is also set. Reserved. These bits always return a value of zero.
1 2
BM_RLD GBL_RLS
3-7
Reserved
-114 -
W83877TF/W83877TG
11.4.6 Power Management 1 Control Register 2 (PM1CTL2)
+5H System I/O Space 00h Read/write 8 bits
7 6 5 4 3 2 1 0
Register Location: Default Value: Attribute: Size:
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0-7
Reserved
Reserved. These bits always return a value of zero.
11.4.7
Power Management 1 Control Register 3 (PM1CTL3)
+6H System I/O Space 00h Read/write 8 bits
7 6 5 4 3 2 1 0
Register Location: Default Value: Attribute: Size:
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0-7
Reserved
Reserved. These bits always return a value of zero.
-115-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
11.4.8 Power Management 1 Control Register 4 (PM1CTL4)
+7H System I/O Space 00h Read/write 8 bits
7 6 5 4 3 2 1 0
Register Location: Default Value: Attribute: Size:
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0-7
Reserved
Reserved. These bits always return a value of zero.
11.4.9
Power Management 1 Timer 1 (PM1TMR1)
+8H System I/O Space 00h Read only 8 bits
7 6 5 4 3 2 1 0
Register Location: Default Value: Attribute: Size:
TMR_VAL0 TMR_VAL1 TMR_VAL2 TMR_VAL3 TMR_VAL4 TMR_VAL5 TMR_VAL6 TMR_VAL7
BIT
NAME
DESCRIPTION
0-7
TMR_VAL
This read-only field returns the running count of the power management timer. This is a 24-bit counter that runs off of a 3.579545 MHZ clock, and counts while in the system working state. The timer is reset and then continues counting until the CLKIN input the the chip is stopped. If the clock is restarted without a MR reset, then the counter will continue counting from where it stopped. The TMR_STS bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. If the TMR_EN bit is set, the setting of the TMR_STS bit will generate an SCI interrupt.
-116 -
W83877TF/W83877TG
11.4.10 Power Management 1 Timer 2 (PM1TMR2)
Register Location: Default Value: Attribute: Size:
7 6 5
+9H System I/O Space 00h Read only 8 bits
4 3 2 1 0
TMR_VAL8 TMR_VAL9 TMR_VAL10 TMR_VAL11 TMR_VAL12 TMR_VAL13 TMR_VAL14 TMR_VAL15
BIT
NAME
DESCRIPTION
0-7
TMR_VAL
This read-only field returns the running count of the power management timer. This is a 24-bit counter that runs off of a 3.579545 MHZ clock, and counts while in the system working state. The timer is reset and then continues counting until the CLKIN input the the chip is stopped. If the clock is restarted without a MR reset, then the counter will continue counting from where it stopped. The TMR_STS bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. If the TMR_EN bit is set, the setting of the TMR_STS bit will generate an SCI interrupt.
11.4.11 Power Management 1 Timer 3 (PM1TMR3)
Register Location: Default Value: Attribute: Size:
7 6 5
+AH System I/O Space 00h Read only 8 bits
4 3 2 1 0
TMR_VAL16 TMR_VAL17 TMR_VAL18 TMR_VAL19 TMR_VAL20 TMR_VAL21 TMR_VAL22 TMR_VAL23
-117-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
BIT
NAME
DESCRIPTION
0-7
TMR_VAL
This read-only field returns the running count of the power management timer. This is a 24-bit counter that runs off of a 3.579545 MHZ clock, and counts while in the system working state. The timer is reset and then continues counting until the CLKIN input the the chip is stopped. If the clock is restarted without a MR reset, then the counter will continue counting from where it stopped. The TMR_STS bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. If the TMR_EN bit is set, the setting of the TMR_STS bit will generate an SCI interrupt.
11.4.12 Power Management 1 Timer 4 (PM1TMR4)
Register Location: Default Value: Attribute: Size:
7 6 5
+BH System I/O Space 00h Read only 8 bits
4 3 2 1 0
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0-7
Reserved
Reserved. These bits always return a value of zero.
11.4.13 General Purpose Event 0 Status Register 1 (GP0STS1)
Register Location: Default Value: Attribute: Size:
7 6 5
System I/O Space 00h Read/write 8 bits
4 3 2 1 0
URBSCISTS URASCISTS FDCSCISTS PRTSCISTS Reserved Reserved Reserved Reserved
-118 -
W83877TF/W83877TG
These bits indicate the status of the SCI input, which is set when the device's IRQ is raised. If the corresponding enable bit in the SCI interrupt enable register (in GP0EN1) is set, an SCI interrupt is raised and routed to the output pin. Writing a 1 clears the bit, and writing a 0 has no effect. If the bit is not cleared, new IRQ for the SCI logic input is ignored, therefore no SCI interrupt is raised.
BIT NAME DESCRIPTION
0 1 2 3 4-7
URBSCISTS URASCISTS FDCSCISTS PRTSCISTS Reserved
UART B SCI status, which is set by the UART B IRQ. UART A SCI status, which is set by the UART A IRQ. FDC SCI status, which is set by the FDC IRQ. PRT SCI status, which is set by the printer port IRQ. Reserved.
11.4.14 General Purpose Event 0 Status Register 2 (GP0STS2)
Register Location: Default Value: Attribute: Size:
7 6 5
+1H System I/O Space 00h Read/write 8 bits
4 3 2 1 0
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0-7
Reserved
Reserved. These bits always return a value of zero.
11.4.15 General Purpose Event 0 Enable Register 1 (GP0EN1)
Register Location: Default Value: Attribute: Size: +2H System I/O Space 00h Read/write 8 bits
-119-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
7 6 5 4 3 2 1 0
URBSCIEN URASCIEN FDCSCIEN PRTSCIEN Reserved Reserved Reserved Reserved
These bits are used to enable the device's IRQ sources onto the SCI logic. The SCI logic output for the IRQs is as follows: SCI logic output = (URBSCIEN and URBSCISTS) or (URASCIEN and URASCISTS) or (FDCSCIEN and FDCSCISTS) or (PRTSCIEN and PRTSCISTS)
BIT NAME DESCRIPTION
0 1 2 3 4-7
URBSCIEN URASCIEN FDCSCIEN PRTSCIEN Reserved
UART B SCI enable, which controls the UART B IRQ for SCI. UART A SCI enable, which controls the UART A IRQ for SCI. FDC SCI enable, which controls the FDC IRQ for SCI. printer port SCI enable, which controls the printer port IRQ for SCI. Reserved.
11.4.16 General Purpose Event 0 Enable Register 2 (GP0EN2)
Register Location: Default Value: Attribute: Size:
7 6 5
+3H System I/O Space 00h Read/write 8 bits
4 3 2 1 0
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0-7
Reserved
Reserved. These bits always return a value of zero.
-120 -
W83877TF/W83877TG
11.4.17 General Purpose Event 1 Status Register 1 (GP1STS1)
Register Location: Default Value: Attribute: Size:
7 6 5
+4H System I/O Space 00h Read/write 8 bits
4 3 2 1 0
BIOS_STS Reserved Reserved Reserved Reserved Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0
BIOS_STS
The BIOS status bit. This bit is set when GBL_RLS is set. If BIOS_EN is set, setting GBL_RLS will raise an SMI event. Writing a 1 to its bit location clears BIOS_STS and also clears GBL_RLS. Writing a 0 has no effect. Reserved.
1-7
Reserved
11.4.18 General Purpose Event 1 Status Register 2 (GP1STS2)
Register Location: Default Value: Attribute: Size: +5H System I/O Space 00h Read/write 8 bits
7 6 5 4 3 2 1 0
Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0-7
Reserved
Reserved. These bits always return a value of zero.
-121-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
11.4.19 General Purpose Event 1 Enable Register 1 (GP1EN1)
Register Location: Default Value: Attribute: Size: +6H System I/O Space 00h Read/write 8 bits
7 6 5 4 3 2 1 0
BIOS_EN TMR_ON Reserved Reserved Reserved Reserved Reserved Reserved
BIT
NAME
DESCRIPTION
0
BIOS_EN
1 2-7
TMR_ON Reserved
This bit is raise the SMI event. When this bit is set and the ACPI software writes a 1 to the GBL_RLS bit, an SMI event is raised on the SMI logic output. This bit is used to turn on the power management timer. 1: timer on ; 0: timer off. Reserved.
11.4.20 General Purpose Event 1 Enable Register 2 (GP1EN2)
Register Location: Default Value: Attribute: Size: +7H System I/O Space 00h Read/write 8 bits
7 6 5 4 3 2 1 0
BIOS_RLS BM_CNTRL Reserved Reserved Reserved Reserved Reserved Reserved
-122 -
W83877TF/W83877TG
BIT
NAME
DESCRIPTION
0
BIOS_RLS
The BIOS release bit. This bit is used by the BIOS software to raise an event to the ACPI software. The ACPI software has a corresponding enable and status bit to control its ability to receive the ACPI event. Setting BIOS_RLS sets GBL_STS, and it generates an SCI interrupt if GBL_EN is also set. Writing a 1 to its bit position sets this bit and also sets the BM_STS bit. Writing a 0 has no effect. This bit is cleared by writing a 1 to the GBL_STS bit. This bit is used to set the BM_STS bit and if the BM_RLD bit is also set, then an SCI interrupt is generated. Writing a 1 sets BM_CNTRL to 1 and also sets BM_STS. Writing a 0 has no effect. Writing a 1 to BM_STS clears BM_STS and also clears BM_CNTRL. Reserved.
1
BM_CNTRL
2-7
Reserved
11.4.21 Bit Map Configuration Registers
Table 11-4: Bit Map of PM1 Register Block
Register
PM1STS1
Address
Power-On Reset Value 0000 0000
D7
0 WAK_STS 0 0 0 0 0 0
D6
0 0 0 0 0 0 0 0
D5
GBL_STS 0 GBL_EN 0 0 0 0 0
D4
BM_STS 0 0 0 0 0 0 0
D3
0 0 0 0 0 0 0 0
D2
0 0 0 0 GBL_RLS 0 0 0
D1
0 0 0 0 BM_RLD 0 0 0
D0
TMR_STS 0 TMR_EN 0 SCI_EN 0 0 0
PM1STS2 +1H 0000 0000 PM1EN1 +2H 0000 0000 PM1EN2 +3H 0000 0000 PM1CTL1 +4H 0000 0000 PM1CTL2 +5H 0000 0000 PM1CTL3 +6H 0000 0000 PM1CTL4 +7H 0000 0000
PM1TMR1 +8H 0000 0000 TMR_VAL7 TMR_VAL6 TMR_VAL5 TMR_VAL4 TMR_VAL3 TMR_VAL2 TMR_VAL1 TMR_VAL0 PM1TMR2 +9H 0000 0000 TMR_VAL15 TMR_VAL14 TMR_VAL13 TMR_VAL12 TMR_VAL11 TMR_VAL10 TMR_VAL9 TMR_VAL8 PM1TMR3 +AH 0000 0000 TMR_VAL23 TMR_VAL22 TMR_VAL21 TMR_VAL20 TMR_VAL19 TMR_VAL18 TMR_VAL17 TMR_VAL16 PM1TMR4 +BH 0000 0000 0 0 0 0 0 0 0
Table 11-5: Bit Map of GPE Register Block
Register Address Power-On Reset Value GP0STS1 0000 0000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 PRTSCISTS FDCSCISTS URASCISTS URBSCISTS 0 PRTSCIEN 0 0 0 0 0 0 FDCSCIEN 0 0 0 0 0 0 URASCIEN 0 0 0 TMR_ON BM_CNTRL 0 URBSCIEN 0 BIOS_STS 0 BIOS_EN BIOS_RLS D7 D6 D5 D4 D3 D2 D1 D0
GP0STS2 +1H 0000 0000 GP0EN1 +2H 0000 0000 GP0EN2 +3H 0000 0000 GP1STS1 +4H 0000 0000 GP1STS2 +5H 0000 0000 GP1EN1 +6H 0000 0000 GP1EN2 +7H 0000 0000
-123-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
12. SPECIFICATIONS
12.1 Absolute Maximum Ratings
PARAMETER RATING UNIT
Power Supply Voltage Input Voltage Operating Temperature Storage Temperature
-0.5 to 7.0 -0.5 to VDD+0.5 0 to +70 -55 to +150
V V
°C °C
Note: Exposure to conditions beyond those listed under Absolute Maximum Ratings may adversely affect the life and reliability of the device.
12.2 DC CHARACTERISTICS
(Ta = 0° C to 70° C, VDD = 5V ± 10%, VSS = 0V)
PARAMETER
SYM.
MIN.
TYP.
MAX.
UNI
CONDITIONS
I/O8tc - TTL level output pin with source-sink capabilities of 8 mA; CMOS level input voltage
Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Input High Leakage Input Low Leakage Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Input High Leakage Input Low Leakage Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Input High Leakage Input Low Leakage
VIL VIH VOL VOH ILIH ILIL VIL VIH VOL VOH ILIH ILIL VIL VIH VOL VOH ILIH ILIL
-0.5 0.7xVD 2.4
0.3xV VDD+0 0.4 +10 -10
V V V V
μA μA
IOL = 8 mA IOH = -8 mA VIN = VDD VIN = 0V
I/O12t - TTL level bi-directional pin with source-sink capabilities of 12 mA
-0.5 2.0 2.4
0.8 VDD+0 0.4 +10 -10
V V V V
μA μA
IOL = 12 mA IOH = -12 mA VIN = VDD VIN = 0V
I/O24t - TTL level bi-directional pin with source-sink capabilities of 24 mA
-0.5 2.0 2.4
0.8 VDD+0 0.4 +10 -10
V V V V
μA μA
IOL = 24 mA IOH = -24 mA VIN = VDD VIN = 0V
-124 -
W83877TF/W83877TG
DC Characteristics, continued
PARAMETER
SY
MIN.
TYP
MAX.
UNIT
CONDITIONS
OUT8t - TTL level output pin with source-sink capabilities of 8 mA
Output Low Voltage Output High Voltage Output Low Voltage Output High Voltage Output Low Voltage Output Low Voltage
INt - TTL level input pin
VOL VOH VOL VOH VOL VOL VIL VIH ILIH ILIL VtVt+ VTH ILIH ILIL VIL VIH ILIH ILIL VtVt+ VTH ILIH ILIL 1.3 3..2 1.5 1.5 3.5 2 0.7xVD 0.5 1.6 0.5 0.8 2.0 1.2 2.0 2.4 2.4
0.4
V V
IOL = 8 mA IOH = -8 mA IOL = 12 mA IOH = -12 mA IOL = 12 mA IOL = 24 mA VDD = 5 V VDD = 5 V VIN = VDD VIN = 0V VDD = 5 V VDD = 5 V VDD = 5 V VIN = VDD VIN = 0V VDD = 5 V VDD = 5 V VIN = VDD VIN = 0V VDD = 5 V VDD = 5 V VDD = 5 V VIN = VDD VIN = 0V
OUT12t - TTL level output pin with source-sink capabilities of 12 mA
0.4
V V
OD12 - Open-drain output pin with sink capabilities of 12 mA
0.4 0.4 0.8 +10 -10 1.1 2.4 +10 -10 0.3xVD +10 -10 1.7 3.8 +10 -10
V V V V
μA μA
OD24 - Open-drain output pin with sink capabilities of 24 mA
Input Low Voltage Input High Voltage Input High Leakage Input Low Leakage Input Low Threshold Input High Threshold Hysteresis (Vt+ - Vt-) Input High Leakage Input Low Leakage Input Low Voltage Input High Voltage Input High Leakage Input Low Leakage Input Low Threshold Input High Threshold Hysteresis (Vt+ - Vt-) Input High Leakage Input Low Leakage
INts - TTL level input pin Schmitt-trigger input pin
V V V
μA μA
INc- CMOS level input pin
V V
μA μA
INcs - CMOS level schmitt-triggered input pin
V V V
μA μA
-125-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
12.3 AC Characteristics
12.3.1 FDC: Data rate = 1 MB/500 KB/300 KB/250 KB/sec.
PARAMETER SYM. TEST CONDITIONS MIN. TYP. (NOTE 1) MAX. UNIT
SA9-SA0, AEN, DACK , CS , setup time to IOR ↓ SA9-SA0, AEN, DACK , hold time for IOR ↑
IOR width
TAR TAR TRR TFD TDH TDF TRI TAW TWA TWW TDW TWD TWI TMCY TAM TMA TAA TMR CL = 100 pf CL = 100 pf CL = 100 pf
25 0 80 80 10 10 50 360/570 /675 25 0 60 60 0 360/570 /675 27 50 0 260/430 /510
nS nS nS nS nS nS nS nS nS nS nS nS nS
μS
Data access time from IOR ↓ Data hold from IOR ↓ SD to from IOR ↑ IRQ delay from IOR ↑ SA9-SA0, AEN, DACK , setup time to IOW ↓ SA9-SA0, AEN, DACK , hold time for IOW ↑
IOW width
Data setup time to IOW ↑ Data hold time from IOW ↑ IRQ delay from IOW ↑ DRQ cycle time DRQ delay time DACK ↓ DRQ to DACK delay
DACK width IOR delay from DRQ IOW delay from DRQ
nS nS nS
0 0
nS nS
TMW
-126 -
W83877TF/W83877TG
AC Characteristics, FDC continued
PARAMETER
SYM.
TEST CONDITIONS
MIN.
TYP. (NOTE 1)
MAX.
UNIT
IOW or IOR response time from DRQ
TMRW TTC TRST TIDX TDST TSTD TSTP TSC TWDD TWPC 135/220 /260 1.8/3/3. 5 0.5/0.9 /1.0 1.0/1.6 /2.0 24/40/4 8 6.8/11.5 /13.8 Note 2 100/185 /225 100/138 /225
6/12 /20/24
μS
TC width RESET width
INDEX width DIR setup time to STEP DIR hold time from STEP STEP pulse width STEP cycle width WD pulse width
nS
μS μS μS μS
7/11.7 /14 Note 2 125/210 /250 125/210 /250
7.2/11.9 /14.2 Note 2 150/235 /275 150/235 /275
μS μS μS μS
Write precompensation
Notes:
1. Typical values for T = 25° C and normal supply voltage. 2. Programmable from 2 mS through 32 mS in 2 mS increments.
-127-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
12.3.2 UART/Parallel Port
PARAMETER SYMBOL TEST CONDITIONS MIN. MAX. UNIT
Delay from Stop to Set Interrupt Delay from IOR Reset Interrupt Delay from Initial IRQ Reset to Transmit Start Delay from IOW to Reset interrupt Delay from Initial IOW to interrupt Delay from Stop to Set Interrupt Delay from IOR to Reset Interrupt Delay from IOR to Output Set Interrupt Delay from Modem Input Reset Interrupt Delay from IOR Interrupt Active Delay Interrupt Inactive Delay Baud Divisor
TSINT TRINT TIRS THR TSI TSTI TIR TMWO TSIM TRIM TIAD TIID
N
9/16 100 pF Loading 1/16 100 pF Loading 9/16 1 8/16 175 16/16 1/2 100 pF Loading 100 pF Loading 250 200 250 250 100 pF Loading 100 pF Loading 100 pF Loading 25 30 2 -1
16
Baud Rate
μS
Baud Rate nS Baud Rate Baud Rate nS nS nS nS nS nS
12.3.3
Parallel Port Mode Parameters
PARAMETER SYM. MIN. TYP. MAX. UNIT
PD0-7, INDEX , STROBE , AUTOFD Delay from IOW IRQ Delay from ACK , nFAULT IRQ Delay from IOW IRQ Active Low in ECP and EPP Modes
ERROR Active to IRQ Active
t1 t2 t3 t4 t5 200
100 60 105 300 105
nS nS nS nS nS
-128 -
W83877TF/W83877TG
12.3.4 EPP Data or Address Read Cycle Timing Parameters
PARAMETER SYM. MIN. MAX. UNIT
Ax Valid to IOR Asserted IOCHRDY Deasserted to IOR Deasserted
IOR Deasserted to Ax Valid IOR Deasserted to IOW or IOR Asserted IOR Asserted to IOCHRDY Asserted
t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28
40 0 10 40 0 0 0 0 60 0 0 0 60 0 60 0 0 60 1 0 0 0 60 10 0 0 20 30 195 180 12 190 185 190 50 180 24 75 40 85 160 10
nS nS nS
nS nS
μS
PD Valid to SD Valid
IOR Deasserted to SD Hi-Z (Hold Time)
SD Valid to IOCHRDY Deasserted
WAIT Deasserted to IOCHRDY Deasserted
nS nS nS nS nS nS nS nS nS nS nS nS nS nS nS nS nS nS
μS
PD Hi-Z to PDBIR Set
WRITE Deasserted to IOR Asserted WAIT Asserted to WRITE Deasserted
Deasserted to WRITE Modified
IOR Asserted to PD Hi-Z WAIT Asserted to PD Hi-Z
Command Asserted to PD Valid Command Deasserted to PD Hi-Z
WAIT Deasserted to PD Drive WRITE Deasserted to Command
PBDIR Set to Command PD Hi-Z to Command Asserted Asserted to Command Asserted
WAIT Deasserted to Command Deasserted
Time out PD Valid to WAIT Deasserted PD Hi-Z to WAIT Deasserted
-129-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
12.3.5 EPP Data or Address Write Cycle Timing Parameters
PARAMETER SYM. MIN. MAX. UNIT
Ax Valid to IOW Asserted SD Valid to Asserted
IOW Deasserted to Ax Invalid WAIT Deasserted to IOCHRDY Deasserted
t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22
40 10 10 0 10 40 0 60 0 0 60 60 0 0 10 5 60 60 0 10 0 0 35 210 190 10 12 185 185 50 24 160 70
nS nS nS nS nS nS nS nS nS nS nS nS nS nS nS nS nS nS
μS μS
Command Asserted to WAIT Deasserted
IOW Deasserted to IOW or IOR Asserted
IOCHRDY Deasserted to IOW Deasserted
WAIT Asserted to Command Asserted IOW Asserted to WAIT Asserted
PBDIR Low to WRITE Asserted
WAIT Asserted to WRITE Asserted WAIT Asserted to WRITE Change IOW Asserted to PD Valid WAIT Asserted to PD Invalid
PD Invalid to Command Asserted
IOW to Command Asserted WAIT Asserted to Command Asserted WAIT Deasserted to Command Deasserted
Command Asserted to WAIT Deasserted Time out Command Deasserted to WAIT Asserted
IOW Deasserted to WRITE Deasserted and PD invalid
nS nS
-130 -
W83877TF/W83877TG
12.3.6 Parallel Port FIFO Timing Parameters
PARAMETER SYMBOL MIN. MAX. UNIT
DATA Valid to nSTROBE Active nSTROBE Active Pulse Width DATA Hold from nSTROBE Inactive BUSY Inactive to PD Inactive BUSY Inactive to nSTROBE Active nSTROBE Active to BUSY Active
t1 t2 t3 t4 t5 t6
600 600 450 80 680 500
nS nS nS nS nS nS
12.3.7
ECP Parallel Port Forward Timing Parameters
PARAMETER SYMBOL MIN. MAX. UNIT
nAUTOFD Valid to nSTROBE Asserted PD Valid to nSTROBE Asserted BUSY Deasserted to nAUTOFD Changed BUSY Deasserted to PD Changed nSTROBE Deasserted to BUSY Deasserted BUSY Deasserted to nSTROBE Asserted nSTROBE Asserted to BUSY Asserted BUSY Asserted to nSTROBE Deasserted
t1 t2 t3 t4 t5 t6 t7 t8
0 0 80 80 0 80 0 80
60 60 180 180 200 180
nS nS nS nS nS nS nS nS
12.3.8
ECP Parallel Port Reverse Timing Parameters
PARAMETER SYMBOL MIN. MAX. UNIT
PD Valid to nACK Asserted nAUTOFD Deasserted to PD Changed nAUTOFD Asserted to nACK Asserted nAUTOFD Deasserted to nACK Deasserted nACK Deasserted to nAUTOFD Asserted PD Changed to nAUTOFD Deasserted
t1 t2 t3 t4 t5 t6
0 0 0 0 80 80 200 200
nS nS nS nS nS nS
-131-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
13. TIMING WAVEFORMS
13.1 FDC
Processor Read Operation
SA0-SA9 AEN CS DACK IOR TFD TDF D0-D7 TR IRQ TIDX TIDX INDEX TAR TRR TDH TRA WD
Write Date
TWDD
Index
Processor Write Operation
SA0-SA9 AEN DACK IOW TWD D0-D7 TAW TWW TWA TC
Terminal Count
TTC
Reset RESET
TDW
IRQ
TWI
TRST
DMA Operation
Drive Seek operation
DRQ
TAM TMCY DIR
DACK IOW or IOR
TMA TMRW
TAA TDST STEP
TSTP
TSTD
TMW (IOW) TMR (IOR) TSC
-132 -
W83877TF/W83877TG
13.2 UART/Parallel
Receiver Timing
SIN (RECEIVER INPUT DATA) STAR DATA BITS (5-8) PARITY STOP TSINT TRINT
IRQ3 or IRQ4 IOR (READ RECEIVER BUFFER REGISTER)
Transmitter Timing
SERIAL OUT (SOUT) THRS IRQ3 or IRQ4 THR IOW (WRITE THR) THR TSI TIR IOR (READ TIR) STAR DATA (5-8) PARITY STOP (1-2) STAR TSTI
-133-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
13.2.1 Modem Control Timing
MODEM Control Timing
IOW (WRITE MCR)
RTS,DTR
→
│ │ │ │
│ │ │ │
CTS,DSR DCD IRQ3 or IRQ4 IOR (READ MSR) RI
│ │ │ │ ?
← TMWO
│ │ │
→
│ │ │ │
│ │ │ │
←TMWO
→ │← TSIM
│ │ │ │ │
→
│ │ │
│ → ←TRIM
│ │ │
←TSIM
→ ←TRIM TSIM │ ←→
│ │ │ │ │ │ ?
│ │ │ ││ │ │ │ │
│ │ │ │ │ │ │
Printer Interrupt Timing
│ │ │ │ │ │ │ │ │ │ │
ACK
→
IRQ7
│ │ │ │ │
← TLAD
→
│ │ │ │ │
←TLID
-134 -
W83877TF/W83877TG
13.3 Parallel Port
13.3.1 Parallel Port Timing
IOW t1 INIT, STROBE AUTOFD, SLCTIN PD ACK t2 IRQ (SPP) IRQ (EPP or ECP) nFAULT (ECP) ERROR (ECP) t5 t2 IRQ t4 t3 t4
-135-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
13.3.2 EPP Data or Address Read Cycle (EPP Version 1.9)
t3 A IOR t1 t6 SD t8 t5 IOCHRDY t10 t9 t2 t7 t4
t13 t14 WRITE t16 t17 PD t21 ADDRSTB DATASTB t22 t23 t24 t25
t15
t18
t19
t20
t26
t27
t28
WAIT
-136 -
W83877TF/W83877TG
13.3.3 EPP Data or Address Write Cycle (EPP Version 1.9)
t3 t4 A10-A0 SD t1 IOW IOCHRDY t9 t10 t11 t13 t15 t16 t17 t2 t 7 t8 t5 t6
WRITE PD
t12 t14
DATAST ADDRSTB
t18
t19 t20
t21
WAIT PBDIR
t22
-137-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
13.3.4 EPP Data or Address Read Cycle (EPP Version 1.7)
t3 A IOR t1 t6 t7 SD t8 t5 IOCHRDY t10 t9 t2 t4
t13 t14 WRITE t16 t17 PD t21 ADDRSTB DATASTB t22 t23 t25 t24
t15
t18
t19
t20
t26
t27
t28
WAIT
-138 -
W83877TF/W83877TG
13.3.5 EPP Data or Address Write Cycle (EPP Version 1.7)
t3 t4 A10-A0 SD t1 IOW IOCHRDY t9 t10 t11 t13 t15 t16 t17 t2 t7 t8 t5 t6
WRITE PD
t22 t22
DATAST ADDRSTB
t18
t19 t20
WAIT
13.3.6
Parallel Port FIFO Timing
t4 t3 >| >|
PD t1 nSTROBE >| t2 > t5 >|
t6 BUSY
>|
-139-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
13.3.7 ECP Parallel Port Forward Timing
t3 nAUTOFD t4 PD t1 t2 t6 nSTROBE t5 BUSY t7 t5 t8
13.3.8
ECP Parallel Port Reverse Timing
t2 PD t1 t3 nACK t5 nAUTOFD t6 t5
t4
-140 -
W83877TF/W83877TG
14. APPLICATION CIRCUITS
14.1 Parallel Port Extension FDD
JP13
WE2/SLCT WD2/PE MOB2/BUSY DSB2/ACK PD7 PD6 PD5 DCH2/PD4 RDD2/PD3 STEP2/SLIN WP2/PD2 DIR2/INIT TRK02/PD1 HEAD2/ERR IDX2/PD0 RWC2/AFD STB 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1
JP 13A
DCH2 HEAD2 RDD2
WP2
TRK02 WE2 WD2 STEP2 DIR2 MOB2 DSB2 IDX2
RWC2
34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2
33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1
EXT FDC
PRINTER PORT
Parallel Port Extension FDD Mode Connection Diagram
-141-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
14.2 Parallel Port Extension 2FDD
JP13
WE2/SLCT WD2/PE MOB2/BUSY DSB2/ACK DSA2/PD7 MOA2/PD6 PD5 DCH2/PD4 RDD2/PD3 STEP2/SLIN WP2/PD2 DIR2/INIT TRK02/PD1 HEAD2/ERR IDX2/PD0 RWC2/AFD STB 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1
JP 13A
DCH2 HEAD2 RDD2
WP2
TRK02 WE2 WD2 STEP2 DIR2 MOB2 DSA2 DSB2 MOA2 IDX2
RWC2
34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2
33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1
EXT FDC
PRINTER PORT
Parallel Port Extension 2FDD Connection Diagram
14.3 Four FDD Mode
W83777F DSA DSB MOA MOB
74LS139 G1 A1 B1 1Y0 1Y1 1Y2 1Y3 2Y0 2Y1 2Y2 2Y3
7407(2) DSA DSB DSC DSD MOA MOB MOC MOD
G2 A2 B2
-142 -
W83877TF/W83877TG
15. ORDERING INFORMATION
PART NO. PACKAGE
W83877TF W83877TD W83877TG
100-pin QFP 100-pin LQFP 100-pin QFP for lead-free
-143-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
16. HOW TO READ THE TOP MARKING
Example: The top marking of W83877TF
inbond
W83877TF
719AB27039520
1st line: Winbond logo 2nd line: the type number: W83877TF 3rd line: tracking code 719 A B 2 7039530
719: packages made in '97, week 19 A: assembly house ID; A means ASE, S means SPIL....etc
B: IC revision; B means version B, C means version C
2: wafers manufactured in Winbond FAB 2 7039530: wafer production series lot number
inbond
W83877TFG
719AB27039520
1st line: Winbond logo 2nd line: the type number: W83877TG(Lead-free package) 3rd line: tracking code 719 A B 2 7039530
719: packages made in '97, week 19 A: assembly house ID; A means ASE, S means SPIL....etc
B: IC revision; B means version B, C means version C
2: wafers manufactured in Winbond FAB 2 7039530: wafer production series lot number
-144 -
W83877TF/W83877TG
17. PACKAGE DIMENSION
W83877TF (100-pin QFP)
HD D
100 81
Symbol
1 80
Dimension in inches
Dimension in mm
Min. Nom. Max.
0.130 0.004 0.107 0.010 0.004 0.546 0.782 0.020 0.728 0.964 0.039 0.087 0.112 0.012 0.006 0.551 0.787 0.026 0.740 0.976 0.047 0.094 0.117 0.016 0.010 0.556 0.792 0.032 0.752 0.988 0.055 0.103 0.004 0 12
Min. Nom. Max.
3.30 0.10 2.73 0.25 0.10 13.87 19.87 0.50 18.49 24.49 1.00 2.21 2.85 0.30 0.15 14.00 20.00 0.65 18.80 24.80 1.20 2.40 2.97 0.40 0.25 14.13 20.13 0.80 19.10 25.10 1.40 2.62 0.10 0 12
E HE
30
51
A A1 A2 b c D E e HD HE L L1 y θ
Notes:
31
e
b
50
c A2 See Detail F A1 y A θ L1 Detail F
1. Dimension D & E do not include interlead flash. 2. Dimension b does not include dambar protrusion/intrusion. 3. Controlling dimension: Millimeters 4. General appearance spec. should be based on final visual inspection spec.
Seating Plane
L
-145-
Publication Release Date: May 2006 Revision 0.7
W83877TF/W83877TG
W83877TD (100-pin LQFP)
HD D
100 81
Symbol
1 80
Dimension in inches
Dimension in mm
Min. Nom. Max.
0.002 0.053 0.009 0.004 0.547 0.783 0.020 0.626 0.862 0.018 0.004 0.055 0.013 0.006 0.551 0.787 0.026 0.630 0.866 0.024 0.039 0.003 0 7 0.006 0.057 0.015 0.008 0.555 0.791 0.032 0.634 0.870 0.030
Min. Nom. Max.
0.05 1.35 0.22 0.10 13.90 19.90 0.498 15.90 21.90 0.45 0.10 1.40 0.32 0.15 14.00 20.00 0.65 16.00 22.00 0.60 1.00 0.08 0 7 0.15 1.45 0.38 0.20 14.10 20.10 0.802 16.10 22.10 0.75
E HE
30
51
A A1 A2 b c D E e HD HE L L1 y θ
Notes:
31
e
b
50
c A2 See Detail F A1 y A θ L1 Detail F
1. Dimension D & E do not include interlead flash. 2. Dimension b does not include dambar protrusion/intrusion. 3. Controlling dimension: Millimeters 4. General appearance spec. should be based on final visual inspection spec.
Seating Plane
L
-146 -
W83877TF/W83877TG
Important Notice
Winbond products are not designed, intended, authorized or warranted for use as components in systems or equipment intended for surgical implantation, atomic energy control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, or for other applications intended to support or sustain life. Further more, Winbond products are not intended for applications wherein failure of Winbond products could result or lead to a situation wherein personal injury, death or severe property or environmental damage could occur. 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.
-147-
Publication Release Date: May 2006 Revision 0.7