home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Press 1997 July
/
Sezamfile97_1.iso
/
msdos
/
infoprog
/
helppc21.a01
/
HARDWARE.TXT
next >
Wrap
Text File
|
1991-04-15
|
71KB
|
1,838 lines
unidirectional mode for one line
27 64 ESC @ Initialize printer
27 85 48 ESC U 0 Cancel unidirectional mode
27 85 49 ESC U 1 Select unidirectional mode
27 115 48 ESC s 0 Turn half speed mode off
27 115 49 ESC s 1 Turn half speed mode on
% Vertical/Horizontal Motion:
% Decimal ASCII Description
8 BS Backspace
9 HT Horizontal tab
10 LF Line Feed
11 VT Vertical Tab
12 FF Form Feed
27 47 c ESC / c Select vertical tab channel (c=0..7)
27 48 ESC 0 Select 8 lines per inch
27 49 ESC 1 Select 7/72 inch line spacing
27 50 ESC 2 Select 6 lines per inch
27 51 n ESC 3 n Select n/216 inch line spacing (n=0..255)
27 65 n ESC A n Select n/72 inch line spacing (n=0..85)
27 66 0 ESC B NUL Clear Vertical tabs
27 66 tabs ESC B tabs Select up to 16 vertical tabs where tabs are
ascending values from 1..255 ending with NUL
27 67 n ESC C n Select page length in lines (n=1..127)
27 67 48 n ESC C 0 n Select page length in inches (n=1..22)
27 68 0 ESC D NUL Clears all horizontal tables
27 68 tabs 0 ESC D tabs NUL Sets up to 32 horizontal tabs with
ascending values 1-137. NUL or a value
less than previous tab ends command.
27 74 n ESC J n Immediate n/216 inch line feed (n=0..255)
27 78 n ESC N n Select skip over perforation (n=1..127)
27 79 ESC O Cancel skip over perforation
27 81 n ESC Q n Set right margin (n=column)
27 98 b c 0 ESC b c NUL Clear vertical tabs in channel (c=0..7)
27 98 c tabs ESC b c tabs Select up to 16 vertical tabs in channels
(c=0..7) where tabs are ascending values
from 1..255 ending with NUL
27 101 48 s ESC e 0 s Set horizontal tab to increments of 's'
27 101 49 s ESC e 1 s Set vertical tab to increments of 's'
27 102 48 s ESC f 0 s Set horizontal skip to increments of 's'
27 102 49 s ESC f 1 s Set vertical skip to increments of 's'
27 106 n ESC j n Reverse linefeed (n/216 inch after buffer)
27 108 n ESC l n Set left margin (n=column)
% Printing Style:
% Decimal ASCII Description
27 33 n ESC ! n Master select where n is a combination of:
0 Pica 16 Double Strike
1 Elite 32 Double Wide
4 Condensed 64 Italic
8 Emphasized 128 Underline
Pica & Elite and Condensed/Emphasized are
mutually exclusive
27 107 48 ESC k 0 Select NLQ Roman font
27 107 49 ESC k 1 Select NLQ Sans Serif font
27 120 48 ESC x 0 Select draft mode
27 120 49 ESC x 1 Select NLQ mode
% Print Size and Character Width:
% Decimal ASCII Description
14 SO Select double width for one line
15 SI Select condensed mode
18 DC2 Cancel condensed mode
20 DC4 Cancel one line double width mode
27 14 ESC SO Double width for one line (duplicate)
27 15 ESC SI Select condensed mode (duplicate)
27 77 ESC M Select elite width (12 cpi)
27 80 ESC P Select pica width (10 cpi)
27 87 48 ESC W 0 Cancel double width mode
27 87 49 ESC W 1 Select double width mode
% Print Enhancement:
% Decimal ASCII Description
27 45 48 ESC - 0 Cancel underlining
27 45 49 ESC - 1 Select underlining
27 69 ESC E Select emphasized mode
27 70 ESC F Cancel emphasized mode
27 71 ESC G Select double strike mode
27 72 ESC H Cancel double strike mode
27 83 48 ESC S 0 Select superscript
27 83 49 ESC S 1 Select subscript
27 84 ESC T Cancel superscript/subscript
% Character Sets:
% Decimal ASCII Description
27 52 ESC 4 Select italic mode
27 53 ESC 5 Cancel italic mode
27 54 ESC 6 Enable printing of characters (128-159,255)
27 55 ESC 7 Cancel [ESC 6] command
27 82 n ESC R n Select International character set where
numeric 'n' is:
0 USA 7 Spain I
1 France 8 Japan
2 Germany 9 Norway
3 United Kingdom 10 Denmark II
4 Denmark I 11 Spain II
5 Sweden 12 Latin America
6 Italy
27 116 0 ESC t NUL Select italic character set
27 116 1 ESC t SOH Select Epson character set
% User Defined Characters:
% Decimal ASCII Description
27 37 0 ESC % NUL Selects normal character set
27 37 1 ESC % SOH Selects user defined set
27 38 0 ESC & NUL ? Select user defined chars (see manual)
27 58 0 0 0 ESC : NUL NUL NUL Copy ROM into RAM
% Graphics Character Sets:
% Decimal ASCII Description
27 42 0 n1 n2 ESC * NUL n1 n2 Select single density graphics
27 42 1 n1 n2 ESC * SOH n1 n2 Select double density graphics
27 63 s n ESC ? s n Reassign graphics mode
's'=(K,L,Y or Z) to mode 'n'=(0..6)
27 75 n1 n2 ESC K n1 n2 Single density graphics (60 dpi)
27 76 n1 n2 ESC L n1 n2 Double density graphics (120 dpi)
27 89 n1 n2 ESC Y n1 n2 Hi-speed double den graphics (120 dpi)
27 90 n1 n2 ESC Z n1 n2 Quad density graphics (240 dpi)
27 94 m n1 n2 ESC ^ m n1 n2 Select 9 pin graphics mode
number of columns = n1 + (n2 * 256)
% Other:
% Decimal ASCII Description
13 CR Carriage Return
24 CAN Cancel text in line (but not control codes)
127 DEL Delete character (but not control codes)
27 32 n ESC SP n Space in n/72 inch following each NLQ char
27 35 ESC # MSB control sequence cancel
27 36 ESC $ Select absolute dot position
27 61 ESC = MSB = 0
27 62 ESC > MSB = 1
27 73 48 ESC I 0 Cancel above [ESC I 1]
27 73 49 ESC I 1 Printable codes expansion (0-31,128-159)
27 92 ESC \ Select relative dot position
27 97 n ESC a n NLQ justification where numeric 'n' is:
0 left justification (default)
1 center
2 right justification
3 full justification
27 112 ESC p Select/cancel proportional mode
- the codes listed are relative to the Epson LX 800
- in several situations where a numeric value of zero or one is
required, the ASCII value of the number can be substituted
:hard disks drives:drive specifications:disk drives:hard drives
^Hard Drive Specifications
% Avg Miscellaneous
% Manufacturer MB Cyl Hds Access Information
Alloy ID-160 125 30
Atasi AT3020 635 3 Wedge servo
Atasi AT3033 635 5 Wedge servo
Atasi AT3046 635 7
Atasi AT3051 703 7
Atasi AT3085 1024 8
Bull D530 987 3
Bull D550 987 5
Bull D570 987 7
Bull D585 987 7
Bull D530 1166 3
CDC Wren I 9415-21 697 3 STnn, MFM, Voice coil
CDC Wren I 9415-36 697 5 STnn, MFM, Voice coil
CDC Wren II 9415-25 615 4 STnn, MFM, Voice coil
CDC Wren II 9415-30 989 3 STnn, MFM, Voice coil
CDC Wren II 9415-38 733 5 STnn, MFM, Voice coil
CDC Wren II 9415-48 925 5 STnn, MFM, Voice coil
CDC Wren II 9415-51 42 989 5 28 STnn, MFM, Voice coil
CDC Wren II 9415-67 925 7 STnn, MFM, Voice coil
CDC Wren II 9415-86 69 925 9 STnn, MFM, Voice coil
CDC Wren II 9416-182 144 969 9 STnn, MFM, Voice coil
CDC Wren V 380 15 16 ESDI/SCSI, FH
CDC Wren V 702 15 16 ESDI/SCSI, FH
CDC Wren VI 766 15 16.5 ESDI/SCSI, FH
CDC Wren VII 1.2G 15 16.5 SCSI, FH
CMI CM3426 612 4
CMI CM5205 256 4
CMI CM5410 256 4
CMI CM5616 256 4
CMI CM6426 615 4
CMI CM6426S 640 4
CMI CM6640 640 4
CMS F40-K 42 1024 5 22 STnn, MFM, Voice coil
CMS F60-K 42 1024 7 STnn, MFM, Voice coil
CMS F70-K 42 1024 8 STnn, MFM, Voice coil
CMS F80-K 42 1024 9 STnn, MFM, Voice coil
Columbia SCSI 42 834 3 19 SCSI, RLL, Band stepper
Core AT40F 40 564 4 10 ESDI, MFM, Voice coil
Core AT43 43 988 5 20 STnn, MFM, Voice coil
Core HC150 150 1024+ 18 ESDI
Emerald DOS 150-3000 150 1024+ ESDI
Emulex ATS-170 142 1022 SCSI & ESDI
Emulex ATS-380 310 1222 SCSI & ESDI
FlashCard 49 49 615 6 28 STnn, RLL, Voice coil
Fuji 302-13 10 612 2
Fuji 302-26 20 612 4
Fujitsu M2230AS 320 2
Fujitsu M2233AS 10 320 4
Fujitsu M2234AS 320 6
Fujitsu M2235AS 21 320 8 56
Fujitsu M2241AS 754 4
Fujitsu M2242AS 43 754 7 33 STnn, MFM, Voice coil
Fujitsu M2243AS 72 754 11 33 STnn, MFM, Voice coil
Fujitsu M2263 778u 14 16 ESDI/SCSI, FH
Hitachi DK511-5 699 7
Hitachi DK511-8 823 10
Hitachi DK515C-78 780u 8 16 SCSI, FH
Hitachi DK515-78 780u 8 16 ESDI, FH
IMI 5006H 306 2
IMI 5012H 306 4
IMI 5018H 306 6
Imprimis (see CDC)
Irwin 416 819 2
Irwin 510 628 2 HD/tape
Irwin 516 819 2 HD/tape
Irwin 561 180 4
Kalok KL320 26u 615 4 40 STnn, MFM, Band stepper
Kalok KL330 38u 615 4 40 STnn, RLL, Band stepper
Maxtor XT1065 52 918 7 28 STnn, Voice coil
Maxtor XT1085 68 1024 8 28 STnn, Voice coil
Maxtor XT1105 83 918 11 28 STnn, Voice coil
Maxtor XT1140 112 918 15 28 STnn, Voice coil
Maxtor XT1190 150 1224 28 STnn, Voice coil
Maxtor XT2085 1224 7 28 STnn, Voice coil
Maxtor XT2140 1224 11 STnn, Voice coil
Maxtor XT2190 160 1224 15 STnn, Voice coil
Maxtor XT4170E 179u 1224 7 14 ESDI, MFM, FH Voice coil
Maxtor XT4230E 231u 1224 9 16 ESDI, MFM, FH Voice coil
Maxtor XT4380E 384u 1224 15 16 ESDI, MFM, FH Voice coil
Maxtor XT4380S 384u 1224 16 SCSI, MFM, FH Voice coil
Maxtor XT8380E 410u 14.5 ESDI, FH
Maxtor XT8380S 410u 14.5 SCSI, FH
Maxtor XT8760E 768u 16.5 ESDI, FH
Maxtor XT8760S 768u 16.5 SCSI, FH
Micropolis 1302 830 3
Micropolis 1303 830 5
Micropolis 1304 830 6
Micropolis 1323 1024 4
Micropolis 1323A 1024 5
Micropolis 1324 1024 6
Micropolis 1324A 1024 7
Micropolis 1325 1024 8
Micropolis 1333A 44 1024 5 28 STnn, MFM, Voice coil
Micropolis 1335 71 1024 8 30
Micropolis 1355 142 1022
Micropolis 1518 1.2Gu 15 14 ESDI, FH
Micropolis 1558 382u 15 18 ESDI, FH
Micropolis 1568 765u 15 16 ESDI, FH
Micropolis 1578 382u 15 18 SCSI, FH
Micropolis 1588 765u 15 16 SCSI, FH
Micropolis 1598 1.2Gu 15 14 SCSI, FH
Microscience HH312 10 306 4
Microscience HH325 20 612 4
Microscience HH612 10 306 4
Microscience HH725 21 612 4 Band stepper
Microscience HH1050 44 1024 5 28 STnn, MFM, Voice coil
Miniscribe 1006 306 2
Miniscribe 1012 306 4
Miniscribe 2006 306 2
Miniscribe 3012 10 612 4
Miniscribe 3053 44 1024 6 25 STnn, MFM, Voice coil
Miniscribe 3212 10 612 4
Miniscribe 3412 306 4
Miniscribe 3425 20 615 4
Miniscribe 3438 31.2 615 4
Miniscribe 3650 50u 809 6 61 STnn, MFM, linear drive
Miniscribe 3650F 50u 809 6 46 STnn, MFM, linear drive
Miniscribe 3675 75u 809 6 61 STnn, MFM, linear drive
Miniscribe 4010 480 2
Miniscribe 4020 480 4
Miniscribe 6032 26 1024 3
Miniscribe 6053 43 1024 5 28 STnn, MFM, FH Voice coil
Miniscribe 6085 71 1024 8
Miniscribe 6128 104 1024 8
Miniscribe 8051A 51u 745 4 28 STnn, MFM, Voice coil
Miniscribe 8212 615 2
Miniscribe 8425 20 615 4 STnn, MFM, 3½
Miniscribe 8438 31.2 615 4
Miniscribe 9380E 382u 1224 15 16 ESDI, RLL, FH Voice coil
Miniscribe 9380S 382u 1224 15 16 SCSI, RLL, FH Voice coil
Miniscribe 9780E 781u 15 17 ESDI, FH Voice coil
Mitsubisi MR535 42 981 6 STnn, MFM, 5¼ Voice coil
NEC D5662 385u 18 ESDI, FH
NEC D5682 765u 18 16 ESDI, FH
NEC D5862 385u 18 SCSI, FH
NEC D5882 765u 18 16 SCSI, FH
NEC 5124 310 4
NEC 5126 612 4
NEC 5146 615 8
Newberry Penny 340 615 8
Northgate Turbo 42 809 6 36 STnn, RLL, Voice coil
Plus Hardcard 40 42 612 4 40 STnn, RLL, Voice coil
Priam ID45ATD2 42 1166 5 20 STnn, MFM, Voice coil
Priam ID130 130 1224 STnn
Priam ID40 987 5
Priam ID60 987 7
Priam V130 987 3 STnn
Priam V185 1166 7
Priam 638 382u 15 18 ESDI, 5¼
Priam 676 765u 15 14 ESDI, 5¼
Priam 738 382u 15 18 SCSI, 5¼
Priam 776 765u 15 14 SCSI, 5¼
Quadram Q520 512 4
Quadram Q530 512 6
Quadram Q540 512 8
Rodime RO101 192 2
Rodime RO102 192 4
Rodime RO103 192 6
Rodime RO104 192 8
Rodime RO201 320 2
Rodime RO202 320 4
Rodime RO203 320 6
Rodime RO204 320 8
Rodime RO201E 640 2
Rodime RO202E 640 4
Rodime RO203E 33 640 6
Rodime RO204E 640 8
Rodime RO252 10 306 4
Rodime RO352 10 306 4
Rodime RO3055 45 872 7 STnn, MFM, Voice coil
RMS 503 153 2
RMS 506 153 4
RMS 512 153 8
Seagate ST125 21 615 4 28 STnn, MFM, Band stepper
Seagate ST125N 22 407 4 SCSI, RLL, Band stepper
Seagate ST138 32 615 6 28 STnn, MFM, 3½ Band stepper
Seagate ST138N 31 615 4 28 SCSI, RLL, Band stepper
Seagate ST138R 33 615 4 28 STnn, RLL, Band stepper
Seagate ST151 43 977 5 STnn, MFM, Voice Coil
Seagate ST157A 49 560 6 28 IDE, 3½
Seagate ST157N 49 615 6 28 SCSI, 3½ RLL, Band stepper
Seagate ST157R 49 615 6 28 STnn, 3½ RLL, Voice Coil
Seagate ST177N 61 921 5 SCSI, RLL, Voice Coil
Seagate ST206 306 2 STnn, MFM, Band stepper
Seagate ST213 11 615 2 STnn, MFM, Band stepper
Seagate ST225 21 615 4 65 STnn, MFM, 5¼ Band stepper
Seagate ST225N 21 615 4 65 SCSI, MFM, 5¼ Band stepper
Seagate ST225R 21 667 2 STnn, RLL, 5¼ Band stepper
Seagate ST238R 31 615 4 65 STnn, RLL, Band Stepper
Seagate ST250R 42 667 4 STnn, RLL, Band stepper
Seagate ST251 42 820 6 40 STnn, MFM, 5¼ Band stepper
Seagate ST251-1 43 820 6 28 STnn, MFM, 5¼ Band stepper
Seagate ST251N0 43 820 4 40 SCSI, RLL, 5¼ Band stepper
Seagate ST251N1 43 630 4 SCSI, RLL, 5¼ Band stepper
Seagate ST251R 43 820 6 40 STnn, RLL, 5¼ Band stepper
Seagate ST277 66 820 6 STnn, MFM, 5¼ Band stepper
Seagate ST277N0 65 820 6 40 SCSI, RLL, 5¼ Band stepper
Seagate ST277N1 65 628 6 SCSI, RLL, 5¼ Band stepper
Seagate ST277R 65 820 6 40 STnn, RLL, 5¼ Band stepper
Seagate ST280A 72 29 IDE, 5¼
Seagate ST296N 85 820 6 28 SCSI, RLL, 5¼ Band stepper
Seagate ST406 5 306 2 STnn, MFM, Band stepper
Seagate ST412 10 306 4 STnn, MFM, FH Band stepper
Seagate ST419 15 306 6 STnn, MFM, Band stepper
Seagate ST425 20 306 8 STnn, MFM, Band stepper
Seagate ST506 5 153 4 STnn, MFM, FH Band stepper
Seagate ST1096N 84 906 7 SCSI, RLL, Voice coil
Seagate ST1102A 89 29 IDE, 3½
Seagate ST1144 125 19 IDE, 3½
Seagate ST1239 211 15 IDE, 3½
Seagate ST4026 21 615 4 STnn, MFM, Voice coil
Seagate ST4038 32 733 5 40 STnn, MFM, FH Voice coil
Seagate ST4051 43 977 5 40 STnn, MFM, Voice coil
Seagate ST4053 44 1024 5 28 STnn, MFM, Voice coil
Seagate ST4077R 65 1024 5 28 STnn, MFM, Voice coil
Seagate ST4096 80 1024 9 28 STnn, MFM, FH Voice coil
Seagate ST4144R 122 1024 9 28 STnn, RLL, FH Voice coil
Shugart SA 604 160 4
Shugart SA 606 160 6
Shugart SA 612 306 4
Shugart SA 712 320 4
SPC Scorecard 44 44 753 7 STnn, MFM, Voice coil
Syquest SQ306RD 306 2
Syquest SQ312RD 615 2
Syquest SQ325F 612 4
Syquest SQ338F 612 6
Tandon TM252 10 306 4
Tandon TM262 20 615 4
Tandon TAN501 306 2
Tandon TAN502 306 4
Tandon TAN503 306 6
Tandon TM602S 153 4
Tandon TM603S 153 6
Tandon TM603SE 230 6
Tandon TM702AT 615 4
Tandon TM703 695 5
Tandon TM703AT 733 5
Tandon TM755 981 5
Tandy SCSI 80 823 6 28 SCSI, RLL, Band stepper
Toshiba MK53F 830 5
Toshiba MK54F 49 830 7 25 STnn, MFM, 3½ Voice coil
Toshiba MK56F 72 830 10 25
Toshiba MK134FA 733 7 25 STnn
Toshiba MK358FA 765u 15 16 ESDI, FH
Toshiba MK358FB 765u 15 16 SCSI, FH
Tulin 226 640 4
Tulin 240 640 6
Tulin 326 20 640 4
Tulin 340 30 640 6
WD93024A 21.6 28 STnn, MFM, 3½ Band stepper
WD93024X 21.6 39 STnn, MFM, 3½ Band stepper
WD93028A 21.6 69 STnn, MFM, 3½ Band stepper
WD93028X 21.6 70 STnn, MFM, 3½ Band stepper
WD93034X 32.4 39 STnn, MFM, 3½ Band stepper
WD93038X 32.4 70 STnn, MFM, 3½ Band stepper
WD93044A 43.2 28 STnn, MFM, 3½ Band stepper
WD93044X 43.2 39 STnn, MFM, 3½ Band stepper
WD93048A 43.2 69 STnn, MFM, 3½ Band stepper
WD93048X 43.2 70 STnn, MFM, 3½ Band stepper
WD95024A 20 28 STnn, MFM, 5¼ Band stepper
WD95028AD 20 69 STnn, MFM, 5¼ Band stepper
WD95028X 20 70 STnn, MFM, 5¼ Band stepper
WD95038X 30 70 STnn, MFM, 5¼ Band stepper
WD95044A 40 28 STnn, MFM, 5¼ Band stepper
WD95048AD 40 69 STnn, MFM, 5¼ Band stepper
WD95048X 40 70 STnn, MFM, 5¼ Band stepper
WDAC140 42.5 19 STnn, MFM, 3½ Voice coil
WDAC280 85.1 19 STnn, MFM, 3½ Voice coil
WDSC320 320 SCSI, 3½
WDSC8320 320 SCSI, 3½
- STnn indicates Seagate ST412/ST506 compatible
- 3½ indicates 3.5 inch half height drive
- 5¼ indicates 5.25 inch half height drive
- FH indicates Full Height 5.25 inch drive
- 'u' in filesize indicates unformatted spec
- formatted capacity is related to BIOS and may vary with different
BIOS and OEM versions
- read/write heads should normally never touch hard disk media
- standard AT hard disk controllers do not use DMA for disk I/O due
to the slow speed of the 8 Bit DMA chips used; Port I/O is used
instead for an actual increase in performance
- with some XT and ESDI systems it is necessary to use debug to
execute the ROM disk format code; The usual method is to set
AH=Drive, AL=Interleave and jump to the code at C800:5 via the
G =C800:5 command (some systems locate this code at C600:5, CA00:5
and CC00:5)
- DOS version and disk size determine cluster size; DOS 2.x always
has cluster size of 8K, while DOS 3.x+ has variable cluster sizes:
2 - 16 Mb partitions have a cluster size of 8K
16 - 128 Mb partitions have a cluster size of 2K
128 - 256 Mb partitions have a cluster size of 4K
256 - 512 Mb partitions have a cluster size of 8K
:Hayes modem info:modem commands
^Hayes Command Set / Register Formats
+++ standard escape sequence (see S2 below)
Comma standard pause character (see S8 below)
AT standard attention sequence
ATA force immediate answer
ATC0 transmitter off
ATC1 transmitter on
ATD dial (ATD number)
ATDP pulse dial (ATDP number)
ATDT tone dial (ATDT number)
ATE0 disable local character echo
ATE1 enable local character echo
ATF0 Half Duplex (modem echoes characters)
ATF1 Full Duplex (modem does not echo characters)
ATH0 force line on hook
ATH1 force line off hook
ATH2 force line special off hook (used for HAM radio)
ATI0 request product code, formatted PPR, PP=prod., R=rev.
ATI1 request ROM check sum
ATL1 speaker volume low (modem specific)
ATL2 speaker volume medium (modem specific)
ATL3 speaker volume high (modem specific)
ATM0 speaker always off
ATM1 speaker on except while carrier present
ATM2 speaker always on
ATM3 speaker on except while dialing and carrier present
ATO force modem into on-line state
ATP sets modem to default pulse dial
ATQ0 modem returns result codes
ATQ1 modem does not return result codes
ATR sets modem to answer mode after dialing out
ATSn where Sn is S register number 'n' (see registers below)
ATT sets modem to default tone dial
ATV0 send numeric codes
ATV1 send word result codes
ATX0 basic result code set "CONNECT", no dial tone detect
ATX1 extended result code set "CONNECT 1200", no dialtone detect
ATX2 wait for dial tone, extended result codes
ATX3 detect busy signal, extended result codes
ATX4 wait for dial tone, detect busy, extended result codes
ATZ reset to power up condition
^Hayes 2400 Compatible Modem Commands
ATB0 CCITT V.22 at 1200 bps
ATB1 BELL 212A at 1200 bps
AT&C DCD always on
AT&C1 DCD on while carrier present
AT&D DTR ignored
AT&D1 DTR fail disconnect enabled
AT&D2 DTR fail disconnect enabled (auto answer off)
AT&D3 DTR fail disconnect enabled (reset modem)
AT&F restore to factory configuration
AT&G no guard tone
AT&G1 550 Hz guard tone
AT&G2 1800 Hz guard tone
AT&J RJ11/RJ41S/RJ45 jack
AT&J2 RJ12/RJ13 jack
AT&L regular phone line
AT&L1 leased line
AT&M async operation
AT&M1 async/sync operation
AT&M2 sync auto dial
AT&M3 sync manual dial
AT&P 39/61 pulse make/break ratio
AT&P1 33/67 pulse make/break ratio
AT&T4 grant RDL test request
AT&T5 deny RDL test request
AT&W write current registers to non-volatile memory
AT&X sync clock internal
AT&X1 sync clock external
AT&X2 sync clock slaved
AT&Z store dial command line
^Hayes Compatible Modem Registers
Not all modems support all of these registers and some modems have
registers other than those listed here. Also note, some are read only.
to set a register use: AT Sr=## (cr)
to read the register: AT Sr? (cr)
Where "r" is the register and (cr) is a carriage return
% The following represent conventions used in the tables below:
() indicates defaults for Smartmodem 1200
** indicates possible inconsistencies across modems
% Reg Values Register function
S0 0-255 ring to answer on (0=don't answer)
S1 0-255 ring count (clear after 8 sec) (read only)
S2 0-255 escape char, normally "+", 128-255 disable escape
S3 0-127 end of line character (0x0D/CR)
S4 0-127 line feed character (0x0A/LF)
S5 0-32,127 backspace character (0x08/BS)
S6 2-255 pause before dialing in seconds (2)
S7 1-255 wait for carrier in seconds (30)
S8 0-255 pause for comma in dial string in seconds (2)
S9 1-255 carrier detect response time in 1/10 second (6)
S10 1-255 carrier loss delay in 1/10 second, 255=ignore CD (7)
S11 50-255 touch tone dial speed, in milliseconds (70)
S12 20-255 escape guard time, in 1/50 second,0=no delay (50)
│7│6│5│4│3│2│1│0│ S13 power up async data format
│ │ │ │ │ │ │ └──── unused
│ │ │ │ │ │ └───── result code, 0=basic, 1=extended
│ │ │ │ │ └────── parity, 0=disabled, 1=enabled
│ │ │ │ └─────── parity, 0=odd ,1=even
│ │ │ └──────── data bits, 0=7 bits, 1=8 bits
│ │ └───────── undefined
│ └────────── buffer ovfw flag, 0=disabled,1=enabled
└─────────── 8th bit, 0=space,1=mark (8 bit only)
│7│6│5│4│3│2│1│0│ S14 option register status data format
│ │ │ │ │ │ │ └──── unused **
│ │ │ │ │ │ └───── local echo, 0=disabled, 1=enabled
│ │ │ │ │ └────── result codes, 0=enabled,1=disabled
│ │ │ │ └─────── result codes, 0=numeric,1=word
│ │ │ └──────── command recognition, 0=enable,1=disable
│ │ └───────── dial method, 0=touch tone, 1=pulse
│ └────────── unused **
└─────────── 0=answer, 1=originate **
S15 flag register **
│7│6│5│4│3│2│1│0│ S16 test status
│ │ │ │ │ │ │ └──── analog loop, 0=inactive, 1=active
│ │ │ │ │ │ └───── unused
│ │ │ │ │ └────── digital loop, 0=inactive, 1=active
│ │ │ │ └─────── remote req digital loop,0=inact.,1=active
│ │ │ └──────── remote digital loop,0=inact.,1=active
│ │ └───────── self test RDL, 0=inactive, 1=active
│ └────────── self test analog loop,0=inactive,1=active
└─────────── unused
S18 0-255 remote test timer in seconds
│7│6│5│4│3│2│1│0│ S21 option status
│ │ │ │ │ │ │ └──── jack type, 0=RJ11,RJ41,RJ45,1=RJ12,RJ13
│ │ │ │ │ │ └───── unused
│ │ │ │ │ └────── CTS state, 0=follows RTS, 1=forced on
│ │ │ └─┴─────── DTR modem behavior (see below)
│ │ └────────── DCD, 0=forced on, 1=follows carrier
│ └─────────── DSR, 0=forced on, 1=behaves normally
└──────────── long space disconnect,0=disabled,1=enabled
% Bits
% 43 DTR Modem Behavior Bits
00 ignore DTR
01 assume command state when DTR drops
10 assume command state and disable auto-answer when DTR drops
11 reset when DTR drops
│7│6│5│4│3│2│1│0│ S22 option status
│ │ │ │ │ │ └─┴──── speaker volume, 01=low,10=med,11=high
│ │ │ │ └─┴─────── speaker setting (see below)
│ └─┴─┴────────── X command in effect
└─────────────── make/break ratio, 0=39/61, 1=33/67
% Bits
% 32 S22 Speaker Setting
00 speaker always off
01 speaker on until carrier detected
10 speaker always on
11 speaker off during dialing, then on until CD
% Bits
% 654 S22 X Command in Effect
100 X1 command in effect
101 X2 command in effect
110 X3 command in effect
111 X4 command in effect
│7│6│5│4│3│2│1│0│ S23 option status
│ │ │ │ │ │ │ └──── remote dig.loop request,0=denied,1=ok
│ │ │ │ │ └─┴───── baud rate (see table)
│ │ │ │ └──────── unused
│ │ └─┴───────── parity (see table)
└─┴──────────── guard tone setting
% Bits
% 21 S23 Baud Rate Table
00 0-300 bps
01 600 bps
10 1200 bps
11 2400 bps
% Bits
% 54 S23 Parity Setting
00 even parity
01 parity bit always 0
10 odd parity
11 parity bit always 1
% Bits
% 76 S23 Guard Tone Setting
00 no guard tones
01 550 hz guard tone
10 1800 hz guard tone
S25 0-255 DTR detect delay in seconds (5)
S26 0-255 RTS to CTS delay in milliseconds (1)
│7│6│5│4│3│2│1│0│ S27 option status
│ │ │ │ │ │ └─┴──── synch/async mode (see table)
│ │ │ │ │ └─────── phone line, 0= public, 1=leased
│ │ │ │ └──────── unused
│ │ └─┴───────── clock type (see table)
│ └──────────── protocol, 0=CCITT V.22, 1=Bell 212A
└───────────── unused
% Bits
% 10 S27 Sync/Async mode
00 asynchronous mode
01 async/sync mode
10 sync auto-dial
11 sync manual dial
% Bits
% 45 S27 Clock Type
00 internal clock used
01 external clock used
10 slaved clock used
:game port:joystick
^Joystick / Game Port (201h)
│7│6│5│4│3│2│1│0│ Port at 201h used with Joysticks
│ │ │ │ │ │ │ └──── joystick a, x coord (0 = timing active)
│ │ │ │ │ │ └───── joystick a, y coord (0 = timing active)
│ │ │ │ │ └────── joystick b, x coord (0 = timing active)
│ │ │ │ └─────── joystick b, y coord (0 = timing active)
│ │ │ └──────── joystick a, button 1 (0=pressed)
│ │ └───────── joystick a, button 2 (0=pressed)
│ └────────── joystick b, button 1 (0=pressed)
└─────────── joystick b, button 2 (0=pressed)
│7│6│5│4│3│2│1│0│ Port at 201h used with Paddles
│ │ │ │ │ │ │ └──── paddle a coord (0 = timing active)
│ │ │ │ │ │ └───── paddle b coord (0 = timing active)
│ │ │ │ │ └────── paddle c coord (0 = timing active)
│ │ │ │ └─────── paddle d coord (0 = timing active)
│ │ │ └──────── paddle a, button (0=pressed)
│ │ └───────── paddle b, button (0=pressed)
│ └────────── paddle c, button (0=pressed)
└─────────── paddle d, button (0=pressed)
- accessed through port 201h
- bits 3-0 are resistive inputs with the length of the pulse
determined by 0-100K ohm resistive load. Use this formula:
% time = 24.2µ + ( 0.011µ * resistance )
or
% resistance = ( time - 24.2 ) / 0.011
- a read should be immediately preceded by a write (any data)
to start timing for the resistive values.
:Laserjet:HP Laserjet
^Hewlett Packard Laserjet Printer Control Codes
% Printer Control and Orientation
ESC E Reset printer
ESC z Self Test
ESC &l0O Portrait orientation
ESC &l1O Landscape orientation
ESC (s0P Select fixed space font
ESC (s1P Select proportional font
ESC (s0S Set upright character orientation
ESC (s1S Set Italic character orientation
ESC &l#X Select '#' number of copies
ESC &l0H Eject page
ESC &l1H Feed paper from tray
ESC &l2H Feed paper manually
ESC &l3H Feed envelope
ESC &l0T Default stacking position
ESC &l1T Togglestacking position
% 8 Bit Symbol Set Selection
ESC (8U Select Roman 8 symbol set
ESC (8K Select Kana 8 symbol set
ESC (8M Select Math 8 symbol set
% 7 Bit Symbol Set Selection
ESC (0U Select USASCII symbol set
ESC (0B Select Line Draw symbol set
ESC (0A Select Math symbol set
ESC (0M Select Math 7 symbol set
ESC (0Q Select Math 8a symbol set
ESC (1Q Select Math 8b symbol set
ESC (1U Select US Legal symbol set
ESC (0E Select Roman Extension symbol set
ESC (0D Select ISO Denmark/Norway symbol set
ESC (1E Select ISO United Kingdom symbol set
ESC (0F Select ISO France symbol set
ESC (0G Select ISO German symbol set
ESC (0I Select ISO Italy symbol set
ESC (0S Select ISO Sweden/Finland symbol set
ESC (1S Select ISO Spain symbol set
ESC (15U Select PiFont symbol set
ESC (2Q Select PiFonta symbol set
% Font Management
ESC (s3T Select Courier font
ESC (s0T Select Line Printer font
ESC (s1T Select Pica font
ESC (s2T Select Elite font
ESC (s4T Select Helvetica font
ESC (s5T Select Times Roman (TMS RMN) font
ESC (s6T Select Gothic font
ESC (s7T Select Script font
ESC (s8T Select Prestige font
ESC *c#D Specify font ID '#'
ESC *c#E Specify character code '#'
ESC *c0F Delete all fonts, including permanent
ESC *c1F Delete all temporary fonts
ESC *c2F Delete last font ID specified
ESC *c3F Delete last character code and font ID specified
ESC *c4F Make last font ID temporary
ESC *c5F Make last font ID permanent
ESC *c6F Copy or assign last font ID specified
ESC *c7F Reestablish ROM
ESC *c8F Set primary font
ESC *c9F Set secondary font
ESC *c10F Set primary and secondary font default
ESC )s#W <data> Create font header
ESC (s#W <data> Download character
ESC (#X <data> Designate downloaded font as primary
ESC )#X <data> Designate downloaded font as secondary
ESC (#@ Primary font default (see printer manual)
ESC )#@ Secondary font default(see printer manual)
% Pitch and Point Selection
ESC (s10H Set 10 pitch
ESC (s12H Set 12 pitch
ESC (s16.6H Set 16.66 pitch
ESC (s7V Set point size to 7
ESC (s8V Set point size to 8
ESC (s8.5V Set point size to 8.5
ESC (s10V Set point size to 10
ESC (s12V Set point size to 12
ESC (s14.4V Set point size to 14.4
% Page Dimensions
ESC &l#P Set page length to '#' lines
ESC &l#E Set top margin to '#' lines
ESC &l#F Set text length to '#' lines
ESC 9 Clear margins
ESC &a#L Set left margin to column '#'
ESC &a#M Set right margin to column '#'
ESC &l#C Set vertical motion index to '#' 1/48" increments
ESC &l#D Set lines per inch to '#', valid values are:
1, 2, 3, 4, 6, 8, 12, 16 or 24
ESC &k#H Set horizontal motion index where # is derived
using # = (120.0 / cpi) (1/10 precision)
% Cursor Positioning
ESC &a#R Move to row '#'
ESC &a#C Move to col '#'
ESC &a#H Move to horizontal position '#' in decipoints
ESC &a#V Move to vertical position '#' in decipoints
ESC *p#X Move to horizontal position '#' in dots
ESC *p#Y Move to vertical position '#' in dots
ESC &f0S Push cursor position
ESC &f1 Pop cursor position
% Raster Graphics
ESC *t75R Select 75 dots per inch graphics mode
ESC *t100R Select 100 dots per inch graphics mode
ESC *t150R Select 150 dots per inch graphics mode
ESC *t300R Select 300 dots per inch graphics mode
ESC *r0A Start graphics at left most position
ESC *r1A Start graphics at current cursor
ESC *b#W <data> Transfer '#' byte raster image as stream "<data>"
ESC *rB End graphics
% Advanced Graphics
ESC *c#A Set horizontal rule/pattern size in dots
ESC *c#H Set horizontal rule/pattern size in decipoints
ESC *c#B Set vertical rule/pattern size in dots
ESC *c#V Set vertical rule/pattern size in decipoints
ESC *c0P Select black rule
ESC *c2P Select gray scale pattern
ESC *c3P Select HP-Defined pattern
ESC *c#G Set grey scale pattern, where # is a value between
[0..6] for HP defined patterns and [0..100] to
specify percentage gray scaling. The mode depends
on the rule/pattern selected using ESC *c?P
ESC *c1G Vertical lines pattern
ESC *c2G Horizontal lines pattern
ESC *c3G Diagonal lines pattern (upward left to right)
ESC *c4G Diagonal lines pattern (downward left to right)
ESC *c5G Horizontal/vertical grid lines pattern
ESC *c6G Diagonal grid pattern
ESC *c#G Set gray scaling to '#' percent
% Macro commands
ESC &f#Y Identify macro as ID "#'
ESC &f0X Start macro definition
ESC &f1X Stop macro definition
ESC &f2X Execute macro
ESC &f3X Call macro
ESC &f4X Enable auto macro overlay
ESC &f5X Disable auto macro overlay
ESC &f6X Delete all macros
ESC &f7X Delete all temporary macros
ESC &f8X Delete macro ID
ESC &f9X Make macro temporary
ESC &f10X Make macro permanent
% Miscellaneous
ESC (s#B Set stroke weight '#'=(7..-7), 7=bold, -7=light
ESC &dD Set underline on
ESC &d@ Set underline off
ESC = Half line feed
ESC Y Turn display functions mode on
ESC Z Turn display functions mode off (default)
ESC &p#X <data> Disable command interpretation for the '#' bytes
following this command
ESC &l0L Disable perforation skip
ESC &l1L Enable perforation skip
ESC &k0G Set line terminators to CR=CR, LF=LF, FF=FF
ESC &k1G Set line terminators to CR=CR+LF, LF=LF, FF=FF
ESC &k2G Set line terminators to CR=CR, LF=CR+LF, FF=CR+FF
ESC &k3G Set line terminators to CR=CR+LF, LF=CR+LF, FF=CR+FF
ESC &s0C Enable end of line wrap
ESC &s1C Disable end of line wrap
% Escape sequence combination rules:
1. The first 2 characters following the ESC must be the same.
2. The final character in any sequence other than the last must be
changed to lower case.
3. The last character in the complete sequence must be changed to
upper case.
4. Escape sequences must be specified in the order in which they
should be performed.
- the space following ESC is not included in the string
:keyboard commands
^Keyboard Commands & Responses
^Commands System Issues to Keyboard (via 8042 port 60h)
ED Set/Reset Mode Indicators, keyboard responds with ACK then
waits for a following option byte. When the option byte is
received the keyboard again ACK's and then sets the LED's
accordingly. Scanning is resumed if scanning was enabled.
If another command is received instead of the option byte
(high bit set on) this command is terminated. Hardware
defaults to these indicators turned off.
│7-3│2│1│0│ Keyboard Status Indicator Option Byte
│ │ │ └─── Scroll-Lock indicator (0=off, 1=on)
│ │ └──── Num-Lock indicator (0=off, 1=on)
│ └───── Caps-Lock indicator (0=off, 1=on)
└─────── reserved (must be zero)
EE Diagnostic Echo, keyboard echoes the EE byte back to the system
without an acknowledgement.
F0 PS/2 Select/Read Alternate Scan Code Sets, instructs keyboard
to use one of the three make/break scan code sets. Keyboard
responds by clearing the output buffer/typematic key and then
transmits an ACK. The system must follow up by sending an
option byte which will again be ACK'ed by the keyboard:
00 return byte indicating scan code set in use
01 select scan code set 1 (used on PC & XT)
02 select scan code set 2
03 select scan code set 3
F2 PS/2 Read Keyboard ID, keyboard responds with an ACK and a two
byte keyboard ID of 83AB.
F3 Set Typematic Rate/Delay, keyboard responds with ACK and waits
for rate/delay byte. Upon receipt of the rate/delay byte the
keyboard responds with an ACK, then sets the new typematic
values and scanning continues if scanning was enabled.
│7│6│5│4│3│2│1│0│ Typematic Rate/Delay Option Byte
│ │ │ ├─┼─┼─┼─┼──── typematic rate indicator (see ~INT 16,3~)
│ │ │ │ │ └─┴─┴─── A in period formula (see below)
│ │ │ └─┴──────── B is period formula (see below)
│ └─┴─────────── typematic delay
└────────────── always zero
delay = (rate+1) * 250 (in milliseconds)
rate = (8+A) * (2**B) * 4.17 (in seconds, ± 20%)
Defaults to 10.9 characters per second and a 500ms delay. If a
command byte (byte with high bit set) is received instead of an
option byte this command is cancelled.
F4 Enable Keyboard, cause the keyboard to clear its output buffer
and last typematic key and then respond with an ACK. The
keyboard then begins scanning.
F5 Default w/Disable, resets keyboard to power-on condition by
clearing the output buffer, resetting typematic rate/delay,
resetting last typematic key and setting default key types.
The keyboard responds with an ACK and waits for the next
instruction.
F6 Set Default, resets to power-on condition by clearing the output
buffer, resetting typematic rate/delay and last typematic key
and sets default key types. The keyboard responds with an ACK
and continues scanning.
F7 PS/2 Set All Keys to Typematic, keyboard responds by sending an
ACK, clearing its output buffer and setting the key type to
Typematic. Scanning continues if scanning was enabled. This
command may be sent while using any Scan Code Set but only has
effect when Scan Code Set 3 is in use.
F8 PS/2 Set All Keys to Make/Break, keyboard responds by sending an
ACK, clearing its output buffer and setting the key type to
Make/Break. Scanning continues if scanning was enabled. This
command may be sent while using any Scan Code Set but only has
effect when Scan Code Set 3 is in use.
F9 PS/2 Set All Keys to Make, keyboard responds by sending an ACK,
clearing its output buffer and setting the key type to Make.
Scanning continues if scanning was enabled. This command may
be sent while using any Scan Code Set but only has effect when
Scan Code Set 3 is in use.
FA PS/2 Set All Keys to Typematic Make/Break, keyboard responds by
sending an ACK, clearing its output buffer and setting the key
type to Typematic Make/Break. Scanning continues if scanning
was enabled. This command may be sent while using any Scan Code
Set but only has effect when Scan Code Set 3 is in use.
FB PS/2 Set Key Type to Typematic, keyboard responds by sending an
ACK, clearing its output buffer and then waiting for the key ID
(make code from Scan Code Set 3). The specified key type is then
set to typematic. This command may be sent while using any
Scan Code Set but only has effect when Scan Code Set 3 is in use.
FC PS/2 Set Key Type to Make/Break, keyboard responds by sending an
ACK, clearing its output buffer and then waiting for the key ID
(make code from Scan Code Set 3). The specified key type is then
set to Make/Break. This command may be sent while using any Scan
Code Set but only has effect when Scan Code Set 3 is in use.
FD PS/2 Set Key Type to Make, keyboard responds by sending an ACK,
clearing its output buffer and then waiting for the key ID (make
code from Scan Code Set 3). The specified key type is then set
to Make. This command may be sent while using any Scan Code Set
but only has effect when Scan Code Set 3 is in use.
FE Resend, should be sent when a transmission error is detected
from the keyboard
FF Reset, Keyboard sends ACK and waits for system to receive it
then begins a program reset and Basic Assurance Test (BAT).
Keyboard returns a one byte completion code then sets default
Scan Code Set 2.
^Keyboard Responses to System (via 8042 port 60h)
00 Key Detection Error or Overrun Error for Scan Code Set 1,
replaces last key in the keyboard buffer if the buffer is full.
AA BAT Completion Code, keyboard sends this to indicate the keyboard
test was successful.
EE Echo Response, response to the Echo command.
F0 Break Code Prefix in Scan Code Sets 2 and 3.
FA Acknowledge, keyboard sends this whenever a valid command or
data byte is received (except on Echo and Resend commands).
FC BAT Failure Code, keyboard sends this to indicate the keyboard
test failed and stops scanning until a response or reset is sent.
FE Resend, keyboard request resend of data when data sent to it is
invalid or arrives with invalid parity.
FF Key Detection Error or Overrun Error for Scan Code Set 2 or 3,
replaces last key in the keyboard buffer if the buffer is full.
id Keyboard ID Response, keyboard sends a two byte ID after ACK'ing
the Read ID command. The byte stream contains 83AB in LSB, MSB
order. The keyboard then resumes scanning.
- command F7 through FD are NOP's on the AT and are ACK'ed but not
acted upon
- see ~8042~ ~MAKE CODES~ ~BREAK CODES~ ~INT 16,3~
:parallel port:printer port
^Parallel Printer Port
% Port 3BC printer data output (readable)
│7│6│5│4│3│2│1│0│ ports 278, 378, 3BC
│ │ │ │ │ │ │ └──── data bit 0, hardware pin 2
│ │ │ │ │ │ └───── data bit 1, hardware pin 3
│ │ │ │ │ └────── data bit 2, hardware pin 4
│ │ │ │ └─────── data bit 3, hardware pin 5
│ │ │ └──────── data bit 4, hardware pin 6
│ │ └───────── data bit 5, hardware pin 7
│ └────────── data bit 6, hardware pin 8
└─────────── data bit 7, hardware pin 9
% Port 3BD printer status register (Parallel Printer Port)
│7│6│5│4│3│2│1│0│ ports 279, 379, 3BD
│ │ │ │ │ │ │ └──── 1 = time-out
│ │ │ │ │ └─┴───── unused
│ │ │ │ └──────── 1 = error, pin 15
│ │ │ └───────── 1 = on-line, pin 13
│ │ └────────── 1 = out of paper, pin 12
│ └─────────── 0 = Acknowledge, pin 10
└──────────── 0 = busy, pin 11
% Port 3BE printer control register (Parallel Printer Port)
│7│6│5│4│3│2│1│0│ ports 27A, 37A, 3BE
│ │ │ │ │ │ │ └──── 1 = output data to printer, (pin 1)
│ │ │ │ │ │ └───── 1 = auto line feed, (pin 14)
│ │ │ │ │ └────── 0 = initialize printer, (pin 16)
│ │ │ │ └─────── 1 = printer reads output, (pin 17)
│ │ │ └──────── 0 = IRQ disable,1=IRQ enable for ACK
└─┴─┴───────── unused
:ports:port addresses:hardware ports
^PORTS Common I/O Port Addresses
Port addresses are not always constant across PC, AT and PS/2
Unless marked, port addresses are relative to PC and XT only
% 000-00F 8237 DMA controller
000 Channel 0 address register
001 Channel 0 word count
002 Channel 1 address register
003 Channel 1 word count
004 Channel 2 address register
005 Channel 2 word count
006 Channel 3 address register
007 Channel 3 word count
008 Status/command register
009 Request register
00A Mask register
00B Mode register
00C Clear MSB/LSB flip flop
00D Master clear temp register
00E Clear mask register
00F Multiple mask register
% 010-01F 8237 DMA Controller (PS/2 model 60 & 80), reserved (AT)
% 020-02F 8259A Master Programmable Interrupt Controller
020 8259 Command port (see ~8259~)
021 8259 Interrupt mask register (see 8259)
% 030-03F 8259A Slave Programmable Interrupt Controller (AT,PS/2)
% 040-05F 8253 or 8254 Programmable Interval Timer (PIT, see ~8253~)
040 8253 channel 0, counter divisor
041 8253 channel 1, RAM refresh counter
042 8253 channel 2, Cassette and speaker functions
043 8253 mode control (see ~8253~)
044 8254 PS/2 extended timer
047 8254 Channel 3 control byte
% 060-067 8255 Programmable Peripheral Interface (PC,XT, PCjr)
060 8255 Port A keyboard input/output buffer (output PCjr)
061 8255 Port B output
062 8255 Port C input
063 8255 Command/Mode control register
% 060-06F 8042 Keyboard Controller (AT,PS/2)
060 8042 Keyboard input/output buffer register
061 8042 system control port (for compatability with 8255)
064 8042 Keyboard command/status register
070 CMOS RAM/RTC, also NMI enable/disable (AT,PS/2, see ~RTC~)
071 CMOS RAM data (AT,PS/2)
080 Manufacturer systems checkpoint port (used during POST)
% 080-090 DMA Page Registers
081 High order 4 bits of DMA channel 2 address
082 High order 4 bits of DMA channel 3 address
083 High order 4 bits of DMA channel 1 address
% 090-097 POS/Programmable Option Select (PS/2)
090 Central arbitration control Port
091 Card selection feedback
092 System control and status register
094 System board enable/setup register
095 Reserved
096 Adapter enable/setup register
097 Reserved
0A0 NMI Mask Register (PC,XT) (write 80h to enable NMI, 00h disable)
% 0A0-0BF Second 8259 Programmable Interrupt Controller (AT, PS/2)
0A0 Second 8259 Command port (see ~8259~)
0A1 Second 8259 Interrupt mask register (see 8259)
0C0 TI SN76496 Programmable Tone/Noise Generator (PCjr)
% 0C0-0DF 8237 DMA controller 2 (AT)
0C2 DMA channel 3 selector (see ports 6 & 82)
0E0-0EF Reserved
% 0F0-0FF Math coprocessor (AT, PS/2)
% 0F0-0F5 PCjr Disk Controller
0F0 Disk Controller
0F2 Disk Controller control port
0F4 Disk Controller status register
0F5 Disk Controller data port
% 0F8-0FF Reserved for future microprocessor extensions
% 100-10F POS Programmable Option Select (PS/2)
100 POS Register 0, Adapter ID byte (LSB)
101 POS Register 1, Adapter ID byte (MSB)
102 POS Register 2, Option select data byte 1
Bit 0 is card enable (CDEN)
103 POS Register 3, Option select data byte 2
104 POS Register 4, Option select data byte 3
105 POS Register 5, Option select data byte 4
Bit 7 is (-CHCK)
Bit 6 is reserved
106 POS Register 6, subaddress extension (LSB)
107 POS Register 7, subaddress extension (MSB)
% 110-1EF System I/O channel
% 170-17F Fixed disk 1 (AT)
170 disk 1 data
171 disk 1 error
172 disk 1 sector count
173 disk 1 sector number
174 disk 1 cylinder low
175 disk 1 cylinder high
176 disk 1 drive/head
177 disk 1 status
% 1F0-1FF Fixed disk 0 (AT)
1F0 disk 0 data
1F1 disk 0 error
1F2 disk 0 sector count
1F3 disk 0 sector number
1F4 disk 0 cylinder low
1F5 disk 0 cylinder high
1F6 disk 0 drive/head
1F7 disk 0 status
% 200-20F Game Adapter (see GAME PORT or ~JOYSTICK~)
% 210-217 Expansion Card Ports (XT)
210 Write: latch expansion bus data
read: verify expansion bus data
211 Write: clear wait,test latch
Read: MSB of data address
212 Read: LSB of data address
213 Write: 0=enable, 1=/disable expansion unit
214-215 Receiver Card Ports
214 write: latch data, read: data
215 read: MSB of address, next read: LSB of address
21F Reserved
% 220-26F Reserved for I/O channel
% 270-27F Third parallel port (see ~PARALLEL PORT~)
278 data port
279 status port
27A control port
% 280-2AF Reserved for I/O channel
% 2A2-2A3 MSM58321RS clock
% 2B0-2DF Alternate EGA, or 3270 PC video (XT, AT)
2E0 Alternate EGA/VGA
2E1 GPIB Adapter (AT)
% 2E2-2E3 Data acquisition adapter (AT)
% 2E8-2EF COM4 non PS/2 UART (Reserved by IBM) (see ~UART~)
% 2F0-2F7 Reserved
% 2F8-2FF COM2 Second Asynchronous Adapter (see UART)
Primary Asynchronous Adapter for PCjr
% 300-31F Prototype Experimentation Card (except PCjr)
Periscope hardware debugger
% 320-32F Hard Disk Controller (XT)
320 Read from/Write to controller
321 Read: Controller Status, Write: controller reset
322 Write: generate controller select pulse
323 Write: Pattern to DMA and interrupt mask register
(see ports 0F,21,C2)
324 disk attention/status
% 330-33F Reserved for XT/370
% 340-35F Reserved for I/O channel
% 360-36F PC Network
% 370-377 Floppy disk controller (except PCjr)
372 Diskette digital output
374 Diskette controller status
375 Diskette controller data
376 Diskette controller data
377 Diskette digital input
% 378-37F Second Parallel Printer (see ~PARALLEL PORT~)
First Parallel Printer (see PARALLEL PORT)
378 data port
379 status port
37A control port
% 380-38F Secondary Binary Synchronous Data Link Control (SDLC) adapter
380 On board 8255 port A, internal/external sense
381 On board 8255 port B, external modem interface
382 On board 8255 port C, internal control and gating
383 On board 8255 mode register
384 On board 8253 channel square wave generator
385 On board 8253 channel 1 inactivity time-out
386 On board 8253 channel 2 inactivity time-out
387 On board 8253 mode register
388 On board 8273 read: status; Write: Command
389 On board 8273 write: parameter; read: response
38A On board 8273 transmit interrupt status
38B On board 8273 receiver interrupt status
38C On board 8273 data
% 390-39F Cluster Adapter
% 3A0-3AF Primary Binary Synchronous Data Link Control (SDLC) adapter
3A0 On board 8255 port A, internal/external sense
3A1 On board 8255 port B, external modem interface
3A2 On board 8255 port C, internal control and gating
3A3 On board 8255 mode register
3A4 On board 8253 counter 0 unused
3A5 On board 8253 counter 1 inactivity time-outs
3A6 On board 8253 counter 2 inactivity time-outs
3A7 On board 8253 mode register
3A8 On board 8251 data
3A9 On board 8251 command/mode/status register
% 3B0-3BF Monochrome Display Adapter (write only, see ~6845~)
3B0 port address decodes to 3B4
3B1 port address decodes to 3B5
3B2 port address decodes to 3B4
3B3 port address decodes to 3B5
3B4 6845 index register, selects which register [0-11h]
is to be accessed through port 3B5
3B5 6845 data register [0-11h] selected by port 3B4,
registers 0C-0F may be read. If a read occurs without
the adapter installed, FFh is returned. (see 6845)
3B6 port address decodes to 3B4
3B7 port address decodes to 3B5
3B8 6845 Mode control register
3B9 reserved for color select register on color adapter
3BA status register (read only)
3BB reserved for light pen strobe reset
% 3BC-3BF Primary Parallel Printer Adapter (see ~PARALLEL PORT~)
3BC parallel 1, data port
3BD parallel 1, status port
3BE parallel 1, control port
% 3C0-3CF EGA/VGA
3C0 VGA attribute and sequencer register
3C1 Other video attributes
3C2 EGA, VGA, CGA input status 0
3C3 Video subsystem enable
3C4 CGA, EGA, VGA sequencer index
3C5 CGA, EGA, VGA sequencer
3C6 VGA video DAC PEL mask
3C7 VGA video DAC state
3C8 VGA video DAC PEL address
3C9 VGA video DAC
3CA VGA graphics 2 position
3CC VGA graphics 1 position
3CD VGA feature control
3CE VGA graphics index
3CF Other VGA graphics
% 3D0-3DF Color Graphics Monitor Adapter (ports 3D0-3DB are
write only, see 6845)
3D0 port address decodes to 3D4
3D1 port address decodes to 3D5
3D2 port address decodes to 3D4
3D3 port address decodes to 3D5
3D4 6845 index register, selects which register [0-11h]
is to be accessed through port 3D5
3D5 6845 data register [0-11h] selected by port 3D4,
registers 0C-0F may be read. If a read occurs without
the adapter installed, FFh is returned. (see ~6845~)
3D6 port address decodes to 3D4
3D7 port address decodes to 3D5
3D8 6845 Mode control register (CGA, EGA, VGA, except PCjr)
3D9 color select palette register (CGA, EGA, VGA, see 6845)
3DA status register (read only, see 6845, PCjr VGA access)
3DB Clear light pen latch (any write)
3DC Preset Light pen latch
3DF CRT/CPU page register (PCjr only)
% 3E8-3EF COM3 non PS/2 UART (Reserved by IBM) (see ~UART~)
% 3F0-3F7 Floppy disk controller (except PCjr)
3F0 Diskette controller status A
3F1 Diskette controller status B
3F2 controller control port
3F4 controller status register
3F5 data register (write 1-9 byte command, see ~INT 13~)
3F6 Diskette controller data
3F7 Diskette digital input
% 3F8-3FF COM1 Primary Asynchronous Adapter (see ~UART~)
3220-3227 PS/2 COM3 (see UART)
3228-322F PS/2 COM4 (see UART)
4220-4227 PS/2 COM5 (see UART)
4228-422F PS/2 COM6 (see UART)
5220-5227 PS/2 COM7 (see UART)
5228-522F PS/2 COM8 (see UART)
- many cards designed for the ISA ~BUS~ only uses the lower 10 bits
of the port address but some ISA adapters use addresses beyond
3FF. Any address that matches in the lower 10 bits will decode
to the same card. It is up to the adapters to resolve or ignore
the high bits of the port addresses. An example would be the
Cluster adapter that has a port address of 390h. The second
cluster adapter has a port address of 790h which resolves to
the same port address with the cards determining which one
actually gets the data.
:diagnostic codes:POST errors
^DIAGS IBM PC Diagnostic Error Codes
% Code Description (Diagnostic Error Codes)
1x undetermined problem errors
2x power supply errors
61 battery error (PS/2)
62 configuration changed but no adaptors changed or CRC error
63 memory size during POST does not match ~CMOS~ RAM
65 card Id's in CMOS do not match system
% 1xx System Board Errors
101 system board failed
102 BIOS ROM checksum error (PC, XT), Timer (AT)
103 BASIC ROM checksum error (PC, XT), Timer interrupt (AT)
104 interrupt controller (PC, XT), Protected mode (AT)
105 timer (PC,XT), Last ~8042~ command not accepted (AT)
106 converting logic test failure
107 adapter card or math coprocessor (NMI)
108 timer bus test
109 DMA test error
110 system board memory error (PS/2)
111 adapter memory
112 system unit adapter failure
114 system unit and adapter card unit failure (PS/1)
121 unexpected hardware interrupt
131 cassette wrap test failed
151 real-time clock, CMOS RAM or battery
152 real-time clock
161 system options error, battery failure
162 CMOS RAM configuration error
163 CMOS time and date not set
164 system memory configuration is incorrect
165 adapter added/removed
199 user indicated configuration not correct
% 2xx RAM Errors
201 memory test error
202 memory address error (Line error 0 - 15)
203 memory address error (Line error 16 - 23)
216 motherboard memory
% 3xx Keyboard Errors
301 keyboard did not respond to software reset or a stuck
(number preceding 301 is scan code for stuck key)
302 user indicated keyboard error or AT system unit is locked
303 keyboard or system board error
304 keyboard or system board error; CMOS does not match system
341 replace keyboard
342 replace keyboard interface cable
343 replace enhancement card or cable
365 keyboard (replace keyboard)
366 interface cable (replace cable)
367 enhancement card or cable (replace)
% 4xx Monochrome Monitor Errors
401 monochrome memory test, horizontal sync frequency
test, or video test failed
408 user indicated display attributes failure
416 user indicated character set failure
424 user indicated 80x25 mode failure
432 parallel port test failed (monochrome adapter)
% 5xx Color Monitor Errors
501 CGA memory test failed, horizontal sync frequency test, or
video test failed
508 user indicated display attribute failure
516 user indicated character set failure
524 user indicated 80x25 mode failure
532 user indicated 40x25 mode failure
540 user indicated 320x200 graphics mode failure
548 user indicated 640x200 graphics mode failure
556 light pen test
564 user indicated screen paging test
% 6xx Diskette Drive/Adapter Errors
601 diskette power on diagnostics test failed
602 diskette test failed (boot record not valid)
603 diskette size error
606 diskette verify function failed
607 write protected diskette
608 bad command diskette status returned
610 diskette initialization failed
611 time-out - diskette status returned
612 bad NEC ~FDC~ - diskette status returned
613 bad DMA - diskette status returned
614 DMA boundary error
621 bad seek - diskette status returned
622 bad CRC - diskette status returned
623 record not found - diskette status returned
624 bad address mark - diskette status returned
625 bad NEC seek - diskette status returned
626 diskette data compare error
627 diskette change line error
628 diskette removed
% 7xx 8087 Math Coprocessor
701 coprocessor test failure
% 9xx Parallel Printer Adapter Errors
901 parallel printer adapter test failed
% 10xx Alternate Parallel Printer Adapter
1001 alternate printer adapter test failure
% 11xx Asynchronous Communications Adapter Errors
1101 asynchronous communications adapter test failed
1110 modem status register not clear
1111 ring-indicate
1112 trailing edge ring-indicate
1113 receive and delta receive line signal detect
1114 receive line signal detect
1115 delta receive line signal detect
1116 line control register: all bits cannot be set
1117 line control register: all bits cannot be reset
1118 transmit holding and/or shift register stuck on
1119 data ready stuck on
1120 interrupt enable register: all bits cannot be set
1121 interrupt enable register: all bits cannot be reset
1122 interrupt pending stuck on
1123 interrupt ID register stuck on
1124 modem control register: all bits cannot be set
1125 modem control register: all bits cannot be reset
1126 modem status register: all bits cannot be set
1127 modem status register: all bits cannot be reset
1128 interrupt ID
1129 cannot force overrun error
1130 no modem status interrupt
1131 invalid interrupt pending
1132 no data ready
1133 no data available interrupt
1134 no transmit holding interrupt
1135 no interrupts
1136 no received line status interrupt
1137 no receive data available
1138 transmit holding register not empty
1139 no modem status interrupt
1140 transmit holding register not empty
1141 no interrupts
1142 no IRQ4 interrupt
1143 no IRQ3 interrupt
1144 no data transferred
1145 maximum baud rate
1146 minimum baud rate
1148 time-out error
1149 invalid data returned
1150 modem status register error
1151 no DSR and delta DSR
1152 no DSR
1153 no delta DSR
1154 modem status register not clear
1155 no CTS and delta CTS
1156 no CTS
1157 no delta CTS
% 12xx Alternate Asynchronous Communications Adapter
1200-1257 same as 1100-1157
% 13xx Game Control Adapter Errors
1301 game control adapter test failed
1302 joystick test failed
1380 audio card and joystick (PS/1)
% 14xx Printer Errors
1401 printer test failed
1404 matrix printer failed
% 15xx SDLC Communications Adapter Errors
1501 adapter test failure
1510 8255 port b failure
1511 8255 port a failure
1512 8255 port c failure
1513 8253 timer 1 did not reach terminal count
1514 8253 timer 1 stuck on
1515 8253 timer 0 did not reach terminal count
1516 8253 timer 0 stuck on
1517 8253 timer 2 did not reach terminal count
1518 8253 timer 2 stuck on
1519 8273 port b error
1520 8273 port a error
1521 8273 command/read time-out
1522 interrupt level 4 failure
1523 ring Indicate stuck on
1524 receive clock stuck on
1525 transmit clock stuck on
1526 test indicate stuck on
1527 ring indicate not on
1528 receive clock not on
1529 transmit clock not on
1530 test indicate not on
1531 DSR not on
1532 CD not on
1533 CTS not on
1534 DSR stuck on
1535 CD stuck on
1536 CTS stuck on
1537 level 3 interrupt failure
1538 receive interrupt results error
1539 wrap data compare error
1540 DMA channel 1 error
1541 DMA channel 1 error
1542 error in 8273 error checking or status reporting
1547 stray interrupt level 4
1548 stray interrupt level 3
1549 interrupt presentation sequence time-out
% 16xx Display Emulation Errors (327x, 5520, 525x)
% 17xx Fixed Disk Errors
1701 post error
1702 adapter error
1703 drive error (seek)
1704 adapter or drive error
1705 no record found
1706 write fault error
1707 track 0 error
1708 head select error
1709 defective error check
1710 read buffer overrun
1711 bad address mark
1712 undetermined error
1713 data compare error
1714 drive not ready
1780 disk 0 failure
1781 disk 1 failure
1782 disk controller failure
1790 fixed disk 0 error
1791 fixed disk 1 error
% 18xx I/O Expansion Unit Errors
1801 I/O expansion unit POST error
1810 enable/disable failure
1811 extender card wrap test failed (disabled)
1812 high order address lines failure (disabled)
1813 wait state failure (disabled)
1814 enable/disable could not be set on
1815 wait state failure (enabled)
1816 extender card wrap test failed (enabled)
1817 high order address lines failure (enabled)
1818 disable not functioning
1819 wait request switch not set correctly
1820 receiver card wrap test failure
1821 receiver high order address lines failure
% 19xx 3270 PC Attachment Card Errors
% 20xx Bisync Communications Adapter Errors
2010 8255 port a failure
2011 8255 port b failure
2012 8255 port c failure
2013 8253 timer 1 did not reach terminal count
2014 8253 timer 1 stuck on
2016 8253 timer 2 didn't reach terminal count or timer 2 stuck on
2017 8251 DSR failed to come on
2018 8251 CTS not sensed
2019 8251 DSR stuck on
2020 8251 CTS stuck on
2021 8251 hardware reset failed
2022 8251 software reset failed
2023 8251 software error reset failed
2024 8251 transmit ready did not come on
2025 8251 receive ready did not come on
2026 8251 could not force "overrun" error status
2027 interrupt failure, no timer interrupt
2028 transmit interrupt, card or planar failure
2029 transmit interrupt, card failure
2030 receive interrupt, card or planar failure
2031 receive interrupt, card failure
2033 ring indicate stuck on
2034 receive clock stuck on
2035 transmit clock stuck on
2036 test indicate stuck on
2037 ring indicate stuck on
2038 receive clock not on
2039 transmit clock not on
2040 test indicate not on
2041 DSR not on
2042 CD not on
2043 CTS not on
2044 DSR stuck on
2045 CD stuck on
2046 CTS stuck on
2047 unexpected transmit interrupt
2048 unexpected receive interrupt
2049 transmit data did not equal receive data
2050 8251 detected overrun error
2051 lost DSR during data wrap
2052 receive time-out during data wrap
% 21xx Alternate Bisync Communications Adapter Errors
2100-2152 same as 2000-2052
% 22xx Cluster Adapter Errors
% 24xx EGA Errors
2401 adapter test failure
2408 user-indicated display attributes
2416 user-indicated character set
2424 user-indicated 80x25 mode
2432 user-indicated 40x25 mode
2440 user-indicated 320x200 graphics mode
2448 user-indicated 640x200 graphics mode
2456 light pen test
2464 user-indicated screen paging test
% 2501 EGA Display Error
% 28xx 3278/79 Emulator Adapter (PC, XT)
% 29xx Color Matrix Printer Errors
% 30xx Local Area Network Adapter
% 31xx Alternate Local Area Network Adapter
% 33xx Compact Printer Errors
% 36xx IEEE 488 Adapter
% 37xx Reserved for Future Use
% 38xx Data Acquisition Adapter
% 39xx PGA Display and/or Adapter
% 48xx Internal Modem
% 49xx Alternate Internal Modem
% 71xx Voice Communications Adapter
% 73xx 3.5 Inch Diskette Drive
7301 diskette drive/adapter test failure
7306 diskette change line error
7307 write-protected diskette
7308 bad command
7310 track zero error
7311 timeout
7312 bad NEC7313 bad DMA
7314 DMA boundary error
7315 bad index
7316 speed error
7321 bad seek
7322 bad CRC
7323 record not found
7324 bad address mark
7325 bad NEC seek
% 86xx PS/1 Mouse Error
- all error codes for the diagnostic and advanced diagnostic
packages for the PC, XT and AT are represented with the device
number followed by two digits other than 00. The device number
plus 00 represents successful completion of the test.
:resistor values
^Resistor Color Code Chart
% Color Digit Multiplier
Black 0 1
Brown 1 10
Red 2 100 Gold ± 5% tolerance
Orange 3 1,000 Silver ±10% tolerance
Yellow 4 10,000
Green 5 100,000
Blue 6 1,000,000
Violet 7 10,000,000
Gray 8 100,000,000
White 9 1,000,000,000
% ╒═████░██▒██▓██░████═╕
% ┴ ┴
│ │ │ │
│ │ │ └────────── tolerance (gold or silver)
│ │ └──────────── Ohm value multiplier
└──┴────────────── first 2 digits of Ohm value
:RS232 pins:serial ports
^RS232 Communication Configuration
% IBM PC IBM AT
% Pin 25-Pin Signal (DTE) Pin 9-Pin Signal (DTE)
1 Chassis Ground (GND) 1 Carrier Detect (CD)
2 Transmit Data (TD) 2 Receive Data (RD)
3 Receive Data (RD) 3 Transmit Data (TD)
4 Request to Send (RTS) 4 Data Terminal Ready (DTR)
5 Clear to Send (CTS) 5 Signal Ground (SG)
6 Data Set Ready (DSR) 6 Data Set Ready (DSR)
7 Signal Ground (SG) 7 Request to Send (RTS)
8 Carrier Detect (CD) 8 Clear to Send (CTS)
9-19 (not used) 9 Ring Indicator (RI)
20 Data Terminal Ready (DTR)
22 Ring Indicator (RI)
There are two general cable configurations used with the RS-232C
Communications Standard:
Data Terminal Equipment (DTE): IBM PC's, printers, plotters, etc
Data Communication Equipment (DCE): modems, multiplexors, etc
DCE to DTE requires all lines run straight through
DTE to DTE usually requires swapping of the following lines
RD and TD RD and TD
RTS and CTS or RTS,CTS and DCD
DTR and DSR DCD and RTS,CTS
% Signal Functions
GND Ground protective safety ground
TD Transmit Data DTE output data
RD Receive Data DTE input data
RTS Request To Send DTE output, DTE would like to transmit
CTS Clear To Send DTE input, DCE is ready to transmit
DSR Data Set Ready DTE input, DCE is ready to communicate
SG Signal Ground provides a Zero reference voltage
DCD Data Carrier Detect DTE input, data link established, also
known as Receive Line Signal Detect (RLSD)
DTR Data Terminal Ready DTE output, device ready
RI Ring Indicator DTE input, announces incoming call
- RTS/CTS is used for half duplex line turn around
- in half duplex DCD is asserted only by the receiving device
- full duplex modems tie CTS & DCD together (no CTS/RTS handshaking)
- most modems require DTR to be present to respond to commands
- maximum voltages are between -15 volts and +15 volts
- binary outputs are between +5 to +15 volts and -5 to -15 volts
- binary inputs are between +3 to +15 volts and -3 to -15 volts
- input voltages between -3 to +3 are undefined while output voltages
between -5 and +5 are undefined
- positive voltages indicate ON or SPACE, negative voltages indicate
OFF or MARK