Cpuville Z80 Single-Board Computer Kit Instruction Manual
Total Page:16
File Type:pdf, Size:1020Kb
CPUville Z80 Single-Board Computer Kit Instruction Manual “The Simple CP/M Computer” By Donn Stewart © 2019 by Donn Stewart If you find any errors in this manual, please let me know. Thanks. 1 Table of Contents Introduction................................................................................................................................................4 Building Tips..............................................................................................................................................5 Building the Computer...............................................................................................................................9 Testing and Using CPUville Z80 Single-board Computer.......................................................................21 Using the terminal emulation program Realterm................................................................................22 Monitor commands..............................................................................................................................23 dump...............................................................................................................................................23 load.................................................................................................................................................24 jump................................................................................................................................................26 run...................................................................................................................................................26 ?......................................................................................................................................................27 help.................................................................................................................................................27 bload...............................................................................................................................................27 bdump.............................................................................................................................................31 diskrd..............................................................................................................................................34 diskwr.............................................................................................................................................35 cpm.................................................................................................................................................35 Testing the memory.............................................................................................................................35 Connecting a disk drive.......................................................................................................................36 Testing the disk drive...........................................................................................................................38 Installing CP/M version 2.2.....................................................................................................................41 CP/M system update............................................................................................................................41 About CP/M........................................................................................................................................41 CP/M Source Code..............................................................................................................................42 Preparing the disk for CP/M................................................................................................................45 Putting the CP/M System Files onto the disk......................................................................................46 Installing the CP/M loader..................................................................................................................48 Running CP/M.........................................................................................................................................49 Built-in commands..............................................................................................................................49 Transient commands............................................................................................................................52 Using the PCGET and PCPUT file transfer utilities...........................................................................61 Schematics and Explanations...................................................................................................................68 Z80 CPU..............................................................................................................................................68 ROM and RAM memory.....................................................................................................................70 Serial Interface....................................................................................................................................72 Serial Port Connector..........................................................................................................................74 PATA Interface.....................................................................................................................................75 Memory Configuration Logic.............................................................................................................76 Connectors and miscellaneous circuit elements..................................................................................79 Parts organizer..........................................................................................................................................81 Parts list....................................................................................................................................................83 Selected Program Listings.......................................................................................................................84 chr_echo..............................................................................................................................................84 ROM monitor......................................................................................................................................84 2 Customized BIOS..............................................................................................................................103 Format................................................................................................................................................113 Putsys.................................................................................................................................................114 CP/M loader.......................................................................................................................................116 Table of Tested Disk Drives...................................................................................................................119 3 Introduction The CPUville Z80 Single-Board Computer Kit is a complete small computer in hobbyist kit form. Once assembled, you can use the keyboard and display of a PC, or a dumb terminal, through the Z80 computer’s serial interface, to communicate with the Z80 computer using text input and output. With a compatible IDE disk drive, you can install the CP/M1 operating system. The computer comes with a monitor program in ROM that has commands to read and write RAM memory, load files over the serial interface into RAM and execute programs, read and write disk sectors, and to execute CP/M if it is installed. This manual assumes the reader is familiar with assembly language, binary and hexadecimal notation. You should be familiar with the concepts of basic binary logic (AND, OR, NOT etc.) and simple logic circuits. I assume the reader has a basic understanding of electricity and circuit elements such as resistors, LEDs, and capacitors. The disk interface in this computer is an IDE interface (also known as parallel ATA, or PATA), that will accommodate an IDE-compatible drive, including compact flash and SD drives with the appropriate adapter (see the Table of Tested Drives on page 115). Only the lower 8 bits of each disk data word are transmitted to the Z80 system, so drives that operate in 16-bit mode will have only half the disk space available. This is a trade-off to keep the price of the kit low, because extra hardware would be needed to capture all 16-bits, and convert it to 8-bits for the Z80 data bus. However, since the PATA interface has been replaced by the serial ATA (SATA) interface in commercial computers, IDE drives are now obsolete, and IDE drives with sizes of hundreds of megabytes or even gigabytes are very inexpensive. 8-bit programs are very small, so literally thousands of Z80 programs would fit into a disk space of 100 megabytes. If you have an IDE drive of a few hundred megabytes or more, you can run CP/M and store all the 8-bit data you could reasonably want. Power for a disk drive that requires only low-current +5V, such as a solid state drive, can be provided by the two-pin connector on the computer board, or by pin 20 on the