background image

Содержание Quark/100

Страница 1: ...THE MEGATEL QUARK 100 SINGLE BOARD COMPUTER ENTIRE CONTENTS COPYRIGHT MEGATEL COMPUTER TECHNOLOGIES 150 TURBINE DRIVE WESTON ONTARIO CANADA M9L 2S2 MA 223010 RO ...

Страница 2: ... Interface Special I O Functions Floppy Disk Interface Expansion of the Megatel QUARK MisceLlaneous hardware notes for the QUARK SOFTWARE Software for the QUARK The QUARK Operating System The Megatel QUARK Software Package CP M Commands and Utilities Megatel Utilities and Files CP M Users Group Utilities Installing the Customized CP M System Operation of a one drive system Temporary enabling of th...

Страница 3: ...ED COM The Character Set Editor GRFLD COM The Graphics Mode alphanumeric video utiLity Loading a Character Set other than the default for GRFLD Changing the default Graphics mode Character Set QTCONFIG COM Terminal Code Configuration UtiLity Floppy disk interface error messages APPENDIX ELectrical Specifications Table I Table II Table III Table IV Table V Table VI Table VII Table VIII Table IX Tab...

Страница 4: ...atel Computer Technologies Toronto Canada 1985 Printed in Canada MegateL Quark is a registered Canadian trademark of Megatel Computer TechnoLogies CP M is a registered trademark of Digital Research Inc Digita L Research CP M Plus DDT LIB 80 LINK 80 ASM MAC MP M II RMAC and SID are registered trademarks of Digital Research Inc Microsoft is a registered trademark of Microsoft Corporation ZSO is a re...

Страница 5: ... support yet you need choose onLy the features that you require Each of the models is available with various memory and I O options Hardware accessories available from Megatel include connectors and transition boards for quick connections to drives monitors and other I O devi ces QUARK software consists of configurable operating systems compLete device drivers utiLity programs an instaLLation proc...

Страница 6: ...ixed drive installation If you are using an 8 and 5 25 inch drive system the READY line should be taken directly from the QTB 3 to the 8 inch drive while bypassing the 5 25 inch drive MegateL Quarks do not provide a HEAD LOAD signal for 8 inch drives Most 8 inch drives wiLL have a HEAD LOAD with drive select jumper option on the drive motor control board Please consult your drive manual to ensure ...

Страница 7: ...egatel QUARK requires a regulated 5 and 12 volt supply with a common ground These are the same voltages requi red by 5 25 inch floppy disk drives The current drawn by a QUARK 128K SBC at 5 volts is 2A The current requi red at 12 volts is about 100mA If this supply must also supply power to operate the floppy disk drives a monitor and a keyboard then the power requi rements of these devi ces must b...

Страница 8: ...heral controller devices both those on the board as well as user added external controllers CPU Memory Management The I80B processor used on the QUARK has a sixteen bit address bus and is therefore able to di rect ly address 65536 64k locat ions in memory However the QUARK has 128k of memory and therefore a process is required whereby the 64k possible addresses generated by the CPU are mapped into...

Страница 9: ...ique physical address in bank Aor bank B by mapping process described previously If however the TY bit is cleared then the upper and lower haLves of the 64k logical address space map onto a physical address space whose size is between 32k and 64k The actual size and location of the physical address space within the two Main Memory Banks is determined by both the bank switching boundary set in the ...

Страница 10: ...e ZSOB incLuding the Program Counter are cLeared ALso various I O Lines on the VIA and PIA are cLeared and set to act as inputs In particular the BOOT MODE controL line which is the CB2 controL line on the PIA will be reset to act as an input aLLowing a pullup resistor on this line to assert a BOOT MODE condition The Z8 B wi Ll now fetch the instruction at location 0000 Since the BOOT MODE control...

Страница 11: ...he above it can be seen that the size of the Video Display Memory may be set anywhere from zero to 32k in 1024 byte increments However only a certain set of sizes are likely to be of use in most applications First when operating in Graphics mode the size of the Video Display memory must be an integer multiple of 3k 3072 bytes in order for the horizontal sync signal to be generated correctly Second...

Страница 12: ...le V If it is necessary to use the area of Main Memory occupied by the SAM Loader Access Routine then the routine can be copied to the corresponding location in any 2k block of memory OnLy the section of the Access Routine between locations 000BH and 0017H incLusive need be copied For instance if the area from 000BH to 0017H is copied into the area from F00BH to F017H then the folLowing exampLe wi...

Страница 13: ...hen control will be transferred back to this routine It will then restore the former bank switching boundary and retum from the original interrupt The version 2 23 and 2 24 operating systems distributed with the QUARK enables only two interrupt sources the reaL time cLock interrupt from the CA1 input on the PIA and the NMT interrupt whi ch is connected to the 1793 fLoppy disk controL ler s DRQ out...

Страница 14: ... in time to properly display the first severaL scan lines Thus the video driver routines included with standard QUARK operating systems do not use the second displayable row on the video display The QUARK is equipped with a Programmable Character Generator This allows the eight bit by eight bit patterns for the characters displayed on the CRT to be loaded or altered under software control Custom c...

Страница 15: ...ame 96 byte block is read eight times for each character row displayed It is necessary to do this because each character row is bui lt from eight raster scan lines each line adding one horizontal slice of the character patterns The ASCII code for each of the eighty characters in the row must be read eight times while the Scan Line Counter counts from 0 to 7 The Graphics mode operates in a similar ...

Страница 16: ...phanumeric Mode _ _ In Alphanumeric Mode data stored in the Video Display Memory are interpreted as eight bit character codes These codes are fetched from the 96 scanned locations in each half page of the Video Display Memory and presented to the input of the Character Generator The Character Generator contains the patterns which represent the characters to be displayed on the CRT The standard cha...

Страница 17: ...d for the Alphanumeri c Mode The V0 and V1 mode bits are left cleared in both display modes The Graphics Mode bit and the V2 mode bit must be changed in synchrony with the Vertical Sync vS signal A suggested approach using the Real time Clock interrupt which is generated by the positive going edge of the VS signaL to initiate the sequence of mode bit changes is described below When the Real time C...

Страница 18: ...i HIGH TO LOW TRANSITION OF CA1 VERT SYNC IN PIAPA iREAD PIA PORT A TO CLEAR IRGA 1 AND 2 FLAGS IN PIACRA iREAD PIA CRA ANI 080H iEXAMINE BIT 7 IRGA1 FLAG JZ LOOP1 iLOOP UNTIL IRGA1 IS SET BY HIGH TO LOW i TRANSITION OF VERTICAL SYNC LINE iTHE FOLLOWING WILL CONFIGURE THE VIDEO DISPLAY MEMORY BETWEEN iADDRESSES 2000H AND 7FFFH iSEE TABLE VI IN THE APPENDIX FOR OTHER LOCATIONS FOR THE VIDEO iDISPLA...

Страница 19: ...AMF6S EQU 0FF93H ADDRESS TO SET F6 BIT IN SAM PIAPA EQU 074H PIACRA EQU 07SH PIAPB EQU 076H SAMSET EQU 0000BH ALPHA iTO AVOID GLITCHING SCREEN THIS POINT SHOULD SYNCHRONIZED WITH iVERTICAL SYNC SIGNAL SEE GRAPHICS ENTRY EXAMPLE DI DISABLE INTERRUPTS IN PIAPB iREAD CONTENTS OF PIA PORT B OUTPUT ORI 40H SET BIT 6 FOR ALPHANUMERIC MODE OUT PIAPB LXI H SAMV2C CALL SAMSET LXI H SAMF0C CALL SAMSET LXI H...

Страница 20: ...nsition of the CA1 input of this line wi II set a flag in the Interrupt Flag Register IFR of the VIA The setting of this flag may also generate an interrupt if the appropriate bit in the Interrupt Enable Register CIER of the VIA is set This interrupt can be used to interrupt the CPU when the printer is ready to accept another character depending on the operation of the printer Handshaking using th...

Страница 21: ... of Data Direction Register B in the PIA 1 0 address 76hex ALL of the four protocol lines are RS 232C compati blea The serial communications speed or baud rate for the serial input and output data is controlled by one or both of the programmabLe timers in the VIA On the QUARK the PB7 Line from the VIA is connected directly to the Transmit CLock input of the ACIA When Timer 1 is operated in the fre...

Страница 22: ...rge pump circuit As a result the voLtage swing on the RS 232C outputs is usuaLly in the range of 11V to BV Simplex Serial Interface In additioo to the Full Duplex Serial Port the QUARK provides a simplex unidirectional asynchronous serial data port This port uses the Shift Register of the VIA part number 6522A and includes line drivers and receivers for compatibiLty with RS 232C signal LeveLs The ...

Страница 23: ... mode ACR 2 O ACR 3 1 operates in the same manner as the previous mode except that the System E clock is used as the shift clock rather than Timer 2 The frequency of the E clock is 1 49MHz for 60Hz models and 1 55MHz for 50Hz modeLs In the final mode ACR 2 1 ACR 3 1 the shift rate is controLled by pulses applied to 1 the CB1 input on the VIA If jumpers J3 and J4 are instalLed then the PB7 I O line...

Страница 24: ...nd to the CB1 input This allows Timer 1 to generate a clock signaL for the ACIA and for the Shift Register Values for Timer 1 to generate commonly used baud rates for the Simplex Port are given in Table IV By various combinations of straps the lines and RS 232C drivers and receivers associated with this port may be used for a variety of purposes Parallel I O lines _ _ _ The QUARK provides fourteen...

Страница 25: ...cts the output of the receiver to the PB6 I O should either be removed or PB6 must be configured as an input If this is not done then the output on PB6 wi II short out the input on CB2 Although pin B 2 would ordinari ly be driven by an RS 232C driver most TTL serial keyboard outputs should be able to drive this input properly When the keyboard transmits the start bit the active transition of the C...

Страница 26: ...nd of the Bootstrap routine this line will be cleared and configured to act as an output returning the system to Normal mode operation There is no need for the user to change the state or configuration of this line during normal operation of the QUARK ALL of the PIA Port B I O lines are used for specific output functions PBO 3 are the Floppy Disk SELO to SEL3 outputs PB4 is the Floppy Disk SIDE se...

Страница 27: ...l putting the Floppy Disk Interface into 5 25 inch operation just as is requi red If more then one 8 inch drive is to be used with some number of 5 25 inch drives then the Disk Size Select line must either be connected to an unused parallel output line from the PIA or VIA on the QUARK which can be then controlled in a software patch to the BIOS or the Disk Select lines used to select the 8 inch dr...

Страница 28: ...megahertz CPU four wait states T states are added to all zao 1 0 machine cycles This is over and above the standard extension to mod 4 cycles for any memory cycle Thus an 1 0 instruction which might require for example 10 cycles would be first extended to 12 cycles and then further extend to 16 cycles This allows AU version 1 5MHz peripheral devices to be used Because of the exact rule used for wa...

Страница 29: ...ARK 100s bearing revision 05ROO or greater this driver is a non inverting buffer one of the eight such buffers in the 74LS241 On all earlier QUARK 100s this driver is an inverting buffer part of the 74LS240 As a consequence of this change the sense of the Parallel Printer STROBE output will be inverted with respect to its former sense This means among other things that a software driver intended f...

Страница 30: ...le for the QUARK to write on a write protected diskette if the disk drive incorporates the appropriate write protection mechanism As shipped the distributed operating system is configured with the following logical to physical device assignments LOGICAL PHVSICAL DEVICE DEVICE CON UC1 LST LPT RDR nv PUN nv The peripheral interfaces on the QUARK computer and their identities under the CP M BIOS are ...

Страница 31: ...programming of the l80B With QINSTALL the user may modify the parameters in the operating system for optimum performance with his final system hardware As well various I O ports not needed for functions assumed by the Distribution operating system may be freed for other uses Finally other system parameters such as the baud rates to be initialized when the operating system is loaded can be specifie...

Страница 32: ...tte For the QUARK CP M impLementation this command has been modified to dispLay the names of those fiLes which are being erased REN Bui Lt in This command is used to rename a fiLe on a diskette TYPE Built in This command dispLays the contents the named ASCII fiLe on the CONSOLE device For the QUARK CP M impLementation this command has been modified to format the output into pages When the dispLay ...

Страница 33: ...SlI3 COM SUB allows CP M commands to be batched for automatic processing Console input is accepted in SUB XSlB COM XSUB aLlows CP M commands to be batched for automatic processing XSlJ3 wi lL intercept CP M BOOS call for Console Buffer Input thereby allowing the console responses to be batched as well XDlJt1PD COM This utility displays the contents of the named file in hexidecimal and ASCII form M...

Страница 34: ...OM Diskette to diskette copy uti lity Multiple track buffering permits rapid copying of enti re diskettes with same storage capacity and format QSYSGEN COM System generation program Used to copy a CP M system onto a formatted diskette QOSKTWO COM Program to patch the CP M system in memory to enabLe the use of a second physical drive in the operating system before instaLlation The CP M system as di...

Страница 35: ...character set supplied on the Distribution Diskettes CHRED COM Character set editor Can be used to modify existing character sets or create new ones QBAUD COM The Full duplex and Simplex serial interface configuration utility Allows baud rates and operating modes for these serial interfaces to be configured after the system is loaded CCP DOC Text file containing description of features of the Cons...

Страница 36: ...een modified for operation on the QUAR DU COM DU is a disk dump utiLity SWEEP COM SWEEP is a fiLe maintenance utiLity COMPARE COM UtiLity used to compare two fiLes byte by byte GMOD790 COM QMOD790 is a version of MODEM7 configured for use with the QUARK MegateL Computer TechnoLogies Toronto Canada Page S W 8 ...

Страница 37: ...o install a CP M system for the target QUARK system Each of the steps is described in greater detail in the next several sections Throughout the software examples in this manual all boldface text indicates a user response to a prompt or query from the computer All prompts or communication which will be displayed on the screen wiLL be indented This convention is also followed in the CP M Operating ...

Страница 38: ...eing made However the CP M system on the Distribution Diskettes can be patched directLy to aLLow the use of a second physicaL drive when accessing B C or D To patch the system for two physicaL disk drives the foLLowing program should be run QDSKTWO COM whi ch patches the system in memory so that the operating system and the utiLities will recognize a second drive Note that the patches performed by...

Страница 39: ...ari Ly to make backup copies of diskettes Two sets of copies of the Distribution Diskettes shouLd be made on diskettes formatted using the QCERT COM utility To make the copies of the Distribution Diskettes insert each diskette in drive A and follow the example shown below When using a me drive syste please ensure that the correct diskette is inserted in the drive AO QCOPY MEGATEL DISK COpy UTILITY...

Страница 40: ...e submit file QINSTALL will prompt the user to insert either disk Aor B Disk A is the Syste and B is the Installation Source Please ensure you read the prollP t that is displayed on the screen and insert the correct diskette in the drive Type the folLowing AO SLB QINSTALL This SUBMIT command causes a rumber of CP M commands and programs to be executed in a sequential fashion The fi le QINSTALL SUB...

Страница 41: ...S C OTHER PERIPHERALS CONFIGURATION D CONTINUE THE INSTALLATION PROCEDURE X ABORT PROCEDURE ENTER Each of the above menu selections is described in the sections which follow Selection AU Disk drive hardware specifications When A is chosen the following queries will appear on the screen and must be answered SELECT DRIVE UNIT TO BE DEFINED 1 Drive 0 on SEL 0 2 Drive 1 on SEL 1 3 Drive 2 on SEL 2 4 D...

Страница 42: ... Maximum of 1000 msec Enter X if the above is not required ENTER Enter the time required for the disk drive to come up to full speed Wait time for the head load operation Minimum of 0 1 msec Maximum of 1000 msec ENTER This is the delay inserted between the selecting of a drive and the beginning of disk operations Head settling time after positioning Minimum of 0 1 msec Maximum of 200 msec ENTER Th...

Страница 43: ...e 0 on SEL 0 2 Drive 1 on SEL 1 3 Drive 2 on SEL 2 4 Drive 3 on SEL 3 5 Return to main menu Enter The user can continue to define drives by choosing number 2 Drive 1 on SEL 1 or choose number 5 to return to the main menu If number 2 is chosen the second question wi II appear on the screen DRIVE UNIT 1 SPECIFICATIONS Define drive to be the same as 1 Drive 0 2 Drive 1 3 Drive 2 4 Drive 3 5 To be def...

Страница 44: ...as your distribution disk or data transfer from the distribution disk to your own format after the installation wi lL be mpoS Sible J n Il J 0 7 7 I h C F YVd 7 W I V Single or double density uL PPC u I 1 Single density 2 DoubLe density ENTER Single or doubLe sided 1 Double sided 2 Single sided ENTER Double tracking 1 Use doubLe tracking 2 Do not use doubLe tracking ENTER If double tracking is inv...

Страница 45: ... allow for uncertainty in the position of the end of the data field Block size 1 1024 bytes 2 2048 bytes 3 4096 bytes 4 8192 bytes 5 16384 bytes ENTER Number of directory entries Minimum of 64 Maximum of 4096 ENTER Total number of tracks ENTER This is the total number of logical tracks If a double sided 8 inch format is used and there are 77 tracks per side then the response to this query would be...

Страница 46: ... user to define another logical drive The first question of the QINSTALL utiLity wiLL appear on the screen SELECT LOGICAL DRIVE TO BE DEFINED 1 Drive A 2 Drive B 3 Drive C 4 Drive D 5 Return to main menu ENTER The user can choose to define more drives or return to main menu Selection C Other peripherals configuration _ _ _ _ _ _ _ _ _ _ _ _ v _ _ _ __ _ When C is chosen from Main Menu the foL low ...

Страница 47: ...ud 6 1800 baud 7 1200 baud ENTER The response to this CJ Iery determines the baud rate initialized for the Simplex Serial Port when the system is booted Full duplex serial port baud rate 1 9600 baud 2 7200 baud 3 4800 baud 4 3600 baud 5 2400 baud 6 1800 baud 7 1200 baud 8 600 baud 9 300 baud 10 150 baud 11 134 5 baud 12 110 baud 13 75 baud 14 50 baud ENTER The response to this query determines the...

Страница 48: ...nd the horizontal bLanking period When menu options A B and C have been compLete to the user s satisfaction the D option shou Ld be chosen Function D wiLL continue with the QINSTALL submit procedure The first fiLe to be aLtered is the system parameter fi Le QSYS DAT The default values obtained from the copy of QSYS DAT on the Distribution diskette wiLL be replaced by the parameters entered during ...

Страница 49: ... point a temporary CP M system wi II be required to transfer the system and data from the distribution disk to the target system drive The following system is required Drive A format should be the same as the Distribution disk format Drive B format should be the same as the user s target system drive A This way the user can access his own format through drive B whi le operating under this temporar...

Страница 50: ...TIONS YIN ENTER Y At this point the DFCU menu will be displayed The user should return to the main menu and exit by enter X Do not save the data file as limited disk space is provided on the distribution disks The temporary system will now be in memory and the following operations can be performed New disk format and new CPIM system After the Installation procedure has been completed the temporary...

Страница 51: ...sk Aor B Disk A is the Syste and B is the target drive A Please ensure you read the prollPt that displays on the screen correctly AO QCERT MEGATEL DISC FORMATTER ROUTINE Which drive A B then RETURN B Formatting disk B with Put disk in B and press return to continue ret FORMATTING BEGUN ON DRIVE B If any other drive were inadvertently accessed at this point the temporary system would have to be rec...

Страница 52: ...sing the CP M uti l ity PIP for Peripheral Interchange Program The fi le PIP COM should be CI the Work diskette To copy all of the fi les on the Work diskette to the new System Diskette follow the example below AD PIP B A VQR AD As PIP copies each file from drive A to drive B the names of the files will be displayed When PIP is finished the AD prompt wi II be displayed Having completed the transfe...

Страница 53: ...At this point uti l ities and other fi les on one of the copies of the Distribution diskette may be copied onto the new system diskette For detai Ls on drive assignments of the new system please refer to the beginning of the installation procedure If the boot fai ls improper data may have been entered in the QINSTALL procedure It is recommended that the user restore all the original files from the...

Страница 54: ...ormats from various BIOS tables in memory Operation of QCERT When QCERT s started by typing QCERT in response to a CP M prompt it queries the user for the identity of the logicaL drive which is to be formatted as shown beLow Which Drive A P then RETURN Formatting drive x with nnn tracks mmm sectors FORMATTING BEGUN ON DRIVE TRACK mn If the diskette is formatted successfuLLy the foLLowing message w...

Страница 55: ...cal track x does not validate This error occurs during the verification phase when the program finds that it cannot read back the data that it has just written during the formatting phase Unable to home drive ABORTING Unable to restore drive These two errors are li kely to occur at the same ti me and indicate a hardware fault The program has been unable to reset the drive to its normal rest positi...

Страница 56: ...he CP M modules on the system tracks SYSTEM IMAGE CONFIGURATION _ _ When the CP M 2 23 system is read in by the QSYSGEN either from a fi le containing the system created by the instaLLation procedures or from the system tracks of a disk the system image in memory wilL look Like this Memory Address System Modules 900h 980h 1fBOh 3bBOh 3fOOh 4aOOh 4bOOh 4eOOh bootstrap CP M standard address ccp bdos...

Страница 57: ...ates to the program to read the first sector to memory address 9OOh the next 37 sectors to address 3bBOh and on the next 100 sectors to address 980h and on and the next 16 sectors to 4eOOh In case of writting to the system tracks the program will write the first sector from memory address 9OOh the next 37 sectors from address 3bBOh and so o SEQUENCIAL STANDARD SYSTEM GENERATION In case the user wi...

Страница 58: ...oes not save data fi Le unLess requested by user through selction X of the main menu 3 DFCU uses DFCU MSG and DFCU DAT fi Les by default A data fi Le name other than the default entered at the command line is accepted but the data fi le wi II always be saved as DFCU DAT 4 DFCU does not configure peripherals other than disks 5 DFCU can use the QSYS DAT fi le generated by QINSTALL but DFCU DAT is no...

Страница 59: ...aracter Generator Loader for CP M Plus This fi le wi II load the default character set the data for which is contained within CHRLD cOM itself If the user wishes to load the default character set after the system is up it is necessary only to enter the following command A CHRLD A To load another character set into either the Programmable Character Generator or RAM without altering the CHRLD COM fi...

Страница 60: ...he hexidecimaL ASCII code for the character to be edited When a code is entered the pattern for that character in the character set file wiLL be displayed in a the large 8 by B edit frame as weLL as in a small single character cell below the grid Also displayed is a painting cursor Control keys E X S and D wi Ll move the cursor up down Left or right within the edit frame Positioning the cursor on ...

Страница 61: ...s QTCONFIG wilL display a description of the terminal function and then allow the user to enter a two byte sequence representing the control code to be used for that terminal function If it is desired that a particular functia l have only a one byte control code the desired hexidecimal value for the code should be entered as the first value and FFhex be entered as the second Only the first byte en...

Страница 62: ... of Video data 53 6 Percentage line utiLization 83 3 Video output ampLitude 4 0 H sync output ampLitude 4 0 V sync output ampLitude 4 0 H sync pulse width 8 0 Front porch data to start H sync 1 8 Back porch end H sync to data 0 7 Composite video ampLitude 1 0 Composite sync leveL reLative 0 5 to black LeveL MegateL Computer Technologies Toronto Canada _ 50Hz models units 24 80000 MHz 6 20000 MHz 1...

Страница 63: ...ister A PAD 7 General purpose I O lines Data direction register 8 Data direction register A T1 low order counter T1 low order latch T1 high order cntr T1 high order latch cntr T1 low order latch T1 high order latch T1 counter used as ACIA baud rate generator T2 low order counter T2 low order latch T2 high order counter T2 counter used as baud rate generator for VIA Shift Register simplex serial po...

Страница 64: ... PB6 GRAPHICS ALPHA mode bit high ALPHA PB7 Full duplex port DTR output active low Control reg ister B i CB1 Floppy Disk Controller INTERRUPT REQUEST E vT t I 2t zP CB2 Boot Mode low normal operation high PROM selected RAM deselecte 1 12 1 I 7 J fW v LJ l Status register Control register I Receive data register Transmit data register VIA Timer 1 sets baud rate on transmitter and receiver under non...

Страница 65: ...en an inverting TTL buffer on version 04R01 and earLier QUARK 100s on revision 05ROO and later QUARK 1OOs this output is driven by a non inverting buffer _ _ TABLE IIa TIMER 1 BAUD RATES FOR FULL DUPLEX INTERFACE 50HZ VERSION BAUD DIVIDE BY 1 DIVIDE BY 16 DIVIDE BY 64 RATE VALUE HEX ERROR VALUE HEX ERROR VALUE HEX ERROR 19200 39 0027 95 1 0001 8 26 1 000 1 15 91 9600 79 oo4F 03 3 0003 6 22 0 0000 ...

Страница 66: ...y of the Timer 1 generated clock output on PB7 of the VIA is given by fE 2N 3 5 where fE is the frequency of the E clock and N is the value in the Timer 1 latch The baud rate is this frequency divided by 1 16 or 64 according to the divide ratio bits in the ACIA 2 Baud rates other than those shown above are possible by loading the Timer 1 latches whith the value determined by the equation above Con...

Страница 67: ... BY 1 DIVIDE BY 16 DIVIDE BY 64 RATE VALUE HEX ERROR VALUE HEX ERROR VALUE HEX ERROR 19200 37 25 42 1 01 19 09 0 00 69 66 9600 76 4C 42 3 03 2 91 D 00 39 32 7200 102 66 42 5 05 7 53 0 00 19 02 4800 153 99 23 8 08 2 91 D 00 21 37 3600 205 CD 06 11 DB 42 1 01 7 88 2400 17 11 2 20 3 03 2 91 1800 24 18 42 5 05 7 53 1200 37 25 42 8 08 2 91 600 76 4C 42 17 11 2 20 300 153 99 23 37 25 42 150 309 76 4C 42...

Страница 68: ... 4 bits bit 33 2400 79 4E 4 bits bit 33 1800 106 6A 4 bits bit 33 1200 159 8F 4 bits bit 28 TABLE IVb SIMPLEX SERIAL PORT BAUD RATE SELECTION 60HZ BAUD VALUE FOR VIA TIMER 2 LATCH RATE VALUE HEX MODE ERROR 9600 76 4C 1 bit bit 42 4800 153 99 1 bit bit 23 9600 37 25 2 bits bit 42 4800 76 4C 2 bits bit 42 2400 153 99 2 bits bit 23 19200 8 09 4 bits bit 2 9 9600 17 11 4 bits bit 2 2 7200 24 18 4 bits...

Страница 69: ...de FF86 Fa CLR Start address bit 10 FF87 FO SET FF88 F1 CLR Start address bit 11 FF89 F1 SET FFSA F2 CLR Start address bit 12 FF8B F2 SET FF8C F3 CLR Start address bit 13 FF8D F3 SET FF8E F4 CLR Norma lly set FF8F F4 SET FF90 F5 CLR Start address bit 14 FF91 F5 SET FF92 F6 CLR Start address bit 15 FF93 F6 SET FF94 P1 CLR Page bit FF95 P1 SET FF96 Ra CLR Norma lly cleared FF97 RO SET FF98 R1 CLR No...

Страница 70: ... address in Alphanumeric mode or the second 16k boundary following the starting address in Graphics mode 3 Bit F4 in the SAM Control Register must always be one 4 On Quarks with 128k memory the Video Memory is located in the memory bank determined by bit 0 of the I register 5 In Graphics mode the starting address must be on a 3k boundary _ _ _ TABLE VII QUARK PIN CONNECTIONS AND FUNCTIONS PIN GROU...

Страница 71: ...L DUP RS 232C RTS output from ACIA FULL DUP RS 232C DSR input to ACIA P2 VIA PAO paraLlel 1 0 Line P2 VIA PA1 paralLel 1 0 line P2 VIA PA2 paralLeL 1 0 line P2 VIA PA3 parallel 1 0 line P2 VIA PA4 parallel 1 0 line P2 VIA PAS parallel 1 0 line P2 VIA PA6 paraLleL 1 0 Line P2 VIA PA7 paralLel 1 0 line t 0 PAR PTR ParaLLeL printer acknowledge input to VIA r 0 K 1 L r I EXP 8US lB08 address bus A2 _ ...

Страница 72: ...PIA PA1 paralLel I O line KBD1 P1 PIA PA3 paralleL I O line KBD3 P1 PIA PAS paraLleL I O Line KBDS EXP BUS Z80B address bus AO EXP BUS Z80B data bus DO EXP BUS ZSOB data bus D2 EXP BUS ZSOB data bus D4 EXP BUS ZSOB data bus D5 DISK FLoppy disk write protect sense input active low RESERVED Reserved for future hard disk version RESET Reset input active low POWER 12 V reguLated input 1 P1 P2 P3 refer...

Страница 73: ...ter is to be connected on the Full Duplex Serial Port the DB 25S pinout given in the column labelled TERMINAL shouLd be used TABLE Vlllb PARALLEL PRINTER INTERFACE CONNECTIONS PRINTER PIN FUNCTION QUARK PIN REMARKS 1 DATA STROBE C 13 Data strobe AcknowLedge 2 BIT 0 lSB A 12 and Bits 0 7 may each be 3 BIT 1 C 12 twisted with ground wires 4 BIT 2 A 11 5 BIT 3 C 10 6 BIT 4 C 9 7 BIT 5 A 10 8 BIT 6 C ...

Страница 74: ...pin numbers for a 5 25 inch floppy disk drive 2 If the Motor control line must be used it could be controlled by on of the QUARK parallel I O lines if suitably buffered or by one of the Drive Select lines Either of these configurations would require a patch to the BIOS TABLE Vllld 8 INCH FLOPPY DISK DRIVE INTERFACE EDGE CONNECTOR FUNCTION QUARK PIN REMARKS 1 GROUND 2 LOW CURRENT B 18 3 GROUND 4 6 ...

Страница 75: ...ARD D5 C 23 KEYBOARD D6 A 23 KEYBOARD D7 B 22 KEYBOARD STROBE B 23 Notes DO is the least significant bit of the ASCII code D7 is i9nored by the BIOS STROBE lS initialized active low 1 The keyboard input uses Port Aof the PIA and CA2 2 All of the keyboard input Lines are TTL compatible 3 If a keyboard with an active high STROBE output is to be connected to the QUARK the STROBE input Line may have t...

Страница 76: ...ct for 8 floppy Connect for non split Connect for split Connect for VIA CB1 to A 4 Connect for VIA CB2 to A 4 Connect for B 2 to VIA CB2 Connect for B 2 to VIA PB6 Connect for 68ASO Connect for 68AS2 Connect for 68A50 Connect for 68A52 Connect for 68A50 J14 POSITIVE SYNC Q 150 Connect for positive sync J15 NEGATIVE SYNC Q 150 Connect for negative sync Notes 1 The standard installed jumper configur...

Страница 77: ...ay be more convenient to load the Televideo 920 code set rather than to modify the program to use the Megatel codes The utility program QTCONFIG COM can be used to load either sets of codes after the system is booted This utility also allows a set of user defined codes to be created This set can be saved as a disk fiLe which can be subsequently loaded through QTCONFIG COM uTelevideo is a registere...

Страница 78: ...ot a terminal driver function but a special trap in the console input routine Notes 1 If the MegateL control codes are being used the cursor addressing character sequence is 18 3D xx yy where xx and yy are the one byte vaLues for the x horizontal and y verticaL co ordinates If the TeLevideo 920 control codes are in use the the cursor addressing sequence is 1B 3D yy xx In the CP M 2 2 terminaL driv...

Страница 79: ...s positioned on line O 4 Cursor Down will perform a scroll ie entire screen up one line if the cursor is positioned on the bottom line of the in use screen 5 Cursor Right has no effect if the cursor is positioned in column 80 6 Cursor Left will have no effect if the cursor is positioned in column 0 of any line 7 In the CP M 2 2 terminal drivers there are 27 lines 0 26 and 80 columns 0 79 on the 60...

Страница 80: ......

Страница 81: ...ORY TY O P1 l MAP iNUMBER OF LINES TO C EAR B CREEN V ION I ELSE SAMBITS VDMBASE NUMLINES BOTSCREEN VERSION HIDCODE LOADADD LATCHADD EPROMADD CODECNT ENDIF EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU 07E2H 7000H 32 OFOOOH 01560ll OFOO OH aOH aCOH ODOH 255 I iSTART OF SCREEN MEMORY iVERSION 1 5 50H t i I i START OF SCREEN MEMORY MA PPED iNUMBER OF LINES TO CLEAR I iVERSION 1 5 60az iPUT CODE IN VIDEO H...

Страница 82: ...EQU ENDSPACE CENDQ iINIT INTERRUPTS iNOTE THIS CODE IS OVERLAID IN MEMORY ROM i I I i SECTION FOR ROUTINE TO TALK TO SAM REGISTERS GO TO BOOT MODE TO GET TO SAM REGISTERS SHOULD COME OUT TO JR I3H NOTE ROOM FOR RST VEC OR iOVERLAID IN RAM AS A RETURN iUNBOOT iNOW OUTPUT SHOULD BE ISH iTHI ROUTINE S TO CATCH INTERRUPTS i WHEN REPROGRAMING THE SAM i THIS DOES NOT GET EXECUTED TWICE iSAM INIT CF LEO ...

Страница 83: ...VI A O DCR A JNZ WAIT JMP SCREEN EQU ENDSPACE CENDl ORG 200H iTHIS SECTION DOES A PROPER HARDWARE RESET TO THE SAM PART i IF YOU WANT TO KNOW DETAILS SEE LEO LXI B l004H LXI D l LXI H OFOOOH IN PIAPORT IN PIAPORT l ANA A JM RESET3 DAD D JNC RESETl LXI H OFF80H MOV INR INR DCR JNZ STA STA LXI MOV DCR MOV INR MOV OCR MOV INR MOV OCR M A L L B RESET2 OFF9DH OFF9BH H OFF8DH M A L M A L M A L M A L M A...

Страница 84: ... SET TYPE BIT UNMAP MEMORY CONFIG MVI MOVENEXT MVI MOV MOV INR JRZ INR MOV INR MOV INR MOV INR MOV MOV MOV MVI LDIR MOV INR JR L LOW MOVETABLE H HIGH MOVETABLE C M iCOPY CODE IN PROM TO RAM iTABLE CAN NOT CROSS PAGE BOUNDARY I SCREENl A C A SCREENl L E M I L D M L B M L H M A L L B B O L A L MOVENEXT I MVI A OC9H RAMRET STA LXI SP STACK JMP UNBOOT END3 EQU ENDSPACE CEND3 ORG 400H REG C BYTE COUNT ...

Страница 85: ...EN 80H TO BOTSCREEN 80H 48 I I BOTf CREEN 80H RETURN TO BOOTSTRT IS ALREADY ON THE STACK LXI CALL B BOTSCREEN VSLOOP THIS ADDRESS MUST CONTAIN OOH TO START LXI H BOTSCREEN 20H 4C CON MOV VI A 16 CONTMOV EQU XCHARLD CHARLD MVI M 080H 7 H DCR A JRNZ XCONTMOV CMA STAX B I XVSLOOP VSLOOP EQU XCHA1 LD CHARLD CODE STARTING FROM HERE UST BE PRECISELY TIMED I CLEAR ANY PENDING IRQA INTERRqPTS IN PIAPORT W...

Страница 86: ... BOOTSTRAP CqOE IN HL iPUT I O ADDRESS OF 1 EPROM INTO REG C 1 iPUT NUMBER OF BYT ES TO READ FROM EPROM MAX 256 iJUMP TO BOOTSTRAP CODE 1 IBOOTEND EQU CEND6 EBOOTFL BOOTFL EQU ENDSPACE ORG MVI LXI LXI 700H EQU HIDCODE OFOOH B 24 iTWENTY FOUR LINES D 130 iLIN LENGTH SORT OF H BOTSCREEN 230H BOOTLOOP STACK XENDFL MVI DAD DJNZ HLT M 80H ID BOOTLOOP DW EQU DW EQU iREVERSE VIDEO iNEXT LINE o iMINIMUM O...

Отзывы: