This hardcopy is designed to be placed into a standard 3-ring binder. Provided below is a title block that
can be copied and cut out and placed into the slip or taped onto the edge of the binder.
Deskpro 4000N and 4000S Personal Computers
TRG
Technical Reference Guide
NOTICE
The information in this document is subject to change without notice.
COMPAQ COMPUTER CORPORATION SHALL NOT BE LIABLE FOR TECHNICAL OR
EDITORIAL ERRORS OR OMISSIONS HEREIN; NOR FOR INCIDENTAL OR
CONSEQUENTIAL DAMAGES RESULTING FROM THE FURNISHING, PERFORMANCE,
OR USE OF THIS MATERIAL. IT IS THE RESPONSIBILITY OF MANUFACTURERS TO
ENSURE THAT DEVICES DESIGNED TO BE USED WITH COMPAQ PRODUCTS
COMPLY WITH FCC CLASS B EMISSIONS REQUIREMENTS.
This guide contains information protected by copyright. No part of this document may be
photocopied or reproduced in any form without prior written consent from Compaq Computer
Corporation.
1997 Compaq Computer Corporation
All rights reserved. Printe d in the USA
Compaq, Deskpro, LTE, Contura, Presario, ProLinea
Registered U.S. Patent and Trademark Office
Product names mentioned in this document may be trademarks and/or registered trademarks of other companies.
For more information regarding specifications and Compaq-specific parts please contact Compaq
Computer Corporation, Industry Relations Department.
Compaq Deskpro 4000N and 4000S Personal Comput ers
2–1. C
2–2. C
2–3. C
2–4. C
2–5. S
2–6. C
2–7. M
3–1. P
3–2. P
3–3. S
4–1. PCI B
4–2. 32-B
4–3. T
4–4. PCI C
4–5. ISA B
4–6. ISA E
4–7. M
4–8. C
5–1. 40-P
5–1. 50-P
5–2. 34-P
5–3. S
5–4. S
5–5. P
5–6. 8042-TO-K
5–7. K
5–8. E
5–9. E
5–10. E
5–11. U
6–1. S3 T
6–2. VGA M
7–1. P
7–2. P
7–3. L
7–4. S
C–1. K
C–2. K
C–3. U.S. E
C–4. N
C–5. U.S. E
C–6. N
C–7. U.S. E
C–8. N
C–9. S
C–10. S
This guide provides technical information about the Compaq Deskpro 4000N and 4000S
Personal Computers. This document includes information regarding system design, function, and
features that can be used by programmers, engineers, technicians, and system administrators.
1.1.1 USING THIS G U ID E
This guide consists of chapters and appendices. The chapters primarily describe the hardware
and firmware elements contained within the chassis and specifically deal with the system board
and the power supply assembly. The appendices contain general information about standard
peripheral devices such as the keyboard as well as separate audio or other interface cards, as well
as other general information in tabular format.
1.1.2 ADDITIONAL INFORMATION SOURCES
This guide does not describe in detail other manufacturer’s components used in the product
covered. For more information on individual commercial-off-the-shelf (COTS) components refer
to the indicated manufacturers’ documentation. The products covered by this guide use
architecture based on industry-standard specifications that can be referenced for detailed
information.
Hardcopy documentation sources:
♦ The Lotus/Intel/Microsoft Expanded Memory Specification, Ver. 4.0
♦ PCI Local Bus Specification Revision 2.1
♦ Extended Industry Standard Architecture Expansion Bus Technical Reference Guide,
p/n 130584, Second Edition, Compaq Computer Corporation
♦ Compaq Basic Input/Out System (BIOS) Technical Reference Guide
Hexadecimal values are indicated by the letter “h” following an alpha-numerical value. Binary
values are indicated by the letter “b” following a value of ones and zeros. Memory addresses
expressed as “SSSS:OOOO” (SSSS = 16-bit segment, OOOO = 16-bit offset) can be assumed as
a hexadecimal value. Values that have no succeeding letter can be as sumed t o be decimal.
1.2.2 RANGES
Ranges or limits for a parameter are shown as a pair of values separated by two dots:
Example: Bits <7..4> = bits 7, 6, 5, and 4.
1.2.3 SIGNAL LABELS
Signal names are indicated using abbreviations, acronyms, or, if possible, the full signal name in
all capital letters. Signals that are meant to be active low are indicated with a dash immediately
following the name.
1.2.4 REGISTER NOTATION AND USAGE
This guide uses standard Intel naming conventions in discussing the microprocessor’s (CPU)
internal registers. Registers that are accessed through programmable I/O using an indexing
scheme are indicated using the following format:
03C5.17h
Index port
Data port
In th e e xam ple above, reg ist er 03C5.17h i s accessed by writing the index port value 17h to the
index address (03C4h), followed by a write to or a read from port 03C5h.
1.2.5 BIT NOTATION
Bit values are labeled with bit <0> representing the least-significant bit (LSb) and bit <7>
representing the most-significant bit (MSb) of a byte. Bytes, words, double words, and quad
words are typically shown with most-significant portions on the left or top and the leastsignificant portions on the right or bottom respectively.
1-2
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
1.3 COMMON ACRONYMS AND ABBREVIATIONS
Table 1-1 lists the acronyms and abbreviations used in this guide.
Technical Reference Guide
Table 1–1.
Acronyms and Abbreviations
Table 1-1.
Acronyms and Abbreviations
Acronym/AbbreviationDescriptio n
Aampere
ACalternating current
ACPIAdvanced Configuration and Power Interface
A/Danalog-to-digital
AGPadvanced graphics port
APIapplication programming interface
APMadvanced power management
ASICapplication-specific integrated circuit
AT1. attention (commands) 2. 286-based PC architecture
ATAAT attachment (mode)
AVIaudio-video interleaved
AVGAAdvanced VGA
BCDbinary-coded decimal
BIOSbasic input/outp ut system
bissecond/new revision
BitBLTbit block transfer
BNCBayonet Neill-Concelman (connector)
bps or b/sbits per second
BSPBootstrap processor
CAScolumn address strobe
CDcompact disk
CD-ROMcompact disk read-only memory
CDScompct disk system
CFcarry flag
CGAcolor graphics adapter
Chchannel
CLUTcolor look-up table (pallete)
cmcentimeter
CMCcache/memory controller
CMOScomplimentary metal-oxide semiconductor (configuration memory)
Cntlrcontroller
codec compressor/decompressor
CPQCompaq
CPUcentral processing unit
CRTcathode ray tube
CSMCompaq system management / Compaq server management
DAAdirect access arrangement
DACdigital-to-analog converter
dbdecibel
DCdirect current
DCHDOS compatibility hole
DDCDisplay Data Channel
DFdirection flag
Continued
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
1-3
Chapter 1 Introduction
Table 1-1. Acronyms and Abbreviations
Acronym/AbbreviationDescriptio n
DIMMdual inline memory module
DINDeutche IndustriNorm (connector standard)
DIPdual inline package
DMAdirect memory access
dpidots per inch
DRAMdynamic random access memory
DRQdata request
EDIDextended display identification data
EDOextended data out (RAM type)
EEPROMelectrically eraseable PROM
EGAenhanced graphics adapter
EIAElectronic Industry Association
EISAextended ISA
EPPenhanced parallel port
EIDEenhanced IDE
ESCDExtended System Configuration Data (format)
EVEnvironmental Variable (data)
ExCAExchangeable Card Architecture
FIFOfirst in / first out
FLflag (register)
FMfrequency modulation
FPMfast page mode (RAM type)
FPUFloating point unit (numeric or math coprocessor)
ftfoot
GBgigabyte
GNDground
GPIOgeneral purpose I/O
GPOCgeneral purpose open-collector
GUIgraphics user interface
hhexadecimal
HWhardware
hexhexadecimal
Hzhertz
IDEintegrated drive element
IEEEInstitute of Electrical and Electronic Engineers
IFinterrupt flag
I/Finterface
ininch
INTinterrupt
I/Oinput/output
IPLinitial program loader
IrDAInfra Red Data Association
IRQinterrupt request
ISAindustry standard architecture
JEDECJoint Electron Device Engineering Council
Kb / KBkilobits / kilobytes (x 1024 bits / x 1024 bytes)
Kb/skilobits per second
kgkilogram
KHzkilohertz
kvkilovolt
Continued
Continued
1-4
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
Technical Reference Guide
Table 1-1. Acronyms and Abbreviations
Acronym/AbbreviationDescriptio n
lbpound
LCDliquid crystal display
LEDlight-emitting diode
LIFlow insertion force (socket)
LSIlarge scale integration
LSb / LSBleast significant bit / least significant byte
LUNlogical unit (SCSI)
MMXmultimedia extensions
MPEGMotion Picture Experts Group
MOSFETMetal oxide silicon field effect transistor
msmillisecond
MSb / MSBmost significant bit / most significant byte
muxmultiplex
MVAmotion video acceleration
MVWmotion video window
n
NICnetwork interface card/controller
NiCadnickel cadmium
NiMHnickel-metal hydride
NMInon-maskable interrupt
nsnanosecond
NTnested task flag
NTSCNational Television Standards Committee
NVRAMnon-volatile random access memory
OEMoriginal equipment manufacturer
OSoperating system
PAL1. programmable array logic 2. phase altering line
PCpersonal computer
PCIperipheral component interconnect
PCMpulse code modulation
PCMCIAPersonal Computer Memory Card International Association
PFparity flag
PINpersonal identification number
POSTpower-on self test
PROMprogrammable read-only memory
PTRpointer
RAMrandom access memory
RASrow address strobe
rcvrreceiver
RFresume flag
RGBred/green/blue
RHRelative humidity
RMSroot mean square
ROMread-only memory
RPMrevolutions per minute
RTCreal time clock
R/Wread/write
variable parameter/value
Continued
Continued
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
1-5
Chapter 1 Introduction
Table 1-1. Acronyms and Abbreviations
Acronym/AbbreviationDescriptio n
SCSIsmall co mput er system interface
SDRAMSynchronous Dynamic RAM
SECSingle Edge-Connector
SECAMsequential colour avec memoire (sequential color with memory)
SFsign flag
SGRAMSynchronous Graphics RAM
SIMMsingle in-line memory module
SITsystem inform ation table
SMIsystem m anagement interrupt
SMMsystem management mode
SMRAMsystem m anagement RAM
SPDserial presence detect
SPPstandard parallel port
SRAMstatic RAM
STNsuper twist pneumatic
SVGAsuper VGA
SWsoftware
TADtelephone answering device
TAMtelephone answering machine
TCPtape carrier package
TFtrap flag
TFTthin-film transistor
TIATelecommunications Information Administration
TPEtwisted pair ethernet
TPItrack per inch
TTltransistor-transistor logic
TVtelevision
TXtransmit
UARTuniversal asynchronous receiver/transmitter
us / µsmicrosecond
USBUniversal Serial Bus
UTPunshielded twisted pair
Vvolt
VESAVideo Electronic Standards Association
VGAvideo graphics adapter
vibvibrato
VLSIvery large scale integration
VRAMVideo RAM
Wwatt
WRAMWindows RAM
ZFzero flag
ZIFzero insertion force (socket)
Continued
1-6
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
Chapter 2
SYSTEM OVERVIEW
Technical Reference Guide
2.
2.1
Chapter 2 SYSTEM OVERVIEW
INTRODUCTION
The Compaq Deskpro 4000N and 4000S Personal Computers are based on Pentium
microprocessors featuring MMX technology and designed with a n emph a si s on speed, storage
capacity, and multimedia compatibility to meet the requirements of the business environment.
These models feature architectures incorporating the PCI and ISA buses. All models are easily
upgradeable and expandable to keep pace with th e n eeds of the office or home.
Figure 2–1.
Compaq Deskpro 4000N and 4000S Personal Computers
Compaq Deskpro 4000S Personal Computer with Monitor
First Edition -September
2-1
Chapter 2 System Overview
2.2 F EATURES
This section describes the standard and distinguishing features.
2.2.1 STANDARD FEATURES
The following standard features are included on all models:
♦ Pentium micr oprocessor with MMX tech nology
♦ 256-KB second-level cache
♦ 16 or 32 megabytes of SDRAM, with support for ECC and SDP m emory
♦ Integrated S3 Trio64V2/GX graphics controller with 2-MB frame
♦ Enha nced IDE controller support i ng Ultra ATA (UDMA) modes 0-2
♦ Hard drive fault prediction
♦ PCI con nector
♦ Two serial interfaces
♦ Parallel interface
♦ Two universal serial bus ports
♦ Integrated n etwork interface controller (RJ-45/AUI ports)
♦ Compaq Space Saver keyboard w/Windows support
♦ Compaq PS/2-type mouse
♦ APM 1.2 power management suppor t
♦ Plug ’n Play compatible (with ESCD support)
♦ Energy Star compliant
♦ 76-watt, surge-tolerant power supply
The Deskpro 4000N and 4000S support the Intelligent Manageability features listed below:
Configuration
Management
Remote ROM FlashRAM Type DataECC RAM Fault PredictionMemory Change Alert
Remote SecurityDMI BIOSSMART II Hard DriveOwnership Tag
Remote WakeupAsset TagMonitor Fault Diag.Config. Cntrl. Hardware
Remote ShutdownSys. Serial #UDMA Integrity Log.Setup Password
Replicated SetupSys. Manuf./ModelProactive BackupPower-On Password
ACPI-ReadySys. Board Rev. LevelThermal SensorQuickLock/QuickBlank
Dual-State Power Sw.ROM rev. Diskette Boot Cntrl.
Failsafe Boot Bloc k ROMHard Drive Type DataDiskette Write Cntrl.
Asset
Management
Monitor Type DataI/O Port En/Dis. Cntrl.
Compaq Insight Ed itio nCable Lock Provision
Fault
Management
Security
Management
The Intelligent Manageability features provide support for DMI 2.0, Compaq Insight Manager,
and Management Solutions Partners.
2-2
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
2.2.2 MODEL DIFFERENCES
Deskpro 4000NDeskpro 4000S
PCI connector: 1 1 (shared slot)
ISA connector: none 1 (shared slot)
OS installed:Windows NT 4.0 Windows 95
Remot e boot support: Yes No
Diskette drive installed: No Yes
Hard drive size: 1.6 or 2.1 GB 2.1 GB
CD-ROM support: No Yes
2.2.3 OPTIONS
Options that are specific to the Compaq Deskpro 4000N and 4000S Series Personal Computers
include:
♦System Memory: 8 -MB DIMM
16-MB DIMM
32-MB DIMM
64-MB DIMM
128-MB DIMM
Technical Reference Guide
Compaq Deskpro Computers are easily upgraded and enhanced with peripher a l devices designed
to meet PCI and ISA standards. The Compaq Deskpro Personal Computers are compatible with
peripherals design for Plug ’n Play operation.
Compaq Deskpro 4000N and 4000S Personal Computers
First Edition -September
2-3
Chapter 2 System Overview
2.3 MECHANICAL DESIGN
This section illustrates the layout used by the formfactor. In addition, this section includes the
layout of the system board.
2.3.1 CABINET LAYOUT
NOTES:
[1] Deskpro 4000S only
[2] Front panel access on 4000S only.
Figure 2–2.
ItemFunction
1Power Switch
2Power-On Light
3Hard Drive Activity Light
41.44 MB Diskette Drive (3.5” Drive) [1]
51/3 Height Drive Bay (3.5” or 5.25” Drive) [2]
61/3 Height Drive Bay (3.5” or 5.25” Drive)
Cabinet Layout, Front View
456
1
2
3
2-4
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
Technical Reference Guide
246101112
13
ItemFunction
1AC Line In Connector
2Line Voltage Select Switch
3Universal Serial Bus Interface port 1
4Universal Serial Bus Interface port 2
5Parallel Interface Connector
6Serial Interface Connector B
7Serial Interface Connector A
8Network Interface AUI Connector
9RTC/CMOS Battery
10RTC/CMOS battery replacement header (P14)
11Power switch, PWR/HD LED cable connector (P16)
12Processing frequency configuration switch (SW1)
13CD-ROM connector (P25)
14Secondary IDE connector (P21)
15Primary IDE connector (P20)
16Diskette drive connector (J1)
17Microprocessor (in type 7 socket)
18DIMM sockets (J7, J8)
19CD-ROM drive connector P25 audio out (J11)
20Riser card connector (J4)
Figure 2–5.
System Board Layout, Component Side
Compaq Deskpro 4000N and 4000S Personal Computers
First Edition -September
2-7
Chapter 2 System Overview
2.4 SYSTEM ARCHITECTURE
The Compaq Deskpro 4000N and 4000S Personal Computers featur ing MMX technology are
based on a Pent i u m MXX micropr ocessor matched with a support chipset that is complimentary
in design. Both th e “N” and “S” systems share the same basic architecture (Figure 2-7), which
utilizes three main buses: the Host bus, the Peripheral Component Interconnect (PCI) bus, and
the Industry Standard Architecture (ISA) bus.
The Host bus provides high performance support for CPU, cache and system memory accesses,
and on these systems is set to operate at 66 MHz. The 32-bit PCI bus provides support for the
graphics subsystem, the EIDE controllers, and expansion devices designed for high performance.
The PCI bus operates at 33 MHz. The ISA bus provides a standard 8-MHz interface for the
input/output (I/O) devices such as the keyboard, diskette drive, serial and parallel interfaces, as
well as the addition of 16- or 8-bit expansion devices.
The CPU/PCI and PCI/ISA bridge functions are handled by the specific support chipset matched
with the microprocessor employed. The support chipset also provides memory controller and data
buffering functions as well as bus control and arbitration functions.
The I/O port functions and diskette dri ve controller ar e in t egra t ed in t o th e PC87307 I/O
Controller. This component also includes the real time clock and battery-backed configuration
memory (CMOS).
Table 2-1 lists the archit ectural highlights.
Table 2–1.
Architectural Comparison
Table 2-1
.
Architectur al Overview
MicroprocessorPentium MMX
Support ChipsetVIA VP2
System Memory
Standard installed:
Expandable to:
Cache Memory
L1:
L2:
Graphics SubsystemS3 TrioV2-based
NOTES:
[1] Depending on model
[2] Integrated with the microprocessor
Type
16/32 MB [1]
256 MB
32 KB [2]
256 KB
integrated on board
The following subsections provide a description of the key functions and subsystems.
2-8
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
Technical Reference Guide
(2)
]
Microprocessor
and Cache Memory
Hard Drive
CD-ROM
ISA Connector [1
64-Bit Host Bus
Graphics
Subsystem
EIDE
Keyboard/
Mouse I/F
North
Bridge
Pri.
IDE I/F
Sec.
IDE I/F
8-/16-Bit
ISA Bus
PC 87307 I/O Controller
South
Bridge
Diskette
I/F
32-Bit
PCI Bus 0
USB
I/F (2)
X-Bus
Serial
I/F
Mem. Bus
PCI Connector
System
Memory
BIOS
ROM
Parallel
I/F
EIDE
Hard Drive
Power
Supply
NOTES:
CD models only.
[1] Deskpro 4000S only.
Figure 2–6. Compaq Deskpro 4000N and 4000S System Architecture, Block diagram
Compaq Deskpro 4000N and 4000S Personal Computers
First Edition -September
2-9
Chapter 2 System Overview
2.4.1 MICROPROCESSOR
The Compaq Deskpro 4000N and 4000S Personal Computers feature the Pentium MMX
microprocessor that is backward-compatible with software written for x86-type processors. The
Pentium MMX microprocessor inclu des a 3 2 KB L1 cache and ext ensions t o the inst ruction set
that pr ovide higher per forman ce for processing graphics and video code. The microprocessor is
mounted in a ZIF type-7 socket that allows replacing and/or upgrading.
Pentium MMX Microprocessor
Figure 2–7.
2.4.2 MEMORY
This system includes 256 kilobytes of SRAM for secondary (L2) cache support of the
microprocessor’s primary (L1) cache. The L2 cache is arranged as direct-mapped, write-through
using synchronous pi p elined bur st SRAMs.
For system memory two 168-pin DIMM sockets are provided with 16 or 32 megabytes of unbuffered SDRAM installed depending on model. System memory can be expanded up to 256
megabytes using 8-, 16-, 32-,64-, and 128-MB DIMMs. Both EDO and SDRAM DIMMs are
supported (SDRAM DIMMs are recommended). T he system supports the use of ECC memory as
well.
Dual-ALU
CPU w/MMX
Branch
Prediction
(Mounted in Type 7 Connector)
32-KB
Cache
Dual Pipeline
Math Coproc.
Micr oprocessor A rchitectu ral Diag ram
The system ROM utilizes a flash ROM component that contains the BIOS and stores PCI, ESCD,
and EV data. The BIOS is updateable by remote or local flashing of the ROM, which includes
boot bloc k ROM support .
2-10
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
2.4.3 SUPPORT CHIPSET
Table 2-2 shows the chipsets used for the Deskpro 4000N and 4000S systems.
Technical Reference Guide
Table 2–2.
FunctionComponent
Host/PCI (North) Bridge:
System Controller
Data Buffer
PCI/ISA (South) Bridge:
EIDE Controller
DMA Controller
Interrupt Controller
Timer/Counter
NMI Registers
Reset Control Reg.
USB I/F
I/O Controller:
A 1.6- or 2.1-GB EIDE hard drive may be installed, depending on series/model. All models
include a PCI bus mastering Enhanced IDE (EIDE) controller that provides two EIDE interfaces
supporting two IDE devices. Master/slave drive selection is determin ed usin g t he cable-select
method, eliminating the need to move jumpers when re-configuring drives. The mass storage
drive bay capacity is determined by the form factor (refer to Section 2.3, Mechanical Design). All
Deskpro 4000S models include a 3.5 inch 1.44-MB diskette drive installed.
2.4.5 SERIAL AND PARALLEL INTERFACES
All models include two serial and one parallel port available at the rear of the unit chassis. The
serial and parallel ports are integrated into a PC87307 I/O Controller component. The serial
ports use 16550/16450-equivalent logic and are RS-232-C compatible and operate at baud rates
up to 115,200. The parallel interface is Enhanced Parallel Port (EPP1.9) and Enhanced
Capability Port (ECP) compatible, and supports bi-directional data transfers.
Compaq Deskpro 4000N and 4000S Personal Computers
First Edition -September
2-11
Chapter 2 System Overview
2.4.6 UNIVERSAL SERIAL BUS INTERFACE
Two Universal Serial Bus (USB) ports are included, each providing a high speed interface for
future systems and/or peripherals. The USB interface operates at 12 Mbps and provides hot
plugging/unplugging (Plug ’n Play) functionality.
2.4.7 GRAPHICS SUBSYSTEM
The graphics subsystem is integrated on the system board and operates off the PCI bus. The
subsystem is based on the S3 Trio64 V2/GX controller and includes two megabytes of SGRAM.
The subsystem provides a maximum resolution of 1280 x 1024 with 256 colors.
This section includes the environmental, electrical, and physical specifications for the Compaq
Deskpro 4000N and 4000S Series Personal Computers.
Technical Reference Guide
Table 2–4.
Environmental Specifications
Table 2-4.
Environmental Specifications
ParameterOperatingNonoperating
Air Temperature50
ShockN/A60.0 g for 2 ms half-sine pulse
Vibration0.000215g^ 2/Hz, 10-300 Hz [1]0.0005g^ 2/Hz, 10-500 Hz [1]
Humidity80% RH @ 36
Maximum Altitude10,000 ft (3048 m)30,000 ft (9,144 m)
NOTE:
Table 2–5.
Values are subject to change without notice.
[1] 0.5 grms nominal.
Electrical Specifications
o
to 95o F (10o to 35o C)-24o to 140o F (-30o to 60o C)
o
C (no hard drive)95% RH @ 36o C
Table 2-5.
Electrical Specifications
ParameterDomesticInternational
Input Line Voltage:
Nominal:
Maximum:
Input Line Frequency Range:
Nominal:
Maximum:
Power Supply
Maximum Continuous Power:
Maximum Line Current Draw:
100 - 120 VAC
90 - 132 VAC
50 - 60 Hz
47 - 63 Hz
75 watts
5.5 A
200 - 240 VAC
180 - 264 VAC
50 - 60 Hz
47 - 63 Hz
75 watts
?? watts
3.0 A
Table 2–6.
Physical Specifications
Table 2-6.
Physical Specific ations
DimensionMeasurement
Height3.56 in (9.00 cm)
Width112.50 in (31.80 cm)
Depth14.60 in (37.10 cm)
Weight20 lb (9.08 kg)
NOTE:
Metric measurements shown in parenthesis.
Compaq Deskpro 4000N and 4000S Personal Computers
First Edition -September
2-13
Chapter 2 System Overview
Table 2–7.Diskette Drive Specifications
ParamemterMeasurement
Media Type3.5 in 1.44 MB/720 KB diskette
Height1/3
Bytes per Sector512
Secto rs per T rack:
High Density
Low Density
Tracks p er Side:
High Density
Low Density
Read/Write Heads2
Average Access Time:
Track-to-Track (high/low)
Average (high/low)
Settling Time
Latency Average
Table 2-7.
Diskette Drive S pec ifications
18
9
80
80
3 ms/3 ms
94 ms/94ms
15 ms
100 ms
Table 2–8.8x CD-ROM Drive Specifications
Table 2-8.
20x CD-ROM Drive Spec ifications
ParamemterMeasurement
Media TypeMode 1,2, Mixed Mode, CD-DA,
Center Hole Diameter15 mm
Disc Diameter8/12 cm
Disc Thickness1.2 mm
Track Pitch1.6 um
Laser
Beam Divergence
Output Power
Typr
Wave Length
Average Access Time:
Random
Full Stroke
Audio Output Level0.7 Vrms
Cache Buffer128 KB (min)
Data Transfer Time
Sustained
Startup Time
Photo CD, Cdi , CD-XA
53.5 +/- 1.5
53.6 0.14 mW
790 +/- 25 nm
150 ms
600 ms
3000 KB/s
7 secs (nom)
°
GaAs
2-14
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
Technical Reference Guide
Table 2–9.Hard Drive Specifications
Table 2-9.
Hard Drive Specifications
Parameter1.6 GB2.1 GB
Interface:EIDEEIDE
Drive Type:6565
Drive Size:5.25 in5.25 in
Transfer Rate
Heads:
Interface:
Seek Time (w/settling)
Single Track:
Average:
Full Stroke:
Disk RPM:45004500
EDMA Support:Mode 2Mode 2
PIO Support:Mode 4Mode 4
Power Mode Command Support:YesYes
Drive Fault Prediction:SMART IISMART II
94.0 Mb/s
16.7 MB/s
2.0 ms
11.0 ms
25.0 ms
27.2-55 Mb/s
16.7 MB/s
2.0 ms
12.0 ms
22.0 ms
Compaq Deskpro 4000N and 4000S Personal Computers
First Edition -September
2-15
Chapter 2 System Overview
This page is intentionally blank.
2-16
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
Chapter 3
PROCESSOR/
MEMORY SUBSYSTEM
Technical Reference Guide
3.
3.1
Chapter 3 PROCESSOR/MEMORY SUBSYSTEM
INTRODUCTION
This chapter describes the processor/cache memory subsystem of the Compaq Deskpro 4000N
and 4000S Series of Personal Computers.
This chapter includes the following topics:
♦ Pentium MMX-based processor/m em or y subsystem [3.2]page 3-2
♦Klamath-based processor/memory subsystem [3.4]page 3-12
Table 3-1 lists the highl i ghts of the processor/memory architecture.
Table 3–1.
Processor/Memory Architectural Highlights
Table 3-1.
Processor/Memory
Architectur al Highlights
FeatureType/Amount
Support ChipsetVT82C595
System Memory
Standard installed:
Expandable to:
Cache Memory
L1:
L2:
NOTES:
[1] Integrated into the microprocessor
16 or 32 MB SDRAM
256 MB
32 KB [1]
256 KB
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
3-1
Chapter 3 Processor/Memory Subsystem
()
3.2 PENTIUM MMX-BASED PROCESSO R/M EMORY SUBSYSTEM
The processor/memory subsystem is based on th e Pent i u m MMX m i cr opr ocessor, a 512-KB or 1MB secondary cache, and a VT82C595 system controller (Figure 3-1).
Memory/PCI
Data Buffer
System Memory
J7
16-MB
DIMM
J8
DIMM
Pentium MMX
Microprocessor
Cntl
Optional module
Figure 3–1.
256-KB
Secondary
Cache
64-Bit Host Bus
Cache/
Memory/PCI
Controller
(VT82C595)
Cntl
Mem.
Data Bus
Mem. Addr.
32-bit PCI Bus
Processor/Memory Subsystem Archi t ectu re
The microprocessor is mounted in a ZIF type 7 socket that facilitates easy changing/upgrading.
The system supports both 2.8V and 3.3V core processors. Replacing the microprocessor may
requ ire reconfig u ring a D I P s witch to select t he correct bus frequency/core fr eq u ency
combination. Frequency selection is described in detail later in this section.
The VT82C595 system controller pr ovides the Host/PCI bridge functions and contr ols tr a nsfers
with the 64-bit memory data bus. The system includes 256 kilobytes of SRAM controlled by the
system controller as a direct-mapped, write-through L2 cache to the L1 cache integrated into the
microprocessor. Th e system supports synchronous, pipelin ed burst SRAM/DRAM for the L2
cache, providing 3-1-1-1 read/write cycles at 60 and 66 MHz on a cache hit .
The standard system memory configuration consists of 16 or 32 megabytes of SDRAM system
memory. The system memory can be expanded to 256 megabytes.
Compaq Deskpro 4000N and 4000S Personal Computers
3-2
Firs t Edition - September 1997
3.2.1 PENTIUM MMX MICROPROCESSOR
The Pentium MMX microprocessor is softwar e-compatible with earlier generation x86
microprocessors but provides significantly higher performance due to both higher processing
speed and enhanced design (Figure 3-2.).
The Pentium MMX microprocessor contains a dual-ALU CPU, branch prediction logic, dualpipeline math coprocessor, and a 32-KB cache that is split into two 16-KB 4-way, set-associative
caches for handling code and data separately. The microprocessor is mounted in a ZIF type 7
socket for easy changing/upgrading of the microprocessor. Replacing the micr oprocessor may
require reconfiguring the settings of DIP switch SW1 to properly set the speed of the Host bus
and the core (processing) frequencies.
3.2.1.1 MMX Technology
The CPU of the Pentium MMX support s 57 a dditional instructions specifically designed for
accelerating multimedia and communications applications. Such applications often involve
compute-intensive loops that can take up as much as 90 percent of CPU execution time. The
MMX logic, using a pa rallel processing technique called Single Instruction-Multiple Data
(SIMD), operates on 64 bits at a time. The MMX instructi on s a re design ed t o take advan t a g e of
the dual-pipeline CPU as well as help the programmer in avoiding branches in code. Specific
applications that benefit from MMX technology in clude 2D/ 3 D g raphics, audio, sp eech
recognition, video codecs, and data compression .
CPU
w/MMX
Branch
Prediction
32-KB
Cache
Dual Pipeline
Math Coproc.
NOTE:
MMX operations utilize a portion of the floating point registers of the
integrated math coprocessor. Programmers should take note that mixing MMX code
with that of floating point operations can result in reduced performance and should
there fore be avoid e d.
.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
3-3
Chapter 3 Processor/Memory Subsystem
3.2.2 BU S/ PRO CES S ING S PEED SELECT
The Pentium MMX-based system board i ncludes a four- p osition DIP switch (SW1) that is used to
select the Host bus frequency and the processing frequency of the system. The SW1 positions 2
and 3 control the Bus Fraction (BF0, BF1) signals to the CPU, which determines the bus-to-core
speed ratio. Position 5 of SW1 determines the bus frequency generated by the clock generator
(refer to Chapter 4, “System Support” for more information on clock frequency generation).
Table 3-2 shows the switch configurations to be used with a particular microprocessor.
NOTE:
SW1 should be set to match
the specified core speed of the
microprocessor. Configuring
for a core speed lower or
higher than that for which the
CPU is designed can result in
unstable or possibly
destructive operation.
The status of SW1-2, -3, and -5 is readable through general-purpose I/O (GPIO) port 78h bits
<2..0>, allowing BIOS and/or diagnostic software to check an installed microprocessor with the
switch configuration. Table 3-3 shows the switch position-to-GPIO-to-I/O port 78h input wiring.
The system board comes with 256 kilobytes of SRAM implemented as the secondary (L2) cache
to the integrated L1 cache of th e Pen tium MMX microprocessor. This L2 cache uses two 32K x
32 synchronous pipelined burst SRAMs (with one 32K x 8 T AG RAM) a rra nged as a directmapped, write-back. The L2 cache provides a typical cycle time (in Host clocks) of 3-1-1-1 for
burst reads (cache hit) and writes (write back). The L2 controller allows the full system memory
range t o be cached.
Compaq Deskpro 4000N and 4000S Personal Computers
3-4
Firs t Edition - September 1997
3.2.4 SYSTEM MEMORY
The system board contains two 168-pin DIMM sockets for system memory. This system is
designed for u si ng SDRAM DIMMs. As sh i p p ed fr om t he factory the sta ndard configur ation may
be 16 or 32 megabytes installed. The addition of 16-, or 32-, 64-, or 128-MB DIMMs allows the
expansion of system memory up to a maximum of 256 megabytes. Single or double-sided
DIMMs may be used. It is strongly recommended to use DIMMs with gold-plated contacts.
The system memory uses the following RAS line assignments:
RAS#0DIMM 1, Ban k A
RAS#1DIMM 1, Ban k B
RAS#2DIMM 2, Ban k A
RAS#3DIMM 2, Ban k B
This system does not use parity but does support ECC, and the memory is unbuffered. The
performance times of the SDRAM is listed as follows:
In addition to the supplied (and recommended) SDRAM, the system supports EDO and ECC
RAM, with error logging/alerting supported. The RAM type (as well as other information) is
detected during power-up by the system BIOS using the serial presence detect (SPD) meth od,
which reads the EEPROM on each DIMM to obtain identification data such as the type and
operating parameters. The supported format complies to the JEDEC specification for 128-byte
EEPROMs. Thi s system also provides support for 256-byte EEPROMs to include additional
Compaq-added features such as the part number, serial number, and error logging. The SPD
format as supported in this system is shown in Table 3-5.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
3-5
Chapter 3 Processor/Memory Subsystem
Table 3–5.SPD Address Map (SDRAM DIMM)
SPD Address Map (SDRAM DIMM)
ByteDescriptionNotesByteDescriptionNotes
0No. of Bytes Written Into EEPROM[1]62SPD Revision[7]
1Total Bytes (#) In EEPROM[2]63Checksum Bytes 0-62
2Memory Type64-71JEP-106E ID Code[8]
3No. of Row Addresses On DIMM[3]72DIMM OEM Location[8]
4No. of Column Addresses On DIMM73-90OEM’s Part Number[8]
5No. of Module Banks On DIMM91, 92OEM’s Rev. Code[8]
6, 7Data Width of Module93, 94Manufacture Date[8]
8Voltage Interface Standard of DIMM95-98OEM’s Assembly S/N[8]
9Cycletime @ Max CAS Latency (CL)[4]99-125OEM Specific Data[8]
10Access From Clock[4]126, 127Reserved
11Config. Type (Parity, Nonparity, etc.)128-135Sys. Integrator’s ID[9]
12Refresh Rate/Type[4] [5]136-150Sys. Integrator’s P/N[9]
13Width, Primary DRAM151-152Sys. Integrator’s D/C[9]
14Error Checking Data Width153-165Sys. Integrator’s S/N[9]
15Min. Clock Delay[6]166Chksm Bytes 128-165[9]
16Burst Lengths Supported167-189Top Level Sys. S/N[9]
17No. of Banks For Each Mem. Device[4]190-221Avaiable for use[9]
18CAS Latencies Supported[4]222Chksm Bytes 167-221[9]
19CS# Latency[4]223-253Available for use[9]
20Write Latency[4]254Chksm Bytes 223-253[9]
21DIMM Attributes255Chksm Byes 0-128[9]
22Memory Device Attributes
23Min. Clock Cycle Time at CL X-1[7]
24Max. Acc. Time From CLK at CL X-1[7]
25Min. Clock Cycle Time at CL X-2[7]
26Max. Acc. Time From CLK at CL X-2[7]
27Min. Row Precharge Time[7]
28Min. Row Active To Row Active Delay[7]
29Min. RAS to CAS Delay[7]
30, 31Reserved
32..61Superset Data For Future Use
NOTES:
[1] Programmed as 128 bytes by the DIMM’s OEM
[2] Must be programmed to 256 bytes.
[3] High order bit defines redundant addressing: if set (1), highest order RAS# address must be
re-sent as highest order CAS# address.
[4] Refer to memory manufacturer’s datasheet
[5] MSb is Self Refresh flag. If set (1), assembly supports self refresh.
[6] Back-to-back random column addresses.
[7] Field format proposed to JEDEC but not defined as standard at publication time.
[8] Field specified as optional by JEDEC but required by this system.
[9] Field format proposed to JEDEC. This system requires that the DIMM’s EEPROM have this
space available for reads/writes.
Table 3-5.
Access to the DIMM’s EE PROM is t hrough an I2C-type bus interface using BIOS call INT 15,
AX-E827h (discussed in Chapter 8, “BIOS ROM”).
If the BIOS finds an installed module that is not supported then the memory controller is
programmed to indicate empty rows as appropriate.
Compaq Deskpro 4000N and 4000S Personal Computers
3-6
Firs t Edition - September 1997
Figure 3-3 shows the system memory map.
(
)
(
)
Technical Reference Guide
Host,
PCI Area
Host, PCI,
ISA Area
DOS Compatibility
Area
FFFF FFFFh
FFFC 0000h
FFFB FFFFh
8100 0000h
80FF FFFFh
8000 0000h
7FFF FFFFh
1000 0000h
FFDF FFFFh
1000 0000h
0FFF FFFFh
0400 0000h
03FF FFFFh
0100 0000h
00FF FFFFh
0010 0000h
000F FFFFh
000F 0000h
000E FFFFh
000E 0000h
000D FFFFh
000C 8000h
000C 6800h
000C 6000h
000C 5FFFh
000C 0000h
000B FFFFh
000A 0000h
0009 FFFFh
High BIOS Area
256 KB
PCI Memory
(2130 MB)
ISA Memory-Mapped
Device s (16 MB)
PCI Memory
(1792 MB)
Op.TSEG (Cacheable)
(.1, .25, .5, 1 MB)
Op. Hi SMRAM
(384 KB)
Cacheable in L1
(192 MB)
Extended Memory
(48 MB)
Extended Memory
15 MB
Upper BIOS Area
(64 KB)
Lower BIOS Area
(64 KB)
Unused 96 KB
Graphics ROM
(6 KB)
Unused 2 KB
Graphics ROM
(24 KB)
Graphics/SMM Area
(128 KB)
4 GB
64 MB
16 MB
1 MB
960 KB
896 KB
800 KB
792 KB
768 KB
640 KB
Base Memory
(640 KB)
0000 0000h
NOTE: All locations in the 256 megabytes of system memory are cacheable in the L2 cache.
Figure 3–3. System Memory Map
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
3-7
Chapter 3 Processor/Memory Subsystem
3.2.5 SUB S YSTEM CONFIGURATION
The VT82C595 component provides the configuration function for the processor/memory
subsystem. Table 3-6 lists the configuration registers used for setting and checking such
parameters as cache (L2) control, system memory control, and PCI bus operation. These registers
reside in the PCI Configuration Space and accessed using the methods described in Chapter 4,
section 4.2.
Host/PCI B r idge Configuration Registers ( V T82C595)
PCI Config.
Addr.Register
00, 01hVender ID1106h64hDRAM TimingABh
02, 03hDevice ID0595h65hDRAM Control Reg. 100h
04, 05hCommand0007h66hDRAM Control Reg. 200h
06, 07hStatus67hDRAM Width00h
08hRevision ID68hUMA Control Reg. 100h
09-0BhClass Code69hUMA Control Reg. 200h
0DhLatency Timer00h6AhRefresh Control00h
0EhHeader Type00h6BhMisc. Cointrol00h
0FhBIST (read only)6ChSDRAM Control
50hCache Control Reg. 100h6DhDRAM Control Drive Strength
51hCache Control Reg. 200h6EhECC Control Reg.
52hNon-Cacheable Control02h6FhECC Status Reg.
53hMisc. Control00h70hPCI Buffer Control00h
54, 55hNon-Cacheable Area 100h71hCPU-to-PCI Flow Cntl. Reg. 100h
56, 57hNon-Cacheable Area 200h72hCPU-to-PCI Flow Cntl. Reg. 200h
58hDRAM Configuration40h73hPCI Master Control Reg.100h
59hDRAM Configuration05h74hPCI Master Control Reg. 200h
5A..5FhDRAM ROW End Addr.01h75hPCI Arbitration00h
60hDRAM Type00h76hExtension (PCI Arbitration)00h
61..63hShadow RAM Control00h------
NOTE:
Refer to VIA Technologies, Inc. documentation for detailed description of registers.
Assume unmarked locations/gaps as reserved.
Reset
Value
PCI Config.
Addr.Register
Reset
Value
Compaq Deskpro 4000N and 4000S Personal Computers
3-8
Firs t Edition - September 1997
Chapter 4
SYSTEM SUPPORT
4.Chapter 4 SYSTEM SUPPORT
Technical Reference Guide
4.1
INTRODUCTION
This chapter covers subjects dealing with basic system architecture and covers the following
topics:
♦ PCI bus overview (4.2)page 4-2
♦ ISA bus overview (4.3)pa ge 4-11
♦ System clock distribution (4.4)page 4-23
♦ Real-time clock and configuration memory (4.5)page 4-24
♦ I/O map and r egister accessing (4.6)page 4-41
♦ System management support (4.7)page 4-44
This chapter covers functions provided by off-the-shelf chipsets and therefore describes only basic
aspects of these functions as well as information unique to the Compaq Deskpro 4000 Personal
Computers. For detailed information on specific components, refer to the applicable
manufacturer’s documentation.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-1
Chapter 4 System Support
4.2 PCI BUS OVERVIEW
NOTE:
This section describes the PCI bus in general and highlights bus
implementation in this particular system. For detailed information regarding PCI bus
operation, refer to the PCI Local Bus Specification Revision 2.1.
This system implements a 32-bit Peripheral Component In t er conn ect (PCI) bus. The PCI bus
uses a shared address/data bus design. On the first clock cycle of a PCI bus transaction the bus
carries address information. On subsequent cycles, the bus carries data. PCI transactions occur
synchronously with the Host bus at a rate of up to 33 MHz, depending on the speed of the
microprocessor used. All I/O transactions involve the PCI bus. All ISA transactions involving the
microprocessor, cache, and memory also involve the PCI bus. Memory cycles will involve the
PCI if the access is initiated by a device or subsystem other than the microprocessor.
The PCI bus handles address/data transfers through the identification of devices and functions on
the bus (Figure 4-1). A device is defined as a component or slot that resides on the PCI bus. A
function is defined as the end source or target of the bus transaction. A device (component or
slot) may contain one or more functions (i.e., in this system the PCI/ISA Bridge function, EIDE
controller function, USB function, and ACPI function are contained within the South Bridge
component).
Host Bus
Host/PCI
Bridge Function
32-Bit PCI Bus 0
PCI/ISA Bridge
Function
Figure 4–1.
Compaq Deskpro 4000N and 4000S Personal Computers
4-2
PCI Bus Devices and Functions
EIDE Cntlr.
Function
ISA Bus
Graphics
Controller
USB
Function
ACPI Cntlr.
Function
PCI Connector
NIC
Function
Firs t Edition - September 1997
4.2.1 PCI CONNECTOR
Technical Reference Guide
B94
A94
B1B62
A62
NOTE: See caution below.
Figure 4–2.
Table 4–1.
32-Bit PCI Bus Connector (32-Bit Type)
32-BitPCI Bus Connector Pinout
A1
Table 4-1.
PCI Bus Connector P inout
PinB SignalA SignalPinB SignalA SignalPinB SignalA Signal
[1] The REQ64- and ACK64- signals are pulled high, allowing the use of 64-bit PCI cards
in 32-bit mode.
CAUTION:
The maximum length for an expansion card (PCI or ISA) installed in this system is
7 inches. Longer cards may be damaged or cause damage to the system.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-3
Chapter 4 System Support
4.2.2 PCI BUS MASTER ARBITRATION
The PCI bus supports a bus master/target arbitration scheme. A bus master is a device that has
been granted control of the bus for the purpose of initiating a transaction. A target is a device that
is the recipient of a transaction. Request (REQ), Grant (GNT), and FRAME signals are used by
PCI bus masters for gaining access to the PCI bus. When a PCI device needs access to the PCI
bus (and does not already own it), the PCI device asserts it’s REQn signal to the PCI bus arbiter
(a function of the system controller component). If the bus is available, the arbiter asserts the
GNTn signal to the requesting device, which then asserts FRAME and conducts the address
phase of the transaction with a target. If the PCI device already owns the bus, a request is not
needed and the device can simply assert FRAME and conduct the tra nsaction. Table 4-1 shows
the grant and request signals assignments for the devices on the PCI bus.
PCI bus contr ol is gr ant ed according to a Least Recently Used (LRU) algorithm. D u ring times
that the bus is not used or requested, bus control is given to the Host/PCI bridge. After a device
has g iven up control of the bu s or ha s not execu ted a t ransact i on for 16 P C I clock cycles
(PCICLKs) after gaining bus control, it loses access and is placed on the bottom of the priority
list.
The PCI/ISA bridge is given special consideration. If the PCI/ISA bridge gains control of the PCI
bus but does not execute a transaction after 16 PCICLKs, the PCI/ISA bridge retains ownership
of the PCI bus until the current ISA bus master relinquishes the ISA bus. The PCI/ISA bridge is
then placed on the bottom of the priority list.
PCI bus priority can be altered in two ways: by a master needing to perform a retry of a data
cycle, or by the master locking the bus. When a master is retried, it releases the bus and negates
its REQn- line for a minimum of two PCICLKs and th en requests the bus again. If the master is
granted the bus before the condition that caused the retry is resolved, the master is retried again,
which may result in bus “thrashing.” Bus thrashing is minimized by masking the REQn- line of a
particular device that has had a transaction retried.
If a master locks the PCI bus, it retains top priority, allowing it to quickly finish a lock sequence.
The PCI/ISA bridge cannot become master until the locking device unlocks the bus.
Consequently, a master should not lock the bus for long periods of time or latency problems could
occur.
Compaq Deskpro 4000N and 4000S Personal Computers
4-4
Firs t Edition - September 1997
4.2.3 PCI BUS TRANSACTIONS
The PCI bus consists of a 32-bit path (AD31-00 lines) that uses a multiplexed scheme for
handling both address and data transfers. A bus transaction consists of an address cycle and one
or more data cycles, with each cycle requiring a clock (PCICLK) cycle. High performance is
realized during burst modes in which a transaction with contiguous memory locations requires
that only one address cycle be conducted and subsequent data cycles are completed using autoincremented addr es s i ng. F our types of address cycles can t ake place on the PCI bus ; I/O,
memory, configuration, and special. Address decoding is distributed (left up to each device on
the PCI bus).
4.2.3.1 I/O and Memory Cycles
For I/O and memory cycles, a standard 32-bit addr ess decode (AD31..0) for byte-level addressing
is handled by the appropriate PCI device. For memory addressing, PCI devices decode the
AD31. .2 li nes for d wor d -level a d d ressi ng and check the AD1, 0 lin es for burst (li nearincrementing) mode. In burst mode, subsequent data phases are conducted a dword at a time with
addressing assumed to increment accordingly (four bytes at a time).
Technical Reference Guide
4.2.3.2 Configuration Cycles
Devices on the PCI bus must comply with PCI protocol that allows configuration of that device
by software. In this system, configuration mechanism #1 (as described in the PCI Local Bus
specification Rev. 2.1) is employed. This method uses two 32-bit registers for initiating a
configuration cycle for accessing the configuration space of a PCI device. The configuration
address register ( C ONFIG_ ADDRESS) a t 0 C F8h holds a value th a t specifies the PCI bus, PCI
device, and specific register to be accessed. The configuration data register (CONFIG_DATA) at
0CFCh contains the configuration data.
15..11PC I Device Number. Se lects PCI
device for access
10..8Function Number. Selects function of
selected PCI device.
7..2Register Index. Specifies config. reg.
1,0Configuration Cycle Type ID.
00 = Type 0
01 = Type 1
PCI Configuration Data Register
I/O Port 0CFCh, R/W, (8-, 16-, 32-bit access)
31..0Configuration Data.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-5
Chapter 4 System Support
Figure 4-3 shows how the loading of 0CF8h results in a Type 0 configuration cycle on the PCI
bus. The Device Number (bits <15..11> determines which one of the AD31..11 lines is to be
asserted high for the IDSEL signal, which acts as a “chip select” function for the PCI device to be
configured.
Register 0CF8h
Resul ts in:
AD31..0
w/Type 0
Config. Cycle
313024 23
Reserved
31
IDSEL (only one signal line asserted)
16 1511 108 721 0
Bus
Number
Device
Number
Function
Number
11 108
Function
Number
Register
Index
721 0
Register
Index
0 0
Figure 4–3. Type 0 Configuration Cycle
Type 0 configuration cycles are used for configuring devices on PCI bus # 0. Type 1
configuration cycles (reg. 0CF8h bits <1,0> = 01b) are passed on to PCI bus # 1 (if present).
Table 4-3 shows the standard configuration of device numbers and IDSEL connections for
components a nd slots r esi d i ng on a PC I bus.
Table 4–3.PCI Device Configuration Access
Table 4-3.
PCI Device Configuration Access
PCI Device
North Bridge (82C595)0AD11
PCI Connector2AD13
South Bridge (82C586)7AD31
Graphics Controller15AD26
Network Interface Controller16AD27
Device No.
(CF8h <15..11>)
IDSEL
Wired to:
The function number (CF8h, bits <10..8>) is used to select a particular function within a
multifunction device as shown in Table 4-4.
Compaq Deskpro 4000N and 4000S Personal Computers
4-6
Firs t Edition - September 1997
Technical Reference Guide
Table 4–4.PCI Function Configuration Acces
Table 4-4.
PCI Function Configurat ion Access
PCI FunctionDevice No.Function No.
Host/PCI Bridge00
PCI/ISA Bridge70
IDE Interface71
USB Interface72
ACPI Cntlr.73
Graphics Controller150
Network Interface Controller160
The register index (CF8h, bits <7..2>)identifies the 32-bit location within the configuration
space of the PCI device to be accessed. All PCI devices can contain up to 256 bytes of
configuration data (see Figure 4-4), of which the first 64 bytes comprise the configuration space
header.
Register
31
24 2316 158 70
Index
FCh
Device-Specific Area
40h
3Ch
0Ch
08h
04h
00h
Configuration
Space
Header
Data required by PCI protocol
Base Address Registers and Exp. ROM Address
BIST
Header Type
Status
Device ID
Latency Timer
Not required
Interrupt LineInterrupt PinMin_GNTMin_Lat
Cache Line Size
Revisi on IDClass Code
Command
Vender ID
Figure 4–4. PCI Configuration Space Map
Each PCI device is identified with a vender ID (assigned to the vender by the PCI Special Interest
Group) and a device ID (assigned by the vender). The device and vender IDs for the devices used
in these systems are listed in Table 4-5.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-7
Chapter 4 System Support
Table 4–5.PCI Device Identification
PCI DeviceVender IDDevice ID
VT82C595 (North Bridge)1106h0595h
VT82C586 (South Bridge):
PCI/ISA Bridge (Function 0)
EIDE Controller (Function 1)
USB I/F (Function 2)
ACPI Cntlr (Function 3)
Network Interface Controller0E11hB011h
Graphics Controller5333h8901h
4.2.3.3 Special Cycles
There are two types of special cycles that may occur on the PCI bus. The first type is initiated by
the host and is used to perform the following functions: Shutdown, Flush, Halt, Write Back,
Flush Acknowledge, Branch Trace Message, and Stop/Grant. These cycles start like all other PCI
cycles and terminate with a master abort.
Table 4-5.
PCI Device Ident ification
1106h
1106h
1106h
1106h
0586h
0571h
3038h
3040h
The second type of special cycle is initiated by writing to 0CF8h, Bus # = all 0s, Device = all 1s,
Function # all 1s, and Register = all 0s) and 0CFCh to generate a Type 0 configuration cycle.
This type 0 cycle, however, does not assert any of the IDSEL lines and therefore results in a
master a bort with FFFFh returned t o the microprocessor.
4.2.4 OPTION ROM MAPPING
During POST, t he PCI bus is scanned for devices that contain th eir own specific firmware in
ROM. Such option ROM data, if detected, is loaded into system memory’s DOS compatibility
area (refer to the system memory map shown in chapter 3).
Compaq Deskpro 4000N and 4000S Personal Computers
4-8
Firs t Edition - September 1997
4.2.5 PCI INTERRUPT MAPPING
The PCI bus provides for four interrupt sign a l s; INTA-, INTB-, INTC-, a nd INTD-. These
signals may be generated by on-board PCI devices or by devices installed in the PCI slots. In
order to minimize latency, INTA-..INTD- signal routing from the PCI slot to the system board is
distributed by the riser card (backplane) as shown below:
System BoardPCI Slot
INTA-INTDINTB-INTA- [1]
INTC-INTBINTD-INTC- [2]
NOTES:
[1] Shared with network interface controller
[2] Shared with graphic controller
Interrupt s gener a ted by PCI devices can be configured to share the standard AT (IRQn) int er rupt
lines. Two devices that share a single PCI interrupt must also share the corresponding AT
interrupt. Example: If a PCI card is installed in slot 5 and wants to use INTA- then it must share
INTA- as well as the corresponding AT interrupt with the on-board network interface controller.
Technical Reference Guide
Three PCI configuration registers of the 82C586 are used to route the INTA-..INTD- signals to
the IRQn signal lines (refer to section 4.3.4.1 for information on IRQn routing). The power up
(default) configuration has PCI interrupt redirection disabled.
PCI bus operations, especially those that involve ISA bus interaction, require the configuration of
certain parameters such as PCI IRQ routing, top of memory accessable by ISA, SMI generation,
and clock throttling characteristics. These parameters are handled by the PCI/ISA bridge
function (PCI function #0) of the South Bridge component and configured th rough the PCI
configuration space registers listed in Table 4-6. Configuration is provided by BIOS at power-up
but re-configurable by software .
Table 4–6.
PCI/ISA Bridge Configuration Registers for the VT82C586 (P55C-Based Systems)
This section describes the ISA bus in general and highlights bus
implementation in this particular system. For detailed information regarding ISA bus
operation, refer to the Compaq Extended Industry Standard Architecture (EISA)
Technical Reference Guide.
The industr y standar d a rchitecture (ISA) bus provides an 8-/16-bit path for standard I/O
peripherals as well as for an optional device that can be installed in the ISA expansion slot (if
present). Figure 4-5 shows the key functions and devices that reside on the ISA bus.
The maximum length for an
expansion card (PCI or ISA) installed in
this system is 7 inches. Longer cards may
be damaged or cause damage to t he
system.
A1
Compaq Deskpro 4000N and 4000S Personal Computers
4-12
Firs t Edition - September 1997
4.3.2 ISA BUS TRANS ACTIONS
The ISA bus supports 8- and 16-bit transfers at an 8-MHz rate. Devices limited to 8-bit transfers
use the lower byte portion (data lines 7..0) while 16-bit transfers use the full bandwidth (data
lines 15..0). Addressing is handled by two classifications of address signals: latched and
latchable. Latched address signals ( SA19..0) select the specific byte within the 1-MB section of
memory defined by address lines LA23..17. Latchable address lin es (LA23..17) provide a longer
setup time for pre-chip selection or for pre-address decoding for high-speed memory and allow
access to up to 16-MB of physical memory on the ISA bus. The SA19..17 signals ha ve the same
values as the LA19..17 signals for all memory cycles. The I/O cycles use only the SA15..0
signals.
The key control signals are described as follows:
♦ MRDC- (Memory Read Cycle): MRDC- is active on all ISA memory reads accessing
memory from 000000h to FFFFFFh.
♦ SMEMR- (System Memory Read): SMEMR- is asserted by the PCI/ISA br idge to request an
ISA memory device to drive data onto the data lines for accesses below one megabyte.
SMEMR- is a delayed version of MRDC-.
♦ MWTC- (Memory Write Cycle): MWTC- is active on all ISA memory write cycles accessing
memory from 000000h to FFFFFFh.
♦ SMEMW- (System Memory Write): SMEMW- is asserted by the PCI/ISA br i d ge t o request
an I S A m emory device to accept data from the data lines for access below one megabyte.
SMEMW- is a delayed version of MWTC-.
♦ IORC- (Input/Output Read Cycle): IORC- commands an ISA I/O device to drive data onto
the data lines.
♦ IOWC- (Input/Output Write Cycle): IOWC- commands an ISA I/O device to accept data
from the data lines.
♦ SBHE- (System Byte High Enable): SBHE- indicates that a byte is being transferred on the
upper half (D15..8) of the data lines.
♦ SA0- (System Address Bit <0>): This bit is the complement of SBHE- and indicates that a
byte is being transferred on the lower half (D7..0) of the data lines.
♦ M16- (16-bit Memory Cycle): M16- is asserted by 16-bit ISA devices to indicate 16-bit
memory cycle capability.
♦ IO16- (16-bit I/O Cycle): IO16- is asserted by 16-bit ISA devices to indicate 16-bit I/O cycle
transfer capability.
Technical Reference Guide
If the a ddress on the SA li nes is a bove one mega byt e , SMRD C- and SMWTC- will not be active.
The MRDC- and MWTC- signals are active for memory accesses up to 16 megabytes and can be
used by any device that uses the full 16-bit ISA bus. To request a 16-bit transfer, a device asserts
either the M16- (memory) or IO16- (I/O) signal when the device is addressed.
When another device (such as a DMA d evice or another bus master ) t akes control of the ISA, the
Bus Address Latch Enable (BALE) signal is held active for the duration of the operation. As a
result , signals LA23..17 are always enabled and must be held stable for the duration of each bus
cycle.
When the address changes, devices on the bus may decode the latchable address (LA23..17) lines
and then latch them. This ar r a n gement allows devices to decode chip selects and M16- before the
next cycle actually begins.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-13
Chapter 4 System Support
The following guidelines apply to optional ISA devices installed in the system:
♦ On bus lines that can be driven by a controller board, the driver should be able to sink a
minimum of 20 ma at 0.5 VDC and source 2 ma at 3.75 VDC.
♦ On bus lines that are driven in the low direction only (open collector), the driver should be
able to sink 20 ma at 0.5 VDC.
♦ The load on any logi c lin e from a single bus slot s hould not exceed 2 .0 ma in t he low state
(at 0.5 VDC) or 0.1 ma in the high state (at 3.75 VDC).
♦ The logic-high voltage at the bus ranges from 3.75 VDC to 5.5 VDC. The logic low voltage
ranges from 0 VDC to 0.8 VDC.
Compaq Deskpro 4000N and 4000S Personal Computers
4-14
Firs t Edition - September 1997
4.3.3 DIRECT MEM O RY ACCESS
Direct Memory Access (DMA) is a m et hod by which an ISA device accesses system m em ory
without involving the micr oprocessor. DMA is n or mally used to transfer blocks of data to or from
an ISA I/O device. DMA reduces the amoun t of CPU int eraction s wit h memory, freeing th e CPU
for other processing tasks.
Technical Reference Guide
NOTE:
This section descri bes DMA in gener a l . For detailed information regarding
DMA operation, refer to the Compaq Extended Industry Standard Architecture (EISA)Technical Reference Guide. Note, however, that EISA enhancements as described in the
referenced document ar e n ot supported in this (ISA only) system.
The South Bridge component i ncludes the equivalent of two 8237 DMA controllers cascaded
together to provide eight DMA chann els. T a ble 4-8 lists th e default configuration of the DMA
channels.
Spare & ISA conn. pins D8, D9
Audio subsystem & ISA conn. pins B17, B18
Diskette drive & ISA conn. pins B6, B26
ECP LPT1 & ISA conn. pins B15, B16
Cascade for controller 1
Spare & ISA conn. pins D10, D11
Spare & ISA conn. pins D12, D13
Spare & ISA conn. pins. D14, D15
All cha nnels i n DMA controller 1 oper ate at a higher pr iority than those in controller 2 . Note
that channel 4 is not available for use other than its cascading function for controller 1. The
DMA controll er 2 can transfer words only on an even addr ess bound a ry. The DMA cont roller
and page register define a 24-bit address that allows data transfers within the address space of
the CPU. The DMA contr oll ers operate a t 8 MHz.
The DMA l ogi c is accessed throug h two types of I/O mapped registers; pa g e regist ers an d
controller registers. The mapping is th e same regardless of the support chipset used.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-15
Chapter 4 System Support
4.3.3.1 Page Registers
The DMA pag e register con tain s the eight most significant bits of the 24-bit address and works
in conjunction with the DMA controllers to define the complete (24-bit)address for the DMA
channels. T able 4-9 lists th e page register port a ddresses.
Note that a d d ress lin e A16 fr om the DMA memor y page register is disabled when DMA
controll er 2 is selected. Add ress line A00 is not con nected to DMA controller 2 a nd is al ways 0
when wor d -len g th t ransfers are selected.
By not connecting A00, the following applies:
♦ The size of the the block of data that can be moved or addressed is measured in 16-bits
(words) rather tha n 8-bits (bytes).
♦ The words must always be addressed on an even boundary.
DMA controll er 1 can move up to 64 Kbytes of data per DMA transfer. DMA cont roller 2 can
move up to 64 Kwords (128 Kbytes) of data per DMA tra nsfer. Word DMA oper ations are only
possible between 16-bit memory and 16-bit peripherals.
Compaq Deskpro 4000N and 4000S Personal Computers
4-16
Firs t Edition - September 1997
The RAM refresh is designed to perform a memory read cycle on each of the 512 row addresses
in the DRAM memory space. Refresh operations are used to refresh memory on the 32-bit
memory bus and the ISA bus. The refresh addr ess is provided on lines SA00 through SA08.
Address lines LA23..17, SA18,19 are driven low.
The remaining address lines are in an undefined state during the refresh cycle. The refresh
operations are driven by a 69.799-KHz clock generated by Interval Timer 1, Counter 1. The
refresh rate is 128 refresh cycles in 2.038 ms.
4.3.3.2 DMA Controller Registers
Table 4-10 lists th e DMA Cont roller Registers and their I/O port addresses. Note that there is a
set of register s for each DMA contr oller.
Technical Reference Guide
Table 4–10.
DMA Controller Registers
Table 4-10.
DMA Controller Regist er s
RegisterController 1Controller 2R/W
Status008h0D0hR
Command008h0D0hW
Mode00Bh0D6hW
Write Single Mask Bit00Ah0D4hW
Write All Mask Bits00Fh0 DEhW
Software DRQx Request009h0D2hW
Base and Current Address - Ch 0000h0C0hW
Current Address - Ch 0000h0C0hR
Base and Current Word Count - Ch 0001h0C2hW
Current Word Count - Ch 0001h0C2hR
Base and Current Address - Ch 1002h0C4hW
Current Address - Ch 1002h0C4hR
Base and Current Word Count - Ch 1003h0C6hW
Current Word Count - Ch 1003h0C6hR
Base and Current Address - Ch 2004h0C8hW
Current Address - Ch 2004h0C8hR
Base and Current Word Count - Ch 2005h0CAhW
Current Word Count - Ch 2005h0CAhR
Base and Current Address - Ch 3006h0CChW
Current Address - Ch 3006h0CChR
Base and Current Word Count - Ch 3007h0CEhW
Current Word Count - Ch 3007h0CEhR
Temporary (Command)00Dh0DAhR
Reset Pointer Flip-Flop (Command)00Ch0D8hW
Master Reset (Command)00Dh0DAhW
Reset Mask Register (Command)00Eh0DChW
NOTE:
For a detailed description of the DMA registers, refer to the
Compaq EISA Technical Reference Guide
.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-17
Chapter 4 System Support
4.3.4 INTERRUPTS
The microprocessor uses two types of interrupts; maskable and nonmaskable. A maskable
interrupt can be enabled or disabled within the microprocessor by the use of the STI and CLI
instructions. A nonmaskable interrupt cannot be masked off within the microprocessor but may
be inhibited by hardware or software means external to the microprocessor.
4.3.4.1 Maskab le In t e rrupt s
The maskable interrupt is a hardware-generated signal used by peripheral functions within the
system to get the attention of the microprocessor. Peripheral functions produce a unique INTA-D
(PCI) or IRQ0-15 (ISA) signal that is routed to interrupt processing logic that asserts the
interrupt (INTR) input to the microprocessor. The microprocessor halts execution to determine
the source of the interrupt and then services the peripheral as appropriate.
ISA Peripherals
& SM Functions
PCI Peripherals
Figure 4–7.
The South Bridge component, which includes the equivalent of two 8259 interrupt controllers
cascaded together, handles the standard AT-type (ISA) interrupt signals (IRQn). The South
Brid g e also r eceives th e PCI inter rupt signal s ( P I RQA - ..PIRQD - ) from PCI d evi ces . Th e P C I
interrupts can be configured by PCI Configuration Registers 55h..57h to share the standard ISA
interrupts (IRQn). The power-up default configuration has the PIRQn disabled. Table 4-11 lists
the standard source configuration for maskable interrupts and their priorities. If more than one
interrupt is pending, the highest priority (lowest number) is processed first.
1IRQ0Interval timer 1, counter 0
2IRQ1Keyboard
3IRQ8-Real-time clock
4IRQ9Spare and ISA connector pin B04
5IRQ10Spare and ISA connector pin D03
6IRQ11Spare and ISA connector pin D04
7IRQ12Mouse and ISA connector pin D05
8IRQ13Coprocessor (math)
9IRQ14IDE primary I/F and ISA connector pin D07
10IRQ15IDE secondary I/F and ISA connector pin D06
11IRQ3Serial port (COM2) and ISA connector pin B25
12IRQ4Serial port (COM1) and ISA connector pin B24
13IRQ5Audio su bsystem and ISA connector pin B23
14IRQ6Diskette drive controller and ISA connector pin B22
15IRQ7Parallel port (LPT1)
--IRQ2NOT AVAILABLE (Cascade from interrupt controller 2)
NOTE:
[3] Alternate available interrupts: IRQ5, 9,10,11,14, or 15
Interrupt s gener a ted by PCI devices can be configured to share the standard AT (IRQn) int er rupt
lines. Refer to section 4.2.5 “PCI Interrupt Mapping” for information on PCI interrupts.
Maskable Interrupt processing is controlled and monitored through standard AT-type I/Omapped registers. These registers ar e listed in Table 4-12.
The initialization and operation of the interrupt control registers follows standard AT-type
protocol.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-19
Chapter 4 System Support
4.3.4.2 Non-Maskable Interrupts
Non-maskble interrupts cannot be masked (inhibited) within the microprocessor itself but may be
maskable by software using logic external to the microprocessor. There are two nonmaskable
interrupt signals: the NMI- and the SMI-. These signals have service priority over all maskable
interrupts, with the SMI- having top priority over all interrupts including the NMI-.
NMI- Generation
The Non-Maskable Interrupt (NMI-) signa l can be generated by one of the following actions:
♦ Parity errors detected on the ISA bus (activating IOCHK-).
♦ Parity errors detected on a PCI bus (activating SERR- or PERR-).
♦ Microprocessor internal error (activating IERRA or IERRB)
The IOCHK-, SERR-, and PERR- signals are routed through the south bridge component, which
in turn activates the NMI to the microprocessor.
The NMI Status Register at I/O port 061h contains NMI source and status data as follows:
NMI Status Register 61h
BitFunction
7NMI Status:
0 = No NMI from system board parity error.
1 = NMI requested, read only
6IOCHK- NMI:
0 = No NMI from IOCHK-
1 = IOCHK- is active (low), NMI requested, read only
5Interval Timer 1, Counter 2 (Speaker) Status
4Refresh Indicator (toggles with every refresh)
3IOCHK- NMI Enable/Disable:
0 = NMI from IOCHK- enabled
1 = NMI from IOCHK- disabled and cleared (R/W)
2System Board Parity Error (PERR/SERR) NMI Enable:
0 = Parity error NMI enabled
1 = Parity error NMI disabled and cleared (R/W)
1Speaker Data (R/W)
0Inteval Timer 1, Counter 2 Gate Signal (R/W)
0 = Counter 2 disabled
1 = Counter 2 enabled
Functions not related to NMI activity.
After the active NMI has been processed, status bits <7> or <6> are cleared by pulsing bits <2>
or <3> respectively.
The NMI Enable Register (070h, <7>) is used to enable/disable the NMI signal. Writing 80h to
this register masks generation of the NMI-. Note that the lower six bits of register at I/O port 70h
affect RTC operation and should be considered when changing NMI- generation status.
Compaq Deskpro 4000N and 4000S Personal Computers
4-20
Firs t Edition - September 1997
Technical Reference Guide
SMI- Generation
The SMI- (System Management Interrupt) is typically used for power management functions.
When power management is enabled, inactivity timers are monitored. When a timer times out,
SMI- is asserted and invokes the microprocessor’s SMI handler. The SMI- handler works with
the APM BIOS to service the SMI- accordi ng to th e cau se of th e timeout.
Although the SMI- is primarily used for power managment the interrupt is also employed for the
QuickLock/QuickBlank functions as well.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-21
Chapter 4 System Support
4.3.5 INTERVAL TIMER
The interval timer generates pulses at software (programmable) intervals. A 8254-compatible
timer is integrated into the South Bridge chip. The timer function provides three counters, the
functions of which ar e listed in T able 4-13.
The interval timer is controlled through the I/O mapped registers listed in Table 4-14.
Table 4–14.
Interval Timer Control Registers
Table 4-14.
Interval Timer Control Registers
I/O PortRegister
040hRead or write value, counter 0
041hRead or write value, counter 1
042hRead or write value, counter 2
043hControl Word
Interval timer operation follows standard AT-type protocol. For a detailed description of timer
registers and operation, refer to the Compaq Extended Industry Standard Architecture Expansion
Bus Technical Reference Guide.
4.3.6 ISA CONFIGURATION
The working relationship between the PCI and ISA buses requires that certain parameters be
configured. The PC/ISA bridge function of the South Bridge component includes configuration
registers to set parameters such as PCI IRQ routing and top-of-memory available to ISA/DMA
devices. These parameters are programmed by BIOS during power-up, using registers listed
previously in Table 4-6.
Compaq Deskpro 4000N and 4000S Personal Computers
4-22
Firs t Edition - September 1997
4.4 SYSTEM CLOCK DISTRIB UTION
The system uses an ICS9147-08 or compatible part for generation of most clock signals. Tables
4-15 lists the clock signals and to which components they are distributed.
Technical Reference Guide
Table 4–15.
Clock Generation and Distribution (Pentium-Based System)
[1] Depending on speed configuration (refer to Chapter 3, “Processor/Memory Subsystem”).
[2] Routed through buffer before destination.
[3] 8.33 MHz if PCICLK = 33 MHz, 7.5 MHz if PCICLK = 30 MHz
ESS1868
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-23
Chapter 4 System Support
4.5 REAL-TIME CLOCK AND CONFIGURATION MEMORY
The Real-time clock (RTC) and configuration memory functions are provided by the PC87307
I/O controller. The RTC uses the first 14 of 256 bytes of configuration memory and is
MC146818-compatible. As shown in the following figure, the 87307 controller provides 256
bytes of configuration memory, divided into two 128-byte banks. The RTC/configuration memory
can be accessed using conventional OUT and IN assembly language instructions using I/O ports
70h/71h, alth ough th e suggested method is to use the INT15 AX=E823h BIOS call.
87307
Upper Config.
Memory Area
(128 bytes)
Lower Config.
Memory Area
(114 bytes)
RTC Area
(14 bytes)
FFh
80h
7Fh
0Eh
0Dh
00h
Figure 4–8.
NOTE:
Non-volatile (NVRAM) storage of PCI, ESCD, and Environmental Variable (EV) data
0Dh
0Ch
0Bh
0Ah
09h
08h
07h
06h
05h
04h
03h
02h
01h
00h
Register D
Register C
Register B
Register A
Year
Month
Date of Month
Day of Week
Hours (Alarm)
Hours (Timer)
Minutes (Alarm)
Minutes (Timer)
Seconds (Alarm)
Seconds (Timer)
Configuration Memory Map
is provided by portions of the 256-KB system BIOS ROM component.
A 3-VDC battery is used for maintaining the RTC and configuration memory while the system is
powered down. This battery is soldered on the system board and is designed to last from 5-7
years. Once expired, the soldered battery is by-passed by connecting a replacement battery
(Compaq p/n 160274-001 or equivalent 4.5 VDC @ 660 ma alkaline battery) to header P14 pins
9-12. On-board logic regulates the external battery voltage to 3 VDC.
The configuration memory (including the password) can be cleared by moving the jumper from
P14 pins 1 and 2 to pins 2 and 3 for at least one minute while unit power ids off. The password
can be disabled by switching DIP SW1-1 on.
Compaq Deskpro 4000N and 4000S Personal Computers
4-24
Firs t Edition - September 1997
4.5.1 CONFIGURATION MEM ORY BYTE DEFINITIONS
Table 4-16 lists the mapping of the configuration memory.
Technical Reference Guide
Table 4–16.
Configuration Memory (CMOS) Map
Table 4-16.
Configuration Memory ( CM OS) Map
LocationFunctionLocationFunction
00-0DhReal-rime clock41h-44hHoof Removal Time Stamp
0EhDiagnostic status45hKeyboard snoop byte
0FhSystem reset code46hDiskette drive status
10hDiskette drive type47hLast IPL device
11hReserved48h-4BhIPL priority
12hHard drive type4Ch-4FhBVC priority
13hSecurity functions51hECC DIMM status
14hEquipment installed52hBoard revision (from boot block)
15hBase memory size, low byte/KB53hSWSMI command
16hBase memory size, high byte/KB54hSWSMI data
17hExtended memory, low byte/KB55hAPM command
18hExtended memory, high byte/KB56hErase-Ease keyboard byte
19hHard drive 1, primary controller57h-76HSaved CMOS location 10h-2Fh
1AhHard drive 2, primary controller77h-7FhAdministrator password
1BhHard drive 1, secondary controller80hECMOS diagnostic byte
1ChHard drive 2, secondary controller81h-82hTotal super ext. memory tested good
1DhEnhanced hard drive support83hMicroprocessor chip ID
1EhReserved84hMicroprocessor chip revision
1FhPower management functions85hHood removal status byte
24hSystem board ID86hFast boot date
25hSystem architecture data87hFast boot status byte
26hAuxiliary peripheral configuration8Dh-8FhPOST error logging
27hSpeed control external drive90h-91hTotal super extended memory configured
28hExpanded/base mem. size, IRQ1292hMiscellaneous configuration byte
29hMiscellaneous configuration93hMiscellaneous PCI features
2AhHard drive timeout94hROM flash/power button status
2BhSystem inactivity timeout97hAsset/test prompt byte
2ChMonitor timeout, Num Lock Cntrl9BhUltra-33 DMA enable byte
2DhAdditional flags9ChMode-2 Configuration
2Eh-2FhChecksum o f locations 10h-2Dh9DhESS audio configuration
30h-31hTotal extended memory tested9EhECP DMA configuration
32hCentury9Fh-AFhSerial number
33hMiscellaneous flags set by BIOSB0h-C3hCustom drive types 65, 66, 68, 15
34hInternational languageC7hSerial port 1 address
35hAPM status flagsC8hSerial port 2 address
36hECC POST test single bitC9hCOM1/COM2 port configuration
37h-3FhPower-on passwordDEh-DFhChecksum o f locations 90h to DDh
40hMiscellaneous Disk BitsE0h-FFhClient Management error log
NOTE: Assume unmarked gaps are reserved.
Default values (where applicable) are given for a standard system as shipped from the factory.
The contents of configuration memory can be cleared by the following jumper positioning:
RTC using internal battery:
Move jumper on header E50 from pins 1 and 2 to pins 2 and 3.
RTC using external battery:
Move jumper on header E50 from pins 2 and 3 to pins 1 and 2.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-25
Chapter 4 System Support
RTC Control Register A, B y t e 0 Ah
BitFunction
7Update in Progress. Read only.
0 = Time update will not occur before 2444 us
1 = Time update will occur within 2444 us
6..4Divider Chain Control. R/W.
00x = Oscillator disabled.
010 = Normal operation (time base frequency = 32.768 KHz).
11x = Divider chain reset.
3..0Periodic Interrupt Control. R/W. Specifies the periodic interrupt inte rval.
0000 = none 1000 = 3.90625 ms
0001 = 3.90625 ms 1001 = 7.8125 ms
0010 = 7.8125 ms 1010 = 15. 625 ms
0011 = 122.070 us 1011 = 31.25 ms
0100 = 244.141 us 1100 = 62.50 ms
0101 = 488.281 us 1101 = 125 ms
0110 = 976.562 us 1110 = 250 ms
0111 = 1.953125 ms 1111 = 500 ms
RTC Control Register B, Byte 0Bh
BitFunction
7Time Update Enable/disable
0 = Normal operation, 1 = Disable time updating for time set
6Periodic Interrupt Enable/Disable.
0 = Disable, 1 = Enable interval specified by Register A
5Alarm Interrupt Enable/disable
0 = Disabled, 1 = Enabled
4End-of-Update Interrupt Enable/Disable
0 = Disabled, 1 = Enabled
3Reserved (read 0)
2Time/Date Format Select
0 = BCD format, 1 = Binary format
1Time Mode
0 = 12-lhour mode, 1 = 24-hour mode
0Automatic Daylight Savings Time Enable/Disable
0 = Disable
1 = Enable (Advance 1 hour on 1
st
Sunday in April, retreat 1 hour on last Sunday in October).
RTC Status Register C, Byte 0Ch
BitFunction
7If set, interrupt output signal active (read only)
6If set, indicates periodic interrupt flag
5If set, indicates alarm interrupt
4If set, indicates end-of-update interrupt
7..4Primary Controller 1, Hard Drive 1 Type:
0000 = none 1000 = Type 8
0001 = Type 1 1001 = Type 9
0010 = Type 2 1010 = Type 10
0011 = Type 3 1011 = Type 11
0100 = Type 4 1100 = Type 12
0101 = Type 5 1101 = Type 13
0110 = Type 6 1110 = Type 14
0111 = Type 7 1111 = other (use bytes 19h)
3..0Primary Controller 1, Hard Drive 2 Type:
0000 = none 1000 = Type 8
0001 = Type 1 1001 = Type 9
0010 = Type 2 1010 = Type 10
0011 = Type 3 1011 = Type 11
0100 = Type 4 1100 = Type 12
0101 = Type 5 1101 = Type 13
0110 = Type 6 1110 = Type 14
0111 = Type 7 1111 = other (use bytes 1Ah)
Bytes 15h and 16h hold a 16-bit value that specifies the base memory size in increments of 1-KB
(1024) bytes. Valid base memory sizes are 512-KB and 640-KB.
Configuration Bytes 17h and 18h, Extended Memory Size
Bytes 17h and 18h hold a 16-bit value that specifies the extended memory size in increments of
1-KB (1024) bytes.
Compaq Deskpro 4000N and 4000S Personal Computers
4-28
Firs t Edition - September 1997
Technical Reference Guide
Configuration Bytes 19h-1Ch, Hard Drive Types
Byte 19h contains the hard drive type for drive 1 of the primary controller if byte 12h bits <7..4>
hold 1111b. Byte 1Ah contains the hard drive type for drive 2 of the primary controller if byte
12h bits <3..0> hold 1111b. Bytes1Bh and 1Ch contain the har d drive types for hard drives 1 and
2 of the secondary controller.
Configuration Byt e 1 Dh, Enhanced IDE Hard Drive Support
Default Value = F0h
BitFunction
7EIDE - Drive C (83h)
6EIDE - Drive D (82h)
5EIDE - Drive E (81h)
4EIDE - Drive F (80h)
3..0Reserved
Values for bits <7..4> :
0 = Disable
1 = Enable for auto-configure
Configuration Byte 1Fh, Power Management Functions
Default Value = 00h
BitFunction
7..4Reserved
3Slow Processor Clock for Low Power Mode
0 = Processor runs at full speed
1 = Processor runs at slow speed
2Reserved
1Monitor Off Mode
0 = Turn monitor power off after 45 minutes in standby
1 = Leave monitor power on
0Energy Saver Mode Indicator (Blinking LED)
0 = Disable
1 = Enable
Configuration Byt e 2 4 h, Sy st e m B oar d Ide nt i f i cation
Default Value = 7Eh
Configuration memory location 24h holds the system board ID.
0Row 0 Error Detect
0 = No single bit error detected.
1 = Single bit error detected.
Configuration Byt e 3 7 h-3 Fh, Power -On Password
These eight locations hold the power-on password.
Configuration Byte 40h, Miscellaneous Disk Data
Configuration Bytes 41h-44h, Hood Removal Time Stamp
These four bytes record the time at which the hood of the system was removed:
Byte 41h, month & day
Byte 42h, year and month
Byte 43h, min ut es an d seconds
Byte 44h, removal flag and minutes
Default Value = 00h. Set bit indicates function is valid.
BitFunction
7CMOS Initialization (Set CMOS to Default)
6Setup password locked
5PnP should not reject SETs because Diags is active
4Reserved
3Manufacturing diagnostics diskette found
2Invalid electronic serial number
1Boot maintenance partition once
0Invalid CMOS checksum
Configuration Byte 81h, 82h, Total Super Extended Memory Tested
This byte holds the value of the amount of extended system memory that tested good during
POST. The am oun t is gi ven in 64-KB increment s.
If palette snooping is enabled, then a primary PCI graphics card may share a common palette
with the ISA graphics card. Palette snooping should only be enabled if all of the following
conditions are met:
♦ An IS A card connect s to a PCI g rap hics ca rd t hrou g h the VESA connector.
♦ The ISA card is connected to a color monitor.
♦ The ISA card uses th e RAMDAC on the PCI card
♦ The palette snooping feature (sometimes called “RAMDAC shadowing”) on t he PCI car d i s
enabled and functioning properly.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-37
Chapter 4 System Support
Configuration Byte 94h, ROM Flash/Power Button Status
Configuration Byt e 9 7 h, Asset/Test Pr ompt B yt e
Default Value = 00h
BitFunction
7,6Test Prompt:
01 = Fake F1
10 = Fake F2
11 = Fake F10
5..0Asset Value
Configuration Byte 9Bh, Ultra-33 DMA Enable Byte
Default Value = 00h
BitFunction
7..4Reserved
3Secondary Slave Enabled for U-33 if Set
2Secondary Master Enabled for U-33 if Set
1Primary Slave Enabled for U-33 if Set
0Primary Master Enabled for U-33 if Set
Configuration Byte 9Ch, Mode-2 Configuration Byte
Default Value = 1Ch
BitFunction
7,6Reserved
5Mode 2 Support
0 = Disable
1 = Enable
4Secondary Hard Drive Controller
0 = Disable
1 = Enable
3,2Secondary Hard Drive Controller IRQ
00 = IRQ10
01 = IRQ11
10 = IRQ12
11 = IRQ15
1,0Reserved
Compaq Deskpro 4000N and 4000S Personal Computers
4-38
Firs t Edition - September 1997
Configuration Byt e 9 Dh, ESS Audio Configuration Byte
000 = Invalid
100 = Disabled
All other values (001-011, 101-111) refer to channel no.
Configuration Byte 9Fh-AFh, Asset Tag Serial Number
Configuration Byt e s B0h-C3h; Custom Hard Drive Information
These bytes contain the number of cylinders, heads, and sectors per track for hard drives C, D, E,
and F respectively. The mapping for each drive is as follows:
B0hB5hBAhBFhNo. of Cylinders, Low Byte
B1hB6hBBhC0hNo. of Cylinders, High Byte
B2hB7hBChC1hNo. of Heads
B3hB8hBDhC2hMax ECC Bytes
B4hB9hBEhC3hNo. of Sectors Per Track
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-39
Chapter 4 System Support
Configuration Byte C7h, C8h, Serial Ports 1 and 2 (Respectively) Configuration Bytes
0388..038BhFM synthesizer (alias addresses)
03B0..03DFhGraphics Controller
03E8..03EFhSerial Port (COM3)
03F0..03F5hDiskette Drive Controller Primary Addresses
03F6, 03F7hDiskette Drive Controller Primary Addresses, Hard Drive Controller Primary Addresses
03F8..03FFhSerial Port (COM1)
04D0, 04D1hMaster, Slave Edge/Level INTR Control Register
0C06, 0C07hReserved - Compaq proprietary use only
0C50, 0C51hSystem Management Configuration Registers (Index, Data)
0C70..0C77hACPI
0C82hAuto Rev Data (not used)
0CF8hPCI Configuration Address (dword access)
0CFChPCI Configuration Data (byte, word, or dword access)
F800..F83FhACPI & GPIOs
NOTE: Assume unmarked gaps are reserved/unused.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-41
Chapter 4 System Support
4.6.2 87307 I/O CONTROLLER CONFIGURATION
The 87307 I/O controller contains various functions such as the keyboard/mouse interfaces,
diskette interface, serial interfaces, and parallel interface. Software control of these interfaces
uses standard AT-type I/O addressing. Firmware configuration of these functions uses indexed
ports unique to the 87307. In this system, hardware strappin g selects I/O addresses 015Ch and
015Dh at reset as the Index/Data ports for accessing the configuration registers of the logical
devices within the 87307. The hardware strapping al so places the 87307 into PnP mother board
mode. Table 4-18 lists the PnP standard configuration registers for the devices within the 87307.
Table 4–18.
87307 I/O Controller PnP Standard Control Registers
Table 4-18.
87307 I/O Controller PnP Standard Conf igur ation Registers
IndexFunctionReset Value
00hSet RD_ DATA Port00h
01hSerial Isolation
02hConfiguration Control
03hWake (CSN)00h
04hResource Data
05hStatus
06hCard Select Number (CSN)00h
07hLogical Device Select:
00h = 8042 Controller (Keyboard I/F)
01h = 8042 Controller (Mouse I/F)
02h = RTC/APC Configuration
03h = Diskette Controller
04h = Parallel Port
05h = UART 2 (Serial Port B / IrDA)
06h = UART 1 (Serial Port A)
07h = GPIO Ports
08h = Power Management
20hSuper I/O ID Register (SID)A0h
21hSIO Configuration 1 RegisterD6h
22hSIO Configuration 1 Register02h
23hProgrammable Chip Select Configuration Index00h
24hProgrammable Chip Select Configuration Data00h
30hLogical Device Activate-31hLogical Device I/O Range Check-60,61hLogical Device Data Base Address-62,63hLogical Device Command Base Address-70hLogical Device Interrupt Select-71hLogical Device Interrupt Type-74,75hLogical Device DMA Assignment-F0hLogical Device Configuration-F1hDrive ID (Logical Device 03 only)--
00h
The configuration registers are accessed by writing the appropriate logical device’s number to
index 07h and writing the desired offset to the index register. The data is then either written to or
read from the data register.
Compaq Deskpro 4000N and 4000S Personal Computers
4-42
Firs t Edition - September 1997
Technical Reference Guide
The 87307 I/O Controller provides 11 general purpose pins that can be individually configured as
either input s or outputs. These pins are mapped as two general purpose ports and softwareaccessabl e through th e regis ters shown below.
GPIO Port 1 Data, I/O Addr. 078h, (87307 I/O Controller)
BitFunction
7..4GPIO17..GPIO14: Not used.
3GPIO13 (config. as input). Bus Fraction (BF2)
2GPIO12 (config. as input): CPU Bus Speed
Read 0, 60 MHz
Read 1, 66 MHz
1,0GPIO11,10 (config. as inputs): Bus Fraction (ratio) BF1,0
Read 00, 2/5 bus/core speed ratio
Read 10, 1/3 bus/core speed ratio
Read 01, ½ bus/core speed ratio
Read 11, 2/7 bus/core speed ratio
GPIO Port 1 Direction, I/O Addr. 079h, (87307 I/O Controller)
This section describes the hardware support of functions involving security, safety, identification,
and power consumption of the system. System management functions are handled largely
through a Compaq-proprietary ASIC. Most functions are controlled th rough registers (Table 4-
19) accessed using the indexed method through I/O ports 0C50h (index) and 0C51h (Data).
Table 4–19.
System Management Control Registers
Table 4-19.
System Management Control Registers
IndexFunction
00hIdentification
02hTemperature Status / Clear
03hTemperature Interrupt / SMI Enable
05hPower On LED Blink Control
12hGeneral Purpose Open Collector (GPOC) Bits
13hSecured GPOC Bits
20hPower Button Control
21hSMI / SCI Source
22hSMI / SCI Mapping
30hREQ/GNT Control
80h-89hReserved
NOTE:
System management functions are handled by BIOS and the Setup utility. The
information in the following subsections is intended only for clarification of system operations.
4.7.1 FLASH ROM WR ITE PRO TECT
The system BIOS firmware is contained in a flash ROM device that can be re-written with
updated code if necessary. The ROM is write-protected with a Black Box* security feature. The
Black Box feature uses the Administrator password to protect against unauthorized writes to the
flash RO M . Du ring th e boot sequen c e , the BIO S ch ec ks for th e pre s e nce of the ROMPAQ
diskette. If ROMPAQ is det ected a nd the password is locked into the Bla ck Box with the Protect
Resources command, an Access Resources command followed by Administrator password entry
must occur before the ROM can be flashed. If the Permanently Lock Resources command has
been invoked, the power must be cycled befor e the ROM ca n be flas hed. The system ROM is
write-protected as follows:
Start Addr.End Addr .
Data TypeProtection
C0000hEFFFFhOption ROMPassword write-protected
F0000hF7FFFhSystem BIOSPassword write-protected
F8000hF9FFFhESCDNever write-protected
FA000hFFFFFhBoot BlockA lways writ e -protected
The flashing functions are handled usin g the INT15 AX-E822h BIOS interface.
* Black Box logic Compaq-proprietary and controlled exclusively through firmware in the BIOS ROM.
Compaq Deskpro 4000N and 4000S Personal Computers
4-44
Firs t Edition - September 1997
4.7.2 PASSW ORD PRO TECTIO N
When en abled, th e user is pr omp t ed to enter t he power-on password du rin g POST. If an
incorrect entry is made, the system halts and does not boot. Th e Power-On pass word is store d in
eight bytes at configuration memory locations 37h-3Fh. These locations are physically located
within the 87307. At the time a new password is written into 37h-3Fh, the password is also
written into Black Box* logic. The Black Box logic is used for power-on password protection
support instead of the port 92 sequence used on other systems. The Black Box logic prevents
inadvertent or un a uthorized access to the password bytes of the 87307 by monitoring I/O ports
70/71h for access to the 37h-3Fh CMOS ran g e and inhibiting th e AEN signal to the 87307 if
such access is detected. Slot 1 of the Black Box logic can be written to at runtime, allowing the
user to change the power on password without cycling power and going th rough the F10 method.
The Black Box password cannot be read.
The power-on password function can be disabled by setting DIP SW1 position 1 to on (closed).
The administrator password is stored in eight bytes at configuration memory locations 77h-7Fh.
If the administrator password function is enabled, the user is prompted to enter the password
before runn i ng F10-Setup or before booting from a ROMPAQ diskette. If an incorrect entry is
made, th e system boots although system administration functions are inhibited. The
administrator password is also stored in the Black Box* logic. Black Box logic acting as the
sentry for the administrator password by preventing inadvertent or unauthorized writing to the
Flash ROM.
Technical Reference Guide
*
Black Box logic is Compaq-proprietary and controlled exclusively through firmware in BIOS ROM.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-45
Chapter 4 System Support
4.7.3 I/O SECURITY
The 87307 I/O controller allows various I/O functions to be disabled through configuration
registers. In addition, the configuration registers of the 87307 are further protected by Client
Management (CM) logic, which can be set (using BIOS call INT 15 AX=E829h) to block access
to the 87307 configuration registers of the following functions:
♦ Diskette drive
♦ Serial port
♦ Parallel port
In blocking 87307 functions, the CM logic monitors ISA I/O cycles and can detect, thr ough
index address-matching, when an attempt is made to access a function provided by the 87307. If
the CM logi c has been set to block access, then ISA bus signal AE N or I OWC- , both which t he
CM logic provides to the 87307, is disabled, effectively inhibiting the I/O access.
The NIC controller can also be blocked from access by the CM logic. In this case the CM logic
can be set to block the routing of the IDSEL signal to the NIC controller, thereby disabling the
interface.
4.7.4 USER SECURITY
The QuickLock feature allows, if enabled in F10-Setup through CMOS location 13h bit <2>, the
user to lock the keyboard and mouse by invoking the
and the SMI handler then takes the action required to lock the keyboard. If the QuickBlank
feature is enabled at that time then the screen will be blanked as well. The user then must enter
the power-on password to re-activate the keyboard and/or display .
NOTE:
functions are not considered power management features.
Although the SMI is used for initiating QuickLock/QuickBlank functions, these
Ctrl-Alt-L
keystrokes. This initiates an SMI
Compaq Deskpro 4000N and 4000S Personal Computers
4-46
Firs t Edition - September 1997
4.7.5 TEMPERATURE SENS ING
Two components (one programmable LM75 and one TC623) are used in monitoring the intern al
temperature of the system. The LM75 sensor is mounted in the cavity of the microprocessor
socket to detect microprocessor temperature. The LM75 is programmed for two temperature
levels:
a. Tos - Overtemperature shutdown value (level at which the LM75’s output becomes
active)
b. Thyst - Hysterious value (level at which the LM75’s output is negated)
In the standard configuration the BIOS programs Tos for 60°C and Thyst for 58°C. Detection by
the LM75 sensor results in a warni ng being issued to the user and/or the power supply fan being
turned on. Note that upgrading to particular microprocessor step with unique operating
temperature char a cteri stics may require th at t he BIOS be upgraded as well in order to set the
LM75 to the proper detection levels.
The following two indexed registers are used by BIOS and available to software for controlling
the temperature sense function.
Technical Reference Guide
I/O Port C51.02h, Temperature Status/Clear Register
BitFunction
7..2Reserved
1Temperature Deadly (RO)
0 = Normal
1 = Critical temperature detected
0Temperature Caution for Processor 1 (RO)
0 = Normal
1 = High temperature detected at P1
NOTE: Bits 2..0 are cleared when read but will be instantly reset if condition remains.
I/O Port C51.03h, Temperature Interrupt/SMI Enable Register
0 = Initiate shutdown w/deadly condition.
1 = Do not initiate shutdown.
1Temperature SMI Enable:
0 = Do not generate SMI- w/caution condition.
1 = Generate SMI- upon caution condition.
0Temperature IRQ Enable:
0 = Do not generate IRQ w/ caution condition.
1 = Generate IRQ w/caution condition.
A second sensor (TC623) is used to detect a deadly temperature condition. This sensor, which is
non-programmable (fixed), activates a signal that disables the ICS9147 clock generator,
effectively shutting down the system.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September1997
4-47
Chapter 4 System Support
4.7.6 POWER MANAGEMENT
This system includes h a rdware support of Advanced Power Management (APM ver. 1. 2)
firmware and software and is Energy Star-compliant.
4.7.6.1 HARD DRIVE SPINDOWN CONTROL
The timeout parameter stored in the SIT record 04h and indexed through CMOS location 2Ah
(bits <4..0>) represents the period of hard drive inactivity required to elapse before the hard drive
is allowed to spin down. The timeout value is downloaded from CMOS to a timer on the hard
drive. The timeout period can be set in incremental values of 0 (timeout disabled), 10, 15
(default), 20, 30, and 60 minutes. A timed-out and spun-down hard drive will automatically spin
back up upon the next drive access. It is normal for the user to detect a certain amount of access
latency in this situation.
4.7.6.2 DISPLAY MONITOR POWER MANAGEMENT CONTROL
This system supports monitor power control for graphics controllers an d di spla y monitors that
conform to the VESA display power management signaling (DPMS) protocol. T his pr otocol
defines different power consumption conditions and uses the HSYNC and VSYNC signals t o
select a monitor’s power condition This operation is described in chapter 6, “Graphics
Subsystem.”
The timeout parameter set in the SIT record 03h and indexed at CMOS location 2Ch (bits
<4..0>) represents the period of system I/O inactivity required to elapse before the monitor is
placed into Suspend mode.
A separate timer function (enabled through CMOS location 1Fh, bit <1>) can be enabled to place
the monitor into the Off mode after 45 minutes of being in Suspend mode.
Compaq Deskpro 4000N and 4000S Personal Computers
4-48
Firs t Edition - September 1997
Chapter 5
INPUT/OUTPUT INTERFACES
Technical Reference Guide
5.
5.1
5.2
Chapter 5 INPUT/OUTPUT INTERFACES
INTRODUCTION
This chapter describes the system’s interfaces that provide input and output (I/O) porting of data
and specifically discusses interfaces that are controlled through I/O-mapped registers. The I/O
interfaces are integra ted functions of the support chipset and the 87307 I/O controller. The
following I/O interfaces are covered in this chapter:
The enhanced IDE (EIDE) interface consists of primary and secondary interfaces that can
support two IDE devices each. Devices that may connect to an IDE interface include hard drives,
CD-ROM drives, power (writeable CD-ROM) drives, and 120-MB floptical drives.
Two 40-pin keyed IDE data connectors and one 50-pin keyed connector are provided on the
system board. Each 40-pin connector can support t wo devices* and can be configured
independentl y for PIO or bus ma st er (DMA) operation. In the standard configuration the hard
drive is attached to the primary connector and the CD-ROM (if installed) is attached to the 50pin s econdary connector.
The system ROM supports PIO modes 1-4 and Ultra ATA (UATA) modes 0-2, although the type
of drive connected will determine the final transfer speed.
NOTE:
conductor cable will result in the BIOS limiting IDE operation to a maximum transfer
of 25 MB/s (UATA mode 1).
For UATA mode 2 operation an 80-conductor cable must be used. A 40-
5.2.1 IDE PROGRAMMING
The IDE interface is configured as a PCI device and controlled through standard I/O mapped
registers.
*
Refer to chapter 2 for possible physical limitations on drive accommodations.
Compaq Deskpro 4000N and 4000S Personal Computers
5-1
Firs t Edition - September 1997
Chapter 5 Input/Output Interfaces
5.2.1.1 IDE Configuration Registers
The IDE interface is han dl ed by the 82586 component and configured as a PCI device with bus
mastering capability. The PCI configuration registers for the IDE controller function (PCI device
#20, function #1) are listed in T a ble 5-1.
Table 5–1
. IDE PCI Configuration Registers
Table 5-1.
EIDE PCI Conf igur ation Registers (82586, Function 1)
PCI
Conf.
Addr.Register
00-01hVender ID1106h40hChip Enable reg.
02-03hDevice ID0586h41hIDE Configuration00h
04-05hPCI Command0000h42hMiscellaneous Control
06-07hPCI Status0000h43hFIFO Configuration
08hRevision ID0Ah44hMiscellaneous Control
09hProgrammingxxxxh45hMiscellaneous Control
0AhSub-Class01h46hMiscellaneous ControlC0h
0BhBase Class Code01h48hSec. IDE Drv.1 Timing Cntrl.A8h
0DhMaster Latency Timer0000h49hSec. IDE Drv.0 Timing CntrlA8h
0EhHeader Type80h4AhPri. IDE Drv.1 Timing Cntrl.A8h
10-13hPri. Data/Cmd Base Addr.1F0h4 BhPri. IDE Drv.0 Timing CntrlA8h
14-17hPri. Cntrl./Sts. Base Addr.3F4h4ChAddress Setup Time
18-1BhSec. Data/Cmd Base Addr.170h4E, 4FhNon-1F0h Port Drive Timing00FFh
1C-1FhSec. Cntrl./Sts. Base Addr.374h50hSec. Drive 1 Ext. Timing00h
20-23hBus Mstr. Cntrl. Reg. Base Addr.51hSec. Drive 0 Ext. Timing00h
24-27hMem. Base Addr. for MM I/O52hPri. Drive 1 Ext. Timing00h
3ChInterrupt Line0Eh53hPri. Drive 0 Ext. Timing00h
3DhInterrupt Pin54-5FhReserved
3EhMin_GNT60, 61h,Sector Size for Pri. IDE200h
3FhMin_LAT68, 69hSector Size for Sec. IDE200h
NOTE:
Assume unmarked gaps are reserved and/or not used.
Value
Reset
PCI
Conf.
on
Addr.Register
Value
Reset
on
5.2.1.2IDE Bus M a ster Control Registers
The IDE interface can perform PCI bus master operations using the I/O mapped control registers
listed in Table 5-2.
Table 5–2.
I/O Addr.
Offset
5-2
Compaq Deskpro 4000N and 4000S Personal Computers
IDE Bus Master Control Registers
Table 5-2.
IDE Bus Mast er Control Registers
Size
(Bytes)Register
00h2Bus Master IDE Command (Primary)00h
02h2Bus Master IDE Status (Primary)00h
04h4Bus Master IDE Descriptor Ptr (Pri.)0000 0000h
08h2Bus Master IDE Command (Secondary)00h
0Ah2Bus Master IDE Status (Secondary)00h
0Ch4Bus Master IDE Descriptor Ptr (Sec.)0000 0000h
Firs t Edition – Sept ember 1997
Default
Value
5.2.1.3IDE ATA Control Registers
The IDE controller of the 82586 decodes the addressing of the standard AT attachment (ATA)
registers for the connected drive, which is where the ATA control registers actually reside. The
primary and secondary interface connectors are mapped as shown in Table 5-3.
The following paragraphs describe the IDE ATA control registers.
Data Register, I/O Port 1F0h/170h
This register is used for transferring all data to and from the hard drive controller. This register
is also used for transferring the sector table during format commands. All transfers are highspeed 16-bit I/O operation except for Error Correction Code (ECC) bytes during Read/Write
Long commands.
Error Register, I/O Port 1F1h/171h (Read Only)
The Error register contains error status from the last command executed by the hard drive
controller. The contents of this register are valid when the following conditions exist:
♦ Error bit is set in the Status register
♦ Hard drive controller has completed execution of its internal diagnostics
Compaq Deskpro 4000N and 4000S Personal Computers
5-3
Firs t Edition - September 1997
Chapter 5 Input/Output Interfaces
The contents of the Error register are interpreted as a diagnostic status byte after the execution of
a diagnostic command or when the system is initialized.
BitFunction
7Bad Block Mark Detected in Requested Sector ID Field (if set)
6Non-correctable Data Error (if set)
5Reserved
4Requested Sector ID Field Not Found (if set)
3Reserved
2Requested Command Aborted Due To Invalid Hard Drive
Status or Invalid Command Code (if set)
1Track 0 Not Found During Re-calibration Command (if set)
0Data Address Mark Not Found After Correct ID Field (if set)
Set Features Register, I/O Port 1F1h/171h (Write Only)
This register is command-specific and may be used to enable and disable features of the interface.
Sector Count Register, I/O Port 1F2h/172h
This register defines either:
♦ the number of sectors of data to be read or written
or
♦ the number of sectors per track for format commands
If the value in this register i s zero, a count of 256 sectors is specified. The sector count is
decremented as each sector is accessed, so that the value indicates the number of sectors left to
access when an error occurs in a multi-sector operation. During the Initialize Drive Parameters
command, this register contains the number of sectors per track.
Sector Number Register, I/O Port 1F3h/173h
The Sector Number register contains the starting sector number for a hard drive access.
Cylinder Low, Cylinder High Registers, I/O Port 1F4h, 1F5h/174h, 175h
These registers contain the starting cylinder number for each hard drive access. The three m ostsignificant bits of the value are held in byte address 1F5h (bits <2..0>) while the remaining bits
are held in location 1F4h.
Setting bit <4> to 1 when Drive 2 is not present may cause remaining
controller registers to not respond until Drive 1 is selected again.
Technical Reference Guide
Status Register, I/O Port 1F7h/177h (Read Only)
The contents of this register are updated at the completion of each command. If the Busy bit is
set, no other bits are valid. Reading this register clears the IRQ14 interrupt.
BitFunction
7Controller Busy. If set, controller is executing a command.
6READY- Signal Active (if set).
5WRITE FAULT- Signal Active (if set).
4SEEK COMPLETE- Signal Active (if set)
3Data Request. If set, the controller is ready for a byte or word-
length data transfer. Bit should be verified before each transfer.
2Correctable Data Error Flag. If set, data e rror has occurred and
has been corrected.
1INDEX- Signal Active (if set).
0Error Detected. When set, indicates error has occurred. O.ther
bits in register should be checked to determine error source.
NOTE:
Register status of an error condition does not change
until register is read.
The alternate Status register at location 3F6h holds the same status data as location 1F7h but
does not clear hardware conditions when read.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
5-5
Chapter 5 Input/Output Interfaces
Command Register, I/O Port 1F7h/177h (Write Only)
The IDE controller commands are written to this register. The command write action should be
prefaced with the loading of data into the appropriate registers. Execution begins when the
command is written to 1F7h/177h. Table 5-4 lists the standard IDE commands.
Table 5–4. IDE Controller Commands
Table 5-4.
IDE Controller Comm ands
CommandValue
Initialize Drive Parameters91h
Seek7xh
Recalibrate1xh
Read Sectors with Retries20h*
Read Long with Retries22h*
Write Sectors with Retries30h*
Write Long with Retries32h*
Verify Sectors with Retries40h
Format Track50h
Execute Controller Diagnostic90h
Idle97h, E3h
Idle Immediate95h, E1h
Enter Low Power and Enable/Disable Timeout96h
Enter Idle and Enable/Disable Timeout97h
Check Status98h
IdentifyECh
Read BufferE4h
Write BufferE8h
NOP00h
Read DMA with RetryC8h
Read DMA without RetryC9h
Read MultipleC4h
Set FeaturesEFh
Set Multiple ModeC6h
Sleep99h, E6h
Standby96h, E2h
Standby Immediate94h, E0h
Write DMA with RetryCAh
Write DMA without RetryCBh
Write MultipleC5h
Write SameE9h
Write Verify3Ch
* Without retries, add one to the value.
Alternate Status Register, I/O Port 3F6h/376h (Read Only)
The alternate Status register at location 3F6h holds the same status data as location 1F7h but
does not clear hardware conditions when read.
5-6
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition – Sept ember 1997
Drive Control Register, I/O Port 3F6h/376h (Write Only)
BitFunction
7..3Reserved
2Controller Control:
0 = Re-enable
1 = Reset
1Interrupt Enable/Disable
0 = Disable interrupts
1 = Enable interrupts
0Reserved
Drive Access Register, I/O Port 3F7h/377h (Read Only)
This system includes two standard 40-pi n connectors and one 50-pin connector for IDE devices.
Devices attached to the 40-pin connectors obtain power through a separate connector. The 40-pin
connector is shown in the illustration below followed by the connector’s pinout.
Figure 5–1. 40-Pin IDE Connector.
Table 5–5. 40-Pin IDE Connector Pinout
PinS ignalD escr ipt ionPinSignalDescription
1RESET-Re set21DRQDMA Request
2GNDGround22GNDGround
3DD7Data Bit <7>23IOW-I/O Write
4DD8Data Bit <8>24GNDGround
5DD6Data Bit <6>25IOR-I/O Read
6DD9Data Bit <9>26GNDGround
7DD5Data Bit <5>27IORDYI/O Channel Ready
8DD10Data Bit <10>28CSELCable Select
9DD4Data Bit <4>29DAK-DMA Acknowledge
10DD11Data Bit <11>30GNDGround
11DD3Data Bit <3>31IRQnInterrupt Request [1]
12DD12Data Bit <12>32IO16-16-bit I/O
13DD2Data Bit <2>33DA1Address 1
14DD13Data Bit <13>34DSKPDIAGPass Diagnostics
15DD1Data Bit <1>35DA0Address 0
16DD14Data Bit <14>36DA2Address 2
17DD0Data Bit <0>37CS0-Chip Select
18DD15Data Bit <15>38CS1-Chip Select
19GNDGround39HDACTIVE-Drive Active (front panel LED) [2]
20--Key40GNDGround
NOTES:
[1] Primary connector wired to IRQ14, secondary connector wired to IRQ15.
[2] Pin 39 is used for spindle sync and drive activity (becomes SPSYNC/DACT-)
when synchronous drive are connected.
Table 5-5.
40-Pin IDE Connector P inout
5-8
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition – Sept ember 1997
Technical Reference Guide
The 50-pin connector is in ten ded for a CD-ROM drive that operates as a slave on the secondary
IDE interface. This interface includes power and audio signa ls. The 50-pin connector is
illustrated below followed by the pinout.
P2
P1
Figure 5–1. 50-Pin IDE Connector.
Table 5–6. 40-Pin IDE Connector Pinout
Table 5-5.
50-Pin IDE Connector P inout
PinS ignalD escr ipt ionPinSignalDescription
1RE SDRV-Reset26GNDGround
2GNDGround27CHRDYI/O Channel Ready
3SHD07Data Bit <7>28ALECable Select [1]
4SHD08Data Bit <8>29DAK-DMA Acknowledge
5SHD06Data Bit <6>30GNDGround
6SHD09Data Bit <9>31IRQInterrupt Request [1]
7SHD05Data Bit <5>32IO16-16-bit I/O
8SHD10Data Bit <10>33A1Address 1
9SHD04Data Bit <4>34PDIAG-Pass Diagnostics
10SHD11Data Bit <11>35A0Address 0
11SHD03Data Bit <3>36A2Address 2
12SHD12Data Bit <12>37CS1FX-Chip Select
13SHD02Data Bit <2>38CS3FX-Chip Select
14SHD13Data Bit <13>39DASF-Drive Active
15SHD01Data Bit <1>40GNDGround
16SHD14Data Bit <14>41AUD LLeft Channel Audio
17SHD00Data Bit <0>42AUD RRight Channel Audio
18SHD15Data Bit <15>43AUD R RTNRight Channel Audio Return
19GNDGround44AUD L RTNLeft Channel Audio Return
20--(Key Space)45+5 VDCMotor Power
21DRQDMA Request46+5 VDCMotor Power
22GNDGround47+5 VDCMotor Power
23IOW-I/O Write48+5 VDCMotor Power
24GNDGround49+5 VDCLog Power
25IOR-I/O Read50+5 VDCLog Power
NOTES:
[1] Pin is left floating to make CD-ROM always slave.
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition - September 1997
5-9
Chapter 5 Input/Output Interfaces
5.3 DISKETTE DRIVE INTERFACE
The diskette drive interface supports up to two diskette drives through a stan da rd 34-pin diskette
drive connector. All Deskpro 4000S models include a 3.5 inch 1.44-MB diskette drive installed
as drive A. There is no physical provision for a second drive (B).
The diskette drive interface function is integrat ed in t o the 87307 I/O controller component. The
internal logic of the I/O controller is software-compatible with standard 82077-type logic. The
diskette drive controller has three operational phases in the following order:
♦ Command phase - The controller receives t he command from the system.
♦ Execution phase - The controller carries out the command.
♦ Results phase - Status and results data is read back from the controller to the system.
The Command phase consists of several bytes written in series from the CPU to the data register
(3F5h/375h). The first byte identifies the command and the remaining bytes define the
parameters of the command. The Main Status register (3F4h/374h) provides data flow control
for the diskette drive controller and must be polled between each byte transfer during the
Command phase.
The Execution phase starts as soon as the last byte of the Command phase is received. An
Execution phase may involve the transfer of data to and from the diskette drive, a mechnical
control function of the drive, or an operation that remains internal to the diskette drive controller.
Data transfers (writes or reads) with the diskette drive controller are by DMA, using t he DRQ2
and DACK2- signals for control.
The Results phase consists of the CPU reading a series of status bytes (from the data register
(3F5h/375h)) that indicate the results of the command. Note that some commands do not have a
Result phase, in which case the Execution phase can be followed by a Command phase.
During periods of inactivity, the diskette drive controller is in a non-operation mode known as
the I dle phase.
5-10
Compaq Deskpro 4000N and 4000S Personal Computers
Firs t Edition – Sept ember 1997
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.