Manual / Guide · 1985
Sony MSX Technical Data Book — Hardware/Software Specifications
I/O ports B8H–BBH reserved for the Sanyo light pen. Scan by Ivan Latorre, PDF by Eduardo Robsy (2004).
- msx
- light pen
- i/o map
Manual / Guide · 1985
I/O ports B8H–BBH reserved for the Sanyo light pen. Scan by Ivan Latorre, PDF by Eduardo Robsy (2004).
t'.liJ MSX Technical Data Book Hardware/Software Specifications Presented by Robs�/s MSX Worksho� Originaly scanned by Ivan Latorre Converted to PDF Eduardo Robsy [September 2004] SONY. MSX Technical Data Book Hardware/Software Specifications SONY. Sony Corporation 4 14 1, Asahi-cho, Atsugi-shi, Kanagawa-ken, 243 Japan Copyright t�:' 1984 Microsoft Corporation Produced by ASCII Corporation Printed in Japan PREFACE The Microsoft MSX standard was i nv ented to provide end users and software dev elopers with a standardiz ed computer so that programs could run on a ny computer even though they wer e made by d i f f er ent manufacturers. Thi s book pr esents the MSX s pe c i f ications in detai l . It is i ntended to be a ref er ence for adv a nced prog r ammers and software dev eloper s . The i nformation is generally divided four parts. Part A, MSX H ARDWARE SPECI FICATIONS, for the MSX system hardwar e. pr esents the specifications Chapter 1 , Hardwar e Specif ica t i o n, cov er s the MSX sta ndard hardware conf iguration i n terms of the r eq u i r em ents for the LSis, i nt er r upts, m emory siz e, scr een, keyboard, and sound used i n the mai n uni t ; a nd the various (cassette, fl oppy , pr i nt er , serial , and i nt erfaces and co nnectors. It also covers topics such as slot > cartridges, expa nsion, ports, a nd m emory maps. MS X SYSTEM SOFTWARE, contains a r ef er ence guide for MSX Part B, BAS IC a nd i nformation for adva nced programmi ng . Chapter 2 , Language Specification, i s a guide to MSX-BAS I C a nd is for use with advanced programming r eq u i r i ng machine l a n guage routi nes. is about the advanced f ea Par t C, EXPANDED MSX SYSTEM SOFTWARE, tur es of MSX, includi ng Expa nded Disk B AS I C and MSX-DOS. Chapter 3 , MSX-DOS, co ntai ns a us er ' s guide to MSX-DOS and the adva nced and i ncludes i nformation needed for Disk BASIC, programmer . Chapter 4, Other Expa nsion, covers the serial (RS-232C) pans i o n and B IOS call s availabl e i n the extended version. Part D, SOFTWARE DEVELOPMENT GUIDE, ware developers. ex contains informati o n for soft Chapt er 5, I nternational MSX V ersions a nd their Diff er ences, is for manufacturers or programmers who w i sh to make the hardware or softwar e be usable i nt er nationally. contains Notes for MSX Software Dev el oper s, Chapter 6 , when software dev elopers shoul d consider that i nf o rmation programming for MSX computers. Syntax Notation i n Reference Sections Wherever the format f or a statement/command or a function is given, the following rules apply : CAPS Items in capital letters must be input as shown. < > Items in lowercase letters enclosed in angle brackets << > > are to be suppl ied by the user. ( 1 Items in square brackets ( [ l) are optional . . { . may be repeated I tems followed by an ellipsis ( • • • > number of times (up to the length of the l ine ) . . } any Braces indicate that the user has a choice between two or more entries. At least one of the entries enclosed i n braces must be chosen unless the ent ries are also enclosed in square brackets. At least vertical bars separate the choices within braces. one of the entries separ ated by bars must be chosen unless the entries are also enclosed in square brackets. All punctuation except angle brackets and square brackets ( i. e. , commas, parentheses , semicolons, hyphens, equal signs> must be included where shown. Arguments to functions are always enclosed in parentheses. In the the arguments are formats given for the functions in this book, abbrev iated as f ol l ow s : X and Y Represent any numer i c expressions. I and J Repr esent integer expr essions. X$ and Y $ Represent string expressions. 2 C O N T E N T S PART A 1. MSX HAROOARE SPECIFICATIONS Hardwa-re S pecif !cations 1 . 1 MSX Standar d • • • • • • • • • • • • • • • 8 .... 1 . 2 Y�X System Conf iguration • • 9 ... 1 . 3 Main Unit • .10 ... .. .... 1 .3 . 1 LSis .... • . 10 ..... 1 .3 . 2 Memory • • . . . • . • . 10 ........ 1 . 3 . 3 Interrupts • • • .11 . . . . . .. . • • • • • • • • 1 . 3 . 4 Screen • • .. . • • • 12 1 . 3 . 5 Keyboard .13 ... .. .... 1 . 3 .6 Sound .14 .. ... .. . 1 . 4 Interfaces . . . . .15 . .. 1 . 4 . 1 Cassette Interface 15 1 . 4 . 2 Floppy Disk Interface .18 1 . 4 . 3 Printer Interf ace 19 1 . 4 . 4 RS-232C Interf ace ... . .... ......... • • 20 1 . 4 . 5 Peripheral I/O Por t ( s ) • • 25 .... 1 . 4 . 6 Joysticks .... • • • 27 1 . 4 .7 Paddles • • • •2 8 1 . 4 . 8 Connectors ............ 29 • • 1 .4 . 9 Slots . • • • • ....... 30 1 . 5 Cartridges • • • • • • ....... . . . . . . 31 • • • 31 1 .5 . 1 Cartr idge Standa r d .32 1 . 5 . 2 Cartr idge Bus . . . ... • 34 1 . 5 . 3 Cartr idge Bus Connenction Condi tions • 3 4 1 . 5 . 4 Car tridge Power Capacity . . . . . . . . . . . . . . . . . . . 1 . 5 . 5 S ampl e Circuit Diagram of Expanded Slot Select Signal3 5 1 . 6 Notes for System Expansion • • • • • • • . 36 • I I I e 1 . 6 . 1 RAM Expansion • • 36 ..... . .... 1 . 6 . 2 Slot Expansion ..... • • • • • • • . • 36 .... 1.6.3 I/0 Expansion • • • • • • • • • • • • • 37 1 . 7 Address Maps • • • . . 38 1 . 7 . 1 Memory Map • • •3 8 1 .7 .2 I/0 Address Map • • 40 1 .7 . 3 Printer Port • • 41 ..... 1 .7 .4 VDP Po rt . 41 l . 7 • 5 PSG Po r t ... . 41 ........ l . 7 . 6 PPI Port . . . . . . . . . . . . 41 .. ... 1 .7 . 7 . . . . . . . . 41 .. .. ...... External Memory ( SONY) . . . . . 41 1 . 7 . 8 L ight Pen ( SANYO ) . . . . . • • 42 1 .7 . 9 Audio/Video Control 42 1 . 7 . 1 0 Notes on I/O Address Assi gnments . 43 1 . 7 . 1 1 8255 (PPI > Bit Assi gnments . 44 1 . 7 . 12 PSG B i t Assignments • • • . • • • ... . . • • • • . . • • I e • PART B 2. • • • • MSX SYSTEM SOFTWARE Language Specifications 2 . 1 MSX B AS IC Reference Guide • . 2 . 1 . 1 Modes of Operation • • • • • • • • 3 ....... 46 . . 46 • • 2 . 1 . 2 Line Format • • • • • . • • • • . • • • • . • • • • • • • • • . • . • . • . • • . . • • . . • 47 2 .1 . 3 Character Set • • • • • • • • . . • • • • • • • • • • • • • • • . . • • • . • • . • • • • • 47 2 . 1 . 4 Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 8 2 . 1 . 5 Var iabl e s . . . . . . . . . . . . . . . . . . . . . • . . . . . . . . . . . . . . . . . . . • . 50 2 . 1 . 6 'I'i'pe- Conversion . • . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Expressions and Operators . • • • • • . • • • • • • . • • • • • . • • • . . • . 53 2.1.7 2 . 1 . 8 Program. Editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 2 . 1 . 9 Special Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 2 . 1 . 1 0 Error Messages • • • • • • • • • . • • • • . . • • • • • • • • . . . • . • • • . • • • • • 63 2 . 1 . 1 1 Commands and Statements except those doing I/0 • . . . • . 63 2 . 1 . 1 2 Functions except those doing I/O • . • . • • . • • • • • . • • • . • • . 7 9 2 . 1 .13 Device Speci f ic statements • • • • • . . • . . . . . • • . • • • • . • . • • . 84 2 . 1 . 1 4 I/O Functions • • • • . • • • . • • • . . . � • • . • • • • . • . • . . • • . • • • • • . 1 00 2 . 1 . 1 5 Special Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 0 2 2 .1 . 16 Machine Dependent Statements and Functions • • • • • • • • • 1 04 2 . 1 . 1 7 Summary of Error Codes and Messages • • • . . • . • • • • • • • • • 1 05 2 . 1 . 1 8 MSX BASIC Reserved words • • • • • • • • . . • • • • . • • • • . • • • • • . • 1 0 9 2 . 2 Advanced Programming Guide • • • . • • • • • • • • . • • . . • • . • • . • • • . • 1 1 0 2 . 2 . 1 BIOS Entry List • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • 1 1 0 2 . 2 . 2 Work Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 5 2 . 2 . 3 Slot Cont r ol . . . ... ... . . . . . . . . . . . . . . . . . . .. . . . . . . . . ... . 1 6 1 2 . 2 . 4 Cassette I/O Mechanism . • • • • • • • • . . • • • • • . • • . • • . • • • • • • 172 2 . 2 .5 MSX Printer Specifications • • • • • • • . • • • • . • . . • • • • • . • • . 177 . ���� .. . .. .. . .. PART C 3. .. EXPANDED MSX SYSTEM SOFTWARE MSX-DOS 3 .1 MSX-DOS User's Guide • • • . • • • • • • • • • • • • • • • • • . • • • • • . • • • • • • 1 82 Sy stern Requirements • • • • • • • . . • • • • • • . • • . . • . • • • • • . . • • • 1 82 3 .1 .1 3 . 1 . 2 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 82 3 . 1 . 3 Wild Cards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 84 . . . . 3 . 1 . 4 Ill egal File Names • • • • • . . . . • • . • • • . . . . . . . • • • • • • • • • • • 1 85 3 . 1 .5 Directories • . . • • • • • • • • • • . • • • • • • • • • • . . • . . • • • • • • • • • • • 1 86 3 . 1 . 6 Types of MSX-DOS Commands • • • . • • • . • • • • • . • • • • • • • • • • • . 1 86 3 . 1 . 7 Command Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 87 3 . 1 . 8 Information Common to All MSX-DOS Commands • • • • • • • • • 1 8 8 3 . 1 . 9 Batch Processing • • • • • • • . • • • . • • . • • . . . • . . . . • • • • • . . • . . 1 89 3 .1 .1 0 The AUTO EXEC. BAT F i l e • • • • • • • • • • • • • • • • • . • • • • • • • . • • • • 1 90 3 . 1. 1 1 How to Create a Batch File • • • • • • • • . • . • . . • • • • • • . . . . • 1 91 3 . 1 . 1 2 Replaceabl e Parameters i n .BAT Fil e . . . . • • • • . • • . • . . . 1 92 3 . 1 . 1 3 MSX-DOS Editing and Function Keys • • • • • . . • . • • • • • . . . . 194 3 . 1 . 1 4 Instructions for Users with Single-drive Systems • • • 2 00 3 . 1 . 1 5 Disk Errors • • • • • • . • • . • • • • • • . • . • . • . . • • • . • . . • . . • • • • • . 201 3 . 2 MSX-DOS Command Guide • . . . . • • • • • • • • • . . . • . • • • . • • • . • • • • • • 2 0 2 3 . 3 MSX Disk BASIC Reference Guide • • • • • • . • . . . . • • • • • • • • . • . • 2 1 9 3 . 3 . 1 Commands and Statements • . • • • • • • • • . • . • . . . • • • • • • • • • • • 2 1 9 3 . 3 . 2 Fun ct ions . . . . . • . . . . . . . . . • . . . . . . . . . . . . . . . . . . . . . . . . . . 2 46 3 . 3 . 3 Error Codes and Error Messages • • . • • • • • . • • . . • . • . . • • • 2 5 2 3 . 4 MSX-DOS and Disk BASIC Boot Procedure • • • • • • . • • • • • • • • • • 2 55 3 . 5 MSX -DOS and Disk BASIC Disk Drivers • • • • • • • • . • . • • • • • • • • 2 5 6 3 . 6 MSX-DOS System Calls • • • . . . . . • • • . • • • • . . • • . . • • • • . . . . • • • . 267 .. .. .. . .. . . . 4 .. . . . 4. Other Expansion 4 . 1 MSX-RS23 2C Suppo r t • • • • • • • • • • • • • • • • • • • • • • • • . • • • • • . • • • • . 2 90 4.1.1 Extended BASIC for RS-2 3 2C Commun i cation • . . • • • • . . . . 2 91 4 . 1 .2 Extended B IOS cal l s Handling RS-232C • • • . • • • • • • • • • . • 3 0 0 4 . 2 Other MSX Extended B IOS Calls • • • • • • . • • • • • • • • • • • • . • . . . • 3 0 9 4 . 2 .1 Extended B IOS Cal l s • • • . • • . • • • • • • . • • • • • • • • • • . . . . . . • • 3 0 9 4 . 2 .2 Extended B IOS Maker I D Number • • . . . • • • • . • • • • . • . . • • . • 3 1 3 Tenkey Suppo r t on MSX • • . • . • • • • • • • • • • • • • • • • • • . • • • • • • • • . 3 1 4 4.3 PART D s. SOFTWARE DEVELOPMENT GUIDE International MSX versions and their Differences 5.1 Introduction . . . . . . . . ..... . . . . . . ,., . . . . . . . . . . . . . . . . ... . ..... . . . . 3 1 6 5 . 2 Keyboard 316 5 . 2 .1 Keyboard H a r dware • • . . . • • . • • • • . • • . . . . • • • • . . • • • • • • • . . 3 1 6 5 . 2 . 2 Character S e t • • • • • • • • • . . • • • • . . . • . • . • • • • . • • • • • • . • • . . 3 1 7 5 . 2 . 3 Keyboard Layout 319 5 .2 .4 CAPS Lock • • • . • • • • . . . • . . • • • • . . . . . . • . • • • • . . • . • • • . • • . . 3 1 9 5 . 2 . 5 DEAD-Key Functions • • • • . • • • • • . . • • • • . • . • • • • • • • • . • • • . • 3 3 1 Screen Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... . . . . . 3 3 3 5. 3 5 . 4 Other Differences among Versions . • • . • . . • • • • . . • • . . • . • • • 3 3 4 5 .5 ID Bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... . . . . . . . . 3 3 5 . 6. . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . .. . . . . . . .. . . . ... • • • • • • • • • • . . . . . • • • • . • • • • . • . • . . . . • • . • Notes for MSX Software Devel oper s 5 • • . • • • • • • . • • . • • • . • • . • • • • 336 6 PART A MSX HARDWARE SPECIFICATIONS MSX HARDWARE SPECIFI CATIONS 1 . Hardwar e Specificat i ons 1.1 MSX Standard o CPU Z80A compatible o MEMORY ROM: RAM: 32K bytes CMSX system softwar e) 16K bytes (Minimum> o SCREEN DISPLAY Text displ ay : G r aphics : Color s : 32 x 24 ( See Section 2 . 4 ) 256 X 192 16 o CASSETTE TAPE FSK format, 1 2 0 0 / 2 4 0 0 B aud o SOUND 8 Octaves, 3 Voices o KEYBOARD V ERSIONS Alphanum erics, Japanese, G r aphics Alphanumerics, European, G r aphics ( J apanese) ( I nter national ) o FLOPPY DISK DRIVES H ardware depends on the manufactur er Disk format MS-DOS-compatible o PRINTER * 8 bit pa r allel o ROM CARTRIDGE AND I/0 BUS Software cartr idge and expansion BUS slots o JOYSTICKS * 1 or 2 o CHI NESE CHARACTERS * At manuf acturer ' s disgression * The items with asterisks system configur ation. may not 8 be provided in the basic MS X HAR'DIIAR E SPECIFI CATIONS 1.2 MSX System Conf iguration o MINIMUM CONFIGURATION SOUND OUTPUT CARTRIDGE SLOT x 1 V IDEO OUTPUT 1 ROM 32K RAM 16K PPI ZBOA PSG VDP - I KEYBOARD CASSETTE J I JOYSTICK X 1 o SOFTWARE SUPPORT LIMIT SOUND OUTPUT V IDEO OUTPUT t ZBOA PSG VDP PRINTER OUTPUT 1 CARTRIDGE SLOTS x 1 5 ROM 32K PPI RAM 32K for BASIC 6 4 K for DOS KEYBOARD CASSETTE JOYSTICK X 2 9 MSX HARI:MARE SPECIFICATIONS 1.3 Main Unit 1.3.1 LSis 0 CPU 0 VDP 0 PSG 0 PPI 1.3 .2 o ROM o RAM Z 60 A compatibl e Clock 3 . 5 7 95 45MHz ( NTSC Color sub-ca r r i er f requency) 1 WAIT in Ml CYCLE T I TMS-991 6A compatible G I AY-3-8910 compatibl e I nt el i- 8255 compatibl e Memory MSX-BASIC, 3 2K bytes Minimum 16K bytes NOTE system the minimum Since conf iguration contains four slots, the m emory ar ea may be expanded up to 2 56 K by tes. Each slot can be f u r ther expanded to have four slots, for a total of 16 slots. Thus the maximum memory space is 1 megabyte. BAS I C ROM The interpr eter occupies addresses 0 0 0 0 to 7FFF, and the RAM addresses start at FFFF and grows down ward on the memory map. See the memory map in 1 . 7 for details. 10 Section MSX HARDWARE SPECIFICATIONS 1 .3 .3 o Inter r upts NMI Not used. o !NT MSX ROM only provides a RAM hook. the VDP and the cartridges. Interrupts a r e accepted f r om The interrupt mode is 1. ( Branch to 3 8 8) The MSX sy stem software uses an int e r r upt f r om the VDP. The interrupt intervals a r e 6 0 Hz in the NTSC version and 50 Hz in the PAL/ SECAM version. Z80 VDP NOTE It is not possible to suppo r t NMI under MSX-DOS because the address 66H (an entry vector for the NMI) is used by the MSX-DOS FCB data. 11 MSX HARDWARE SPECIFICATIONS 1 .3 . 4 Screen o LSI o Character set Alphanumerics + Japanese ( E uropean) + Graphics 256 patterns, 8 x 8 dots o Color o Sprites 3 2 sprites, with horiz ontal l ine . o Display modes T I TMS9 918A Compatible 1 6 colors a maximum of four spr ites on the same r-----------------y-------T------T----�-----y------ T------, I I MODE I I RES. I NO. I I SPRITE I NO. OF I I * ! COLOR I AVAIL. !CHARS. I I SIZE I t-------y---------+-------+------+----+------+------+------� LSI I 256 I I I I I I I I 32x24 1 I Graphic I Spec. I xl92 I I I 16 I �-------- +------- � 8 x 81 256 l color s l Yes �------ � I I I I Suggested I 240 I I I I I I I I value I I I 2 9X 2 4 I I I x1 9 2 I �------- +------ -- -+- -- - ---+------ +---- +------+--- ---+------ � I I I LSI I 256 I I I I I I 32x241 I I Graphic I Spec. I I I 16 I xl92 �--------+ -------� 8 x 81 76 8 l color s l Yes �---- --� I I II ! Suggested! 240 I I I I I I I I I I I 29X24 1 I value I xl92 I I �-------+---------+-------+------+----+------+------+------, I I LSI I 64 I I I Multi-1 Spec. I x48blkl I I color r---------+-------� 4 x 4 1 I I /Block I I Suggested I 64 I I value I x40bl k l I I I I 16 I - lcolor s l Yes I I I I I I I 32x241 t------i I I I 29x24 1 �------+---------+-------+------+----+------+------+------� I I I I I I I LSI I 256 I I I I Spec. I xl92 I I I 2 I Text r----- - ---+------ - , 8 x 6 1 2561out of l No I Suggested I 240 I I I 16 I I value I xl93 I I l colors l I I I 40x24 1 �------i I I I 39x24 1 �------�--------�------�-----�---�-----�------._-----� * Number of patterns Suggested values The eight pixels f r om the left and right of the horiz ontal l ine a r e not used by the software. 12 MS X HARDWARE SPECIFICATIONS 1.3.5 Keyboar d o Layout Alphanwner ics Japanese syllables European Graphic Characters : ASCII standard J IS standard syllable layout : Internati onal ver sions Depending on international version (Selected by jumper connection) o Scanning Software scanning driven by VDP interrupt o Number of keys 72 See section 5 . 2 .2/ 5 . 2 . 3 for details. o Matrix diagram PBO t-PBl PB2 PB3 PB4 PBS PB6 PB7 PCO t-- A PCl t-- B PC2 r--- c PC3 t-- D YO 0 1 2 � I� 3 ['-' 4 ,... 5 6 7 8 9 10 r- p--p- Jx7 lx6 7 X5 5 4 3 2 1 0 /'-. - 9 8 . ' ( @ ¥ Y2 8 A <*> - / Y3 J I H G R Q p z y X F3 F2 Fl Y5 � Y7 Y8 RETURN SUECT � xo Xl X2 6 Yl J X3 X4 J). ) F E D c 0 N M L K w v u T s KANA CAP (* *) GRAPH CTRL BS STOP TAB ESC il' � DEL INS yg YlO * Unde r score character. **Code Lock key in international versions. 13 . . ' F5 SHIFT F4 HOME SPACE MS X HARDWARE SPECIFI CATIONS 1.3.6 Sound o LSI o OCTAVES 8 Octaves ( 3 Voice s> o SOUND EFFECTS Available o SOFTWARE SOUND OUTPUT 1 bit f rom output port o OUTPUT LEVEL - Sdbm (Providing the system has an output connect o r > o OONNECTOR RCA 2 pins GI AY-3 - 8910 Compatibl e . Clock 1 . 7 897725 MHz ( 1/ 2 CPU clock) (Prov iding the system has an output connector) 14 MSX H ARDWARE SPECIFI CATIONS 1.4 1.4.1 Interfaces Cassette Interface o INPU T From the earphone terminal of the tape recorder o OUTPUT To the micr ophone terminal of the tape recorder o SYNCHRON IZATION Asynchronous, software-controlled o B AUD RATES 1 2 0 0 baud ( 12 0 0Hz - 1 wave " 0 " , n 1 " ) (Default) 2 4 0 0 Hz 2 waves 2400 baud ( 24 0 0 Hz 1 wave " 0 " , 4 8 0 0 Hz - 2 waves " 1" ) , software-selected (The tape recorder to be used may have to be speci fied by the manufacturer when using 2400 baud) o MODULATION FSK (Frequency Shift Key ing) , software-controlled o DEMODULATION Software-controlled. The system software automatically detects the baud rate upon receiving the data. o MOTOR CONTROL Available o CONNECTOR DIN 45326 ( 8 pins) 15 MSX H ARDWARE SPECIFICATIONS o TABLE OF S IG NAL PINS r-----T----------T---------T-------------------------------, I I PIN I NO. I SIGNAL NAME I I I DIRECTION I P I N CONNECTION �-----+----------+---------+-------------------------------� G� 1 ·-----+----------+---------� I I 2 I I GND I I I I �-----+----------+---------� I I 3 I I GND I I I I �-----+----------+---------i I I 4 I I CMTOUT I I I OUTPUT I � ---- +- - --- -----+- -------- � I I 5 I I 6 I I 7 I I 8 I I CMTIN I I INPUT I I �----+----------+---------i I I REMOTE + I OUTPUT I I I I I I ·-----+----------+---------; I REMOTE - I OUTPUT I ·-----+----------+---------i I I GND I I I I �-----._ __ ___ ____ ._ ________ ._ _________________ ______ _______ � 16 MSX H ARIMARE SPECIFICATIONS o SAVE Level The constants in the SAV E circuit ahoul d be adjusted so as to perform the output l evel as follow s : Output l evel -45 dBm ± 5 dBm ( 0 dBm = 0. 77 5 V) The output should be 2 2 rnV p-p - 7 rnVp-p at 1 2 0 0 Hz input signal . ··············::: :·::::.:::::1: 0 Sampl e Circuit for SAVE JC ---i lp F Output to GMT �7kQ Standard Value ( *) 0 Freq uency Characteristics 4.7kn I 0.022pF lOOQ 6dB/oct 6dB/oct MIN 16Hz MAX200Hz 3kHz Lower Cutoff Frequency ( *) * Higher Cutoff Frequency Note that the lower cutoff capacitor i s to protect the IC o f MSX. Cassette tape recorders themselves will not be harmed even if it i s not there. The capacitance may be i n the range 0 . 1 - 2 . 2 �F. Adj ust the capacitor to l imit the lower cutoff f req uency in the range 1 6 - 2 0 0 Hz , if the output inpedance of the IC is too high. 17 MSX HARDtlARE SPECIFICATIONS 1 . 4 .2 o Fl oppy Disk Interface The Floppy Disk Interface contains 16K bytes of at 4 0 0 0 H that includes the following modules : * * * MSX-DOS KERNEL MSX DISK BASIC PHYS ICAL DISK I/0 DRIVER ROM beginning ( Suppl ied by manufact urer ) o The hardware interface is not specif ied. I/O driver suppl ied by the manufact urer hardware differ ence s. o Ideally, the mechanism in the disk drive should detect that the drive door has been opened. This reduces the number of disk accesses r eq uired to check i f the system disk been replaced. 0 Floppy disk format: The phy sical disk should resolve the MS-DOS compatible 8- inch Single-density 1 2 8 Byte s/Sector 8-inch Double-density 1 0 2 4 Bytes/ Sector 5 . 25 - inch Doubl e-density 512 Bytes/Sector 3 . 5- inch CFD 512 Bytes/ Sector 3 - inch CFD 512 Bytes/ Sector 18 MSX H �DWARE SPECIFICATIONS 1 . 4 .3 Printer Interface o SPECIFICATIONS 8 bit parallel, handshakes by BUSY and STROBE o LWEL TTL o OIARACTER CODES Same as the MSX di spl ay codes o CONNECTOR 1 4-pin AMP compatible o L IST OF PINS r---- - - - - - � - - - - - - - � - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - � I I PIN NO. I 1 I I SIGNAL I I I/01 I NAME PIN CONNECTION �--------+--------+---+----------------------------------� I 0 I I I 2 I PDB O I 0 I 1--- -------+ --------+---4 I I PSTB �---------+----- ---+----1 I 3 I PDBl I I I I I 0 I 1----------+-------- +----1 I 4 I PDB2 I 0 I 1----------+-------- + --- � 5 I PDB3 I 0 I ,---.. I 1----------+--------+�---� I 6 I PDB4 I 0 I 7 �----------+--------+---� I 7 I PDBS 1----------+--------+---� I 0 I I PDB6 I 0 I 1--- ---- -- - +----- ---+----1 9 I PDB7 I 0 I I I 8 l 6 14 1----------+--------+---� 13 5 12 4 11 3 10 2 9 1 8 I I I I I I J I I I I I I I - I I I I I 1---------- +--------+ ---1 12 I I N . C. I - I �----------+--------+--� I 13 I I - I N . c. I I I I I I I I 10 I N . c. 1--- -------+--------+---l I 11 I I BUSY 1------- ---+-------- +---i I 14 I GND I - I �---------�-------..L---4·----------------------------------.J 19 MSX HAROO'ARE SPECIFICATIONS 1.4.4 o RS-2 3 2C Interface LSI OJMPONENTS i-8251 Communications Interface i-8253 Pr ogrammable Interval Timer At least 4K bytes of ROM i s required for software support. o PORT ADDRESSES SOH 81H 82H 82H 83H 84H 85H 86H 87 H * RIW RIW R w R/W RIW R/W w 8251 Data Port 8251 Command/Status Port Status Sense Por t for CTS, Timer/Counter 2 , RI, and CD Interrupt Mask Register Reserved 8253 Counter 0 8253 Counter 1 8253 Counter 2 8253 Mode Register The port at address 8 3 H is reserved for use by the manufacturer. 20 MSX HARDWARE SPECIFI CATIONS o USING TH E PORT AT ADDRESS 8 2 H 82H Rea d : G e t System Status r--------T------------------------------------- , I I Data Bit Description �-------+-------------------------------------� I I I I I I I I I J I I I I D7 D6 05 D4 03 D2 Dl DO I I I I I J J I I I I I I I CTS (Cl ear To Send) 0: CTS Asserted 1: CTS Negated Timer/Counter Output-2 from i8253 --, I --.J Reserved + RI (Ring Indicator ) 0: RI Asserted 1 : RI Negated + CD (Carr ier Detect) 0: CD Asserted 1: CD Negated I I I I I I I I I I I I I I �-------�------------------------------------� NOTE: The signals with the pl us ( +) sign a r e optional. If only one signal is chosen, it must be 'CD'. NOTE The CTS signal is sensed through the port instead o f through the 8251 because of a problem in the CTS logic in some versions of the 8251 . Software handl ing is thus made p()ssible. 21 MSX HARDiARE SPECIFICATIONS 82H Write : Interrupt Mask Register �--------�--------------------------------------- , I Data I Bit Description �-------+----------------------------------------i D7 06 DS 04 D3 02 Dl DO -- -. I I Reserved --..1. + Timer Interrupt f rom i8253 channel-2 1: Mask Interrupt <Initial val ue ) 0 : Enable Interrupt + Sync character detect/Break detect 1 : Mask Interrupt ( Initial val ue) 0 : Enable Inte rrupt + Transmit Data Ready ( T x Ready) 1 : Mask Interrupt ( I ni t i al val ue) 0 : Enabl e Inter r upt Receive Data Ready ( R x Ready) 1 : Mask Interrupt ( I nitial val ue) 0 : Enable Interrupt �-------._---------------------------------------� NOTE : The signals above with the pl us (+) si.gn a r e optional . The minimum requi rement for the interrupt signal is thus Rx Ready . 22 MSX HARDWARE SPECIFICATIONS o USING 'mE 8253 TO G ENERATE BAUD RATE CLOCK FOR THE 8251 A. CRYSTAL FREQUENCY The crystal freq uency is 1 . 8 4 3 2 MHz. �------------------�-----------------------------, I Baud rate (Baud) I Scale Factor and Error (xl6) I r------------------+------------------------------� 50 75 110 150 300 6 00 1200 1 80 0 2000 2400 3600 4800 7200 9600 1 92 0 0 2304 1536 1 0 47 768 3 84 192 96 64 58 48 32 24 16 12 6 1 1 0 . 0 2 87 +0 . 3% 1 9 86 . 2 -0.7% �-----------------�-----------------------------� B. USING THE COUNTER CHANNEL CHO : CHl : CH2 : Rx Baud rate clock T x Baud rate clock Used by appl ication ( I nterrupt generated optionally) 23 MSX HARDWARE SPECIFICATIONS o PINS OF DB25 CONNECTOR r-----�-�-----------------, �-------+------------------� I I I I I I I I I I I I I 1 2 3 4 5 6 7 8 9 10 11 12 13 I Frame Ground I Transmit Data I Receive Data I Request To Send I Clear To Send I Data Set Ready I S i gnal Ground I Carrier Detect I I I I I Signal I Pin Signal I Pin r-------y--------------------, I I I I I I I I I I I I I �-------�-----------------� 24 �-------+--------------------� I I I I I I I I I I I I I 14 15 16 17 18 19 20 21 22 23 24 25 I I I I I I I Data Terminal Ready I I Ring Indicator I I I I L-------�------------------- MSX H ARDWARE SPECIFICATIONS 1 .4.5 Peripheral I/O Por t ( s ) ( 1 or 2 > * o LSI AY-3-89 1 0 compatible o I/O Input 4 bits, Output 1 bit, Bidirectional 2 bits per port o LOG IC Active high o LE.VEL TTL o CONNECTOR 9-pin AMP compatible o LIST OF PINS r-----�-------�--------�--------------------------------, I I PIN I SIGNAL I I NO. I NAME I D IRECTION I PIN CONNECTION I I �----+--------+---------+---------------------------------� I I 1------+--------+----------t I I I 1 I I 2 I I FWD I I Input I I BACK I I I I Input I I I I I I I I I I �----+--------+----------t I I 3 I LEFT I I nput I I �----+--------+----------t I I 4 I I RIGHT I I I nput I I <D ® ® @ ® �----+--------+---------; I I 5 I I * + SV I I I I I ® <V ® ® �----+--------+---------; I I I 6 I TRG 1 I I nput/ I Output I I �----+--------+--------- .. I I 7 I I TRG 2 I I Output I I 1------+--------+---------i I I 8 I I OUTPUT I Output I I I I I �----+--------+---------i I I 9 I GND I I I � ____.________ L- ________._________________________________ * Curr ent capacity : I I I I SOmA each 25 MSX HARDWARE SPECIFICATIONS o Circuit Diagram AY·3·8910 k·'"> �U ��k� 74LS157 IOAO lY lA 10Al 2Y 2A IOA2 3Y 3A IOA3 4Y 4A - '-- 28 s J:G 38 48 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 J;� +5V 74LS157 T ��� >< �= '-- lA lY 2A 2Y 18 �G 28 �s ! r--- J4 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 �� 7407X4/6 lOBO + 5V lOBI < < � � 1082 1083 1084 1085 1086 1--- All resistors are lOk ohm typically. 26 9 -,- r-=-:- + 5V IOA4 J3 > • 18 IOA5 +5V 9 MSX HARIMARE SPECIFI CATIONS 1 .4 . 6 o Joysti cks There are two types o f j oysticks. Joystick Type A has one trigger button, or if there i s more than one trigger button, the software cannot distinguish between them. Joystick Type B has two independent trigger buttons. The j oysticks produced f r om now on should show which type they are and software that needs to have Type B should say so on the package. o Circuit Diagram AMP 9PIN FWD 10 0 20 0 LEFT 30 0 RIGHT 40 0 BACK TRG A 60 0 TRG B 7 o Option a s described above. 8 �---� 27 MSX HAR�ARE SPECIFI CATIONS 1 • 4 •7 o Paddles trigger pulse is sent to the 8 pin of the pe r ipheral I/O po r t every time the PDL function i s called. The paddle circuit, triggers the monostabl e multivibrator with this pulse. A pulse of the length corresponding to the level of the volume i s returned to the port. A A maximum of 6 channe l s of paddl es po r t . can be attached to each I/0 Paddle timing diagram FWDl �.s TA ·-TD _j . I .L.. r--r----1 r=lOtLS - --- to 3ms Circuit diagram ( for 1 channel ) vee 5 0 150KQVR .. Q 1---u 1(2,3,4,6,7) 8 CLR LS 123 or EQUIV. NOTE : The vol ume <or the capacitance) should be adjustable a s to j ustify the function of the paddle. 28 MSX HARI:MARE SPECIFICATIONS 1 .4 . 8 Connectors r-----------------------.----------------------------------, PIN NAME SPECIFI CATIONS �----------------------+----------------------------------� I I J I I 1 . Video output and I DIN 5-Pin Connector * , I composite video I RCA 2-Pin Connector I I I 2 . RF modulated signal l RCA 2-Pin Connector or I I I I I J �-----------------------+----------------------------------� I J Cassette I I DIN 8-Pin Connector I I I/O Port I I AMP 9-Pin Connector I Printer I I I Cartridge Bus I (DIN-453 2 6 ) J I �-----------------------+----------------------------------� I I �-----------------------+----------------------------------� I I UNPHENOL 14-Pin Connector I I �---------------- -------+-- -- ---- -- - ------- - --- --------- ---� I 2 . 5 4 PACE, 5 0-Pin Connector I I r-----------------------+----------------------------------� I I I Audio I RCA 2-Pin Connector I I L-----------------------�---------------------------------J * DIN 5 -PIN CONNECTOR SIGNAL PIN AS S IGMENTS r--------�-----------�-----------------------------------� I PIN NO. I PIN OONNECTION NAME �--------+------------+------------------------------------� I I 1 I I +SV I I r--------+------------� I I 2 I I GND I I �------ - -+-- -- --- --- --i I I I I Audio 4 I I Monitor I I 5 I I RF Video I I I 3 I I I I I r- -------+-- -- -- - -----i r--------+------------i �-------�-----------�----------------------------------- 29 MSX HARmARE SPECIFICATIONS 1.4.9 o Slots CONCEPT OF SLOTS the concepts of For computers having 64K bytes of memory, slots and memory banking are nearly identical. The CPU can directl y choose the cartridge by its slot numbe r . The slot concept originated f r om a desire to support the maxi mum amount of software. Using the slots, the software can be regardless of the number of physical slots availabl e to run, the computer. o ADVANTAGES OF SLOT STRUcrURE when there is an even number of I n a common bus structure, the dev ice select signal connected to the bus memory banks, cannot distinguish between the different dev ices by using the If this were to occur, the system would not same memory area. only be unusabl e, but the hardware would quickly deteriorate. By using the slot select signal to choose the memory devices, the above problem is avoided, and programs that handl e two or more devices having the same memory area are made possibl e . This is a favorable point, considering the system' s flexibil i ty and expandability. 0 Circuit diagram 8255 PAO PAl PA2 PA3 PA4 PA5 PA6 PA7 8255 Chip Select 74LS153 CSOL CSOH CSlL CSlH CS2l CS2H CS3L CS3H lCO lY A 2Y B SITSio 2CO lCl SLTSLl 2Cl 1C2 2C2 1C3 2C3 ---tA -----<� 30 V2 SLTSL2 yj SLTSL3 MSX HARIM'ARE SPECIFI CATIONS 1 .5 Car t r i dges 1 . 5 .1 Physical Cartridge Specifications o Physical dimension of the standard cartridge INSERT DIRECTION � (FRONT) 0'> :-o � 0 r-, I I : l L. ----------------.l I· G\�1 I 109 ' ::_;_J__Ll: ======: ==== o Physical dimension of the expanded cartridge I _ _J --T-- ___ • I; I -�-----'--+0 . 7 109 - .:.J_-..Q_ I --- 31 L- MSX HARDWARE SPECIFICATIONS 1 .5 . 2 Cartr idge Bus o LIST OF S IG NAL PINS r-------�-------------�----T-------T--------------�----, PIN NO. NAME I * I I I/0 I PIN NO. I * I I I/0 1 NAME � -- - ---+------- - - - ----+-----+-------+--------------+-----i 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 CSl CS12 Reserved t WAIT% Ml IORQ WR RESET A9 All A7 Al2 Al 4 A1 A3 AS D1 D3 DS D7 GND GND +SV +5V SOUNDIN J 1 I I I I I J I I I I I I I I I I I I I I I I I 0 0 I o 0 o 0 0 0 o o 0 o 0 0 I/0 I/0 I/0 I/0 I 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 CS2 SLTSL RFSH INT% BUSDIR MERQ RD Reserved Al 5 A!O A6 AS Al3 AO A2 A4 DO D2 D4 D6 CLOCK SWl SW2 +12V -12V t 0 0 0 I I 0 0 0 0 0 0 0 0 0 0 I/0 I/O I/0 I/0 0 �-------._-------------�----._------�-------------�----� * The Input/Output directions are relative to the main uni t. t Do not use the Reserved PINs. % OPEN COLLECTOR output 32 MSX HARDWARE SPECIFICATIONS o LIST OF SIGNAL PINS r--------�---------�-------------------------------------� I PIN NO. I DESCRIPTION NAME �-------+----------+--------------------------------------1 1 2 3 ROM 4000 to 7FFF, selected si gnal ROM 8 0 0 0 to BFFF, selected signal I ROM 4 0 0 0 to BFFF, selected signal I ( for 2 56K ROM) I Slot select signal I Reserved for future expansion. Do I not use this pin. I Refresh signal I Wait signal to CPU I Inter r upt request signal I Fetch cycle signal of CPU I This signal controls the direction I of the external data bus buffer when I the cartridge is selected. It I is LOW when the data i s sent by the I cartridge. I I/O request signal I Memory request signal I Write signal I Read signal I System reset signal I Reserved for future expansion. Do I not use this pin. I Address bus I Data bus I G round I CPU clock, 3 . 57 9 MHz I G round I Detect Insert/Remove for protection I +5V power supply I +1 2V power supply I Sound input (-5 dbm) I -12v power supply I I 4 5 SLTSL Reserved 6 7 8 9 10 RFSH WAIT INT Ml BUSDIR 11 12 13 14 15 16 IORQ MERQ WR RD RESET Reserved 17-3 2 33-40 41 42 43 4 4 , 46 45 , 47 48 49 50 A0-Al5 oo-n7 GND CLOCK GND SWl , SW 2 +5V +1 2 V SOUNDIN -12V �-------�----------._ _____________________________________ NOTE The CS signals imply a memory request and a read s i gnal . Thus they cannot be used as w r i table chip select for devices such as RAMs. 33 MSX HARDWARE SPECIFICATIONS 1 .5 . 3 o Cartr idge Bus Connection Conditions FAN- IN, FAN-OUT ( LS-TTL load) Data and Address bus cartr idge Main unit Below 2 Above 5 Above slot 1 B el ow 1 (Fan-in) ( Fan- out> o o CONTROL SIGNALS Above slot 2 Below 2 (Fan-out) (Fan- in) VOLTAGE LEVEL TTL level 1 .5 . 4 Cartridge Power Capacity +SV 3 0 0 rnA/slot +12V 50 mA -12V 5 0 mA 34 ( Fan-out> ( Fan- in) MSX HARDWARE SPECIFICATIONS 1 .5 . 5 Sample Circuit Diagram of Expanded Slot Select S i gnal Expanded slot adapter DATA BUS Do�D, RD TCiRQ ADDRESS BUS Ao-A1� l/0 address Decoder 1/0 Cartridge Expanded SLTSL generator To other expanded slots SLTSL (accesstoFFFF) R D SLTSEL · • (accessto FFFF) ·WR· SLTSEL 74LS 74LS 273 CLKI---1-' DATABUS-+���� 8 74LS 139 153 1Y 1---i A 2Y 8 B G 35 MSX HARDWARE SPECIFICATIONS 1.6 Notes for System Expansion 1 .6.1 RAM Expansion o Since. MSX -BAS IC needs a contiguous RAM area f r om 8000 to FFFF, the additional RAM should be added to the existing RAM so as to be contiguous. o Since the MSX-BAS IC software r eq u ires only RAM f r om 8 0 0 0 to FFFF, RAM installed f r om 0 0 0 0 to 7FFF cannot be used by it. 1 .6 . 2 Slot Expansion o When slots are expanded, the expanded slots must be expanded f rom a primary slot. Primary slots are those slots managed by the 8255 . the slot select register provided i n po r t A of to select an expansion slot, Thus, first select the primary slot to which the expansion slot is connected, then select the desired slot. o The slots directly attached to the MSX computer itself must be primary slots. Because there are signif icant differences between the primary and secondary slots, there must be a clear indication of which kind of slot i s placed i n a n expansion adapter. o The location of the slot select register for the additional To make it slots i s address FFFF of the pr imary slot. possible to differentiate the register f r om ordinary RAM, take the compl ement of the output of the register. That is, when the register is read, the data is the complement of the value of the register. o A maximum of four cartridges can be connected to the cartridge bus. Theref o r e , buff e r s are necessary if the system is to suppo r t more than five slots. The BUSDIR signal cont r ol s the direction of those buf f e r s . Devices placed in expansion slots that send signals to the CPU must also send the B USDIR signal to change the direction of the expansion slots to the CPU. Howev e r , for memory acce sses, it is possible to determine the direction of the bus by using the slot sel ect signal sent to the pr imary slot, the memory request signal , and the read/ write signal . The direction of the buffer should thus be controlled a round the buffer circuit; cartr idges containing only ROM or RAM thus do not have to manage the BUSDIR signal , and expansion RAM cartridges do not have to be expensive. cartridges containing dev ices to send signals to the CPU <those dev ices responding to the INP instruction o r supplying an address in response t o mode 2 interrupts) must force BUSDIR to the ' L ' level when sending data to CPU. 36 MSX HARDWARE SPECIFICATIONS 1 . 6.3 o I/O Expansion In Z- 80 based system, it is common to place I/0 devices i n the Since the MSX system was designed to be I/0 addr ess space . f l exible and expandable, it i s possible to add I/O devices If this using cartridges that share the same address space. is the case, those devices will not be able to be accessed properly. To avoid the above situation, the I/0 dev ices should be placed in the memory area because they will be managed by slot select logic and the memory cannot be accessed simultaneously when since devices placed in the memory placed i n different slots, area cannot be accessed by software r unning in different slots. General dev ices such as the VDP must therefore be Note also that i n some cases placed in the I/O address space . it i s more economical to use the I/O address space , because only eight bits of address information have to be decoded. The MSX system specifications define the system dev ice I/0 address space to be addresses f rom 40 to FF. The addresses below 3F are left f r e e . While other devices may use this address space, other manufactu r e r s may use the same addresses for other purposes. Thus, we recommend that memory addresses be used instead of the I/O area. In later MSX version s i t is possible that standa r d devices will use the una ssigned ( reserved) addresses. 37 MSX HARDWARE SPECIFICATIONS 1.7 Address Maps 1.7.1 Memory Map o The following is an e xample memory map. ,.- - - - -, FFFF ,..-- ---, I I 3 I I I J r-----, I I I RAM I I I cooo 1- - - - - i 1--- ---i 1-----i I I I 2 I I I 8 0 0 0 t--- - -; I I I 1 I I I 4000 1---- - ; I I I 0 I I I 0