ChipFind - Datasheet

Part Number PC87303VUL

Download:  PDF   ZIP
TL C 12074
PC87303VUL
SuperIO
Sidewinder
Lite
Floppy
Disk
Controller
Keyboard
Controller
Real-Time
Clock
Dual
UARTs
IEEE
1284
Parallel
Port
and
IDE
Interface
PRELIMINARY
February 1995
PC87303VUL SuperI O
TM
Sidewinder Lite
Floppy Disk Controller Keyboard Controller
Real-Time Clock Dual UARTs IEEE 1284 Parallel Port
and IDE Interface
General Description
The PC87303VUL is a single chip solution incorporating a
Keyboard and PS 2
Mouse Controller (KBC) Real Time
Clock (RTC) and most commonly used I O peripherals in
ISA EISA and MicroChannel
based computers In addition
to the KBC and RTC a Floppy Disk Controller (FDC) two
full featured UARTs an IEEE 1284 compatible parallel port
and all the necessary control logic for an IDE interface pro-
vides support for most commonly used I O peripherals
Standard PC-AT
address decoding for all the peripherals
a set of configuration registers and two user selectable chip
selects are also implemented in this highly integrated mem-
ber of the SuperI O family The advanced features and high
integration of the PC87303 result in several benefits for low
cost high performance systems Printed circuit board space
savings fewer components on the motherboard and com-
patibility with the latest industry standard peripherals are
only a few of the benefits of using a PC87303
The KBC is fully software compatible with the 8042AH mi-
crocontroller It contains system timing control logic cus-
tom ROM program memory RAM data memory and 18 pro-
grammable I O lines necessary to implement dedicated
control functions It is an efficient controller which uses pre-
dominantly single byte instructions with support for binary and
BCD arithmetic and extensive bit handling capabilities
(Continued)
Features
Y
The Floppy Disk Controller
Software compatible with the DP8477 the 765A and
the N82077
16-byte FIFO (disabled by default)
Burst and Non-Burst modes
Perpendicular Recording drive support
High performance internal analog data separator
(no external filter components required)
Low power CMOS with power-down mode
Automatic media-sense support with full IBM TDR
(Tape Drive Register) implementation for PC-AT and
PS 2 floppy drive types
Y
The Keyboard Controller
8042AH and PC87911 software compatible
8-bit Microcomputer with 2 kbytes custom ROM and
256 bytes data RAM
Asynchronous access to two data registers and one
status register during normal operation
Dedicated open drain outputs for keyboard controller
application
Supports both interrupt and polling
Supports DMA handshake
18 programmable I O pins
4 dedicated open-drain outputs
8-bit Timer Counter
Binary and BCD arithmetic
Expandable I O
(Continued)
Block Diagram
TL C 12074 ­ 1
TRI-STATE
is a registered trademark of National Semiconductor Corporation
SuperI O
TM
is a trademark of National Semiconductor Corporation
MicroChannel
PC-AT
and PS 2
are registered trademarks of International Business Machines Corporation
C1995 National Semiconductor Corporation
RRD-B30M75 Printed in U S A
General Description
(Continued)
The RTC is a low-power design that provides a time-of-day
clock a 100-year calendar several alarm features and 242
bytes of general purpose RAM An external battery is used
to maintain the time and contents of the general purpose
RAM when power is removed from the PC87303 The
PC87303 RTC is compatible with the DS1287 and
MC146818 RTC devices
The PC87303 FDC uses a high performance analog data
separator eliminating need for any external filter compo-
nents The FDC is fully compatible with the PC8477 and
incorporates a superset of DP8473 NEC mPD765 and
N82077 floppy disk controller function All popular 5 25
and 3 5 floppy drives including 2 88 MB 3 5 floppy drive
are supported Full TDR support for PC-AT and PS 2 floppy
drive types is also provided
The two UARTs are fully NS16450 and NS16550 compati-
ble
The parallel port is fully IEEE 1284 level 2 compatible The
SPP (Standard Parallel Port) is fully compatible with ISA
EISA and MicroChannel parallel ports In addition to the
SPP EPP (Enhanced Parallel Port) and ECP (Extended Ca-
pabilities Port) modes are supported by the parallel port
All IDE control signals with DMA support including support
for Type F DMA are provided by the PC87303 Only external
signal buffers are required to implement a complete IDE
interface
A set of fourteen configuration registers are provided to
control various functions of the PC87303 These registers
are accessed using two 8-bit wide index and data registers
The ISA I O address of the register pair can be relocated
using a power-up strapping option
Two general purpose user programmable chip selects are
available These chip selects can be used to decode game
port addresses
Features
(Continued)
Y
The Real-Time Clock
DS1287 MC146818 and PC87911 compatible
242 bytes battery backed-up CMOS RAM in two
banks
Selective lock mechanism locks any half of the RTC
RAM
Calendar in days
day of the week
months and
years with automatic leap-year adjustment
Time of day in seconds minutes and hours
12 or 24 hour format
Optional daylight savings adjustment
BCD or binary format for time keeping
Three individually maskable interrupt event flags
Periodic rates from 122 ms to 500 ms
Time-of-day alarm once per second to once per
day
Separate battery pin 2 4V operation
2 mA power consumption
Double buffer time registers
Y
The UARTs
Software compatible with the PC16550A and
NS16450
Y
Parallel Port
EPP ECP compatible with ECP level 2 support
ISA EISA and MicroChannel compatible architecture
Bi-directional data transfer under software or hard-
ware control
Includes protection circuit to prevent damage to the
parallel port when a connected printer is powered up
or is operated at a higher voltage
Y
IDE
All IDE control signals with DMA and support for
Type F DMA Only external signal buffers are re-
quired to implement the full IDE interface
Y
The Programmable Chip Selects
Separater pins for two user programmable chip se-
lect decoders provide ability to control a game port
Y
The address decoder
Provides selection of all primary and secondary ISA
addresses including COM1 ­ 4
Y
General
Low power CMOS technology
Ability to stop clocks to all modules
The PC87303 is a drop-in replacement for the
PC87323VUL
Reduced pin leakage current
Special configuration register for power-down
Disable bit for RTC
160-pin PQFP package
2
Table of Contents
1 0 PIN DESCRIPTION
10
2 0 CONFIGURATION REGISTERS
16
2 1 Overview
16
2 2 Software Configuration
16
2 3 Hardware Configuration
19
2 4 Index and Data Registers
19
2 5 Base Configuration Registers
21
2 5 1 Function Enable Register
21
2 5 2 Function Address Register
22
2 5 3 Power and Test Register
22
2 5 4 Function Control Register
23
2 5 5 Printer Control Register
23
2 5 6 KBC and BTC Control Register
24
2 5 7 Power Management Control Register
24
2 5 8 Tape UARTs and Parallel Port Configuration
Register
25
2 5 9 SIO Identification Register
25
2 5 10 Advanced SIO Configuration Register
25
2 5 11 Chip Select 0 Configuration Register 0
25
2 5 12 Chip Select 0 Configuration Register 1
25
2 5 13 Chip Select 1 Configuration Register 0
26
2 5 14 Chip Select 1 Configuration Register 1
26
2 6 Power-Down Options
26
2 7 Power-Up Procedure and Considerations
26
2 7 1 Crystal Stabilization
26
2 7 2 UART Power-Up
26
2 7 3 FDC Power-Up
26
3 0 FDC REGISTER DESCRIPTION
27
3 1 FDC Control Registers
28
3 1 1 Status Register A (SRA)
28
3 1 2 Status Register B (SRB)
28
3 1 3 Digital Output Register (DOR)
29
3 1 4 Tape Drive Register (TDR)
29
3 1 5 Main Status Register (MSR)
31
3 1 6 Data Rate Select Register (DSR)
31
3 1 7 Data Register (FIFO)
32
3 1 8 Digital Input Register (DIR)
32
3 1 9 Configuration Control Register (CCR)
33
3 2 Result Phase Status Registers
33
3 2 1 Status Register 0 (ST0)
33
3 2 2 Status Register 1 (ST1)
33
3 2 3 Status Register 2 (ST2)
34
3 2 4 Status Register 3 (ST3)
34
4 0 FDC COMMAND SET DESCRIPTION
34
4 1 Command Descriptions
34
4 1 1 Configure Command
34
4 1 2 Dumpreg Command
35
4 1 3 Format Track Command
35
4 1 4 Invalid Command
38
4 1 5 Lock Command
38
4 1 6 Mode Command
38
4 1 7 NSC Command
39
4 1 8 Perpendicular Mode Command
40
4 1 9 Read Data Command
41
4 1 10 Read Deleted Data Command
43
4 1 11 Read ID Command
43
4 1 12 Read A Track Command
43
4 1 13 Recalibrate Command
44
4 1 14 Relative Seek Command
44
4 1 15 Scan Commands
45
4 1 16 Seek Command
46
4 1 17 Sense Drive Status Command
46
4 1 18 Sense Interrupt Command
46
4 1 19 Set Track Command
47
4 1 20 Specify Command
47
4 1 21 Verify Command
48
4 1 22 Version Command
49
4 1 23 Write Data Command
50
4 1 24 Write Deleted Data Command
50
4 2 Command Set Summary
51
4 3 Mnemonic Definitions for FDC Commands
56
5 0 FDC FUNCTIONAL DESCRIPTION
57
5 1 Microprocessor Interface
57
5 2 Modes of Operation
57
5 3 Controller Phases
57
5 3 1 Command Phase
57
5 3 2 Execution Phase
57
5 3 2 1 DMA Mode
FIFO Disabled
58
5 3 2 2 DMA Mode
FIFO Enabled
58
5 3 2 3 Interrupt Mode
FIFO Disabled
59
5 3 2 4 Interrupt Mode
FIFO Enabled
59
5 3 2 5 Software Polling
59
5 3 3 Result Phase
59
5 3 4 Idle Phase
59
5 3 5 Drive Polling Phase
60
5 4 Data Separator
60
5 5 Crystal Oscillator
62
5 6 Perpendicular Recording Mode
62
5 7 Data Rate Selection
64
5 8 Write Precompensation
64
5 9 FDC Low Power Mode Logic
64
5 10 Reset Operation
64
3
Table of Contents
(Continued)
6 0 SERIAL PORTS
65
6 1 Serial Port Registers
65
6 2 Line Control Register
65
6 3 Programmable Baud Rate Generator
68
6 4 Line Status Register
69
6 5 FIFO Control Register
70
6 6 Interrupt Identification Register
70
6 7 Interrupt Enable Register
70
6 8 MODEM Control Register
70
6 9 MODEM Status Register
72
6 10 Scratchpad Register
72
7 0 PARALLEL PORT
72
7 1 Introduction
72
7 2 Data Register (DTR)
73
7 3 Status Register (STR)
73
7 4 Control Register (CTR)
74
7 5 Enhanced Parallel Port Operation
74
7 6 Extended Capabilities Parallel Port
79
7 6 1 Introduction
79
7 6 2 Software Operation
80
7 7 Register Definitions
80
7 8 Software Controlled Data Transfer
82
7 9 Automatic Data Transfer
82
7 9 1 Forward Direction
82
7 9 2 ECP Forward Write Cycle
82
7 9 3 Backward Direction
82
7 9 4 ECP Backward Read Cycle
82
7 10 FIFO Test Access (Mode 110)
83
7 11 Configuration Registers Access
83
7 12 Interrupt Generation
83
8 0 INTEGRATED DEVICE ELECTRONICS
INTERFACE (IDE)
83
8 1 Introduction
83
8 2 IDE Signals
83
9 0 KEYBOARD CONTROLLER AND REAL-TIME
CLOCK
85
9 1 PC87303 KBC Function
85
9 1 1 Host System Interface
86
9 1 2 Program Memory
87
9 1 3 Data Memory and Registers
87
9 1 4 I O Interface
88
9 1 5 Timer Counter
89
9 1 6 Interrupts
89
9 1 7 Oscillator and Instruction Timing
90
9 2 Real Time Clock Function
91
9 2 1 Memory Map
91
9 2 2 Bus Interface
91
9 2 3 Time Generation
91
9 2 4 Time Keeping
92
9 2 5 RAM
93
9 2 6 Power Management
93
9 2 7 System Bus Lock Out
and Power-Up Detection
93
9 2 8 Oscillator
93
9 2 9 Interrupt Handling
93
9 2 10 Control Registers
94
10 0 ELECTRICAL CHARACTERISTICS
96
10 1 DC Electrical Characteristics
96
10 1 1 Microprocessor Parallel Port and IDE
Interface Pins
97
10 1 2 Disk Interface Pins
97
10 1 3 Oscillator Pins
97
10 1 4 Parallel Port Pins
97
10 1 5 Keyboard Controller and Real-Time
Clock Pins
98
10 2 AC Electrical Characteristics
98
10 2 1 AC Test Conditions
98
10 2 2 Clock Timing
99
10 2 3 Microprocessor Interface Timing
100
10 2 4 Baud Out Timing
102
10 2 5 Transmitter Timing
102
10 2 6 Receiver Timing
103
10 2 7 MODEM Control Timing
104
10 2 8 DMA Timing
105
10 2 9 Reset Timing
107
10 2 10 FDC Write Data Timing
107
10 2 11 FDC Read Data Timing
108
10 2 12 Drive Control Timing
108
10 2 13 IDE Timing
108
10 2 14 Parallel Port Timing
109
10 2 15 Enhanced Parallel Port Timing
110
10 2 16 Extended Capabilities Port Timing
111
10 2 17 RTC
112
10 2 18 Programmable Chip Select Timing
113
4
List of Figures
FIGURE 2-1
PC87303 Configuration Registers
17
FIGURE 2-2
PC87303 Four Floppy Drive Circuit
21
FIGURE 3-1
FDC Functional Block Diagram
27
FIGURE 4-1
FDC Command Structure
34
FIGURE 4-2
IBM Perpendicular and ISO Formats Supported by Format Command
37
FIGURE 5-1
FDC Data Separator Block Diagram
61
FIGURE 5-2
PC87303 Dynamic Window Margin Performance
62
FIGURE 5-3
Read Data Algorithm
State Diagram
63
FIGURE 5-4
Perpendicular Recording Drive R W Head and Pre-Erase Head
63
FIGURE 6-1
PC87303 Composite Serial Data
65
FIGURE 6-2
Receiver FIFO Trigger Level
70
FIGURE 7-1
EPP 1 7 Address Write
76
FIGURE 7-2
EPP 1 7 Address Read
76
FIGURE 7-3
EPP Write with ZWS
77
FIGURE 7-4
EPP 1 9 Address Write
77
FIGURE 7-5
EPP 1 9 Address Read
78
FIGURE 7-6
ECP Forward Write Cycle
82
FIGURE 7-7
ECP Backward Read Cycle
82
FIGURE 8-1
IDE Interface Signal Equations (Non-DMA)
84
FIGURE 9-1
Keyboard Controller Functional Block Diagram
84
FIGURE 9-2
Keyboard Controller to Host System Interface
86
FIGURE 9-3
Status Register
86
FIGURE 9-4
PSW Register Bits
87
FIGURE 9-5
Keyboard Controller Data Memory Map
87
FIGURE 9-6
Keyboard Controller Stack Organization
87
FIGURE 9-7
Active Pull-Up I O Port Structure
88
FIGURE 9-8
Using Port Pins as Inputs
88
FIGURE 9-9
Timing Generation and Timer Circuit
89
FIGURE 9-10
Internal Clock Connection
90
FIGURE 9-11
External Clock Connection
90
FIGURE 9-12
Instruction Cycle Timing
90
FIGURE 9-13
Oscillator Internal and External Circuitry
92
FIGURE 9-14
Interrupt Status Timing
92
FIGURE 9-15
Typical Battery Configuration
93
FIGURE 9-16
Typical Battery Current During Battery Backed Mode
93
FIGURE 10-1
Clock Timing
99
FIGURE 10-2
Microprocessor Read Timing
101
FIGURE 10-3
Microprocessor Write Timing
101
FIGURE 10-4
Read after Write Operation to All Registers and RAM Timing
101
FIGURE 10-5
Baud Out Timing
102
FIGURE 10-6
Transmitter Timing
102
FIGURE 10-7
Sample Clock Timing
103
FIGURE 10-8
Receiver Timing
103
FIGURE 10-9
FIFO Mode Receiver Timing
103
FIGURE 10-10
Timeout Receiver Timing
104
FIGURE 10-11
MODEM Control Timing
104
FIGURE 10-12a FDC DMA Timing
105
FIGURE 10-12b ECP DMA Timing
106
5