Texas Instruments PHP1240 Manual
Texas Instruments PHP1240 Manual

Texas Instruments PHP1240 Manual

Disk memory system

Advertisement

Quick Links

Advertisement

Table of Contents
loading

Summary of Contents for Texas Instruments PHP1240

  • Page 2 Texas Instruments Home Computer Disk Memory System Model No. PHP1240 Solid State This package includes the TI Disk Drive Controller Card and the Disk Manager Software™ Command Module. With the Disk Drive Controller Card, up to three Disk Memory Drives (sold separately) can be attached to your computer.
  • Page 3 The Texas Instruments Home Computer and peripherals generate and use radio frequency (RF) energy. If not installed and used properly (as outlined in the instructions provided by Texas Instruments]' this equipment may cause interference to radio and television reception. This equipment has been type-tested and found to comply with the limits for a Class...
  • Page 4 Memory Drive and the purchase date in the space below. The serial number is identified by the words "SERIAL NO . Always reference this information in any correspondence. PHP1240 Serial No. Purchase Date Model No. Copyright © 1982, Texas Instruments Incorporated...
  • Page 5: Table Of Contents

    TABLE OF CONTENTS Introduction Features of Your Disk System Diskette Information Write-Protecting Diskettes Labeling and Handling Precautions Set-Up Instructions Disk Drive Information Connecting the Controller Card to an Internal Disk Drive Connecting the Controller Card to Both Internal and External Drives Connecting the Controller Card to External Disk Drives Starting the System Testing the System...
  • Page 6: Introduction

    Disk Manager module plugged Into the computer console. The Texas Instruments disk system represents a ma jor advance over other systems. Because the control software needed for the disk system Is In permanent ROM. In the Disk Manager Command Module and In the controller.
  • Page 7: Features Of Your Disk System

    Features of Your System The most important use of the disk system is storage and retrieval of information via TI BASIC programs. Through the proper BASIC commands. you can: SAVE PROGRAMS - Each single-sided diskette holds over 720.000 bits • of information.
  • Page 8: Diskette Information

    Disk Memory System DISKETTE INFORMATION Your disk system requires inch. single-sided. single-density. soft-sectored diskettes. These diskettes are constructed of a highly flexible plastic film. coated with a thin layer of iron oxide which can be magnetized in very small areas without affecting surrounding areas.
  • Page 9: Write-Protecting Diskettes

    Write-Protecting Diskettes Diskettes have a notch in the edge of their protective container. As long as the notch is left open. the drive functions normally. Covering the notch with a piece of special tape provided with the diskette prevents writing on the diskette. When you have a diskette containing programs or data that you want to protect.
  • Page 10: Set-Up Instructions

    Disk Memory System SET-UP INSTRUCTIONS Once you've unpacked the unit, you're ready to insert the Controller Card into the peripheral system. (Save the packing material for storing or transporting the unit.) The steps involved in inserting and checking the operation of the Disk Drive Controller Card, an internal disk drive, and external disk drives are included in this section.
  • Page 11: Disk Drive Information

    Disk Drive Information As It comes from the factory, a disk drive Is ready to run as the only drive on your system. If you are using more than one drive, complete the following steps for all but one of the drives. The last external drive should be connected without being altered. DO THE FOLLOWING ONLY IF YOU ARE USING TWO OR THREE DRIVESI 1 .
  • Page 12: Connecting The Controller Card To An Internal Disk Drive

    Disk Memory System Connecting the Controller Card and an Internal Disk Drive 1. Turn off the computer console and all attached devices. WARNING: TO AVOID DAMAGING ACCESSORY CARDS. WAIT TWO MINUTES AFTER TURNING OFF THE UNIT FOR THE POWER TO DISCHARGE BEFORE PROCEEDING.
  • Page 13 Next, note that the label identifying the Disk Drive Controller Card is on the top of the card. On the front of the card is an indicator light. The light can be seen from the front of the peripheral system unit when the card is active. Hold the Disk Drive Controller Card so that the indicator light faces the front of the peripheral system and the connector tab faces the back of the unit.
  • Page 14: Connecting The Controller Card To Both Internal And External Drives

    Disk Memory System Connecting the Controller Card to Both Internal and External Drives 1 . If your disk system includes both an internal disk drive (Model PHP 1250) and one or more external drives (Model PHP 1850), first remove the termination pack from the internal drive and install the internal drive and the Controller Card, following the instructions in the preceding section.
  • Page 15: Connecting The Controller Card To External Disk Drives

    Connecting the Controller Card to External Disk Drives 1. Turn off the computer console and all attached devices. 2. WARNING: TO AVOID DAMAGING ACCESSORY CARDS, WAIT TWO (2) MINUTES AFTER TURNING OFF THE UNIT FOR THE POWER TO DISCHARGE BEFORE PROCEEDING.
  • Page 16 Disk Memory System ��� ��� ��� ��� ��� ��� ��� Having removed the termination packs from all but the last drive (the one farthest away from the Controller), connect the drives in series. The connector on the end of the second drive's cable plugs into the adapter board in the middle of the first drive's cable.
  • Page 17: Starting The System

    Starting the System After the Controller Card has been Inserted Into the Peripheral Expansion System unit and the drives have been connected. plug the power cords Into your electrical wall outlets. Next. turn on the power switches on the backs of your external disk drives (If any) and then the switch on the front of the peripheral system unit.
  • Page 18: Testing The System

    Disk Memory System Testing the System Note: Do not put any diskettes in the drives yet. If you have more than one external drive attached. they must all be switched on. even If you plan to use only one. Go Into TI BASIC and enter the following program. 100 OPEN #1 :"OSK1 110 CLOSE #1 Run the program and observe drive one (DSKl).
  • Page 19: A Quick Look At The Disk System

    A QUICK LOOK AT THE DISK SYSTEM This section describes how you can use the system to initialize a diskette, write a program, save it on the diskette, run the program to write and read information from the diskette, and see the catalog of what is on the diskette. Make sure that power is supplied to all devices.
  • Page 20 Disk Memory System The prompt MASTER DISK (1 - 3)? has already been answered as 1 because you selected single disk operation. You can answer the prompt NEW DISKNAME? with any valid name up to ten characters long. Valid diskette names can contain any characters with ASCII codes of 32 through 95.
  • Page 21 Now, press to return to the main Disk Manager selection list. Then press BEGIN BACK. When the master title screen appears, press any key to go to the master selection list. Select TI BASIC and enter the following program. 100 OPEN #1 :"DSK1.FIRSTFILE",RELATIVE,INTERNAL 110 FOR A 1 TO 20 120 PRINT #1 :"THIS IS RECORD";A...
  • Page 22 Disk Memory System A screen similar to the following appears. diskname DSK1 - DISKNAME AVAILABLE USED FILENAME SIZE TYPE FIRSTFILE 8 INTIFIX BO PROGRAM 1 2 PROGRAM WORKING ... PLEASE WArT PRESS CLEAR ABORT COMMAND After the screen has been filled with all the information, the bottom message is replaced with: COMMAND COMPLETED PRESS: PROC'D, REDO...
  • Page 23: Disk Manager Command Module Operation

    DISK MANAGER COMMAND MODULE OPERATION The Disk Manager Command Module is used to perform operations that are impossible or inconvenient in TI BASIC. The module lets you store, retrieve, or manage files by choosing options and giving answers to prompts on the display screen. Certain key functions that appear on the display are as follows.
  • Page 24 Disk Memory System When you choose the FILE COMMANDS option. the following screen appears: FILE COMMANDS 1 COpy FILE 2 RENAME FILE 3 DELETE FILE 4 MODIFY FILE PROTECTION YOUR CHOICE? 1 COPY FILE - You can copy a file in TI BASIC by reading it and then writing it. item by item.
  • Page 25: Disk Commands

    The answer to the prompt SELECTIVE (YIN)? determines whether you delete Just one file or go through the diskette choosing which files to delete. If you enter N. then you delete Just one file. If you enter Y. you may select which files you wish to delete. The prompt MASTER DISK ( I-3)? appears.
  • Page 26 Disk Memory System CATALOG DISK - Choose this option to get a catalog of all the programs and data files on the disk. When you choose it. the following screen appears. CATALOG OISK [l-3J MASTER OISK Choose the disk drive containing the diskette that you want cataloged. soon you enter the disk drive number.
  • Page 27 The FILENAME is the name of the file, and SIZE is the number of sectors used for the file. TYPE gives the parameters of the file. If a file type is PROGRAM, the file is probably a program or mirror-image data. DISN ARnnn indicates a DISPLAY format file of VARIABLE length records, with a maximum record length of nnn characters.
  • Page 28 Disk Memory System The prompt SINGLE SIDED (YIN)? appears next. Your answer depends on both the type of diskette and drive you are using. If both your diskette and drive are double-sided; you can select the double-sided option by pressing and then If you are using a ENTER.
  • Page 29: Disk Tests

    The prompt TRACKS PER SIDE? appears. Type the number of tracks (a maximum of 40 for single-side diskettes) and then press The next prompt asks SINGLE SIDED ENTER. (YIN)? If you have both a double-sided diskette and disk drive, press to get ENTER the maximum storage out of the diskette;...
  • Page 30 Disk Memory System The prompt DESTRUCTIVE TEST (YIN)? allows you to control whether or not the data on the disk is destroyed. If you want it destroyed, answer If you do not want it destroyed, answer The prompt, MASTER DISK ( 1 -3)? appears. Your response indicates which disk drive holds the diskette you want to test.
  • Page 31: Single Disk Processing

    From this point on. the procedure Is the same as for the Quick Test. Just respond to the prompts as they appear on the display. The Comprehensive Test consists of six tests that write to and read from all of the sectors on the diskette.
  • Page 32: Disk System Operation With Ti Basic

    Disk Memory System DISK SYSTEM OPERATION WITH TI BASIC Your disk memory system can be used conveniently with TI BASIC. This section discusses saving/loading programs and processing file data with programs. The disk system requires some working space in the main memory (RAM) of the Home Computer.
  • Page 33: File Naming Conventions

    File Naming Conventions A filename can be up to ten characters long and may contain any character except the period and the space character. However. the Disk Manager module recognizes only characters with ASCII codes of 32 through 95. For best results. use only upper-case characters A through Z and other characters with ASCII codes of 95 and lower (excluding the period and the space character) to name your files.
  • Page 34 Disk Memory System file-organization The records in a file can be accessed either • sequentially or randomly. Records accessed sequentially are read or written one after the other. Records accessed randomly can be read or written in any order. including one after the other. To indicate which access method you wish to use.
  • Page 35 SEQUENTIAL files have either FIXED or VARIABLE-length records. If record-type you do not specify a for a SEQUENTIAL file. the default is VARIABLE. A file with FIXED-length records may be reopened for either SEQUENTIAL or RELATIVE access. The following are examples of OPEN statements. OPEN #1 :"OSK1 .MYFILE"...
  • Page 36 Disk Memory System INPUT - The INPUT statement allows you to read data from diskette files. It only can be used with files opened in INPUT or UPDATE mode. The INPUT statement has the following general form: INPUT #fillHlumber [,REC record-number]:variable-list Thejlle-number and a variable-list...
  • Page 37 PRINT - The PRINT statement allows you to write data onto diskette files. It can only be used with files opened in OUTPUT. UPDATE. or APPEND mode. The PRINT statement has the following general form: PRINT #file-number [,REC record-number][ :print-listl Thefile-number must be Included In the PRINT statement.
  • Page 38 Disk Memory System EOF - The EOF (end-of-fIle) function Indicates whether there Is another record to be read from a file. The EOF function has the following general form: EOF(file-number) file-number The value of the must correspond to the number of an open file. The EOF function always assumes that the next record is going to be read sequentially.
  • Page 39 The following are examples of the RESTORE statement. RESTORE #6 Resets the file pointer to the first record on the file that was opened as #6 so that the next INPUT or PRINT statement referring to the file will access the first record. RESTORE #23,REC 1 2 Resets the file pOinter to the thirteenth record on the file (remember that the first record is...
  • Page 40: Cataloging Files

    Disk Memory System Cataloging Files By accessing the file Index on a diskette. you can use TI BASIC to read a catalog of disk contents. The diskette-Index (or catalog) file Is an unnamed. INTERNAL-format. FIXED­ length file. The following Is an example of an OPEN statement that accesses the catalog on drive one: 1 00 OPEN #1 : .
  • Page 41: Sample Programs

    Sample Programs Three programs are included in this section. The first illustrates some of the techniques that can be used for file management, showing how to open a file, write records randomly to it, and read records randomly from it. The second program shows how to save the contents of the screen on a file and put it back on the screen later.
  • Page 42 Disk Memory System The next section, lines 1000 through 1060, prints the entire file in sequential order. 1 000 REM PRINT A FILE 1 01 0 RESTORE #2,REC 1 1 020 FOR COUNT 1 TO TOTAL 1 030 INPUT #2:BUFFERiB 1 040 PRINT COUNT;BUFFERiB 1 050 NEXT COUNT 1 060 GOTO 220...
  • Page 43 SAVE AND RESTORE A SCREEN - Lines 100 through 2 10 of the following program can be used as a subroutine in other programs when you want to save something you've created on the screen. (Be sure that you change the file name each time you use the pr;)gram so that you don't write over a file that you have previously saved.) This program only saves and restores the characters that are on the screen.
  • Page 44 Disk Memory System READ THE CATALOG - The following program enables you to read and print the catalog for a diskette from Tl BASIC. Lines 100 through 1 60 set up a single-dimension array of five items corresponding to the five types of files. The next four lines ask for the number of the drive containing the diskette you want to catalog and then check to be sure you've made a valid entry.
  • Page 45: Appendix A: Error Codes In Ti Basic

    APPENDIX A: Error Codes in TI BASIC User's Re ference Guide. The normal error codes for your computer are given in the following codes are for errors that relate to the disk system. Error codes are two-digit numbers. The first digit indicates the command or statement involved in the error, and the second digit tells you the type of error.
  • Page 46: Appendix B: Error Codes In The Disk Manager Command Module

    Disk Memory System APPENDIX B: Error Codes in the Disk Manager Command Module If an error code occurs while you are using the Disk Manager Command Module . the Appendix A . error codes may have different meanings from those listed in OPEN errors - A n error i n a n OPEN statement will generate an error code from 0 0 to 07.
  • Page 47: Appendix C: Diskette/Cassette Operations

    APPENDIX C: Diskette/Cassette Operations Transfer Programs Between Cassettes and Diskettes To transfer programs between cassettes and diskettes. load the program Into the computer's memory using the OLD command. Then save the program using SAVE. For example. the following sequence transfers a program from a cassette to the diskette in disk drive one and assigns BRYAN as the file name.
  • Page 48: Caring For Diskettes

    Disk Memory System CARING FOR DISKETTES 1. Handle the diskette by its protective cover. Do not touch any part of the diskette 's surface; fingerprints will destroy disk contents. 2. Be careful not to bend the diskette. 3. Do not write on the diskette cover with a ball-point pen or pencil; only use a felt-tip pen.
  • Page 49: In Case Of Difficulty

    IN CASE OF DIFFICULTY If the disk system does not appear to be working properly, check the following: Power Be sure all devices are plugged in. Then tum on the power to the units in the proper sequence: disk drives and Peripheral Expansion System first, followed by the console and the monitor.
  • Page 50: Exchange Centers (Local Service Options)

    Texas Instruments w!ll consider such suggestions only if they are freely given to Texas Instruments. It is the policy of Te;x:as Instruments to refuse to receive any suggestions in confidence. Therefore. if you wish to share your suggestions with Texas Instruments.
  • Page 51: Warranty

    (at TI's option) when the unit Is returned by prepaid shipment to a Texas Instruments Service Facility listed below. The repaired or replacement unit will be warranted for three months from date of repair or replacement.
  • Page 52 Texas Instruments invented the integrated circuit, the microprocessor, and the microcomputer. Beingjirst is our tradition. TEXAS I N S T R U M E N T S I N C O R P O R A T E D PAINTED IN U.S.A.

Table of Contents