Академический Документы
Профессиональный Документы
Культура Документы
Register
I 01001 reg
CMP = Compare
Register/Memory with Register
I 0011101w mod reg rim
100000sw Data if sw = 01
Logic
Shift Rotate Instructions
Register Memory by 1
1101000w 1 modTTTr/m
Register Memory by CL
1101001w 1 mod TTT rim
T T T Instruction
000 ROL
001 ROR
010 RCL
011 RCR
100 SHL/SAL
101 SHR
111 SAR
AND = And
Reg/Memory and Register to Either
1 001000dw 1 mod reg rim
Immediate to Accumulator
I 0010010w Data I Data if w = 1
String Manipulation
MOVS = Move Byte Word
Move Byte Word
I 1010010w
CMPS = Compare Byte Word
Compare Byte Word
11010011w
Control Transfer
10011010 Se
11101010 Se
11000010
Intersegment
11001011
11001010
L=O
L=l
L>l
LEAVE = Leave Procedure
Leave Procedure
111001001
INT = Interrupt
Type Specified
11001101 1 Type
Type 3
11001100
Processor Control
CLC = Clear Carry
Clear Carry
11111100
HLT = Halt
Halt
111110100
WAIT = Wait
Wait
110011011
Protection Control
LGDT = Load Global Descriptor Table Register
00001111
00001111
00001111 00000000
Data Transfer
FLD = Load
Integer/Real Memory to ST(O)
I escape MF 1 I mod 000 rim
FST = Store
ST(O) to Integer/Real Memory
I escape MF 1 I mod 010 rim
ST(O) to ST(i)
I escape 101 11010 ST(i}
Comparison
FCOM = Compare
Integer/Real Memory to ST(O)
I escape MF 0 I mod 010 rim
ST(i) to ST(O)
I escape 000 11010 STIi)
Constants
FLDZ = Load + 0.0 into ST(O)
Load + 0.0 into ST(O)
I escape 000 111101110
Load
1 escape 001 1 11101011
Arithmetic
FADD = Addition
Integer/Real Memory with ST(O)
1 escape MF 0 1 mod 000 rim
FSUB = Subtraction
Integer/Real Memory with ST(O)
1 escape MF 0 1 mod 10r rim
FMUL = Multiplication
Integer/Real Memory with ST(O)
1 escape MF 0 1 mod 001 rim
FDIV = Division
Processor Control
FINT = Initialize NPX
Initialize NPX
I escape 011 I 11100011
FSETPM = Enter Protected Mode
Enter Protected Mode
I escape 011 I 11100100
Contents
Characters, Keystrokes, and Color ..................... 7-3
NOTES .................................. 7-13
~ Blue Underline
02
03
2
3 •• Ctrl C
lack
Black
GI
Cyan
Normal
Normal
...+
04 Normal
06
07
08
7
8
•• CtrlG
Ctrl H.
Black
Black
Light Grey
Dark Grey
Normal
Non-Display
Backspace.
Shift
Backspace
-§.
15 21 Ctrl U Magenta Normal
17 23
1.. CtrlW Blue Light Grey Normal
Color/Graphics IBM
Value As Characters Monitor Adapter Monochrome
Display
Hex Dec Symbol Keystrokes Modes Background Foreground Adapter
1E 30
• Ctrl6 Blue Yellow High Intensity
20 32
"
Blank Space Bar, Green Black Normal
Space Shift,
Space,
Ctrl Space,
Ait Space
Color/Graphics IBM
Value As Characters Monitor Adapter
Monochrome
Display
Hex Dec Symbol Keystrokes Modes Background Foreground Adapter
Color/Graphics IBM
Value As Characters Monitor Adapter
Monochrome
Display
Hex Dec Symbol Keystrokes Modes Background Foreground Adapter
5E 94 A A
Shift Magenta Yellow High Intensity
7C 124 I
I
I
I Shift White Light Red High Intensity
8B 139 'i Alt 139 Note 6 Black Light Cyan High Intensity
Color/Graphics IBM
Value As Characters Monitor Adapter Monochrome
Display
Hex Dec Symbol Keystrokes Modes Background Foreground Adapter
B2 178
I Alt 178 Note 6 Cyan Green Normal
h Underline
BD 189
WJ Alt 189 Note 6 Cyan Light
Magenta
High Intensity
BE 190
P Alt 190 Note 6 Cyan Yellow High Intensity
C3 195
f- Ait 195
Alt 196
Note 6
Note 6
Red
Red
Cyan
Red
Normal
Normal
C4 196
C6 198
=== Alt 198 Note 6 Red Brown Normal
C8 200 L== Alt 200 Note 6 Red Dark Grey High Intensity
Coior / GraphicsIBM
Value As Characters Monitor Adapter
Monochrome
Display
Hex IDec 1Symbol K"Y~"VR~~ Modes Background Foreground Adapter
Color/Graphics IBM
Value As Characters Monitor Adapter Monochrome
Display
Hex Dec Symbol Keystrokes Modes Background Foreground Adapter
F9 249
• Alt 249 Note 6 White Light Blue High Intensity
Underline
FE
FF
254
255
•
BLANK
Alt 254
Alt 255
Note 6
Note 6
White
White
Yellow
White
High Intensity
High Intensity
2. Period (.) can be typed using two methods: press the. key
or, in the shift or Num Lock mode, press the Del key.
6. The three digits after the Alt key must be typed from the
numeric keypad. Character codes 0-255 may be entered in
this fashion (with Caps Lock activated, character codes
97-122 will display uppercase.)
• HEXA
1~!~~MtL 0 1 2 3 4 5 6 7
0 0 BLANK
(NULL) ~
BLANK
(SPACEI
p , P
0 @
1 1 ~ ...... I• 1 A Q a q
2
3
2
3
-• " !
..
II
2 B R b r
=IF 3 C S c s
4 4
+ crT $ 4 D T d t
4t § 0/0 5 E U e u
•-
5 5
6 6 & 6 F V f v
,
7 7 • t 7 GW g W
8 8 r ( 8 H X h x
9 9 0 ! ) 9 I Y 1• y
•
.
10 A ~
* • J Z J Z
II B d +-- + ,• K [ k {
12 C Q L , < L "- I I
I
13 D j +--+ - - M ] m }
14 E ~ .. • > N /\ n rv
15 F 1)- ... / ?
• 0 - 0 ~
•
HEXA
DECIMAL
8 9 A B C 0 E F
VALUE
, ···....
0 0 ~ E a, ···......
:.:-:
I OC ---
1 1 ••
U
, cE 1
,
.:.:.
:.:.:
.:.:. f3 +
-
2 2 e .IE 0, ~ I r ->
3 3 ~ 0 U
A
- LL 1T - <
4 4 •• ••
a 0 n -
--.../
b L (
, ,
5 5 a 0 N= F (J'
)
.
6 6
I\.
a u a
0
, -1 i== Y -.
,--
-...,
7 7 ~ U 0 ~
T -...,
8 8 e" y
••
·
(, I I Q 0
9 9
••
e 0
••
I ~ .......--
8 •
, ••
10 A e U I ='L n •
••
11 B 1 c Y2 ==, f--
0 -r
12 c ",1 £ ~ :=! ex:> n
13 0
1 ¥ · --1J <P 2
• d
14 E A Pt « H E I
15 F A f' » I] n BLANK
'F F'
Contents
Communications .......•...........•........•..•.. 8-3
Communications 8-1
Notes:
8-2 Communications
Communications
Z
Voice Line
Communications 8-3
The following is an illustration of data terminal equipment
connected to an external modem using connections defined by the
RS-232C interface standard:
Data
Terminal
Equipment
Communications
Line
--:::::'"""'~---
Test ~"/H'
I
External Modem Cable Connector
131211109 8 765 4 3 2 1
. +
\ 0 0 0 0 0 0 0 0 0 0 0 0 OJ
\000000000000
2524 232221 20 19 18 1716 15 14
Pin Number
8-4 Communications
Establishing a Data Link
Request to Send
Clear to Send L
Transmitted Data
Communications 8-5
oc
I Establishing a Link on a Nonswitched Point-to-Point Line
~
("') 1. The terminals at both locations activate the 'data terminal ready' 11. Terminal A and modem A now become receivers and wait for a
Q
linesaandll· response from terminal B, indicating that all data has reached
terminal B. Modem A begins an echo delay (50 to 150
2. Normally the 'data set ready' linesDandllfrom the modems are
milliseconds) to ensure that all echoes on the line have diminished
I.
n
active whenever the modems are powered on.
before it begins receiving. An echo is a reflection of the
~ 3. Terminal A activates the 'request to send' linea, which causes transmitted signal. If the transmitting modem changed to receive
C". the modem at terminal A to generate a carrier signal. too soon, it could receive a reflection (echo) of the signal it just
8 4. Modem B detects the carrier, and activates the 'received line transmitted.
'" signal detector' line (sometimes called data carrier detect)m. 12. Modem B deactivates the 'received line signal detector' linemand,
Modem B also activates the 'receiver signal element timing' line if necessary, deactivates the receive clock signals on the 'receiver
(sometimes called receive clock)lIto send receive clock signals to signal element timing, linell.
the terminal. Some modems activate the clock signals whenever
the modem is powered on. 13. Terminal B now becomes the transmitter to respond to the request
from terminal A. To transmit data, terminal B activates the
5. After a specified delay, modem A activates the 'clear to send' line 'request to send' linell, which causes modem B to transmit a
. ' which indicates to terminal A that the modem is ready to carrier to modem A.
transmit data.
14. Modem B begins a delay that is longer than the echo delay at
6. Terminal A serializes the data to be transmitted (through the modem A before turning on the 'clear to send' line. The longer
serdes) and transmits the data one bit at a time (synchronized by delay (called request-to-send to clear-to-send delay) ensures that
the transmit clock) onto the 'transmitted data' linellto the modem A is ready to receive when terminal B begins transmitting
modem. data. After the delay, modem B activates the 'clear to send' lineal
7. The modem modulates the carrier signal with the data and to indicate that terminal B can begin transmitting its response.
transmits it to the modem B II. 15. After the echo delay at modem A, modem A senses the carrier
8. Modem B demodulates the data from the carrier signal and sends from modem B (the carrier was activated in step 13 when terminal
it to terminal B on the 'received data' linell. B activated the 'request to send' line) and activates the 'received
line signal detector' linellto terminal A.
9. Terminal B deserializes the data (through the serdes) using the
receive clock signals (on the 'receiver signal element timing' line) 16. Modem A and terminal A are now ready to receive the response
IIfrom the modem. from terminal B. Remember, the response was not transmitted
until after the request-to-send to clear-to-send delay at modem B
10. After terminal A completes its transmission, it deactivates the (step 14)
'request to send' linea,which causes the modem to turn off the
carrier and deactivate the 'clear to send' linea.
Terminal A Terminal B
ir======::;-]
II Communications II
rr:======llII
II Communications
II Adapte, Modem A Communications
Mod.::m B Adapter
II II II
II a r----i
Li
II III II
II
,- II
Data Terminal Ready I Power I
Supply I
Data Termmal Read
II
:cI Data Set Readv 0 '--_--r --~ Data Set ReadvO
II -, II
: ~ I Request to Send 0 ,- ----1
Cartier I
II' I t I II II
II I
_L I _~e~e~a~J
5 I
1 r
II a II
- - - / ~'
r------, Received line t I
I 0 I r l ,-----,
I
I t:
l
-C.'.'C~I~J
Clear to Send
II I I ' 0 1 I T~ansmit ~ Rece"e Signal DetectmlIll I
L_J I e I I CIrcuits I II : II
II II : ': L ___ ~J r---i Receiver Signal 9 : \ I
II Ia I , Modem' Element Timing m e l II
II I y I 1
II II L_J 0 m r
I '!
_~-----'mRecelved I
Clock I
III
II Transmitter Signal
d i
r------, u I L Dem:-d-:;;';-;-o-;---' Data II I II
Etement Timing
I --------=l---~
if.
Modem I I
II IL Clock I a I II II
____
II Transmitted
...l
t I Echo I II
Data III !0 L Delay I II
II :
r -=--=--==-'
I-~J II II
II II r-----l c . -, Request to Sendlll
I Echo ~ I arrler II
II II I~ _
Generate r 1
_ _ _ I IDI II II
b' -----,
I ____
L Delay J
------'
II Received Line
1----1 Ie Clear to Send [D
Signal Detector D ReceIve ~ Transmit I I I I II
II Ii I II
i-c.":c~" --'
L Circuits I a I
J
yl 'I II
~
II
II
II
II c-- -"I
Modem 1 r ___ ~_J
I Modem -,
Transmitter Signal
Element Timing
II
~
Receiver Signal IL ____
Clock I I Clock I 11
II r Element Timing
~ L ____ .J II II
I
II II r------ --,
:::::::::5
_ e
IL- _Demodulator
_ _ _ _ _ ......JI
i Modulatm l II
II II
II
§. II
:::, II L _ _ _ _ _ _ _ ---'
a
~.
II
II
II
::::::::::
-L-fJ
II
II
II
II
II
II
II
II
II
Received Data Transmitted Data
II II
QO II II II II
I
-..J t..:: ::'J L.'::===== :'J
8 N0I1:J3S
QC
I Establishing a Link on a Nonswitched Multipoint Line
QC
(1 1. The control station serializes the address for the tributary or 6. After a short delay to allow the control station modem to receive
secondary station (AA) and sends its address to the modem on the the carrier, the tributary modem activates the 'clear to send' line
~ 2.
'transmitted data' linea.
Since the 'request to send' line and, therefore, the modem carrier, 7.
a·
When station A detects the active 'clear to send' line, it tansmits
~. is active continuouslya, the modem immediately modulates the its response. (For this example, assume that station A has no data
II.)
e. carrier with the address, and, thus, the address is transmitted to all
modems on the line.
to send; therefore, it transmits an EOT
r;:..======:;-] ir-=-=--=--=-==ll
II Communications Ij II Communications II
II Adaple, Host Modem Communications Modem Adapter
U II II
"
Data Terminal 1----' Data Terminal
II -, Ready' I Power I r-~:e;-i Ready1 II II
II I On , : On J II
GI L_--, __ .J
Data Set Ready' '- - L.::.::::
II 0
nI Request to Send'D ' ----,
Carner
Data Set Ready 1
-, II
II
II
1
, I II
l' _~~e~":J I
II
, I
; : II
1---
, 0
I
, II r 1 r-----, AA Received line Signal o I II
Clear to Send1 . Detector 1
II I I ~: : Transmit ~: ; : II
" _J
: Receiver I I I I
L
II
III
II i
'aI
I : '-- ---1 J L
r---
_.J 1
'I
Receiver Signal
Element Timmgl
9 I II
e I
II
II I Y_JI M', j Modem
II: II
L
o , ~:~c.: _J 0 II II
II Transmitter Signal dI r - - - - - -..., Received Data II
r--'----,
II
Element Timing'
Modem I ,u II Demodulator
LI _ _ _ _ _ _ _ ..J
II II
AA IL _ _ _ _ ...JI
Clock a II
II 110 ,t, II II
II Transmitted Data 01
,-~J
r - - .- -..,
o II II
II II I Carner
Request to Send
,II
II 0" L ~e~e~~..J r 0 i 0 II : II
II
Received Line Signal
Detector ,------, r - - - - -, : e Clear to Send III
~
II: Element Timing'
Modem I
i Modem"l Element Timing
'II
AA
~':'-"C':'_J
~
III r _ _ _ --.lI
IL _Clock
II i--l AA II
II
~;
I I
III II r------ -.., r -----, II I S
II: II I1..... _Demodulator
_ _ _ _ _ ---1I ~_~~~~~_ J II I e
§. I,
~,~,
II II
~
l'I
"I II
: d
, e
II: II , s
ct. D II
~f
II L II
~ II Received Data EOT Transmitted Data
II II
00
II II
I
L.:::-=== ==.:J 'These lines are active continuously L':::==== =:J
\C
B NOll::J]S
oc
I
..... Establishing a Link on a Switched Point-To-Point Line
Q
1. Terminal A is in communications mode; therefore, the 'data 8. The autoanswer circuits in modem B activate the 'off hook' line to
n terminal ready' linellis active. Terminal B is in communication the coupler II.
~
mode waiting for a call from terminal A.
9. The coupler connects modem B to the communications line through
2. When the terminal A operator lifts the telephone handset, the the 'data tip' and 'data ring' linesllland activates the 'coupler cut-
S.n 'switch hook' line from the coupler is activatedll. through' lineDto the modem. Modem B then transmits an
answer tone to terminal A.
~ 3. Modem A detects the 'switch hook' line and activates the 'off
ct. hook' linea, which causes the coupler to connect the teleohone 10. The terminal A operator hears the tone and sets the exclusion key
0
set to the line and activate the 'coupler cut-through' line lito the or talk/data switch to the data position (or performs an equivalent
~ modem. operation) to connect modem A to the communications line
4. Modem A activates the 'data modem ready' line lito the coupler
through the 'data tip' and 'data ring' lines a.
(the 'data modem ready' line is on continuously in some modems). 11. The coupler at terminal A deactivates the 'switch hook' lineEl.
This causes modem A to activate the 'data set ready' linea
5. The terminal A operator sets the exclusion key or talk/data switch
indicating to terminal A that the modem is connected to the
to the talk position to connect the handset to the communications
communications line.
line. The operator then dials the terminal B number.
The sequence of the remaining steps to establish the data link is
6. When the telephone at terminal B rings, the coupler activates the
'ring indicate' line to modem Bm. Modem B indicates that the
'ring indicate' line was activated by activating the 'ring indicator'
the same as the sequence required on a nonswitched point-to-
point line. When the terminals have completed their transmission,
they both deactivate the 'data terminal ready' line to disconnect
linemto terminal B.
the modems from the line.
7. Terminal B activates the 'data terminal ready' line to modem BIB,
which activates the autoanswer circuits in modem B. (The 'data
terminal ready' line might already be active in some terminals.)
Terminal B
Terminal A
r;:======::;-]
II Communications II CBS CBS
r;:======ll
II Communications II
II Adapter II Modem A Coupler Coupler Modem 8 Adapte,
II II
r--..,----, II ED
II r-, Switch Hook Switch Hook i~~ ~-A-n~~;,l II II
----rr 1 r-l
I Carner I Data Terminal
II IC
I aI
I Generate I ISH) ISH) I u II
I ToneL____ JI .!ieady
CI
10 1
II
II ~_ :t I Data Set Ready -, II
I n L
Off Hook IOH)1I Off Hook 0 nl
I t I IOH) 10 1 r-' Received Line
Signal Detecto, :t : II
II: S I rCii M Ia I 101
II I t 1'1 Ie I 101 Couple, D Coupler 0 In I Ie I 1'1 II
I 0 Is I Iml Ring Indic!lorlll 101
III 0 II: :d I Cut-Through II
I'
III a
L~J
II
Ia I Iu :
Cut-Through
ICCT) II ICCTI II ewiI 10 I
Id I II
L~J II
IyI II I Data Modem Data Modem
II I g II L_J Ia I Ready IDA)
r-' Ready IDA) I, I :u I II II
II ie II It I i R:
r-l
I RI Ring Uil l_J II I
Ia I
II II
II 10: Ie I IeI Indicate IR) II II
II: It I Received Data
Transmit Data 1'1 IJ II I II I
III I
I
I Data Tip lOT)
Data
Ia : I aI Data Tip IDT)m
Data
10
' I
"II III
II: II YI IY ~_J III
L-
Data Ring lOR) IS I IS I Data Ring lOR) II III
III II L-J L_J
III II
II II
II II
r--, II I
IE C I
II II :c I : II
II II Ih a I II
10 ml
II II IL __pi
J
II
(j II II II
0 r -,
II r II iM~de;;'1 II I
§ II ISI
1
e I
II
r--M-od;mj
L_C.!.o~"--J L Clock
_-,-_..JI II IsL
I e I--
I
S. II , I II II
ir~::: II
II d I II II I d!-- .... II
~r
/") I I
=
a. /I el
S I
II II Ie 1--
I~
II
0 II L_ l .J II II L1J JI
'"=
Transmit Clock Receive Clock
II II
~!!I!~
t=ff
II II
QC II II
....
I
.... ~======~
::J
Communications
Line
B NOIlJ~S
Notes:
8-12 Communications
SECTION 9. IBM PERSONAL
COMPUTER COMPATIBILITY
Contents
Hardware Considerations ............................ 9-3
System Board ................................. 9-3
20Mb Fixed Disk Drive .......................... 9-4
High Capacity Diskette Drive ..................... 9-4
Adapters ..................................... 9-4
Keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 9-4
The IBM Personal Computer AT Does Not Support .... 9-5
Compatibility 9-1
Notes:
9-2 Compatibility
This section shows the differences between the IBM Personal
Computer AT and the rest of the IBM Personal Computer family.
It also contains information necessary to design hardware and
programs that will be compatible with all IBM Personal
Computers.
Hardware Considerations
System Board
The IBM Personal Computer AT system board uses an Intel
80286 microprocessor which is generally compatible with the
Intel 8088 microprocessor used in the rest of the IBM Personal
Computers. Programming considerations because of the faster
processing capability of the 80286 are discussed later in
"Application Guidelines."
Compatibility 9-3
• The I/O write signal is not active during refresh cycles.
I I
Adapters
The IBM Personal Computer AT 128KB Memory Expansion
Option, the IBM Personal Computer AT 512KB Memory
Expansion Option, the IBM Personal Computer AT Prototype
Adapter, and the IBM Personal Computer AT Fixed Disk and
Diskette Drive Adapter use the additional 36 pin system board
expansion slot and are not compatible with the rest of the IBM
Personal Computer Family.
Keyboard
9-4 Compatibility
The IBM Personal Computer AT Keyboard is an 84-key unit that
can perform all functions of the other IBM Personal Computer
keyboards, but is not plug-compatible with any of the other
keyboards.
• Other keyboards
Application Guidelines
Compatibility 9-5
Any program that requires precise timing information should
obtain it through a DOS or language interface; for example,
TIME$ in BASIC. If greater precision is required, the assembler
techniques in "Assembly Language Programming" are available.
The use of programming loops may prevent a program from being
compatible with other IBM Personal Computers.
;using IRET
OE PUSHCS ;push CS
9-6 Compatibility
• PUSH SP pushes the current stack pointer. The
microprocessor used in the IBM Personal Computer and the
IBM Personal Computer XT pushes the new stack pointer.
Compatibility 9-7
the coprocessor. If the interrupt was not generated by the
coprocessor, control should be passed to the original NMI
interrupt handler.
• Back to back I/O commands to the same I/O ports will not
permit enough recovery time for I/O chips. To insure enough
time, a JMP SHORT $+2 must be inserted between IN/OUT
instructions to the same I/O chip.
OUT IO_ADD,AL
JMP SHORT$+2
MOV AL,AH
OUT IO_ADD,AL
9-8 Compatibility
becomes necessary to modify any of the parameters, build
another parameter block and modify the address in
Disk-Pointer to point to the new block. The parameters were
established to operate both the High Capacity Diskette Drive
and the Double Sided Diskette Drive. Three of the parameters
in this table are under control of BIOS in the following
situations. The Gap Length Parameter is no longer retrieved
from the parameter block. Gap length used during diskette
read, write, and verify operations is derived from within
diskette BIOS. Gap length for format operations is still
obtained from the parameter block. Special considerations are
required for formatting operations. See the prologue of
Diskette BIOS for the required details. If a parameter block
contains a head settle time parameter value of 0 milliseconds,
and a write operation is being performed, at least 15
milliseconds of head settle time will be enforced for a High
Capacity Diskette Drive and 20 milliseconds will be enforced
for a Double Sided Diskette Drive. If a parameter block
contains a motor start wait parameter of less than 1 second for
a write or format operation or 625 milliseconds for a read or
verify operation, Diskette BIOS will enforce those times listed
above.
ROM BIOS and DOS do not provide for all functions. The
following are the allowable I/O operations with which IBM will
maintain compatibility in future systems.
Compatibility 9-9
• Control of the sound using port hex 61, and the sound channel
of the timer/counter. A program can control timer/counter
channels 0 and 2, ports hex 40, 42, and 43. A program must
not change the value in port hex 41, because this port controls
the dynamic-memory refresh. Channel 0 provides the
time-of -day interrupt, and can also be used for timing short
intervals. Channel 2 of the timer/counter is the output for the
speaker and cassette ports. This channel may also be used for
timing short intervals, although it cannot interrupt at the end
of the period.
9-10 Compatibility
A program that requires timing information should use either the
time-of-day clock or the timing channels of the timer/counter.
The input frequency to the timer will be maintained at 1.19 MHz,
providing a constant time reference. Program loops should be
avoided.
Programs that use copy protection schemes should use the ROM
BIOS diskette calls to read and verify the diskette and should not
be timer dependent. Any method can be used to create the
diskette, although manufacturing capability should be considered.
The verifying program can look at the diskette controller's status
bytes in the ROM BIOS data area for additional information
about embedded errors. More information about copy protection
may be found under I Copy Protection I later in this section.
Multi-tasking Provisions
The IBM Personal Computer AT BIOS contains a feature to
assist multi-tasking implementation. "Hooks" are provided for a
multi-tasking dispatcher. Whenever a busy (wait) loop occurs in
the BIOS, a hook is provided for the system to break out of the
loop. Also, whenever an interrupt is serviced by the BIOS, which
causes a corresponding wait loop to be exited, another hook is
provided for the system.
Compatibility 9-11
Interfaces
There are four interfaces to be used by the multi-tasking
dispatcher:
Startup
The first thing to be done is for the startup code to hook interrupt
hex 15. The dispatcher is responsible to check for function codes
AH = hex 90 and 91. The "Wait" and "Post" sections describe
these codes. The dispatcher must pass all other functions through
to the previous user of interrupt hex 15. This can be done via a
JMP or a CALL. If the function code is hex 90 or 91, then the
dispatcher should do the appropriate processing and return via the
lRET instruction.
Serialization
Wait (Busy)
9-12 Compatibility
;TYPE code in AL
;occurred
POST (Interrupt)
INTERRUPT PROCESSING
SET INTERRUPT COMPLETE FLAG FOR BUSY LOOP
; type code AL
Classes
The following types of wait loops are supported:
Compatibility 9-13
• The class for 0-> 7Fh is serially reusable. This means that for
the devices that use these codes, access to the BIOS must be
restricted to only one task at a time.
9-14 Compatibility
OlH yes (2 sec) IBM Personal
Computer AT diskette
(625 msec-read)
Timeouts
In order to support timeouts properly, it is necessary for the
multi-tasking dispatcher to be aware of time. If a device enters a
busy loop, it generally should remain there for a specific amount
of time before indicating an error. The dispatcher should return
to the BIOS wait loop with the carry bit set if a timeout occurred.
Compatibility 9-15
Subsystem Structure
The following figure shows three subsystems which have multiple
tasks. They are arranged in order of hierarchy. Tasks in
subsystem B can only run when Task "Other" A is active in
subsystem A and tasks in subsystem C can only run when Task
"Other" B is active in subsystem B.
9-16 Compatibility
After a subsystem is loaded, it must "listen" for any subsystems
that may be loaded later so that it can lock them out when it is
running. The following describes the code sequence for startup.
Startup Interface
MOVES,AX
INT ISH
Lockout Interface
There are two SYS key modes: multiple press and super shift.
Compatibility 9-17
Multiple Press Mode: This mode allows the user to sequence
through subsystems. Subsystems are displayed in the reverse
order of their installation.
Super Shift Mode: This mode allows the user direct access to
any subsystem regardless of the priority. The user activates this
mode by holding the SYS key pressed and pressing another key
which designates another subsystem.
subsysA code A
subsys B code B
subsys C code C
Entry Points
9-18 Compatibility
State/Transition Table
decrement 'cur'
Compatibility 9-19
Startup
The parameters for the startup routine are the address of the
entry point and the function code (direct-access mode). If the
operation was successful, the carry flag is set.
MOVES,AX
INT ISH
If the carry flag is not set, the initialization code needs to hook
the vector for interrupt 15H, save the previous address, and
reissue the initialization call.
Activation
This entry into the subsystem dispatcher signals that the monitor
task should be activated. It should be treated as a signal to set a
flag for the subsystem rather than an opportunity to gain control
of the system asynchronously as it may not be a proper time for
the subsystem to run. The subsystem may have to wait until a
higher priority subsystem allows it to have control before the
subsystem's monitor gets control. The subsystem entry point is
CALLED with the AH register set to o.
9-20 Compatibility
Cancellation
This signal from the SYS REQ processing module tells the
subsystem monitor to ignore the previous activation signal and
take the necessary action to return to its previous state.
This entry into the subsystem dispatcher signals that the monitor
task should be deactivated. The subsystem may not have control
of the system. It is necessary for the subsystem to note that a
cancellation has occurred and to wait until it has a valid
opportunity to run through its dispatcher code in a normal
fashion. The subsystem entry point is CALLED with the AH
register set to 1.
Completion
MOVES,AX
INT 1SH
Compatibility 9-21
Copy Protection
Some modes of copy protection will not work on the IBM
Personal Computer AT due to the following conditions:
• Bypassing BIOS
Bypassing BIOS
Copy protection, which depends on the following will not work
on the IBM Personal Computer AT:
Data Transfer Rate: BIOS selects the proper data transfer rate
for the media being used.
Disk Base: Copy protection, which creates its own disk base
will not work on the High Capacity Diskette Drive. -
Access Time: Diskette BIOS must set the track to track access
time for the different types of media used on the IBM Personal
Computer AT.
9-22 Compatibility
Head Geometry: See High Capacity Diskette Drive earlier in
I I
this section.
Write Current
The IBM Personal Computer AT Fixed Disk and Diskette Drive
Adapter selects the proper write current for the media being used.
Machine-Sensitive Code
Programs may program for machine specific features, but they
must test for specific machine type. Location hex OFFFF:OE
contains the machine identification:
Compatibility 9-23
Notes:
9-24 Compatibility
Glossary
A. Ampere.
Glossary-l
alternating current (ac). A current that periodically reverses its
direction of flow.
A/N. Alphanumeric
AND gate. A logic gate in which the output is 1 only if all inputs
are 1.
Glossary-2
assembler. A computer program used to assemble.
Glossary-3
beginner's aU-purpose symbolic instruction code (BASIC). A
programming language with a small repertoire of commands and a
simple syntax, primarily designed for numeric applications.
Glossary-4
bootstrap. A technique or device designed to bring itself into a
desired state by means of its own action; for example, a machine
routine whose first few instructions are sufficient to bring the rest
of itself into the computer from an input device.
C. Celsius.
cathode ray tube display (CRT display). (1) A CRT used for
displaying data. For example, the electron beam can be controlled
to form alphanumeric data by use of a dot matrix. (2) The data
display produced by the device as in (1).
Glossary-5
CCITT. International Telegraph and Telephone Consultative
Committee.
Glossary-6
coding scheme. Synonym for code.
Glossary-7
contiguous. Touching or joining at the edge or boundary;
adjacent.
cylinder. (1) The set of all tracks with the same nominal distance
from the axis about which the disk rotates. (2) The tracks of a
disk storage device that can be accessed without repositioning the
access mechanism.
Glossary-8
daisy-chained cable. A type of cable that has two or more
connectors attached in series.
dB. Decibel.
decibel. (1) A unit that expresses the ratio of two power levels on
a logarithmic scale. (2) A unit for measuring relative power.
Glossary-9
represents one of the non-negative integers smaller than the radix.
For example, in decimal notation, a digit is one of the characters 0
to 9.
Glossary-l0
diskette drive. A mechanism for moving a diskette and controlling
its movements.
Glossary-It
duty cycle. In the operation of a device, the ratio of on time to
idle time. Duty cycle is expressed as a decimal or percentage.
Glossary-12
end-of-transmission-block (ETB). A transmission control
character used to indicate the end of a transmission block of data
when data is divided into such blocks for transmission purposes.
EOT. End-of-transmission.
ETB. End-of-transmission-block.
ETX. End-of-text.
Glossary-13
F. Fahrenheit.
Glossary-14
form feed. (1) Paper movement used to bring an assigned part of
a form to the printing position. (2) In word processing, a
function that advances the typing position to the same character
position on a predetermined line of the next form or page.
g. Gram.
Gb.
Glossary-15
gram (g). A unit of weight (equivalent to 0.035 ounces).
Glossary-16
housekeeping. Operations or routines that do not contribute
directly to the solution of the problem but do contribute directly
to the operation of the computer.
Hz. Hertz
Glossary-17
used in place of such terms "input/output data", "input/output
signal", and "input/output terminals", when such usage is clear in
a given context. (2) Pertaining to a device whose parts can be
performing an input process and an output process at the same
time. (3) Pertaining to either input or output, or both.
I/O. Input/output.
I/O area. Synonym for buffer.
Glossary-18
K. When referring to storage capacity, 1024. (1024 = 2 to the
10th power.)
Glossary-19
M. (1) Prefix mega; 1 000000. (2) When referring to computer
storage capacity, 1 048 576. (1 048 576 = 2 to the 20th power.)
machine code. The machine language used for entering text and
program instructions onto the recording medium or into storage
and which is subsequently used for processing and printout.
Glossary-20
Mb. 1 048 576 bytes.
Glossary-21
mode. (1) A method of operation; for example, the binary mode,
the interpretive mode, the alphanumeric mode. (2) The most
frequent value in the statistical sense.
Glossary-22
ms. Millisecond; 0.001 second.
NAND gate. A gate in which the output is 0 only if all inputs are
1.
Glossary-23
NOR. A logic operator having the property that if P is a
statement, Q is a statement, R is a statement, ... , then the NOR of
P, Q, R, ... is true if all statements are false, false if at least one
statement is true.
Glossary-24
open coUector. A switching transistor without an internal
connection between its collector and the voltage supply. A
connection from the collector to the voltage supply is made
through an external (pull-up) resistor.
Glossary-25
overvoltage. A voltage of higher than specified value.
parity check. (1) A redundancy check that uses a parity bit. (2)
Synonymous with odd-even check.
Glossary-26
port. An access point for data entry or exit.
Glossary-27
programming language. (1) An artificial language established for
expressing computer programs. (2) A set of characters and rules
with meanings assigned prior to their use, for writing computer
programs.
Glossary-28
of the digit place with the next lower weight is a positive integer
(the radix). The permissible values of the character in any digit
place range from 0 to one less than the radix.
Glossary-29
retry. To resend the current block of data (from the last EOB or
ETB) a prescribed number of times, or until it is entered correctly
or accepted.
RGBI. Red-green-blue-intensity.
row address strobe (RAS). A signal that latches the row address in
a memory chip.
Glossary-30
schematic. The representation, usually in a drawing or diagram
form, of a logical or physical structure.
Glossary-31
short circuit. A low-resistance path through which current flows,
rather than through a component or circuit.
88. Start-stop.
Glossary-32
static memory. RAM memory using flip-flops as the memory
elements. Data is retained as long as power is applied to the
flip-flops. Contrast with dynamic memory.
STX. Start-of-text.
Glossary-33
interpretation and use. (2) The structure of expressions in a
language. (3) The rules governing the structure of a language.
(4) The relationships among symbols.
track. (1) The path or one of the set of paths, parallel to the
reference edge on a data medium, associated with a single reading
or writing component as the data medium moves past the
component. (2) The portion of a moving data medium such as a
drum, or disk, that is accessible to a given reading head position.
v. Volt.
Glossary-34
video. Computer data or graphics displayed on a cathode ray
tube, monitor, or display.
w. Watt.
Glossary-35
Notes:
Glossary-36
Bibliography
- INTEL Corporation.210844.001
BibJiograpby-l
Notes:
Bibliograpby-2
Index
AAA 6-8
AAD 6-9
AAM 6-9
AAS 6-9
access time, track-to-track 9-22
ADC 6-6
ADD 6-6
additional ROM modules 5-12
address generation, DMA 1-13
address latch enable 1-26
address latch enable, buffered 1-23
address mode
real 1-4
address space, 1/0 1-15
address, segment 1-4
addresses, CMOS RAM 1-45
addresses, page register 1-13
AEN 1-23, 1-26
ALE 9-3
alternate key 5-19
AND 6-10
APL 9-5
application guidelines 9-5
arithmetic instructions 6-6,6-27
ARPL 6-22
ASCII, extended 5-12
Index-l
B
BALE 1-22, 1-23
bandwith 1-7
BASIC 9-5
basic assurance test 4-4
BASIC interrupts 5-6
BAT 4-4
battery connector 1-58
BHE 1-13
BIOS fixed disk parameters 1-51
BIOS memory map 5-10
BIOS programming hints 5-10
block diagram
keyboard interface 1-38
system xv
system board 1-6
system timer 1-9
board, system 1-3
BOUND 6-19
break code 4-4, 4-10
break key 5-19
buffer, keyboard 4-3
buffered address latch enable 1-23
buffers, video display 9-10
bus controller 1-23
bus cycle 1-7
busy loop 9-11
bypassing BIOS 9-22
byte high enable 1-13
c
CALL 6-14
cancellation, multi-tasking 9-21
capacitor, variable 1-31
caps lock key 5-19
CBW 6-10
Index-2
channel, 1/0 1-15
channels, DMA 1-7,1-12,1-15
character codes 5-13
classes, wait loop 9-13
CLC 6-19
CLD 6-20
CLI 6-20
CLK 1-22
clock
real-time 1-45
clock cycle 1-7
clock line, keyboard 1-43,4-5,4-14,4-15
clock, system 1-22
CMC 6-19
CMOS RAM 1-45
CMOS RAM addresses 1-45
CMOS RAM configuration 1-48
CMOS RAM I/O operations 1-54
CMP 6-8
CMPS 6-12,6-13
COBAL 9-5
code
device driver 9-11
machine identification 9-23
machine-sensitive 9-23
codes
character 5-13
extended 5-17
multi-tasking function 9-11
color burst signal 1-31
command codes, DMA controller 1-14
commands
I/O 9-8
keyboard 4-12
keyboard controller 1-40
keyboard system 4-5
comparison instructions 6-25
compatibility, hardware 9-3
completion, multi-tasking 9-21
condition, wait 9-12
configuration record 1-45
configuration, CMOS RAM 1-48
Index-3
connectors
battery 1-58
I/O channel 1-15,1-17,1-18,1-19
keyboard 1-58,4-23
power LED and keylock 1-58
power supply 1-57
power supply output 3-6
speaker 1-57
system board 1-57
constants instructions 6-26
control
game 9-10
sound 9-10
control key 5-19
control transfer instructions 6-13
controller, keyboard 1-31
controllers
bus 1-23
DMA 1-7, 1-12, 1-13, 1-22
interrupt 1-10
refresh 1-7
controls, math coprocessor 1-29
coprocessor programming 2-3
coprocessor, math 2-3
copy protection 9-11,9-22
Ctrl state 5-17
CTS 6-20
CWD 6-10
cycle
bus 1-7
clock 1-7
microprocessor 1-7
DACKO-DACK3 1-26
DACK5-DACK7 1-26
DAS 6-9
data area, ROM BIOS 9-10
data communication equipment 8-3
data input, keyboard 4-15
Index-4
data line, keyboard 1-43,4-5,4-14,4-15
data output, keyboard 4-15
data stream 4-14
data terminal equipment 8-3
data transfer instructions 6-3, 6-24
data transfer rate, diskette 9-22
DEC 6-8
decodes, memory 1-22, 1-23
default segment workspace 5-9
descriptors 1-5
device driver code 9-11
diagnostic checkpoint port 1-29
direct memory access 1-12
disk pointer 9-8
disk_base 9-8,9-22
diskette change signal 9-23
diskette data transfer rate 9-22
diskette rotational speed 9-22
diskette track density 9-22
diskette write current 9-23
DIV 6-9
divide error exception 9-7
DMA 1-12
DMA address generation 1-13
DMA channels 1-7,1-12, 1-15
DMA controller 1-7,1-22
DMA controller command codes 1-14
DMA controller 1 1-12
DMA controller 2 1-13
DMA controllers 1-12
DOS 9-6
DOS function calls 9-7
DOS interrupts 5-6
DRQO-DRQ3 1-25
DRQ5-DRQ7 1-25
dummy load 3-4
Index-5
E
EIA/CCITT 8-3
encoding, keyboard 5-12
ENTER 6-18
ESC 6-20
exception, divide error 9-7
extended ASCII 5-12
extended codes 5-17
FABS 6-28
FADD 6-27
fan out 3-6
FCHS 6-28
FCLEX 6-30
FCOM 6-25
FCOMP 6-25
FCOMPP 6-26
FDECSTP 6-31
FDIV 6-27
FFREE 6-31
FIFO 4-3
FINCSTP 6-31
FINT 6-29
FLD 6-24
FLDCW 6-30
FLDENV 6-30
FLDLG2 6-27
FLDLN2 6-27
FLDL2T 6-26
FLDPI 6-26
FLDZ 6-26
FLDI 6-26
FMUL 6-27
FNOP 6-31
FORTRAN 9-5
Index-6
FPATAN 6-29
FPREM 6-28
FPTAN 6-29
French keyboard 4-19
FRNDINT 6-28
FRS TOR 6-30
FSAVE 6-30
FSCALE 6-28
FSETPM 6-29
FSQRT 6-28
FST 6-24
FSTCW 6-30
FSTENV 6-30
FSTP 6-25
FSTSW 6-30
FSTSWAX 6-30
FSUB 6-27
FTST 6-26
function calls, DOS 9-7
function codes, multi-tasking 9-14
FXAM 6-26
FXCH 6-25
FXTRACT 6-28
FYL2X 6-29
FYL2XP1 6-29
F2XM1 6-29
Index-7
H
hard code 5-10
hardware compatibility 9-3
hardware interrupts 5-6
HLT 6-20
hooks 9-11
Index-8
instructions
arithmetic 6-6,6-27
comparison 6-25
constants 6-26
control transfer 6-13
data transfer 6-3, 6-24
logic 6-10
processor control 6-19
protection control 6-21
shift rotate 6-10
string manipulation 6-12
INT 6-18
interface, keyboard 4-3
interfaces, multi-tasking 9-12
interfaces, SYS code 9-18
interrupt controller 1-10
interrupt mask register 9-10
interrupt service routine 1-24
interrupt vectors 9-10
interrupt, single step 9-7
interrupts 1-15,5-5
BASIC 5-6
DOS 5-6
hardware 5-6
program 5-3
system 1-10
INTO 6-19
lOR 1-24
lOW 1-24
lRET 6-19
IRQ 2 9-8
IRQ 9 9-4, 9-8
IRQI4-IRQI5 1-24
IRQ3-IRQ7 1-24
IRQ9 1-24
Italian keyboard 4-21
JB/JNAE 6-16
JBE/JNA 6-16
Index-9
JCXZ 6-18
JE/JZ 6-16
JL/JNGE 6-16
JLE/JNG 6-16
JMP 6-14
JNB/JAE 6-17
JNBE/JA 6-17
JNE/JNZ 6-16
JNL/JGE 6-17
JNLE/JG 6-17
JNO 6-17
JNP/JPO 6-17
JNS 6-17
JO 6-16
joystick support 5-6
JP/JPE 6-16
JS 6-16
jumper, RAM 1-30
Index-lO
inhibit switch 1-37
interface 4-3
interface block diagram 1-38
layout 1-33,4-10,5-14
outputs 4-10
routine 5-21
specifications 4-23
system commands 4-5
keyboard, French 4-19
keyboard, German 4-20
keyboard, Italian 4-21
keyboard, Spanish 4-22
keyboard, U.K. English 4-18
keyboard, U.S. English 4-17
keylock 4-3
keys 4-3
alternate 5-19
break 5-19
caps lock 5-19
combinations 5-20
control 5-19
number lock 5-20
pause 5-19
print screen 5-19
scroll lock 5-20
shift 5-18
SYS REQ 9-15
system request 5-6,5-20
keys, typematic 4-4
LAHF 6-6
LAR 6-22
layout system board 1-60
layout, keyboard 1-33,4-10,5-14
LA17-LA23 1-22
LDS 6-5
LEA 6-5
LEAVE 6-18
Index-11
LED 4-4
LES 6-6
LGDT 6-21
LIDT 6-21
light emitting diodes 4-4
line contention 4-15
line, multipoint 8-5
line, point-to-point 8-5
LLDT 6-21
LMSW 6-22
load current 3-3
LOCK 6-20
LODS 6-12,6-13
logic instructions 6-10
LOOP 6-17
loop, busy 9-12
LOOPNZ/LOOPNE 6-18
loops, program 9-10
LOOPZ/LOOPE 6-18
LSL 6-22
LTR 6-21
Index-12
microprocessor 1-3, 1-4, 1-7
microprocessor cycle 1-7
modes, graphic 5-8
modules, RAM 1-12
modules, ROM/EPROM 1-11
MOV 6-3
MOVS 6-12,6-13
MUL 6-9
multi-tasking
cancellation 9-21
completion 9-21
function codes 9-14
interfaces 9-12
provisions 9-11
serialization 9-12
startup 9-12,9-20
subsystems 9-16
multipoint line 8-5
NEG 6-8
network, nonswitched 8-5
network, switched 8-5
NMI 1-10, 1-29
no load protection 3-5
non-maskable interrupt 1-29
nonswitched network 8-5
NOT 6-12 .
NumLockstate 5-17
number lock key 5-20
o
operations, CMOS RAM I/O 1-54
OR 6-11
Index-13
OSC 1-27, 1-31
oscillator 1-27
OUT 6-5
output buffer, keyboard controller 1-40
output port, keyboard controller 1-44
output protection 3-4
output voltage sense levels 3-6
output voltage sequencing 3-4
outputs, keyboard 4-10
outputs, power supply 3-3
OUTS 6-13
Index-14
processor control instructions 6-19
program interrupts 5-3
program loops 9-11
programming hints, BIOS 5-10
programming, coprocessor 2-3
protected mode 1-5, 5-6
protection control instructions 6-21
protection, no load 3-5
provisions, multitasking 9-11
PUSH 6-4
PUSH SP 9-7
PUSHA 6-4
PUSHF 6-6
R
RAM jumper 1-30
RAM modules 1-12
RAM subsystem 1-12
RAM, CMOS 1-45
rate, typematic 4-4, 4-7
real address mode 1-4, 2-5
real mode 5-3
real-time clock 1-45
record, configuration 1-45
refid=admod.virtual 1-4
REFRESH 1-26
refresh controller 1-7
refresh request generator 1-8
regulation tolerance 3-3
requirements, input 3-3
reserved memory locations 5-9
reserved scan codes 1-36
RESETDRV 1-23
reset, system 5-21
RET 6-15
ROM BIOS 9-7
ROM BIOS data area 9-10
ROM modules, additional 5-12
ROM scan codes 5-12
Index-15
ROM subsystem 1-11
ROM/EPROM modules 1-11
rotational, speed 9-22
routine, interrupt service 1-24
routine, keyboard 5-21
RS-232 8-3
s
SAHF 6-6
SAO-SAI9 1-22
SBB 6-7
SBHE 1-26
scan code translation 1-32
scan codes 4-12
scan codes, key 4-10
scan codes, ROM 5-12
SeAS 6-12,6-13
scroll lock key 5-20
SO)-SOI5 1-23
segment address 1-4
segments 1-4
sense levels, output voltage 3-6
sequencing, output voltage 3-4
serialization, multi-tasking 9-12
SGOT 6-21
shift counts 9-7
shift key 5-18
shift key priorities 5-20
shift rotate instructions 6-10
Shift state 5-17
shift states 5-18
SlOT 6-21
signals
diskette change 9-23
power good 3-5, 3-6
system clock 9-3
signals, I/O channels 1-22
single step interrupt 9-7
SLOT 6-21
Index-16
SMEMR 1-25
SMEMW 1-25
SMSW 6-22
sound control 9-10
Spanish keyboard 4-22
speaker 1-30
speaker connector 1-57
speaker tone generation 1-9
special vectors 5-6
specifications, keyboard 4-23
startup, multi-tasking 9-12,9-18
states
Ctrl 5-17
Num Lock 5-17
Shift 5-17
status register, keyboard controller 1-38
STC 6-19
STD 6-20
STI 6-20
STOS 6-12,6-13
STR 6-22
string manipulation instructions 6-12
SUB 6-7
subsystem, RAM 1-12
subsystem, ROM 1-11
subsystems, multi-tasking 9-16
support joystick 5-6
switched network 8-5
switches
keyboard inhibit 1-37
type of display 1-31
SYS code interfaces 9-18
SYS REQ key 9-15
system BIOS usage 5-3
system block diagram xv
system board 1-3
system board block diagram 1-6
system board connectors 1-57
system board layout 1-60
system bus high enable 1-26
system clock 1-22
system clock signal 9-3
system interrupts 1-10
Index-17
system performance 1-7
system request key 5-6, 5-20
system reset 5-21
system timer block diagram 1-9
system timers 1-8
T
T/C 1-26
table, translation 1-34
tables, parameter 9-8
terminal count 1-26
TEST 6-11
test input port, keyboard controller 1-44
time outs 9-15
timer/counter 1-9
timer / counters 1-8
timers, system 1-8
tone generation, speaker 1-9
track density, diskette 9-22
track-to-track access time 9-22
translation table 1-34
translation, scan code 1-32
tri -state 1-26
type of display adapter switch 1-31
typematic keys 4-4
typematic rate 4-4, 4-7
u
U.K. English keyboard 4-18
U.S. English keyboard 4-17
Index-18
v
variable capacitor 1-31
vectors, special 5-6
VERR 6-22
video display buffers 9-10
virtual address mode 1-4, 2-5
w
WAIT 6-20
wait condition 9-12
wait loop classes 9-13
workspace, default segment 5-9
write current, diskette 9-23
x
XCHG 6-5
XLAT 6-5
XOR 6-11
z
zero wait state 1-27
Index-19
Numerals
OWS 1-27
80286 1-3, 1-4, 1-7
8042 1-31
82288 1-23
8237A-5 1-12
8254-2 1-8
8259A 1-10
Index-20
----
--- ----
- --
- ---
- The Personal Computer
-----
--_.- - --- Hardware Reference Library
Comments:
NO POSTAGE
NECESSARY
111111 IF MAILED
INTHE
UNITED STATES
9J911 PIO.:!
----
-----
-- -- -
- - ----
---_.-
- ----- ---
---
®
1502494
Printed in the United States of America
This package contains updated pages for the Technical Reference
Option and Adapters manual. It also contains modules with
information about specific IBM Personal Computer AT options.
Replace your pages with the updated pages and add these modules
in the following sections.
Storage Devices
Memory
Adapters
6137872
Miscellaneous
Volume 1
• Expansion Unit
- IBM Expansion Unit
• Displays
• Printers
• Storage Devices
• Memory Expansion
vii
Volume 2
• Adapters
• Miscellaneous
viii
System to Adapter Compatibility Chart
IBM Portable
IBM Personal IBM Personal Personal IBM Personal Expansion
Computer Computer XT Computer Computer AT Unit
5 1/4" Diskette
Drive Adapter
Color Graphics
Monitor Adapter
Monochrome Display
and Printer Adapter
Printer Adapter
Asynchronous
Communications
Adapter
Serial/Parallel
Adapter
Game Control
Adapter
...,-
-......
_
""'."'.~-.'-"'-'
--_- -_._--
---~
-_.,....,""- -
... --""
...
-.-
,..- ..,.,."
--
DOllble Sid,cd
Diskette :Orive
Contents
Description .................................... 1
Interfaces ..................................... 1
Input Signals ............................... 2
Output Signals ............................. 4
Specifications .................................. 5
Logic Diagrams ................................. 7
ill
iv
Description
Characteristic Requirement
Certification Double sided
96TPI
80 tracks/ surface
Soft sector
Recording density 9,646 bits per inch
Media coercivity 600 to 650 Oersteds
Jacket Standard 5-1/4 inch
Diskette Requirements
The signals for operating the diskette drive are generated through
the IBM Personal Computer AT Fixed Disk and Diskette Drive
Adapter.
Interfaces
Following are the signals and pin assignments for the dc power
interface.
All outputs from the drive can sink 40 rnA at the active level. The
system provides pull-up registers.
Input Signals
All input signals are active when low.
-Motor On
An active level of this signal starts the drive motor. There must
be a 750 millisecond delay after '-motor on' becomes active
before any read or write operation starts.
-Direction Select
-Step
-Write Data
Each time this signal changes from the inactive to inactive level,
the current through the read/write heads reverses, thereby writing
-Write Gate
-Side 1 Select
Output Signals
-Index
When the drive senses the index hole in the diskette, it generates a
1- to 8-microsecond active pulse on this line.
-Track 00
An active level of this signal means that the read/write heads are
at Track 0 (the outermost track).
-Write Protect
Specifica tions
Physical Specifications
Performance Specifications
-o
,...
....CI)
CI)
.c
~
CI)
>
.~
c
CI)
=::CI)
..lI::
til
C
"C
CI)
"0
en
CI)
:il
j
o
C
~ I
I
T
J ,1
I
I
~~9
l'C) I 101 I
~ I\ 51K 12 I
~
01 02
=-
l'C)
y- ST(]P
-Kj- --Kt
11 J
~JJOSI
A10
•
11 g~
2.2" un I
I
=-o AI I
=
I UK R8 C7 I
!i,IM I
I 12
Ie. O.15.u 9
I ~ 1~
~
ell
~
e8 le2 I
~:-72.2"
M51720P e6 R1S
I
I
VAl
30K •9 6
RJ
4JK O.OOI/JD.47/J ,.. 33" M51721l
8
0
I
I
~ I
A3
lOOK 16 A6
~
5 I
l'C) 5
I
o ~A?-
I
A.
I .3K • 6 R.3 I
:I. I 0.15/.1 12K
~
~ ~ 330~:! I
-< I
•
n
I
l'C)
I GND
C3
10.056/J
-"--- 13 I
141
A2 e. 13
lc4 RIJ R18 2 R14
'"~ I
,
1
330Sl
l.li! un
33K
O.b~'/J 0 047 lJon '( I
. "( I
1
r. r. ( HI
I
I RI2 I
I -.J
I J30n I
I I
I I
I I
I
:=£
I
bLED
I
.___l_···_D_~
I
I
I n I
, , ... -
High Capacity
I)iskette Drive
Contents
Description .................................... 1
Interfaces ..................................... 1
Input Signals ............................... 2
Output Signals ............................. 4
Power Sequencing ........................... 5
Drive-in-Use Indicator ....................... 5
Specifications .................................. 5
Logic Diagrams ................................. 7
iii
Notes:
iv
Description
Characteristic Requirement
Certification Double sided
96 TPI
80 tracks / surface
Soft sector
Recording density 9,646 bits per inch
Media coercivity 600 to 650 Oersteds
Jacket Standard 5-1/4 inch
Diskette Requirements
The signals for operating the diskette drive are generated through
the IBM Personal Computer AT Fixed Disk and Diskette Drive
Adapter.
Interfaces
The signals and pin assignments for the dc power interface are as
follows:
All outputs from the drive can sink 40 rnA at the active level. The
system provides pull-up registers.
Input Signals
Following are descriptions of the input signals.
The Drive Select signals enable or disable all other drive interface
signals, except 'motor on'. When 'drive select' is at the active
level, the drive is enabled. When it is at the inactive level, all
controlled inputs are ignored, and all drive outputs are disabled.
The enabled or disabled condition of the drive is established
within 500 nanoseconds after a change to the select input,
excluding head-load time and settling time.
-Motor On
The spindle motor runs when this input is active. The drive
requires a 1 second delay after '-motor on' becomes active
before a read or write operation.
- Direction Select
-Step
-Write Gate
An active level of this input enables the write current circuits, and
the Write Data input controls the writing of information.
Transitions of this line occur 4 to 8 microseconds before the first
significant data bit, and 4 to 8 microseconds after the last
significant data bit. Making this input inactive removes all
current from the read/write heads and allows the read circuits to
operate within 590 microseconds All motor-start, head-settle,
and head-load times are complied with before the line becomes
active.
-Side 1 Select
Making this input active selects the upper head; otherwise the
lower head is selected.
Output Signals
Following are descriptions of the output signals.
-Index
When a diskette's index hole aligns with the hole in the diskette
jacket, a 1- to 8-microsecond active pulse is generated on this
line.
-Track 00
-Read Data
- Diskette Change
Power Sequencing
The I write gate I signal is turned off and is kept off before power
is switched on or off. The read/write heads return to Track 00
when the system power is switched on.
Drive-in-Use Indicator
The Drive-in-Use indicator lights when the drive is selected.
Specifications
Physical Specifications
Performance Specifications
HUDD
Of"
HElD 1
Of"
DRIVE
SHECT
MOTIIA OH~'J!!:l"l!16,-j,.~~---Ln===-=====t====~
snPI'Jl.20
TRACKOO
SENSOR
MEDIA
SENSOR
INDEX
SENSOR
-+_________---,
+l2¥ RET \'"J""""-'_ _ _
STEPPINS
J30AZ MIIT1IR
u--~~~+-~-------,
II
co
DO
H--------~--t_ri_t_+------+_~
,,
. ,,
.13.15~
IIBIVIE
• MOTOR
+-----'='--=",ob
--._.-
-........ ,--, _..
l.,lh" r',;
C:()mmunicati()ns
(,:able
Contents
Description .................................... 1
Specifications .................................. 2
iii
iv
Description
Communications Cable 1
Specifica tions
14 6
Modem Communications
Connector Adapter
Or Other RS-232 Connector
co co Data Communications
co co Equipment
COco
~~~ ~
COco
COco
t:-
<:0(2)
co
13 25 5 9
25-Pin 9-Pin
D-Shell D-Shell
Connector Connector
- ;--
8 Carrier Detect
3 Received Data
1..
2 -
3-
- 2 Transmitted Data
DCE
25-Pin
- 20 Data Terminal Ready
Signal Ground
4
5
ADAPTER
9- Pin
CunneclDr 6 Data Set Ready 6_ CD nneclar
_4 Request To Send 7-
5
22
Clear To Send
Ring Indicator
8.
-
9 ..
-
- -
NOTE: ALL OTHER PINS ON THE 25-PIN
CONNECTOR ARE NOT USED.
CONNECTOR SPECIFICATIONS
2 Communications Cable
128KB Memory
Expansion
()ption
Description .................................... 1
Memory Cycles ............................. 1
110 Channel Check ......................... 1
Addressing ................................ 1
Specifications .................................. 1
Voltage Tolerances .......................... 1
Power Dissipation ........................... 2
Temperature Variation ....................... 2
Logic Diagrams ................................. 3
iii
Notes:
iv
Description
Memory Cycles
MEMR and MEMW commands require a l-wait-state, 3-clock
memory cycle. Data moves as a byte (8 data bits and 1 parity bit)
or as a word (16 data bits and 2 parity bits) and is parity-checked
on the adapter. A parity error causes an I/O channel check
(non-maskable interrupt) to the system.
Addressing
This adapter responds to addresses from hex 080000 to hex
09FFFF.
Specific a tions
Voltage Tolerances
The maximum variation of the + 5 V dc is ±5 % at the adapter
pins.
Temperature Variation
The adapter will operate between 10 and 50 degrees Celsius (50
and 122 degrees Farenheit).
IS Q2
1 '"
16 01;
IN~~~~~~ ~
U02
-.
(JQ
~
_.
Q"i
,
LSI2"i
+c;~ab DRIVER
p;Q~ ~
'"
12 as
2 "'
1 ALS<;7l
-MEM C.SI6 (SHT7)
(SHT 7) + LAZ2 17 P2
D LATCH ~
(SHT7) +LA21 4 " 2
FOO (JQ
.~'
2 01 QI lq + RAS (SO (SHT 2) .....
(SHT 7) + LAZO 1<; PI;
.-~~~--~pc; ~
a
(SHT 7) + LA 1';1
(SHT 7) -flREFRESI < 1'3 PO
, P7
~~__.___J
(SHT7) +LA!6
...
N ._-- U 14
QC)
~
=
~
.
AlSOI;
ALS:!4
__ 2 D':i Q<; IE> + (AS CSO (SHT 2)
(">
+"iV o--.~~_._-----.l Db r!L---
8c Qb
.:! ~oc
t'!!'l
~
"CI
~ E~AalE (
I
~
=
~.
C
=
0
..
ALS'32
....
"CI
(SHT 6) + BALE ~~~-- ..
+ ($ (SHT 3.4)
C
=~ 1 28 KB Memory Expansion Option (Sheet 1 of 8)
""
.....
N
(SHT 7) -MEMR
,
9;:)U"/
8 1
J IN
TIME DELAY
PE212"
UI8
J
OCI
~
(SHT 7) -MEMIrv' ~
I 40 80
4
160
6
zoo
8
=
3:
~
121
+CAS
AODR SEL (SHT 5)
a
0
~
~ 11
t UI7
J
12 5
; JUl.
FlO
\...J,
II 10n 6
RNZ
- RAS a (SHT 5)
~ 9 FOB
~ (SHT 1) +CA5 (SO 6
"='
~
~
0
=
fi!l.
(SHT 11 +RAS CSO
0=
"='
e. I, FlO
12 9 10Q 8
0 ALS04 IJ UI • -CAS OL (SHT 51
= (SHT 71 +BAO
5
UIO
• U RNZ
I, FlO
12 14 '3on '3
(SHT 71 - SBHE
9
ALS04
8 ~U1B ../ RN2
-CAS OH (SHT 5)
UIO
+ SBHE (SHT 4)
-BAD (SHT 4)
Q)
Q)
.r::
!!!.
c:
0
:;:::
Q,
0
c:
~
0
l!' ~ .., ";
~ ~~ :.i <;t ~ ; !Ii ~ Si ~ I~ I., c:
IV
Q,
><
w
~
.~~~~
0
E
Q)
~
&D
~ 3 ~
CO
N
,..
~ ~
~
+
l'
"
I
~
I "~ iO I
00
"
""
00
:: ~
c
". ; o.
~
~
• " • , -
~ ~ 0
< . ~I·
~,~ I~ I~
. <
o
:;::
Q.
o
C
o
";
c
as
Q.
>C
W
~
o
E
CD
:&
~ i ~~ ID
!!: ~!2 ~ !!:
~
co
...
('II
~ H~§
t.: ii;" m ;;;;;;
~ ~~~~
8 A
(SHT 3] +MDb 2 H
I~ FOB F260
,;iu,,~ ""'ITYCHECK
(SHT 5)+ MOP OUT I
(SHT 3) + MOB
,8 A
8 EVEN
, + M:lP IN I (SHT 5)
(SHT 3) + MQ9 " C
... "'
(SHT 3) + MOIO " D
(SHT3) + MOil " E
(SHT 3) + MOil " F
N (SHT 3) + HOI, , G
OC (SHT 3) + MOl'; 2 H
~
(SHT 3) + MOIS " I
3:
~~~
~ (SHT 2) -BAO
9
=
~
(SHT 7)-Bt£MR
(SHT 1) >CS
~
II UIC 10
I I,
12 U2
II - }U2 B
10
120 I'fl
F7';
Q 9
g (SHT 2) +SBtE
1 ~ U2 J II (L~(lLR ~
.;, ~-
~
~
(S"T 7) -BMEM , 'I, " LSIZ')
-I/O (1-1 CK (SHT 8)
= 10 VI'! , U2
0=
'! Ulq ,,_ U2 b
=
=
...... 1 28 KB Memory Expansion Option (Sheet 5 of 8)
co
....
..
o
CD
II)
II)
~
~
- ----~-----~
c:
o
i
o
c:
o
III
c:
ca
Q.
><
1l. W
~
o
E
II)
::E
m
~
co
...
('II
,.,.
AD.,
+504
+SD'>
(SHT3)
(SHT3)
AD, ISHT3)
+50&
ADZ +507 (SHT3)
A,J (SHT7)
+ SAO
A,O
+SAI (SHTS)
AZ' +SAZ ISHTS)
AZ8 +SA1 (SHTS)
AZ7
+ SA. ISHTS)
AZb (SHT S)
+ SA'>
~
AZ'>
N +SA6 (SHTS)
QC AZ.
+SA7 (SHTS)
i: AZ,
AZZ
AZI
+SAB
+SM
(SHTS)
(SHTS)
f
+SAIO (SHTS)
AZO +SAII (SHTS)
AI.
+ SAIZ (SHT S)
AI8 + SAl,
..,
(SHTS)
AI1
~
+SAI't (SHTS)
92. Alb
+ SAl") (SHT5)
f
AI'> +SAlb (SHTS)
AI"
f!
+ SAI7
810 A" + SAI8
9"
8 9Z8
819
+ BALE (SHT 1)
o
"CI
80Z
-REFRESH (SHT?)
+RESET DRV (SHT 4)
~
8
IC 128 KB Memory Expansion Option (Sheet 7 of 8)
U':I..,. co:. C".I ~ =
C<lI lEI cD lEI CICI <1:1
C l C I C l C I = 0=.
(1')(1')0':1(1')_""
-
iii'
o
co
iCD
.r:.
!!
c
o
:;::
Q.
o
C
o
'iii
;;;;
~
:
N
c
10
Q.
~
~ - ><
W
~ ~ ~ :~ -
u;>
z
;:;
:
-
;z:
~
~
o
E
Jl!HJ JJJlt JJ
CD
:!:
In
::.:::
co
...
N
Prototype
Adapter
Contents
Description .................................... 1
Adapter Design ............................. 3
IBM Personal Computer AT Prototype Adapter
Layout .................................. 7
Interfaces .................................... 13
Logic Diagrams ................................ 14
iii
iv
Description
The adapter has a voltage bus (+5 Vdc) and a ground bus (0
Vdc). Each bus borders the adapter, with the ground bus on the
component side and the voltage bus on the pin side. A system
interface is also provided on the adapter with a jumper to specify
whether the device has an 8- or a 16-bit data hus.
Prototype Adapter 1
N
!.,
and
Address
Spare ----i Buffer
.....
~ Address Bit 0
Address Bit 0 ~
Address Bit 2 ..f...---- L '_ _ _ _
+s
~ lOKn
~ +8 Bit/-16 Bit Data Bus
t
Jumper JI
Programming
Insert a Jump instruction after all I/O read (lOR) or I/O write
(lOW) assembler language instructions to avoid a potential timing
problem caused by slow I/O devices. The following figure shows
a typical programming sequence.
Before After
Your code Your code
lOR lOR
Your code JMP NEXT
NEXT: Your code
Program Sequence
Your design can use either 8 bits of the data bus (jumper off) or
the full 16 bits of the data bus (jumper on). Most devices have
8-bit data buses.
If your device runs too slow, you must add a wait-state generator
to make the I/O read and write signals longer. First, determine
the time needed by your device from the start of an lOR signal
until it can put data on the system's data bus. Next, compare that
Prototype Adapter 3
time with the time given by the system's microprocessor. The
system microprocessor gives 750 nanoseconds for 8-bit devices
and 250 nanoseconds for 16-bit devices.
design from the time it is given valid data until it is told to take
this data by the lOW signal. The time given by the system
microprocessor from when data is first valid to the device until
the lOW signal goes active and then inactive is shown in the
following figure. Your design can take the data when lOW goes
active (less setup time) or when lOW goes inactive (more setup
time).
lOW Timing
4 Prototype Adapter
Time Delay (Iote) Time Delay (Note) Time Delay (Note)
PE21214 PE21214 PE21214
+ 1/0 Cycle
(Sheet 2 01 11)
1
I~ I
4 10 6 B
I
..L
rt.. 10 6 B
~ ...
c::>
c::>
c::>
~
......
c::>
2 3 4
;i\
: Jumper
S
~ 14 S14 14ALS244
S" '----"-3---11' ClK Q5 15 UB 5 + 1/0 Channel Ready
:i
/I)
'--_ _ _ _ _ _ _ _ _ _---=.1=0 Reset
4 Set
Tab Pin AID
(Sheet 4 01 11)
+5V "
f.
/I)
2 0
• 16-Bit Design
• 8-Bit Design
Control Lines
The other set of control lines is MEMR and MEMW. These are
active when addressing all memory locations. If you wish to
design memory that will answer to addresses above the first
6 Prototype Adapter
megabyte, you must use these lines and decode address bits 20
through 23 to select the particular address range your memory
occupies.
Prototype Adapter 7
are 3.18 millimeters (0.125 inch) wide. One of these is just above
the two rows of D-shell connector holes, and each of the other
four is in a corner of the adapter.
8 Prototype Adapter
Component Side
The component side of the adapter has a ground bus, 1.27
millimeters (0.05 inch) wide screened onto it and two card-edge
tabs labeled Al through A3l and C 1 through C31. The following
figure shows the ground bus and card edge-tabs.
Prototype Adapter 9
The component side of the adapter also has a silk screen printed
on it that may be used as a component guide for the I/O
interface. The following figure shows this silk screen.
:;
c:=Jc::=::3
N
::0
M
::0
Du
s02i
~
::0
08 '"
::0
<D
::0
sl sl SOCS
r--
::0
sD~
ro
::0
08
5
0">
::0 00
S
D~
10 Prototype Adapter
Pin Side
The pin side of the adapter has a 5-Vdc bus, 1.27 millimeters
(0.05 inch) wide, screened onto it, and two card-edge tabs:
labeled Bl through B3l and Dl through Dl8. The following
figure shows the 5-Vdc bus and card edge-tabs.
I')
I
Prototype Adapter 11
Card-Edge Tabs
Additional Information
Additional information regarding the I/O interface may be found
under "I/O Channel" in Section 1 of IBM Personal Computer
AT Technical Reference manual. Logic diagrams of the IBM
Personal Computer AT Prototype Adapter may be found later in
this section. If the recommended interface logic is to be used, the
following figure shows the recommended components and their
TTL numbers.
Recommended Components
Note: 11, U8, and U9 are not required for a design using only
the low-order 8 bits of the data bus. Designs using all 16 bits
of the data bus require these components.
12 Prototype Adapter
Interfaces
Internal Interface
Because of the number of adapters that may be installed in the
system, II 0 bus loading should be limited to 1 Schottky TTL
load. If the recommended interface logic is used, this requirement
is met. Power limitations may be found under "Power Supply" in
the IBM Personal Computer AT Technical Reference Manual.
External Interface
The following figure lists the recommended connectors for the
rear of the adapter.
Recommended Connectors
Prototype Adapter 13
.... 74LS24,
.&:0. (SHT 3)
,.,.""mo~.
B 16 I/O DECODE FOR PROTOTYPE: CARD
A~A A7AbA 4 A, A Al ~
(SHT
(SHT
31
3)
(AS) + DATA BIT !
(A7) +OATA BIT 2
., A
'+ A
B 17
B I.
1
(H[XnOQ 1 100000000
o
~
(HEX)'3IF I I 0 0
(Ab) + DATA BIT., A U,
"
-.
(SHT 3) C;
BUFFERED
(SHT 3) (A'5) + DATA BIT '+ 6 A 14
,~
- DATA BUS DrCOOE" RANGE. (J'O
(SHT 3) (A4) + DATA sn '} 1 A BITS 0-7
12
~
(Al) + DATA BITt.
(SHT 3)
(SHT 3) (AZ) + DATA BIT 7
8 A
9 A
" n
~
> -.o
~
-
!
~
I'
7'tAlS244
ENABLE LOW Bm
~b
71+500
~ + 1/0 CYCLE
:-BJOR (SHT 21
(SHT 2)
..,
(J'O
~~~~~~~~l'il
"'I ~~
~~ (BI1) -lOW 11
~~~
~~~
(BIZ) -SMEMR
(BII) -SMEHW
(BI4) -IOO
(SPARE) )
4
8 :3
7JJ.
(SHT3) (A,I) +ADOR. BIT 0 )
~~ (A,O) + ADOR. BIT I )
~~ (A29) + ADDR. BIT 2 )
i~~i~: ~:~~;:=:~~:
>------- II
:~
~=====~'
~ft---==::j=='--~ti AIA~",I~ rb
j A2
ENl
., II l -110 DECOOE (SHT 21
"00 HE1<-l1F <EX INCLUSIVE)
(SHT3) (AII)+A[N '5 EW2 b
1
L 4Elfi
'"20
+'5V6 '(1+ NOTES:
I IF THE liD DE.VICE REQUIRES A 16 BIT WIDE
DATA BUS, THEN INSTAU_ JUMPER JI. fOR
8 BIT WIDE I/O DEVICES NO JUHPERING
IS REQUIRED.
2D
+sv
t; f-iID
(8..".
- ENABLE HIGH BYTE
74ALS244 1,.J EN
ISHT 4) (e I) - SSHE
[SHE. 0;) (e9) SPARE U8 1'4
(SHT 4) (C[O) - MEMW 18
SPARE
12
IIG"
~
Q
f
-110 DECODE 19 G
...
....VI
Prototype Adapter (Sheet 2 of 4)
...
=" (SHT 1) GROUND BI AI - [10 CHANNEL CHECK
+RESET DRV B2 A2 +DATA BIT 7 (SHT 1)
:p (SHT 1) +';VDC B3 A3 +DATA BIT 0
=
....
+IRQ q
-';VDC
B4
B<;
A4
A<;
+DATA BIT <;
=
.... +DRQ Z 80 Ao
+DATA BIT 4
+DATA BIT 3
~ -IZVDC B7 A7 +DATA Bn 2
+ 0 WAIT STATE 88 A8 +DATA BIT I
~ B9 A9
+IZ VDC +DATA BIT 0 (SHT 1)
>
C.
(SHT 1) GROUND
(SHT 1) -SHE'" W
BIO
BII
AIO
All
+1/0 CHANNEL READY
+AEN (SHT 1)
.@i BIZ Al2
.... ~
-SMEHR
al> 611
+ADDRESS BIT Iq
...
~
-lOW
(SHT 1) -lOR BI4
BI<;
AI4
AI~
+ ADDRESS BIT IB
+ ADDRESS BIT 17
-DACK 3 + ADDRESS BIT 10
+DRQ 3 Blo Alo + ADDRESS BrT l'i
- DACK I BI7 AI7 + ADDRESS BIT 14
-DRQ I BIB AI8 + ADDRESS BIT 13
-REFRESH BI9 AI'! +ADDRESS BrT IZ
ClK 120 1020 + ADDRESS BIT II
+IRQ 7 121 1021 + ADDRESS BIT 10
+IRQ 0 IZ2 1022 + ADDRE SS BIT q (SHT1)
+IRQ '; B2~ AZ1 + ADDRESS BIT B
+IRQ 4 124 1024 +ADDRESS BIT
+IRQ 3 12~ A2~ + ADDRESS BIT 0
-DACK Z 120 A20 + ADDRESS BIT <;
+T/( 127 1027 + A~DRESS BIT 4
+BAlE 928 1028 + ADDRESS Bn 3
(SHT 1) +<;V DC IZ9 iAZ9 + ADDRESS BIT
OSC no A~O + ADDRESS BIT I
(SHT1) GROUND _I~,-- ~_'_- + ADDRESS BIT 0 (SHT 1)
DI CI
(SHT 2)
-MEM CsI6
-1/0 CsI6
+IRQ 10
D2
D,
C2
("3
-
+
+
sBHE
LA ADDRESS
LA ADDRESS
BIT
BIT
2,
22
(SHT2)
+ IRQ II D4 C4 BIT 21
DI) + LA ADDRESS
CI)
+ IRQ 12 + LA ADDRESS BIT 20
+ IRQ 1"3 D6 C6 + LA ADDRESS BIT 19
D7 C7 + LA ADDRESS BIT 18
+ IRQ 14
-DACK 4 DB CB BIT 17
+ LA ADDRESS
+DRQ 4 D9 C9 (SHT2)
- MEMR
-DACK I)
DID cia - MEMW (SHT2)
+DRQ I) DII CII (SHT2)
+ DATA HIT 8
DI2 CI2 (SHT2)
-DACK 6 + DATA BIT 9
+DRQ 6 DI"3 CI"3 (SHT2)
+ DATA BIT 10
-DACK 7 014 CI4 + DATA BIT II (SHT2)
OIl) (II) (SHT2)
+DRQ 7 , Clf> + DATA BIT 12
+1) VDC 16 + DATA BIT 1"3 (SHT2)
017 CI7 (SHT2)
-MASTER + DATA BIT 14
GND OIB CI8 + DATA BIT II) (SHT 2)
i
E
t
i
..
~
....... Prototype Adapter (Sheet 4 of 4)
18 Prototype Adapter
-
--- - ---
------
- --- Pcmmai C'omputer
-
------
--- --- Hardware R ejerence
Librarv
512KB Memory
Expansion
Option
Contents
Description .................................... 1
Memory Cycles ............................. 1
Memory Address Switches .................... 1
1/ 0 Channel Check ......................... 3
Specifications .................................. 3
Voltage Tolerances .......................... 3
Power Dissipation ........................... 3
Temperature Variation ....................... 3
Logic Diagrams ................................. 4
iii
iv
Description
Memory Cycles
MEMR and MEMW commands require a 1-wait-state, 3-clock
memory cycle. Data moves as a byte (8 data bits and 1 parity bit)
or as a word (16 data bits and 2 parity bits) and is parity-checked
on the adapter. A parity error causes an I/O channel check
(non-maskable interrupt) to the system.
~~~~~~~~~~ ~~~~~~~~
Memory
Expansion
Adapter
~~~~~~~~~~ ~~~~~~~~
Memory
Expansion
Adapter
Specifications
Voltage Tolerances
The maximum variation of the +5 Vdc is ±5% at the adapter
pins.
Power Dissipation
The +5-Vdc power used by the adapter is a maximum of 5.25
watts, and the maximum current used is 1 ampere.
Temperature Variation
The adapter will operate between 10 and 50 degrees Celsius (50
and 122 degrees Farenheit).
SWI
SWii!
,
7:~:
r
S2<NQ!@
lu>
OJ2 NOT@
I
LSb8Z
QICOHPARATOR
02
_.
Q
\IQ
_.
5Wl" 1 en
sw'+ Ii':! I QIf U6Z ~
ISHT?
______..
SWto ~
,w..·.+_--'·t;_.//
b - • ••• ~ :Q7 p-:Q~ 11"b>~1i..VE=-'----1r----------------------
2 uL - HEM CSlb (SHT 7)
~
(SHTT
SW7./
'-.==.=--+--+-~ PI
---11---------.=..:
I' Q8 t AL.So;H
TRAONS~flHNT
~
(SHT7) --..jh------------+---+-""'!.. P2 ~ 2: FlO
\IQ
(SHT7) ""1
jtljl::;:=========t=:t~:::: ~,J: ~~ I~
eso
~
.
+RAS (SHT 2)
[SHT7)
-RH' ,::,\!bL-__<401 QI
(SHTT)
{SHTT)
,.-~ T P,
P7'
1;---t-- I G ~ 1
UII' If 02 Q2\-l117~------- +AAS CS I (SHT 2)
:3
rIJ,
1 T P8 I~!O 14 Fll9 12 !12~
.-+------' RIC~Kn ~~~ 0 ii"81 '\A to 111.:;.._ _ _ _ _ _ __
'5 'All ~9;JUI; 0, alr- +AAS CSZ (SHT 2)
UI I"'''''
""'"
N SW9
-;:--".
~
SI(NOTEl)
!III;; IR QI
'O"'A •• TO'
--4:F1Z
9 Z
"G' l ...
,......tJ.!..0 Yilt
S"O~~ ~UI;)II en
~
+RAS (SHT 2)
,~
., i j - S~~~.I2'i L- 10'+ QI+ 1'+
SWII I" ... Ql UitO '5 Ul ~LSOLt
t8
I SW12 I QIf I,,, If r- 11 UIC 12 '5 0') Q'5;i-!'!!!..--......- - - - - +CAS eso (SHT 2)
~
sw" 1.1 __ ------'.L
'" •• Jr.ii I>" I-
SlOb 81 "'~~ +'5~ alb ALSOIf
Tn ----;; Q6~1"-.-__.__+-----
!
SWIIf 07 ., UIC If l Db + (AS (5J. (SHT 2)
$WI') _ _ _ ..J 2 QS
L-~~-+~4_--------_+~1 :~ ~~
Ll-l~--I-__l_--------_l--,,''11'1 ~ ENABLE C
LJ-+++---------t-Il1 P,
f.
§
L _ _ _ _ _ _ _ _.....
1':1:
~P.
P7
o
"C:I
~'~
-----.iJUIfr- +CS (SHT 3,4)
Q;
(SHT81
§
VI 51 2 KB Memory Expansion Option (Sheet 1 of 8)
.,
~
iD
'" ~
iD iD
"
~
"~
"
"
"
~
~
"-
~
w
"...
~
"
~
" ~ i ~
a <I ~
• J
N ~
~ ~ ~ ~ ~
c
~ ~ ~ + ,
-co
N
o
....CD
CD
.c:
~
c
o
i
o
'" '" . o
c
~~~S~5~S ";
!!:_'" !!: N ~~ ... Q=,,"
C
lIS
Q.
><
W
~
o
E
CD
:t
B llF-~-t--~
IX!
~3,!~ :.:::
,..
N
an
o
fl 5
,
;0 ;0
•" •"
;0 ;0
~
~
~ ~
~ '< ~ '< ~
-..
OJ
o
C')
CII
CII
~
..
I:
.2
o
Q.
I:
o
IIJ
~ I:
~ 00
1I'
It!
~ ~~ « ~~ : ;r; ~ ~ ~ I~ ,'" Q.
><
W
~
o
E
CII
:::?i
III
~
C'oI
,...
It)
C
o
III
c
m
Q.
)(
UJ
~
o
E
CD
:::E
a:J
~
C"I
.,...
~:;
- - .
3
10
"
~ ~ ~
" "
~
a
~ ~;
~
75· ~ _~~---'--,
" g
§
0"
~
s
<
"
-
00-
0
It)
.....
Q)
~-~-----L.-, Q)
< .r::
!e
I:
0
:0::
Q.
0
I:
0
III
I:
IV
Q.
><
~-------~
W
~
,--- L -_ _ _ _ _ _~~
0
E
Q)
~nn nn
F I I I
~
ca
~
...
N
It)
-
VI
N
~
(5tH 3) +1'100
ISHT 3) +1'101
ISHT 3) +1102
(SHT3) +1'10'3
ISHT 3) +1'104
ISHT 3) +1'10'5
(SHT 3) +1'106
"
f~ ISHT3) +M07
(SHT 3) +1'108
(SHT 3) +HDQ
(SHT 3) +11010
U,"
U';
l~lLLL~
(SHT 3) +1'1011
(SHT 3) +,",01 Z
g (SHT31+MOI~
(5HT3)+11014
(SHT 31 +HDI'>
~ (SHT 5)-8HAO
g"
(SHT 5) -8HA I
(SHT 5) -BHA2
('I) IZ8KX)
(SHT51-BHAl
-=....S"
(SHT 5) -aHA"
(SHT 51-811A6
(SHT5)-BMA7
= (SHT 2)
(5HT2)
(5HT2)
-US 'I
1...1'1'" 14 DI~/DOUT
Hon _ __,1'1 DIN/DOUT
1'1010
co
~
,...o
..
Q)
Q)
&:.
!!!
t:
o
:;:
Q.
o
t:
o
'iii
t:
ca
Q.
>(
W
~
1l o
E
Q)
:IE
!XI
~
('II
.,....
It)
....
til
~ AOI
A09 +5DO (SHT 3)
(SHT 4) -I/O CH (I< .oS
~
+501 (SHT3)
A07 +502 (SHT3)
::
A06
+50'3 (SHT3)
ADS
~ ..,. +$04
+$0')
(SHT 3)
(SHT3)
~
A03 (SHT3)
+SDb
.02 (SHT3)
+507
A31 +SAQ (SHT7)
f
~.
g
A30
A29
A2S
A27
A26
+SAI
+SA2
+SA'3
+ SA"
+SAS
(SHT 5)
(SHT 5)
(SHT 5)
(SHT 5)
(SHT5)
A2S
o
"'CI
A2"
+SA6
+SA7
(SHT5)
(SHT5)
g A22
A21
+SAq
+ SAID
(SHT 5)
(SHT 5)
A20 +SAII (SHT5)
AI9
+ SAI2 (SHT5)
AlB + SAl, (SHT 5)
AI7
~ + SAl... (SHT 5)
B29 AI6
+S + SAP:; (SHT 5)
AIS + SAlt) (SHT 5)
AI"
f!
+ SAI7
BID AI3
+ SAI8
B31
828
+ BALE (SHT 1)
819
-REFRESH (SHT7)
B02
+RESET DRY (SHT 4)
Serial/Pa,rallel
Adapter
o36167.~
Contents
iii
iv
IBM Personal Computer AT
Serial/Parallel Adapter
Serial/Parallel Adapter 1
Chip Select ...
--
Address
Address Controller
Decode Asynchronous
Register
Select Communications
Bus Chip
Data Bus
Interrupt -...
i ...
I Oscillator
1.8432 MHz
- r----.
EIA
Receivers
-...
-- g-Pin
Connector
- EIA
Drivers
-
Serial Portion Block Diagram
The serial portion of the adapter has a controller that provides the
following functions:
Communications Application
The serial output port may be addressed as either communications
port 1 or communications port 2 as defined by jumper 11 (see the
following figure). In this section hex addresses begin with an X
which can be either a 3 for communications port 1 (interrupt level
4) or a 2 for communications port 2 (interrupt level 3).
2 Serial/ParaDel Adapter
Port 1
DO 01 02 03 04 05 06 07
++ + + ++ ++
Marking Start [
Bit [[[[[I[[ Parity
Bit
Stop
Bit
Controller Specifications
The following describes the function of controller input/output
signals.
Serial/Parallel Adapter 3
Input Signals
4 Serial/Parallel Adapter
tested by the processor reading bit 6 (RI) of the modem status
register. Bit 2 (TERI) of the modem status register indicates if
the '-RI' input has changed from an active to an inactive state
since the previous reading.
Output Signals
Serial/Parallel Adapter 5
ControUer-Accessible Registers
Controller-Accessible Registers
Bit 7 6 5 4 3 2 1 0
Bit 0 is the least-significant bit and the first bit sent serially.
6 Serial/Parallel Adapter
Receiver Buller Register [hex XF81
Bit 7 6 543210
~"~"" >
>
Data Bit 1
Data Bit 2
> Data Bit 3
> Data Bit 4
> Data Bit 5
> Data Bit 6
> Data Bit 7
Bit 0 is the least-significant bit and the first bit received serially.
Bit 7 6 543210
~>""" >
>
Bit 1
Bit2
> Bit 3
> Bit4
> Bit 5
> Bit6
> Bit 7
Bit 7 6 543210
~~:: >
>
Bit2
Bit 3
> Blt4
> Bit 5
> Blt6
> Bit 7
Serial/Parallel Adapter 7
Information about this register may be found under
"Programmable Baud Rate Generator" later in this section.
and the active I INTRPT I output from the chip. All other system
functions operate normally, including the setting of the line-status
and modem-status registers.
8 Serial/Parallel Adapter
Interrupt Identification Register (Hex XFA): The controller
has an on-chip interrupt capability that makes communications
possible with all of the currently popular microprocessors. In
order to minimize programming overhead during data character
transfers, the controller prioritizes interrupts into four levels:
receiver line status (priority 1), received data ready (priority 2),
transmitter holding register empty (priority 3), and modem status
(priority 4).
Bit 7 6 5 4 3 2 t 0
Bits 1-2 These two bits identify the pending interrupt that has
the highest priority interrupt pending, as shown in
the following figure.
Serial/ParaDel Adapter 9
Interrupt
ID Interrupt Set And Reset Functions
Register
10 Serial/Parallel Adapter
Une Control Register (hex XFBI
Bit 7 6 5 4 3 2 1 0
°
serial character that is sent or received. The
encoding of bits and 1 is as follows:
Serial/Parallel Adapter 11
logical l's is sent or checked in the data word bits
and parity bit. When both bit 3 and bit 4 are a
logical 1, an even number of bits is sent or checked.
l
Modem Control Register Ihex XFCI
Bit 7 6 543210
12 Serial/ParaDel Adapter
Bit 0 This bit controls the '-data terminal ready' (-DTR)
output. When bit 0 is set to logical 1, the -DTR
output is forced active. When bit 0 is reset to logical
0, the '-DTR' output is forced inactive.
Serial/Parallel Adapter 13
The controller's interrupt system can be tested by
writing to the lower six bits of the line status register
and the lower four bits of the modem status register.
Setting any of these bits to logical 1 generates the
appropriate interrupt (if enabled). Resetting these
interrupts is the same as for normal controller
operation. To return to normal operation, the
registers must be reprogrammed for normal
operation, and then bit 4 of the MeR must be reset
to logical O.
Bit 7 6 5 4 3 2 1 0
~~>"~~. >
>
Overrun Error
Parity Error
> Framing Error
> Break Interrupt
> Transmitter Holding Register
Empty
> Tx Shift Register Empty
> =0
14 Serial/Parallel Adapter
Bit 2 This bit is the parity error (PE) indicator and
indicates the received data character does not have
the correct even or odd parity, as selected by the
even-parity-select bit. The PE bit is set to logical 1
upon detection of a parity error, and is reset to
logical 0 whenever the processor reads the contents
of the line status register.
Serial/Parallel Adapter 15
Modem Status Register (Hex XFE): The 8-bit MSR provides
the current state of the control lines from the modem (or external
device) to the processor. In addition, four bits of the MSR
provide change information. These four bits are set to logical 1
whenever a control input from the modem changes state. They
are reset to logical 0 whenever the processor reads this register.
Bit 7 6 5 4 3 2 t 0
16 Serial/Parallel Adapter
Bit 4 This bit is the opposite of the I -clear-to-send I
(-CTS) input. If bit 4 of the MCR loop is set to a
logical 1, this bit is equivalent to RTS of the MCR.
Serial/Parallel Adapter 17
Pin Assignment for Serial Port
The following figure shows the pin assignments for the serial port
in a communications environment.
- -
Carrier Detect 1
Receive Data 2_
...
-
~
Transmit Data
Data Terminal Ready
3
4
Serial
External Signal Ground 5
Parallel
Device
Data Set Ready 6_ Adapter
Request To Send 7
- Clear To Send B_
9'"
Ring Indicator
-
- L-
18 Serial/Parallel Adapter
Parallel Portion of the Adapter
The parallel portion of the adapter makes possible the attachment
of various devices that accept eight bits of parallel data at
standard TTL levels. The rear of the adapter has a 25-pin,
D-shell connector. This port may be addressed as either parallel
port 1 or 2. The port address is determined by the position of
jumper 12, as shown in the following figure.
m mi] m[1]
Port 1
Serial/Parallel Adapter 19
The following figure is a block diagram of the parallel portion of
the adapter.
Address
Bus ..- Address
Decode
-. Buffer
Control
Signals
.. Interrupt
Data Data
Data
Bus ~
Output
Buffer .. Z5-Pin 0
r--
. Wrap
Buffer --"'
Connector
Printer Application
The following discusses the use of the parallel portion of the
adapter to connect to a parallel printer. Hexidecimal addresses in
this section begin with an X, which is replaced with a 3 to indicate
port 1, or a 2 to indicate port 2.
20 Serial/Parallel Adapter
Bit 7 Not used
Serial/Parallel Adapter 21
Bit 4 +SLCT-A 1 means the printer is selected.
Bit 2 Unused.
Bit 1 Unused.
Bit 0 Unused.
22 Serial/ParaUel Adapter
Parallel Ioterface
The adapter has a 25-pin, D-shell connector at the rear of the
adapter. The following figure shows the signals and their pin
assignments. Typical printer input signals also are shown.
o 0
o 0
1 ~ 0 14
- r-
- Strobe 1
Data Bit 0 2
Data Bit 1 3
Data Bit 2 4
Data Bit 3 5
Data Bit 4 6
Data Bit 5 7
Data Bit 6 8
SLCT 13
- AUTO fEED XT 14
- ERROR 15
-INIT 16
- SLCT IN 17
Ground 18-25
- '----
Serial/Parallel Adapter 23
Specifications
The following figures list characteristics of the output driver.
Function Condition
Voltage Function
above +15 Vdc Invalid
+3 Vdc to +15 Vdc On
-3 Vdc to +3 Vdc Invalid
-3 Vdc to -15 Vdc Off
Below -15 Vdc Invalid
Serial Port Functions
24 Serial/Parallel Adapter
Logic Diagrams
~
~~n
r:I::r
~~~
nN
II
r.l)U)
I
~
'"'"
I
~
C;;
I
'" '"
I
~
I
~
I
II
.
:5! -"
-
• J
M
o
«~l
I!
-
....
Q)
Q)
,~o~
JJJ
!I !::~~;!.!.'::t:::.eg;~~
~~~I
- ..... 11'1- ""~-<>N
~~ ~~
s:.
~
...
:
-"
~I: " :~J f-'v~
-Q)
c.
,"~NIJr~ lli~~~J~I'
;g
8 - 2:: ;! Ci - I
f--f~
(11
'C
<C
~, ~
...
-
f-<e~
f-S~
,
~
-Q)
C
';:
Q.
f-'0~ ::::::
(11
';:
f-'~~ Q)
en
,. f-'v~
~ ~ ~
N
_J N~
- " ~
" =" R<~
>----- 8~ 0!
~::r~
I~~~
~~~~~
~~~~~
~
~
. g~Ii\I~
Q~~~~~~~
~
~
III
;;
I~
;;;
~
~
,_~
+ + +
g~'
~~~
0
~ w~
g~~~1
"
:I5~ril ~
:J
~o; ~I~I~I gl
OJ
I
Serial/Parallel Adapter 25
N 'LSI,)'>
Q\ ~~
ISHT 1) - ENABLEFAAALLEll&:~ 2C ~~~~N/c
00 ISHT 1)
AD n 2G 2n~NIt
~ (SHT 1)
AI "3 ~ UI2 :~~ 6RPB
:3. ISHT 1)
e:.
.........
ISHT 11 BICR I Ie
L1...:~~N/C
IY2 'iRP(
0, (13 -(20
P2
2') PIN
'D'SHELl
,, "
DATA 2
BDtft 20
~~ 70
ZQ 16
7Q
4
I. ,
4 DATA :I
b lA,
1'5 2A,
In 14
2'(; ') S"
~SD
1 10 DATA .. II 2AI 2'1'1 q S04
b
~~ bD ,.12 12 DATA ') 13 2A2 2'1'2 7 S"
...
~
~~ ~g
bQ (')
~~ ~ , ", 1
S
DATA b
DATA 7
'+ lA2
8 IA4
1'1'2 Ie
1'1'4 12
Db
S01
I~
r- eLK
BE UI6 ~- -RNI 4.7KIl---.. ."
~
tIt ~ Uq
,
~
~
L
~"
nil 12 ~ - sTROBE ~SI2<;
ISHT 1) SDO BOO ~
nUll 12
" -ERROR
UI
,
ISHT
ISHT
1)
1)
BOI
BOZ
BD I
BDZ ~
BOO ID
60
IQ 2
6Q I
OC;
II UII to ~
" -AUTO FO Xl
~
ISHT 1)
'"
,,,
BD4
BO'
BD4 '7777; '":;:!;fu 20 'i~ /) -[NIT ~4 1 ~2G 2'1'44-
2Y2~
~i~ ~O4
(SHT 11 Ib II Ulb 10 6 IAl
l V
ISHT 1)
(SHT 1)
SD6 BOb BO'i1 40 2Q'i 1'1 UI,) 12 ~ -SlCT IN V
~04 8 L-~ ~~~ :~~ ott--
807 801
ISHT 1) Ir---------'!
CLK '5Qpt-- +SLCT q
(SHT 1)
RESET
I '.~~
l;---------1~C
U4 I
qU11 8
r--ll-
e---,-,-- + BUSY V Ir----H-~:~ :~i:~
~"
'~Jt""
.PE
~~
~ Ulb
L504
Y---;o-- -ACK
IUlb 2 ~
10
+ IRQ EN q UI 6
~~O\ - IRQ EN
C;<SIZ')
~
["'I'N'-O ~ ~ K
(SHT 1)
PARA 8
'~ , ,
.5 12 UI II
IRQ') R P,
(SHT 1)
(SHT
(SHT
1)
t}
IRQ7
2
,
1
b '" LSIZ'5
~
SAS
(SHT 1}
(SHT 1)
A8
BAS
'I
, 1 O~IO==~-----t-~
0:;;==1' ====-======t===== I~(SHT11
IRQ... (SHT 1)
(SHT 1)
(SHT 1)
(SHT tJ
_S_ER_A~._ _ _ _ _ _ _ _~
RESET
BOO
"1;I _,I
NS lI:oLf'>O
1'1R
0uTZ "
INTRPT ~-
IN
1:0
./C
U2
7
+'iV
'~
LS)2'i
(SHT II fiOI'\
(SHTl) ~ N/e
(SHT 1J !QL ~
(SHT 1)
(SHT1) BO'>
BOLf >ZZ 1117777777 N/e
ISHT11 !Q2....
(SHT1)
.07 7IZ?? l I Z I I I I I I I II:
.j SIGGNO,,)
~,==~~g~~~~~""fTR
(SHT 11 BIOR
(SHT1) "l1l\I""'--- Ii
lliim
(SHT1) AO'--- 21 I
AO Soor lll
AI EtA TX OATA '1
ISHTIl
(SHT 1) A2
" +;V :; (51
+'iV~
if (SHT 1) -ENABLE SER 1/0
U'
,,-
(SO
e52 "
N/e
N/e
'L:"Uil J
[ ./e XTAl2
"- "
., XTAl I
I 7';00
" v
'-~l,J
i..
N
RECEIVE OATA
.__ .... <.. . --_ .. __.. ..... .... ._ .. _"--- -- - - .- ...... _-_.._._--- - - .
20MB Fixed
Disk Drive
Contents
Description .................................... 1
Interfaces ..................................... 1
Control Input Signals ........................ 2
Output Control Signals ....................... 4
Data-Transfer Signals ........................ 6
Overlapped Seek ............................ 7
Specifications .................................. 7
Logic Diagrams ................................. 9
iii
iv
Description
Interfaces
Control Interface
Data-Transfer Interface
DC Power Interface
-Write Gate
- Direction In
This signal defines the direction the read/write heads move when
, -Step' is pulsed. A inactive level defines the direction as out,
and if a pulse is applied to '-Step', the read/write heads move
away from the center of the disk. An active level defines the
direction as in, and the read/write heads move toward the center
of the disk.
-Step
the one that selects the drive based on the position of the drive
select jumpers.
-Seek Complete
This signal goes active when the read/write heads settle on the
final track at the end of a seek. Reading or writing is not
attempted when -Seek Complete is inactive. The following
situations force -Seek Complete inactive.
-Track 000
-Write Fault
• More than one seek retry between Seek commands from the
controller
-Index
-Ready
When this signal and '-Seek Complete' are active, the drive is
ready to read, write, or seek, and the I/O signals are valid. An
Data-Transfer Signals
All signals associated with the transfer of data between the drive
and the system are differential (pairs of balanced signals) and are
not multiplexed.
Two pairs of balanced signals are used for the transfer of data:
Write Data and Read Data. The following describes the
data-transfer signals.
Overlapped Seek
The drive supports overlapped-seek operations. An overlapped
seek occurs when the drive is deselected 20 microseconds after
the last step pulse is sent. Another drive is then selected, and the
'-Step' and '-Direction In' signals are set by the operation
desired. The controller provides at least 100 nanoseconds of hold
time on '-Step' and '-Direction In' after' -Drive Select' is
inactive.
Specifications
Internal Specifications
Performance Specifications
"11 Iii 1
: . , [I
,-------_ _-----.J I I
L':::__ -
" ,
Iii
, I
~--------.---------.-~
Fixed Disk
and Diskette
Adapter
Contents
Description .................................... 1
Fixed Disk Function ............................. 1
Task File .................................. 1
Task File Registers .......................... 2
Miscellaneous Information ................... 10
Diskette Function .............................. 10
Diskette Controller ......................... 12
Diskette Controller Commands ............... 14
Controller Commands ...................... 17
Command Status Registers ................... 24
Interfaces .................................... 28
Interface Lines ............................ 30
Logic Diagrams ................................ 35
iii
iv
Description
Task File
A task file, which contains eight registers, controls fixed-disk
operations. The following figure shows the addresses and
functions of these registers.
Task File
The data register provides access to the sector buffer for read and
write operations in the PIO mode. This register must not be
accessed unless a Read or Write command is being executed. The
register provides a 16-bit path into the sector buffer for normal
Read and Write commands. When a R/W Long is issued, the 4
ECC bytes are transferred by byte with at least 2 microseconds
between transfers. Data Request (DRQ) must be active before
I I
Error Register
Diagnostic Mode
01 No errors
Operational Mode
The target's logical sector number for Read, Write, and Verify
commands is loaded into this register. The starting sector number
is loaded into this register for multi-sector operations.
The target number for Read, Write, Seek, and Verify commands
is loaded into these registers as shown in the following figure. The
cylinder-number registers address up to 1024 cylinders.
Drive/Head Register
Bit 7 Set to 1
Bit 6 Set to 0
Bit 5 Set to 1
Status Register
The controller sets up the status register with the command status
after execution. The program must look at this register to
determine the result of any operation. If the busy bit is set, no
other bits are valid. A read of the status register clears interrupt
request 14. If write fault or error is active, or if seek
I I I I I
aborted.
Command Bits
7 6 5 4 3 2 1 0
Restore 0 0 0 1 R3 R2 R1 RO
Seek 0 1 1 1 R3 R2 R1 RO
Read Sector 0 0 1 0 0 0 L T
Write Sector 0 0 1 1 0 0 L T
Format Track 0 1 0 1 0 0 0 0
Read Verify 0 1 0 0 0 0 0 T
Diagnose 1 0 0 1 0 0 0 0
Set Parameters 1 0 0 1 0 0 0 1
R3 R2 R1 RO Stepping Rate
0 0 0 0 35 us
0 0 0 1 0.5 ms
0 0 1 0 1.0 ms
0 0 1 1 1.5 ms
0 1 0 0 2.0 ms
0 1 0 1 2.5 ms
0 1 1 0 3.0 ms
0 1 1 1 3.5 ms
1 0 0 0 4.0 ms
1 0 0 1 4.5 ms
1 0 1 0 5.0 ms
1 0 1 1 5.5 ms
1 1 0 0 6.0 ms
1 1 0 1 6.5 ms
1 1 1 0 7.0 ms
1 1 1 1 7.5 ms
Stepping Rate
The following figure shows the bit definitions for bits Land T.
Bit Definition 0 1
L Data Mode Data Only Data plus 4 byte ECC
T Retry Mode Retries Enabled Retries Disabled
Seek: The Seek command moves the R/W heads to the cylinder
specified in the task files. The adapter supports overlapped
seeking on two drives or setup of the buffered seek stepping rate
for the implied seek during a Read/Write command. An interrupt
is generated at the completion of the command.
is active.
Miscellaneous Information
The following is miscellaneous information about the fixed disk
drive function.
• ID fields are checked for errors when read from the disk.
• The adapter supports only ECC on data fields and only CRC
on ID fields. The CRC polynomial is X16 + X12 + X5 + 1;
the ECC polynomial is X32 + X28 + X26 + X19 + X17 +
XI0 + X6 + X2 + 1. All shift registers are preset to hex F
before calculating the checksums, which begin with the
respective address marks.
Diskette Function
Bit 7 Reserved
Bit 6 Reserved
Bit 1 Reserved
The digital input register is an 8-bit, read- only register used for
diagnostic purposes. The following are bit definitions for this
register.
Data Rates
The diskette function will support three data rates: 250,000,
300,000 and 500,000 bits per second. The 300,000-and
500,000-bps incoming data pulse widths will be those associated
with a 500,000-bps data signal.
Diskette Controller
The diskette controller has two registers to which the main system
processor has access: a status register and a data register. The
8-bit status register has the status information about the diskette
and may be accessed at any time. The 8-bit data register (hex
3F5), which actually consists of several registers in a stack with
only one register presented to the data bus at a time, stores data,
commands, and parameters, and provides diskette-drive status
information. Data bytes are read from or written to the data
register in order to program or obtain results after a particular
command. The main status register may only be read and is used
to facilitate the transfer of data between the processor and
diskette controller.
The bits in the main status register (hex 34F) are defined as
follows:
Bit 3 Reserved
Bit 2 Reserved
• Read Data
• Format a Track
• Scan Equal
• Scan Low or Equal
• Recalibrate
• Sense Interrupt Status
• Specify
• Seek
• Invalid
Symbol Descriptions
signal.
SRT This 4 bit byte indicates the stepping rate for the
diskette drive as follows:
Read Data
MT MF SK 0 0 1 1 0
X X X X X HD USl USO
C
EOT
GPL
DTL
Format a Track
a MF a a } 1 a a
x x x x X HD US} usa
N
SC
GPL
o
Result Phase: The following bytes are issued by the controller in
the result phase:
Scan Equal
MT MF SK 1 0 0 0 1
X X X X X HD USl usa
c
H
R
EOT
GPL
STP
ST2
c
H
MT MF SK 1 1 0 0 1
X X X X X HD USI usa
c
H
EOT
GPL
STP
MT MF SK 1 1 1 0 1
X X X X X HD USl USO
C
EOT
GPL
STP
ST2
C
Recalibrate
00000111
x X X X X 0 US1 usa
Result Phase: This command has no result phase.
0000100 0
Specify
o a a a a a } }
SRT )( HUT
HLT NO
a a a a 0 a } a
x x x x X HO US} usa
s13
Seek
x x x x X HD USl usa
NCN
Invalid
Invalid Codes
x X X X X HD USl usa
Result Phase: The following bytes are issued by the controller in
the result phase:
STa
(Recalibrate Command).
diskette drive.
Interfaces
The system interface is through the I/O channel. The address,
DMA, and interrupt assignments are shown in the following
figures.
I/O Address
Primary Secondary Read Write
3F2 372 Digital output register
3F4 374 Main status register Main status register
3F5 375 Diskette data register Diskette data register
3F6 376 Fixed disk register
3F7 377 Digital input register Diskette control register
Diskette Function
34
- ~
-
_ - Write Gate 6
- Seek Complete 8_
- Track 000 10_ -
-
- Write Fault
__ - Head Select 0
-
12..
14 -
Reserved 16 Fix ed Disk
Fixed Dis k
_ - Head Select 1 18 And Diskette
Drive
- -Index 20_
Ada pter
- Ready 22_ -
_ - Step 24 -
- - Drive Select 1 26
-: - Drive Select 2 28
- Reserved 30
Reserved 32
-
__ - Direction In 34
- '---
- -
+ MFM Write Data 13
- -
- r--
-- Reduced Write
Reserved
2
4
8 ..
-
-- Drive Select 0 10
-- Drive Select 1 12
---
Drive
Ada pter
Step 20
Write Gate
22
24
- Track 00 26 ..
Write Protect 28 ..-
Read Data 30 ..
-
-
-- Side 1 Select
Diskette Change
32
34 ..
-
- -
Note: Connection is through a 2-by-17 Berg connector. Pin 5
is reserved to polarize the connector.
-------------------------1
I
I
~I
31
:,
~I
~I
I
I
r----------- I
I
I
I
-
05'
o
I
I
I
------,
I
L ____________________ _
~------------~ :
~r--l_ ... r------'_ ~~,,~ i:
~,
I I ~l
..,1
I I
1... 2
.,
~I
~~
I
___________ JI
5~
~ H'
~
;;
~
I~ ~
!i ~
~ ~
!!
= "
I
I
I
I
I
I
I
I
-..
ii)
o
C'I
Q)
I
L _________ _ Q)
L-~----~~--------------_, I .c
~
.....
Q)
Q.
I'G
"C
---------~--------------------
I
«Q)
::::Q)
.¥.
III
,.
I;'"
C
,.
I~
"C
C
I~
:" Pi{3> I
__ ______ - __ - ______ I I'G
.¥.
:-~ : III
C
,........ 1
I
L _______ ...J
"C
Q)
)(
ii:
Q)
Q)
.s:
I
~: O-<~~-f'_'++----;
-.....
U)
Q)
-
I
-•
e
,.
~
s
"~
~ ~
~
L_~~_..J
,
~
,
~
Q.
aI
"0
«
- -- " ~ "
"
-
-
.- i
Q)
I~ ..\I:
til
C
"0
r:::
aI
..\I:
til
C
"0
=
u::
CD
CD
.c
~
..
"-
CD
Q.
1\1
'tl
<C
CD
::::CD
.:t:.
1/1
C
'tl
I:
1\1
.:t:.
1/1
C
'tl
CD
><
u:
~
, c
5~
~
'"
:e
~~
"::
"
::
-[
'" I::;
~r
.!: :!:
~ ~
",W 11
-
-
CX)
o
10
....Q)
~ ~ :~ g ~ ~ ~ ~ ::~II CP
~ ~~ IO:~
s::.
'" :> ,. :; ~
,. " '1 :1 -
~ = ~ ~ ~ ~ _ ~ ~ ~ r! ( ...CP
~ ~ Q.
~~::::il::~:::n:~ i~ CO
"0
~ 2- <C
~~~ .,. .,.
....
Q)
~en
C
"0
c:
CO
~
en
C
"0
Q)
~
u:
u::=
~
c I
~ ~ I~
L!<>-_-_.._-_-..J...E...---1
I
"
~
~
~
~ ~
~~<lJ<8
-
co
o
....
....
Q)
Q)
s:::.
~
...
....Q)C.
10
'tI
«
Q)
i
~
en
C
'tI
I::::
10
~
en
C
'tI
Q)
><
u::
I'
r----- 1
FO
;;;
i I
::: ;: = =:: :
I
11 i ~ = I I
=-
11
~m-mni I
I
I
I I
"L __ "___ J