Home

simpson personal file do not remove

image

Contents

1. 325012 325112 325212 Tk k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k kk k de de ke he ke ke k h k k ILS INDICATOR DEMONSTRATION PROGRAM dfe k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k kk k k k k k k k k k k k k k k k k w 99 w ng 9 5o EQUATES JMPINST EQU OC3H JUMP INSTRUCTION RST7P5 EQU 020 RST 7 5 INTERUPT LOCATION SIM EQU 030H SIM NOT RECOGNIZED BY RIM EQU 020H THIS ASSEMBLER CR EQU ODH CARRIAGE RETURN WRBUF EQU 0850H CHAR IN A TO INPUT BUFFER GETCMD EQU 0853H LCD GET COMMAND ROUTINE PRVAL BU 0092H CONVERT C FROM HEX TO ASCII DELAY OO9BH DELAY PROP TO CONTENTS OF D E BCDADD EQU 05C8H BCD ADD HL gt DE gt NUM2 RESULT REPLACES NUMI GETBAUD EQU 0479H SET BAUD FROM SPACE CHAR ENDCMD OFFH END OF COMMAND STRING MARK FUNON OFFH FUNOFF EQU OOH TIMEON EQU OFFH ENABLE TIME DISPLAY ORG 03000H DB OBBH AUTOSTART BYTE INITILIZATION IIIA k de e de IATA THIS PROGRAM INITILIZES THE TIMER FOR 1 5 INTERUPTS PORT A OUTPUT PORT INPUT PORT INPUT INIT DI LXI SP FSTACK J INIT STACK SET UP INTERUPTS LXI H RST7P5 MVI M JMPINST CODE FOR JUMP LXI H CLOCK ADR OF CLOCK ROUTINE SHLD RST7P5 1 SET UP TIMER AND PORTS MVI A O00H TIMER L O COUNT 024H MVI A O4CH TIMER COUNT OUT 025H SQUARE WAVE OUT MVI A OClH START TIMER
2. II ke COMMAND STRING SUBROUTINES WHI k e k k k k k Ae k k k k k k k k k k He k k He k de de k He e He Fe de de Ok Kok ke de ke deke ke k ke k B 80D VERTICAL BAR 8 01H FUNCTION RUNNING BYTE 02H STACK POINTER SAVE LOC 4 k kk k k k k k k k k k k kk k k k k k k k he k k k k k k k k k k k k k k kok kok k k k e Ok de ke Ok k K F FE FE Ie he dee He he Ae Fe Fe de de e Ae e e He de Fe He de de e He He e e e de He Fe He e He de Ae ke He de ke ke deke ke dekek kk kek OD DB 4430382C30 DB OD DB 4430392030 DB OD DB 4430412C30 DB OD DB 50304 2038 DB OD DB 5030392 41 DB OD DB 5030372C43 DB OD DB 5030382C45 DB OD DB 4130342 40 DB OD DB 4130342C41 DB OD DB FF DB 0650 CD3 MVI 3E38 C3 MVI CD5008 CALL 3E30 MVI CD5008 CALL 05 DCR C24B36 JNZ MVI CD5008 CALL c9 RET ORG 01102H FUNBYT DS STKSAV DS VARIABLES ORG 01200H DS FSTACK DS THSCNT DS HNDCNT DS TENCNT DS TIMSTR DS TIME DS TDBYTE DS XBAR DS YRAR DS BARDLY DS END 050H STACK BELOW OH O1H OAH ASCII TIME CR ENDCMD 03H TIME IN HEX 5 01H FF TIME NEEDS UPDATING 01H X COORDINATE OF VERT BAR 01H COORDINATE OF HOR BAR 02H MOVE DELAY VALUE 12
3. INX H MOV M D CALL CLR RET WARM START ENTRY HERE 74 ne w Sg GO LXI SP STACK INIT STACK XRA A 0 STA BUFTOP STA BUFBOT CALL CRLF LDA DEMO SEE IF DEMO ROM PRESENT CPI DEMO PRESENT BYTE JZ DEMO 1 YES JUMP TO DEMO ROM CALL GETBAUD JMP GETCMD k ik k k k k k k k k k k k k k k k k k k k k k k k k k kk k k k k kk k Kk kkk JUMP TABLE se 99 ap Se k ik k k k k k k k k k k k k k k k k k k k k k e fede e che fe de de fe k k k ehe kk k k k k k k k k k k k k AV SIO 1 0207 GIT ARASH Il vd 0850 0850 C3AFOC 0853 C35608 0856 314811 0859 0E23 085B CDO30D 085E CD7DOC 0861 010 00 0864 21380D 0867 BE 0868 CA7308 0868 23 OD 086D 26708 0870 C37D08 0873 21460D 0876 09 0877 09 0878 7E 0879 23 087A 66 087B 6F 087C E9 087D OE2A 087F CDO30D 0882 CD170D 0885 C35308 ORG 0850H WRBUF JMP WRBUFR GETCMD JMP GETCM Tk k k de k k k fe e k k k k k k k e k k k k k kk k de k ehe k k k k k de k ehe fe fee de hehe dede k ed d k COMMAND RECOGNIZER ROUTINE kk k k k k He k k k k k k k k k k k k k k k k k k k k k k k k k k hehe K k k k k k k k k k k k k k x FUNCTION GET COMMAND INPUTS NONE OUTPUTS NONE CALLS RDBUF ECHO ERROR DESTROYS A B C H L F DESCRIPTION GETCMD RECEIVES AN INPUT CHARACTER FROM THE INPUT BUFFER AND ATTEMPTS TO LOCATE IT IN THE COMMAND CHARACTER TABLE IF SUCCESSFUL THE ROUTINE CORRESPONDING TO THIS
4. L DD D A A SS M M 4 g FE Fe de de de e de de de de Be He de k k k k k k k k k k k k k k k k k e k k k k k k k de kk k he k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k REVISION HISTORY VERSION 1 2 DATE CHANGES 23 APR 84 WRITTEN BY LEE MARZKE 13 MAY 84 FIXED MANY BUGS IN PUT PUTX AND DROTR 16 MAY 84 ADDED GETBAUD CALL AUTOBAR t de k k k k k k k k k k k k k k k k k k k k k k k k k dede k k k k k k k k k k k k k k k be k kk k k k f THIS IS A GRAPHICS AND TEXT DISPLAY PROGRAM FOR THE SHARPE LM 24003G LCD DISPLAY IT IS WRITTEN TO RUN ON THE MCG 8085 COMPUTER HAVING A LHM 24000 DISPLAY CONTROLLER BOARD TEXT STRINGS AND GRAPHIC SYMBOLS ARE DEFINED AT INITILIZATION THE TEXT STRINGS MAY THEN BE CHANGED AND BOTH STRINGS AND SYMBOLS MAY BE MOVED TO ANY COORDINATE ON THE SCREEN lt no o ne 99 99 lt k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k lt lt EQUATES EQU ODH CARRIAGE RETURN EQU OAH LINE FEED EQU 4000H START OF DISPLAY RAM EQU 03FH ASCII MASK EQU 080H SYMBOL MASK EQU 03000H DEMO FUNCTION EPROM EQU 03050H ENTRY FOR FUNCTION COMMAND THAM Tk k k k k defe k k k k k k k k k k k k k k k k k je k kk kk fefe defe ede e ke ke de deke ke ke kek k kk MONITOR CALLS e e dece hee ehe dece ehe e e ee e
5. 11 OBBF 3D OBCO 320 11 OBC3 2 OBC6 23 OBC7 221411 OBCA C3410B OBCD 2Allll OBDO 35 OBDl 2A1211 OBD4 35 OBD5 35 OBD6 35 OBD7 35 OBD8 OBDB 211111 OBDE 34 OBDF 2A1211 OBE2 77 OBE3 23 OBE4 EB OBES 2 1411 7D OBE9 12 OBEA 13 OBEB 7C OBEC 12 OBED 13 OBEE EB OBEF 221211 OBF2 EB OBF3 C9 CALL GETBYT SYM DATA MOV M A STORE IT DCR D JNZ 01505 END OF DATA LDA SYMWD MOV D A LDA SYMYCT DCR A STA SYMYCT JNZ GT SO5 GTS10 INX H SHLD NEWDAT JMP SRET GTS15 LHLD NUMSYM ERROR DELETE ENTRY DCR M LHLD NEWSYM DCR M DCR M DCR M DCR M JMP FRET k k k k k k k k k k k k k k k k k k k k k k k ik k k k k k k k k k k k ARK AR FUNCTION ADD SYMBOL INPUTS SYMBOL IDENT OUTPUTS H L 5 ADDRESS DESTROYS A B C D H L F DESCRIPTION ADDS SYMBOL IDENT AND STORAGE ADDRESS TO SYMBOL TABLE se 99 9 sa 99 LXI H NUMSYM INR M INC OF SYMBOLS LHLD NEWSYM FOR NEW TABLE ENTRY MOV MA STORE SYM IDENT INX H XCHG LHLD NEWDAT ADR FOR NEW SYM DATA MOV A L STAX D PUT NEWDAT POINTER IN SYMTAB INX D MOV A H STAX D INX D XCHG SHLD NEWSYM INC TABLE POINTER XCHG RET STRING STORAGE LOOKUP ROUTINES e 99 9 17 efe de ee dece k k k k k k k k k k k k k he k k k k k k k k k k k k de k k k k k k k k k k k k k k k k k k kk k k k k k k k k k k k k k k k k k
6. MISCELLANEOUS COMMANDS The screen may be cleared vith the Clear C command The Init I command clears the screen and erases all stored symbols and strings Incoming characters are normally echoed by the command recognizer for use vith amp terminal Echo may be GRAPHIC LCD AIRCRAFT DISPLAY PAGE 14 turned off vith the Kill echo K command and back on vith the Echo on E command FUNCTIONS The Function F command starts execution of a user defined program that may define symbols and strings or move existing ones The hexidecimal byte folloving the F command is placed in the accumulator and call is made to address 3050H GRAPHIC LCD AIRCRAFT DISPLAY PAGE 15 TABLE 1 COMMAND SUMMARY Asti XX YY lt CR gt A3HE MESSAGEXCR C lt CR gt D HHWW BBBB lt CR gt E lt CR gt F lt CR gt LOCH K lt CR gt LXXYY XXYY XXYY Mitt XX YY lt CR gt N lt CR gt Pitt XX YY lt CR gt W lt CR gt XX YY lt CR gt XHH lt CR gt Z lt CR GRAPHIC LCD AIRCRAFT DISPLAY Move ASCII string to location XX YY Change ASCII string to MESSAGE Clear Screen Define symbol of height HH and width WW according to the bits that follow Echo on Calls user defined function 384 Init Clear all strings symbols and screen Kill echo of command characters to terminal List of points to turn on Move graphic symbol from old location to XX YY N
7. U26 SERIAL SHIFT REG Data top Clks Data 000 HHHHHHHHHHHEHHHHHHEHI lt 99 0 ACTIVE PATH en h DORMANT PATH 4 SERIAL SHIFT REG CONTROLLER BLOCK ACTIVE 5 bed Q CONTROLLER CONTROL MUX CONTROL Yi BLOCK DORMANT BUFFER CONTROL Data gm 2 O ELSEWHERE Address DR M MT d 8085 SINGLE BOARD COMPUTER Fig 11 DATA FLOW DURING DISPLAY REFRESH GRAPHIC LCD AIRCRAFT DISPLAY PAGE 29 LCD CONTROLLER BLOCK DIAGRAM U26 I SERIAL SHIFT REG D 1 S Pu L A E UN IS ACTIVE PATH DORMANT PATH CONTROLLER BLOCK ACTIVE CONTROLLER j BLOCK DORMANT RAM ENABLE MUX CONTROL BUFFER CONTROL EXPANDED o ELSEWHERE 8085 SINGLE BOARD COMPUTER Address Fig 11 DATA FLOW DURING RAM ACCESS GRAPHIC LCD AIRCRAFT DISPLAY PAGE 30 3 3 PROGRAM DESCRIPTION The LCD program is organized around a command recognizer which accepts data from the serial port and calls the appropriate subroutines INITALIZATION INIT Entry point for cold start GO Warm start entry point Does not disturb currently defined symbols COMMAND RECOGNIZER GETCMD Commands are read from the input buffer by executing RDBUF A lookup is done in the table CTAB to find the address of the command routine which is then passed control An unrecognized command c
8. which is the standard we have establish ed see inserts for all available cards INTEL and ISIS are registered Trademarks of INTEL CORPORATION CPIM is a registered Trademark of DIGITAL RESEARCH INC MCG Bus is a Trademark of ATLANTIS COMPUTERS CALL US FOR DETAILED INFORMATION ATLANTIS COMPUTERS design engineers wil be glad to work with you and investigate your specific applications and requirements Call direct 212 728 6700 or write ATLANTIS at the address below PRODUCT DEVELOPMENT A PROBLEM Before you hire expensive outside consultants give us a call We can design prototype and develop customized software for any project involving the MCG 85 ATLANTIS COMPUTERS corr 444 BROADWAY NY 41406 242 728 6700 MCG 95 SINGLE BOARD COMPUTER PORT C PORT B 6 1 0 LINES 8 1 0 LINES TIMER OUT RS232 OUT RS232 RECEIVE TRANSMIT IN 2K Expansion EPROM 2716 2K Stabe RAM 2016 2K CMOS RAM 15516 Slabc 2114 a CMOS RAM 6514 A EDGE CONNECTOR PINOUT PUNCTION CODE PIN PIN CODE FUNCTION Sound GRD 1 A Vcc 5 Volts feceive data RX B Do Teansmit data TX 3 C D1 PROM Programming Veitage EPV 4 002 12 volts 12 5 E D3 12 volts 129 6 F D4 Clock 8 J A2 RESET IN 9 10 M 10 L A0 Read RD 11 MA A10 12 N A4 11 13 PW Wnte 9 14 07 15 556 A12 1 T 05 A13 17 U AS A14
9. 099 0990 099 099F O9A0 O9A1 O9A2 09A3 O9A6 09A7 O9AA O9AD O9BO 09B3 0986 0989 O9BB 09BD 0900 09C3 09C6 CDB609 CD380A C35308 E63F F680 CD610B D27D08 CDDFOC CAE909 5555555555555555955555555555 XOR SYMBOL WITH SCREEN X Y COORDINATES FORMAT X XX YY CR X lt CR gt USES OLD COORDS XCMD CALL CALL PUTX JMP GETCMD 5555555555555555555555555559 se 99 sa MOVE SYMBOL FROM OLD POSITION COORDINATES FORMAT M XX YY CR lt e MCMD CALL GETBYT GET ADDRESS ANI ASCMSK ORI SYMMSK CALL SYMADR JNC ERROR PUSH H SAVE ADDRESS MOV B M OLD X POS INX H MOV C M OLD Y POS INX H MOV D M GET HEIGHT INX H MOV E M GET WIDTH INX H XCHG CALL PUTX ERASE OLD POP H GET ADRESS CALL XYHL XOR NEW CALL PUTX JMP GETCMD FORMAT 2 lt CR gt ZCMD CALL CALL JUMP TO MONITOR Kk k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k INPUTS INPUT BUFFER XX YY OUTPUTS H HEIGHT L WIDTH D E SYM ADR 4 B X POS C Y POS DESCRIPTION GET X Y POSITION AND SIORE WITH SYMBOL RETRIEVE HIEGHT WIDTH FROM SYMBOL e GXYHL CALL GETBYT SYM IDENT TO A ANI ASCMSK ORI SYMMSK CALL SYMADR LOOKUP STORAGE ADR JNC ERROR XYHL CALL GETCHR CHECK FOR DELIMITER CPI JZ XY IF USE OLD X Y
10. 30 C3BB32 CD7E31 CD5008 79 095008 C9 AB3 PUSH ORA JNZ JMP w SNDXBAR LXI CALL IDA CALL LXI RIGHT AB2 B 010H DOWN AB3 B 010H MOVBAR AUTOBAR 5555555595555555555555555959 H BCMD2 SEND NEW COORDS SNDCMD XBAR SNDBYT H BCMD3 SNDCMD DOCMD H 07000H BAR MOVE DELAY DELAY NEWTIM Ssssssssssssssssssssssssss e SNDBYT CALL 3268 4D30312C31BCMDl DB H SEND NEW COORDS OF YBAR SNDCMD YBAR SNDBYT A CR WRBUF M01 10 32 32 0 32 4 32F5 32F8 32F9 32FA 32FB 32FC 3314 3315 3324 3325 332E 332F 3338 3339 335A 335B 3364 3365 336D 336E 3377 3378 3383 3384 338D 338E 33AC 33AD 33B6 33B7 33C0 33C1 33C2 33C3 33c4 33E0 33E1 33F7 33F8 3401 3402 3403 340B FF 4D30322C FF 2C3130 OD FF 4B OD 4130312F41 OD 4130322F53 OD 4130312033 4130322039 OD 4130352F53 OD 4130352C31 OD 4130332F44 OD 4130332C37 OD 4130342F44 OD 4130342C39 OD 4430312C30 OD 5030312C38 OD 5030312C41 OD FF BCMD2 BCMD3 SRSSS ENDCMD 02 ENDCMD 10 CR ENDCMD e k k k k k k k k k k k k k k k k k k k k k ehe k k k k k k k k k k k K k k k k k k k k k k k k k defe k e lt gt U 49 CMDS2 OD 4430312C30 4430352 30 OD 5030352C33 OD FF 4430322C35CMDS3 FF BE UNI UI COMMAND STRINGS kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
11. 42 43 CS15 44 10 1 45 ce 46 IN 47 GND RS 222 48 49 5g 5 2 Dar 53 ees 54 55 ee 56 57 5N 58 59 60 PAGE 44 LOGIC TIMING DIAGRAM BEGINNING OF PAGE BEGINNING OF LINE LINE 4 634 VU M94 A A 3 RESET ADDRESS COUNTER AT PAGE BEG 2 3 9 BIT 2 123456789778 4 890 D 8 1 DOWN DFN orn OFN D CLOCK FOR DISPLAY BOARD A COMPONENT LAYOUT GRAPHIC LCD AIRCRAFT DISPLAY PAGE 46 BOARD B COMPONENT LAYOUT GRAPHIC LCD AIRCRAFT DISPLAY PAGE 4 7 US LS163 BINARY 580 DECADE CTR 15163 BINARY CTR an CP2 LS163 BINARY CTR 15163 BINARY CTR TITLE DATE LCD DISPLAY CONTROLLER 10 AUG B4 NC OMNI ee et E GBA GBA Ex Ge 5543 1964 1 AR B EN i E Qe OI LL is OU O 18 20 2112 TITLE DATE LCD DISPLAY CONTROLLER 10 AUG 84 LISAIA YS GIT DH TXEMPTY BYNDET 55 ET 1 77 GND RS 232 E 07 TITLE LCD DISPLAY CONTROLLER y B Fa RUG 84 HORE a rl anas T SHIRE e PI HS HE SCREEN MEMORY LOCATIONS COLUMN 1111 2 11 1122 2 012345678901 8901 6 Qu MEMORY LOCATION 4
12. CHECK B A 00H 19502 DROTO5 NO C A CLEAR CARRY OUT PSW YES DONE PSW D SAVE DE H SAVE HL B RMASK ROTR SAVE CARRY IN GET ROTATE MASK SHIFT A REG B A SAVE H GET OVERFLOW PUT IN C A B L MASK OVERFLOW D CARRY IN TO E B D RESTORE IN TO B D A A E H MASK D OR WITH SHIFTED BITS H RESTORE HL D RESTORE DE ROTATE A RIGHT B TIMES DESTROYS A B F B DONE YES NO ROTATE RIGHT ROTR ee de e e he je e he fe eee he de de he e dece he ce e che ke k he k k e he e kkk hkk kk kk kok kk kk B SAVE H SAVE H H MSKTAB C B B 00H N TH ENTRY B IN TABLE H M A H COMPLEMENT IT L A RMASK OAAC El OAAD Cl OAAE OAAF OAB2 OAB3 OAB6 OAB7 OAC OAC6 OAC7 OACA OACE OADI OAD2 OAD3 5 0AD8 OAD9 C9 210040 78 CDDAOA F5 AF 321011 57 19 220711 79 E67F CDE50A EB 2A0711 19 CD430B 220711 Fl 07 07 07 320911 47 c9 POP POP RET lt mo INPUTS B SSAD OUTPUTS H L B DESCRIPTION e 99 99 9 lt s se SCADR LXI 4 H D 4 RESTORE H B RESTORE B He de k k k k k k k k k k k k k k k k k k k k k k kk k k de de de he de de ke de e de ke ke kek ke k k SCREEN ADDRESSING ROUTINES eee de je he jeje k k ik k kk kk k k k k k k k k k ik k k
13. GS 1D RS 1E US 1 SP 20 21 pka GRAPHIC LCD AIRCRAFT DISPLAY ASCII CODES The 8080 and 8085 usc the seven bit ASCII code with the high order eighth bit GRAPHIC OR CONTROL woman ana wn O lt gt e A B D E F G H J K L M P Q R 5 T U ASCII HEXADECIMAL 2B 2C 20 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 38 3c 3D 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 G CONTROL RAPHIC OR 4 8 b d e f 9 h k EJ lt Oo ALT MODE DEL 808 OUT ASCII HEXADECIMAL 56 57 58 59 SA 58 5C 50 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 68 6C 6D 6E 6 70 71 72 73 74 75 76 77 78 79 7 78 76 70 7E 7F PAGE 68 APPENDIX E PROGRAM LISTINGS GRAPHIC LCD AIRCRAFT DISPLAY PAGE 69 1 GIT III OL 0000 000A 4000 0080 3000 3050 0000 0065 0068 OO6E 0080 tut HH H H kk k k kk k k k k k k k k SES k Ok k k k k k k k k k k k k k k k k k k k K K g FF e de he de e de e de de de de de e de e de de de de e He Re e e e e He de e He Re de e de Ae Fe He Ae He He He He He de He He He He de de o LLLLL CCC DDD SSSSS M M D L CCCCC DDDDD 55555 MMMMM S L cC DD D A A SS MMM SL cc DD D SS MMM
14. ks 2 See MCG 8085 4 x 9 ADO mb Gidse ap BOARD A CIRCUIT BOARDS FRONT KN ELLE AAAS D bes Sec anasan BOARD B Io ooo O x ooo s E OOOC MO OO OOOO OOF OOo OCIO lt lt pe oo ACA UHM x lt OOOO HAL oo x lt vy lt lt lt ooo OC OOO IO OOOO OOOO OOOO CO OOOO OOO OOCOC OOOO OOO OOO OOOO OO OOOO OOOO OOOO OA CCC OOOO ll OC OOOC AA lt lt lt kU TURCA AAA AAA UUW we YY A vuelve ey ye UU V M io V VW v uo PR44444 SOON Wwwwwwwuwuywy r ye We Oe y KA Re i d Wes E ORT Uu eee 4222074 GRAPHIC LCD AIRCRAFT DISPLAY BOARD B BOARD A CIRCUIT BOARDS BACK MCG 8085 AV 597 LAADA 027 THAT AI 0 39vd DUM HIM 24 0031 IMS M LM 24003G DRIVE ELECTRONICS ON BACK OF BOARD AW VISIO LADA GIT HAHAA MOVE BARS GRAPHICS DISPLAY UNIT WITH ILS DEMO RUNNING APPENDIX B SCHEMATICS AND PARTS LAYOUT GRAPHIC AIRCRAFT DISPLAY PAGE 42 PARTS LIST U1 U2 8 03 17 U4 U5 6 7 14 15 09 U10 011 12 013 016 0
15. 325A12 3EOD 325B12 3EFF 325C12 STA TIME LXI H TIME 1 MINETS CALL BCDADI ADD 1 MIN CPI O60H 60 MIN JZ ADDHR JMP GETIME ADDHR XRA A STA TIME 1 LXI TIME 2 HOURS CALL BCDADI ADD 1 HOUR CPI 02 24 HR JZ ADDAY JMP GETIME ADDAY XRA A STA TIME 2 JMP GETIME 5555555555555555555559559559 BCDADl LXI D ONE ADD A ONE MVI B OlH NUMBER OF DIG TO ADD CALL BCDADD RET ONE DB 01 CONSTANT 1 HkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkKkkkkkkkkkkkkkkkkkkkk FUNCTION GET TIME DESCRIPTION CONVERTS TIME IN REGISTER TO ASCII STRING AND STORES IT IN TIMSTR e 9 99 x o LDA TIME 2 CALL CONVTM STA TIMSTR MOV STA TIMSTR 1 MVI STA TIMSTR 2 LDA TIME 1 CALL CONVIM STA TIMSTR 3 MOV A C STA TIMSTR 4 MVI A STA TIMSTR 5 LDA TIME CALL CONVTM STA TIMSTR 6 MOV A C STA TIMSTR 7 MVI A CR STA TIMSTR 8 MVI A ENDCMD STA TIMSTR 9 317A 326012 317D C9 317E F5 317F E6FO 3181 OF 3182 OF 3183 OF 3184 OF 3185 4F 3186 CD9200 3189 Fl 318A E60F 318C 41 318D 4F 318E 78 318F CD9200 3192 C9 3193 21A835 3196 CDDB30 3199 CDEF30 319 c9 319D DB23 319F E60F F5 31A2 11 31A5 CD9BOO 31A8 DB23 31AA E60F 3LAC 47 31AD Fl 31AE B8 31AF 3180 C39D31 STA TDBYTE RET 2595595595959559595959559595 CONVIM PUSH PSW IN A HEX BYTE ANI OFOH C ASCII DIG 1 RRC A ASCII DIG 2 RRC RRC RRC MOV C A CALL PRVAL POP PSW ANI
16. MA WRITE TO SCREEN MEM RET ESSEC ISI III III III III AAA 8 INTENTIONALLY LEFT BLANK GRAPHIC LCD AIRCRAFT DISPLAY LAGE 74 Taste LADA 227 HNR vd QA06 OAO9 OAOC OAOD OA10 OA13 0A14 OA15 OA16 0A17 OA1B OAIC 1 0A20 0A23 0A24 0A25 0 28 0 29 2 OA2D 2 1 0 32 0A33 4 0 37 0A38 220 11 220 11 D5 CDAFOA CD9COA Dl 4E EB 7E CD710A EB 77 13 CDO20B D2150A F5 ES 2A0511 E5 2A0A11 AS Bl El 77 El Fl B7 C2140A c9 220 11 HIA So 5 s ve SHLD SHLD PUSH CALL CALL POP PUTOl MOV PUTO2 XCHG MOV CALL XCHG MOV INX CALL JNC PUSH PUSH LHLD MOV PUSH LHLD ANA ORA POP MOV POP POP ORA JNZ RET Y POS FUNCTION PUT PUT SYMBOL AT X Y LOCATION INPUTS B X POS SYM ADDRESS 4 HEIGHT WIDTH SYMXCT SYMAD D SCADR GETMSK D C M DROTR INCSAD PUTO2 SADRE FMASK H M A H PUTOL OUTPUTS D E LAST SYM ADDRESS CALLS DROTR GETMSK INCSAD SCADR SAVE SYMBOL ADDRESS GET SCREEN ADDRESS SET MASK CORRECTLY SYM ADDRESS SAVE 1ST WORD FOR CARRY GET SYMBOL WORD SHIFT IT RIGHT WRITE TO SCREEN NEXT SYM ADDRESS NEXT SCR ADDRESS RIGHT EDGE OF SYM NO YES STORE SAVE HL SAD RIGHT EDGE 1 GET NEXT SCR WORD GET ROTATE MASK MASK OUT HO BITS OR
17. 1024 X4 Static RAMS or equivalent 0514 18 1024 X 4 CMOS RAM or equivalent For the exact on board combinations please reference the MCG 85 Block Diagram The MCG 85 will accept any memory speed Memory supplied as a standard feature with each unit ig a 2K EPROM 2716 containing the Expeditor Monitor and the 256 bytes of RAM available on the 8155 RS232 SERIAL PORT The 1488 and 1489 provide the RS232 signal levels for the General They are the RS232 Driver and receiver respectively One gate the 1488 is used for TX data and one gate of the 1489 is used for RX data This leaves three gates available for future expansion PARALLEL PORTS Included on the MCG 85 are 22 parallel 1 0 lines on 8155 They are configured as follows two B bit ports and one 6 bit port please reference parallel port connector diagram The ports are available on two on board 16 pin sockets Connec tons can easily be made using 16 pin headers GRAPHMIC LOD AIRCRAFT 0216 The 8216 aro bus buffers two vesd which are installed H the user wishes drive additional off card memory peripherals They are not necessary for system operation ON BOARD PROTOTYPING SPACE The MCG 85 has a smal area on board dedicated for totyping There are 122 pre drilled holes with solder mask both sidesithat can accommodate chips with different pin configurations SOFTWARE DESCRIPTION All the software for communication program
18. 18 V A7 A15 19 W A6 T 20 X INT75 21 Y INT65 RDY 22 Z 55 PORT CONNECTOR PINOUT Timerout Timerin P C5 O c4 R CH t e 5 volte 1 GROUND 23 co MAN A0 A15 ADDRESS BUS D0 D7 BIDIRECTIONAL DATA BUS Available pins for user modification GRUVE LCD BIDIRECTIONAL DATA BUFFERS PORT A 8 VO LINES MCG 85 MEMORY MAP MONITOR ROM 2K CSO EXP EPROM 2K CS1 EXP RAM1 1K BS1 EXP RAM2 1K BS2 BASIC RAM 256 BYTE CS4 BASIC RAM IMAGE 27FF 1800 PEN css veer OPEN N 2800 OPEN 2K css 2FFF 3000 OPEN 2k 056 37FF 3800 OPEN 2K 57 4000 PAGE 67 8155 DIP IO PARALLEL PARALL PROTOTYPING TIMER 256 BYTES RAM RESET TU pepe proper ee SWITCH ipae eco dis Safe 2 7562 445 6529000552 POOR u ee 68565222 ORGA 1140 1 CONTE AT com PTE 927 CPU PT 4 4 oA lt Si d E 08085 ADDRESS a or AUN eo 2 6 144MHz j A EY is MA DECODER S e Z ke CR Cute CRYSTAL 1488 lt J DS 4 DATA BUS amp ie LE AE BUFFER 1489 1 EXPANSION RS232 OPTIONAL SORT SIGNAL LEVELS amp lt 4 A H d KC 1 en LM 2716 YM WITH liners oak T EXPEDITOR 222 MONITOR 2 K MEMORY 2 K EXPANSION EXPANSION 44 PIN ACCOMMODATES 2716 2016 MCG BUS 2114 s or 6514 s or 5516 OPTIONAL OPTIONAL ATLANTIS COM
19. Buffer Capacity On Board 44 Pin Edge Card All Chips On Sockets Parallel Ports Available on On Board Sockets Address Data and Control Bus Available at Edge Connector List Disassemble Code DOWNLOAD COMMANDS Read Hex Paper Tape Format Write Hex Paper Format Hex Sequential Load Ascii Sequential Load Ample On Board Prototyping Space 4 Spare Edge Connector Pins Available 6 Spare Pins Available at one of the On Board Parallel Sockets 9 Terminal and Utility Routines 6 Test and Compare Routines 4 Code Check or Convert Routines Optional Line Assembler on 2716 Optional Disassembler on 2716 ATLANTIS 5 31 14 BROADWAY ASTORIA NY 44406 242 728 6700 GRAPHIC LOD AIRCRAFT DISPLAY PAGE 58 THE 8005A CPU The 8085A CPU is 100 software compatible with the 8080A while offering the benefits of a single power supply higher integration higher performance and improved system timing The 8085A CPU is fully described in the Intel MCS 85 User s Manual The 8085A derives its timing inputs from the crystal In addition the 8085A drives the system with control signals available on chip No additional status decoding cir cuitry is required for most systems The data bus is multiplex ed with the 8 low bits to drive the system s memory com ponents This is not true in the case of the 8155 which is inter nally latched and is therefore driven directly from the 8085A 8085A INTERRUPTS Four v
20. CHARACTER IS SELECTED FROM A TABLE OF COMMAND ROUTINE ADDRESSES AND CONTROL IS TRANSFERRED TO THIS ROUTINE we se 94 se se Se zg GETCM LXI SP STACK LCD STACK POINTER SET MVI PROMPT CHARACTER GTCO3 CALL RDBUF LXI B NCMDS NUMBER OF COMMANDS LXI H CTAB COMMAND TABLE GTCO5 CMP M JZ GTC10 OOMD RECOGNIZED INX H ELSE INC TABLE POINTER DCR DEC LOOP COUNT JNZ GTCO5 BRANCH IF NOT AT TABLE END JMP ERROR 10 LXI H CADR ADR OF TABLE OF COM ROUTINE DAD B ADDRESSES DAD B ADD REMAINDER OF LOOP COUNT MOV A M TWICE BECAUSE ENTRY 2 WORDS INX H MOV H M MOV L A PCHL ERROR MVI CALL ECHO CALL CRLF JMP GETCMD 4 Yk kk k k de k k k k k k fe k effec k k k k k k k k k k k k k k k k k k k k k k k kk k k he f f e fe k K 0888 088B 088D O88E 0891 0893 0896 0897 089A 0890 089E OBA4 08A5 O8A9 O8AD 1 5 O8B6 O8B9 O8BC O8BF ODC 08C1 08C4 08 7 CDDOOC E63F CDDFOC FE2F CABF08 4F CD6604 D27D08 CD610B D27D08 5 CD580C El CDDOOC 77 23 CDF30C 77 CDE50C CD030C C35308 F1 CD610B D2D508 E5 COMMAND IMPLEMENTING ROUTINES he he de de he he de he he He de de He e de He He he He e e de he de He He De He ke He ke He He He He he He e He de de de He de de de he keke e ke KK THE FOLLOWING SHORTHAND IS USED BELOW SYMBOL IDENT TWO HEX
21. DIGITS XX X POSITION s YY Y POSITION HH HEIGHT PIXELS WW WIDTH IN WORDS UNITS OF 8 PIXELS BBB HEX DIGITS IN GROUPS OF TWO REPRESENTING THE SYMBOL TO BE STORED STRING ASCII STRING IN THE RANGE OF 20H TO 60H CR CARRIAGE RETURN w 99 9 z NOTE THE UPPER TWO BITS OF ARE MASKED AND SET TO 00 FOR ASCII STRINGS a 01 FOR SYMBOLS S S SSSSSSSSSSSSSSSSSSSSSSSS FORMAT A STRING CR ENTERS OR CHANGES STRING CR CHANGES X Y POSITION e 9 9 9 9 gt 3 ACMD CALL GETBYT ANI ASCMSK PUSH PSW SAVE SYM CALL GETCHR CPI PA CHANGE STRING VALUE JZ AC10 YES C A CALL VALDL NO MOVE STRING LOCATION JNC ERROR PSW SYM CALL SYMADR GET STORAGE ADR JNC ERROR STRING NOT FOUND PUSH H SAVE IT CALL CLRSTR ERASE OLD STRING POP H CALL GETBYT X POS MOV M A INX H CALL GETDL CALL GETBYT Y POS MOV M A DCX H CALL GETCR CALL PUTSTR JMP GETCMD AC1O POP PSW SYM PUSH PSW SAVE AGAIN CALL SYMADR JNC 15 SYMBOL FOUND PUSH H YES SAVE ADR INX H Av SIC GIT II RD ez vd 08C9 O8CD 08D2 0805 0806 08D9 O8DC O8DF O8E2 OSES O8E7 O8EA 08 08F3 O8F6 O8F7 0902 0905 0908 0909 090 090 0912 0913 0916 0919 091C 091 0
22. OASH OABH 088H 088H OC8H 098H 088H 088H 070H 088H 088H 088H 088H 088H 070H 088H 088H 25 OEB9 OEBB OECO OEC2 OEC7 OEC9 OECE OEDO OED5 OED7 OEDC OEDE OEE3 OEE5 OEEA OEEC OEF1 OEF3 OEF8 OEFA OEFF OFO6 0F08 OFOD OFOF 0 14 OF16 0F1B OFlD OF22 0 24 0 29 1000 1000 1100 1101 1102 1103 1105 1107 1109 110A 110B 110C 110D 8080 70888888A8 9068 9088 7088807008 8870 F8A8202020 2020 8888888888 8870 8888885050 2020 888888ABAB AB50 8888702070 8888 8888702020 2020 F808102040 0080402010 0800 F818181818 18F8 0000205088 0000 0000000000 00F8 4020100000 0000 7 79 amp SBITS RMASK E bd bd E bd bO dd VARIABLES o 080H 080H 070H 088H 088H 088H OABH 090H 068H 088H 088H 090H 088H 070H 088H O80H 070H 088H 070H OF8H OABH 020H 020H 020H 020H 020H 088H 088H 088H 088H 088H 088H 070H 088H 088H 088H 050H 050H 020H 020H 088H 088H 088H OABH OABH OABH 05 088H 088H 070H 020H 070H 088H 088H 088H 088H 070H 020 020H 020H 020H OF 8H 020H 040H 080H OF8H OF8H OCOH OCOH OCOH OCOH OCOH OF8H OOOH 080H 040H 020H 008H OF8H 018
23. OFF MVI A MASK INTERUPTS DB SIM MVI A E CALL SSCMD TURN ON ECHO CALL GETBAUD JMP GETCMD Kk k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k de k ke ESS ESS INTERUPT SERVICE ROUTINES Je dede dede hek de dehe de de he e de e He Fe de He He de de he de de de de He e ke He he ke he he de e e he He Je Ae e e e de de de heke e ke FUNCTION CLOCK ENTRY INTERUPT DRIVEN FUNCTION SCEDULES PROGRAMS 9 9 zg lt e o CLOCK PUSH PUSH PUSH PUSH LDA SAVE ENVIRONMENT LAA 7 FIV D 99 Fd 3083 3084 3087 308A 308D 308F 3092 3095 3096 3099 309c 309F 30A1 30A4 30A7 30B1 30B3 30B6 30B9 30 8 30BD 30C2 3D CA8D30 325012 C3B930 325012 5112 3D CA9F30 325112 C3B930 325112 3A5212 3D CAB130 325212 C3B930 325212 CDFC30 El D1 Fl FB C9 3A6012 B7 30C3 CH 3004 217734 DCR HNDTH STA THSCNT PROGRAMS SCEDULED EVERY 1 5 BELOW we lt 99 NONE II JMP GOBACK HNDTH MVI A 010D STA THSCNT PROGRAMS SCEDULED EVERY 10 5 BELOW a o NONE 5555555555555555555595955959 LDA HNDCNT DCR A JZ TENTH STA HNDCNT JMP GOBACK TENTH A 010D STA HNDCNT PROGRAMS SCEDULED EVERY 100MS BELOW w se NONE 55555555555555555555555559
24. OUT 020H PORT A OUT PORT B IN INIT VARIABLES MVI A OLOD STA THSCNT STA HNDCNT STA TENCNT 3027 3029 302C 302D 3030 3033 3036 3038 3039 303C 303F 3042 3050 3050 3053 3056 3058 305B 305D 3060 3062 3065 3066 3069 306B 306E 3070 3071 3073 3076 3079 307C 3EFF 320211 AF 325D12 325E12 325F12 3ElF 30 21FA32 CDDB30 CDEF 30 035330 C3BF31 CDB331 FEO2 CA6930 FEOl C25330 3EFF 320211 FB 1 320211 3EOF 30 3E45 CDE630 CD7904 C35308 F5 307D C5 307E 307F 3080 D5 E5 3A5012 MVI OFFH STA FUNBYT FUNCTION ON XRA A ZERO STA TIME TIME 0 STA TIME 1 STA TIME 2 MVI A OlFH MASK ALL INTERUPTS DB SIM LXI H CMDS1 CALL SNDCMD SIGN ON MESSAGE CALL DOCMD PROCESS COMMANDS JMP SW ORG 03050H III III ITI RII TIA he he de Fe kkk K JUMP TABLE e cede k k k k k k k k k k k k k dede k k k k k k k k k k k k k k k k k k k k de de keke ke keke k kk k kkk k TFUNCT JMP FUNCT kk k k k k k k k k k k k k k k HI k K ko kk k k k k k k kok k kk k k k k kk kk k k k k WAIT FOR USER TO PRESS BUTTON 4 SW CALL GETSW GET SWITCH PRESS CPI 02H DEMO OFF MODE JZ DOFF YES CPI 01H DEMO MODE JNZ SW NOT VALID SWITCH MVI A FUNON STA FUNBYT FUNCT ON EI ENABLE INTERUPTS FOR CLOCK JMP DEMO1 AIRCRAFT INSTURUMENT DEMO DOFF MVI A FUNOFF ZERO STA FUNBYT FUNCT
25. SFALSE Clear carry and return _ 0089H Sfalse is JUMPED to by routines wishing to indicate failure Sfalse clears the CARRY flag to indicate failure and then returns to the calling program BCDADD Binary coded decimal addition 008CH Register pair HL contains the address of the FIRST number while register pair DE contains address of SECOND number Register B contains 1 2 the number of BCD digits to be added The sum replaces the FIRST number DELAY Delay proportional to content of DE 009BH The contents of register pair DE are decremented to produce a delay of a few microseconds to approximately 1 2 second RESTART INSTRUCTIONS RST 1 RST 2 RST 3 RST 4 RST 6 RST 7 all cause a warm start Upon executing any of the previous restart instructions control is transferred to location 0008H The contents of all registers are saved and then displayed on the screen control is then transferred to the command recognizing routine 4 RST 5 will sound the bell at the console and then transfer control to the command recognizing routine RST 5 will not cause the contents of the registers to be saved GRAPHIC LCD AIRCRAF 7 DISPLAY PAGE 66 The following is a summary of the instruction set 8080 85 CPU INSTRUCTIONS OPERATION CODE SEQUENCE MNEMONIC CODE MNEMONIC MNEMONIC CODE 28 6 MOV 81 ADD XRA 07 DCX
26. STR10 XCHG MOV M A PUT CR IN MEMORY AS END MARK INX H SHLD NEWDAT CALL CRLF RET HK K k k k k k k k k k k k k k k K k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k FUNCTION CLEAR STRING INPUTS H L ADDRESS OF STRING DESCRIPTION CLEARS STRING POINTED TO BY H L BY WRITING SPACES TO SCREEN FOR EVERY e w 19 0058 0C59 OC5A OC5B OC5D OC5F 0 60 OC61 0063 0065 0C68 OC6B Ocec 6 0C70 0C73 0C74 0 75 0 76 0c79 7 OC7D 7 OC7F 0c85 0086 0089 0080 0090 0 91 0 94 0 97 110700 5 C5 210010 3A0011 47 3A0111 B8 C2A10C 3A0211 B7 CA990C 2A0311 F9 CSTO5 MI e e o ep e ne o e S se se RDBUF RDO5 MOV INX MOV INX MOV CPI RZ MOV CPI RZ PUSH LXI LXI PUSH CALL POP IDA ADD MOV POP LXI DAD JMP FUNBYT FUNBYT PUSH PUSH LXI LDA MOV LDA CMP JNZ LDA ORA JZ LHLD SPHL CHARACTER IN STRING B M X POS H C M Y POS H A B OFFH NOT ON SCREEN ALREADY WERE DONE A M GET DATA CR END YES H SAVE DATA POINTER H 0701H HEIGHT 7 WIDTH 1 D CHRTAB SPACE CHARACTER B SAVE X Y POSITION PUT ERASE OLD STRING B GET X Y POS CSPACE B ADD CSPACE TO X POS B A H GET DATA POINTER D 0007H NEXT CHARACTER D CSTO5 ee de dece dece hehe e e ee he eee he e ehe e he he e e ehe eh e fe he
27. XXXX If XXXX is not Specified the monitor uses as an address the value on top of the stack 4 Fill memory with constant FXXXX YYYY DD er The fill command will put a single byte constant denoted by DD in all the memory locations between XXXX and YYYY Kill echo command K cr Initially the MCG 85 will echo characters that are received from the console device Upon issuing the K command the MCG 85 will toggle the echoing on and off MCG 85 will not echo received characters after the K command has been issued This will allow communication with devices that operate in HALF DUPLEX mode also this command will insure trouble free operation no missing characters when downloading registers command X register identifier Display and modification of the CPU registers is possible with this command The X command uses a register identifier to select the particular register to be examined A register identifier is a single alphabetic character A B C D E F I H L S P M Insert command IXXXX cr Insert command can be used to insert a single instruction or an entire proram in memory The monitor waits for the user to type in a string of hex digits Each digit in the string is converted to its binary value and then loaded into memory Two hex digits are loaded into each byte of memory GRAPHIC LOD AIRCRAFT DISPLAY PAGE 63 sTring search and replace XXXX cr Promts user for search string then finds
28. best choice for the general aviation market where price size power consumption and veight are very critical The graphics software currently allows many objects to be moved about on the screen as well as the display of character strings Symbol rotations could be simulated by storing copies of the different orientations and switching between them These functions would allow the generation of quite complex flight instrument symbology Many functions could be added to the current system Such as Drawing a line between two specified points Adding special attributes to symbols such as automatic blink Adding a touch sensitive panel in front of the display so that mode choices may be selected by touching the screen GRAPHIC LCD AIRCRAFT DISPLAY PAGE 34 5 BIBLIOGRAPHY Alan R Miller 8080 2780 Assemble Language Programming John Wiley and Sons Inc 1981 Microprocessor and Peripheral Handbook IntelInc 1983 Modern Display Technologies and Applications AGARD AR 169 North Atlantic Treaty Organization Advisory Group for Aerospace Reasearch and Development edited by Prof Ir D Bosman Twente University of Technology Netherlands October 1982 Motorola Memorey Data Manual Motorola Inc 1982 GRAPHIC LCD AIRCRAFT DISPLAY PAGE 35 APPENDIX A PICTURES GRAPHIC LCD AIRCRAFT DISPLAY PAGE 36 LICIDAMY GIT DIV AT LE Fd INSIDE GRAPHICS UNIT LAIA GIT IIa tS GEAR
29. by ADCLK divide by 64 counter is implemented by 014 and U15 to provide signal LLINE that is high for the entire last line of the display J K flip flop U10a sets at the falling edge of CPi if LLINE is high then resets at the next CPi generating a signal FLINE that is high for the entire first line of the display This pulse is delayed approximately Sus by R1 and U16 to provide the page clock signal S to the display FLINE toggles 098 to provide which causes the LCD drive polarity to alternate on succesive pages ADDRESS COUNTER An 11 bit address counter is implemented by 011 U12 ADCLK increments the counters sequentially through all of the valid addresses in display RAM The 8 bits of each vord are shifted out serially to the display between succesive counts The counters are reset to zero at the beginning of each page by ADRES DISPLAY RAM The 240 by 128 pixel display is mapped into 4K words of RAM consisting of U21 and U22 The upper half of the display resides in all but the last 128g locations of U21 and the lower half similiarly in 022 This gap of 128 locations between the upper and lover storage locations of the screen must be handled by software The display RAM is shared between the display controller and the computer The computer addresses the RAM as a 4K x 8 block of memory however the controller addresses it as a 2K x 16 block because it must send data simultanously to both halves of the displ
30. e e e je dee ke de e INPUT OUTPUT ROUTINES kk k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k kk k k k k k FUNCTION READ FROM CHARACTER INPUT BUFFER OUT A DESTROYS A F DESCRIPTION READS ONE CHARACTER FROM BOTTOM OF INPUT BUFFER BUFBOT IF BUFFER EMPTY AND 00 THEN CALL CI ROUTINE FF THEN RETURN TO DEMO PROGRAM H B H BUFF BUFTOP BA BUFBOT B RD10 BUFFER EMPTY FUNBYT FUNCTION RUNNING A SET FLAGS RDO6 NO STKSAV YES RESTORE OLD STACK 20 AW TSIO LADDA GO 7 ARASH 19 Fed 0C98 C9 0099 CD200D OC9C E67F OC9E OCAl 6F 2 46 4 3C 5 320111 78 9 FB OCAA Cl OCAB El OCAC C3410B OCAF C5 OCBO 5 OCBl 4F OCB2 210010 OCB5 3A0111 OCB8 47 OCB9 3A0011 OCBC 6F OCBD 3C UCBE B8 OCBF CACBOC 2 320011 OCC6 71 OCC7 FB 0CC8 El OCC9 Cl OCCA C9 OOCB 01 CDO800 OCDO CD7DOC OCD3 E67F OCD5 47 RET RET TO FUNCTION RDOG CI ANI O7FH MASK PARITY BIT JMP RD15 L A NO DI MOV B M CHAR FROM BOT OF BUFF INR A STA BUFBOT INC BUFBOT MOV A B EI RD15 POP B POP H JMP SRET kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkikkkkkkkkkkkkkkkkkki FUNCTION WRITE TO CHARACTER INPUT BUFFER INPUT A DESTROYS A F DESCRIPTION WRITES ONE CHARACTER TO TOP OF INPUT BUFFER BUFTOP Se w x so WRBUFR PUSH B P
31. for his invaluble encouragement and for use of his facilities at TERADYNE INC to drav schematics and program EPROMS s Scott Hathcock my roomate for putting up vith the mess at our apartment during construction and for constant prodding to help keep me on schedule Fred Schloetzer for encouraging me to come to MIT in the first place GRAPHIC LCD AIRCRAFT DISPLAY PAGE 3 TABLE OF CONTENTS 0 EE 2 w hast 2 1 Introduction 244449 4 x xov RU W s N 6 2 Functional Description 9 2 1 Set up and operation 9 2 2 Command format 11 2 3 Demonstration ILS display 18 3 Technical Description 21 3 1 Liquid crystal sus de da eges 21 23 d d Program ayl sms RUE 31 4 CONCIUSIONS 550204055 Sow du doe EE 34 5 BIbliography duae GU a ses 35 APPENDICES A Pict re es ee as 36 B Schematics and parts layout 42 C SHARP LM 24003G display 53 D MCG 8085 single board computer 57 E Program Listings ss ss us 69 GRAPHIC LCD AIRCRAFT DISPLAY PAGE 4 LIST OF FIGURES 1 Graphics Display unit 8 2 Graphics Display unit Block Diagram 10 3 Symbol HOS ses dass nas Bowl ae a We 13 4 Screen coordinates 17 5 ILS demonstration screen 19 6 Liquid Crystal c
32. form ADDSYM adds symbol to the symbol table along with the next free address for storage STRING STORAGE LOOKUP ROUTINES ADDSTR accepts a string and adds it to the symbol table PUTSTR places a string on the screen CLRSTR erases a string by printing an equivalent number of spaces INPUT OUTPUT ROUTINES GRAPHIC LCD AIRCRAFT DISPLAY PAGE 32 RDBUF reads one character from the bottom of the input buffer and returns it in the accumulator The circular buffer is 100g bytes long If the buffer is empty and the demo program is not running the console input routine is called If however the demo program is running FUNBYT FF control is passed back to the demo program WRBUF writes one character to the top of the circular input buffer Buffer overflov causes a jump to the error routine DEMONSTRATION PROGRAM The demonstration program was written to test the graphics program as well as illustrate the simulation a Simple aircraft instrument As such it writes ASCII command strings to the input buffer instead of calling the individual routines Because control of the display over 8 RS 232 port would involve sending the same sequence of commands this program is excellent example of hov to define and move symbols and strings GRAPHIC LCD AIRCRAFT DISPLAY PAGE 33 4 CONCLUSIONS This project has demonstrated that fairly lowcost modular flat panel flight instrument is feasable The LCD display would be the
33. k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k 4 OBF7 0 01 0 02 0803 0804 0 05 0007 0C08 OC09 OCOB OCOE OCOF 0 12 0015 0C16 0817 1 OC1D 0020 OC21 CDDBOB E5 77 23 77 23 220 1 23 4E 23 C5 7E FEOD CA200C 210107 CD060A cl 341711 47 c5 C3080C C9 FUNCTION ADDSTR ADD STRING INPUTS A SYMBOL IDENT OUTPUTS H L STORAGE ADDRESS CALLS GETSTR ADDSYM DESTROYS A B C D E F H L DESCRIPTION ADDS STRING TO SYMBOL TABLE THEN GETS STRING FROM THE INPUT BUFFER AND STORES IT we sp 9 9 lt ADDSTR CALL ADDSYM PUSH H SAVE STORAGE ADR MVI MOV M A INX H MOV M A INX H CALL GETSTR POP H RESTORE STORAGE ADR RET k k k k k k k kk k k k k k k k k k k k k k k k k x k k k k k k k k k k k k k k k k k k k k k k k k k FUNCTION PUTSTR PUT STRING ON SCREEN AT X Y CORD INPUTS H L ADDRESS OF STRING OUTPUTS X Y COORDINATES DESCRIPTION TAKES THE CHARACTER STRING POINTED TO BY H L AND PLACES IT ON THE SCREEN STARTING AT THE SPECIFIED X Y POSITION Se 9e s PUTSTR MOV B M INX H MOV C M INX H PUSH B SAVE X Y COORDINATES PSTO5 MOV A M CPI CR END OF STRING JZ PST10 XCHG STR POINTER TO pE LXI H 0701H HEIGHT 7 WIDTH 1 CALL PUT XCHG POP B OLD X Y LDA CS
34. the first occurance of that string starting at address XXXX Displays the address of the string occurence at which time the user has the option of replacing the string by typing in the new string or the user can go on to the next occurence of the search string by hitting cr command terminates when user types esc e g You wish to change all calls to a subroutine which was originally at 2080 but is now at 2044 If your program starts at 2000 you would type 72000 The monitor would promt you for the search string in this case that would be CD8020 The monitor would then search for the first occurance of the string at which time it would print its address on the console and allow you to change contents of memory starting at that address To continue search type er to end search type esc 1 1 AXXXX cr If the optional line assembler is mounted on the MCG 85 then assemble user lines starting at address XXXX c TERMINAL I O ROUTINES UTILITY ROUTINES CI Character input 0065H Waits for an ASCII character to be received from the console and returns its value in the A register CO Character output 0068H Transmits the ASCII character in to the console The character is printed at the current print position EMOUT Hex number printer _ 006BH The 8 bit quantity in register is printed at the console as two hex digits CROUT Carriage return line feed 0
35. which is stored in memory The command terminates when a record length of 00 is detected The format it expects follows 10203000 040203 25 23 1 This record 16 bytes long and it is to be placed starting at address 2030 The first byte of the record is CD the checkum is 23 Write hex paper tape format W XXXX YYYY 22 cr Writes 16 byte records in the hex paper tape format Records start at address XXXX and continue until all data has been sent up to address YYYY The parameter 22 if 22 00 then delay is on determines if a delay of 12 seconds should occur before the W command starts sending out formatted data At the end of each line there is a 5 second pause to allow for software delays NOTE BY USING THIS COMMAND A USER CAN SAVE MACHINE LANGUAGE PROGRAM ON A COMPUTER THAT HAS A STORAGE FACILITY sequential load H XXXX YYYY cr This command will consider any incoming characters as 8 bit quantities that are to be stored in successive memory locations starting at address XXXX until the command terminates when we reach the address YYYY ASCII load expects its input to be ASCII encoded hex digits which are converted to bytes and stored in memory locations starting at XXXX until YYYY This command accepts groups of two ASCII characters only if they are preceeded by a space This command is used when we want to transfer hex data from any computer system that has a display memory co
36. 000 12545678 8 PIXELS WORD Bova LOD AFOOT OMPLAY MEMORY PORTS COMMAND STATUS REG MONITOR 2716 EPROM ADDRESS HEX SOFT SWITCHES INT 7 5 1 mS interupts 37FF Mi CMOS x cs7 E MNA een coa GG CARD 4000 F 7 w e 4800 k T ne 53 x x P E PR LS a de d e Me SH ee an 3 ha gh avons vA XP CONTROLLER 52 SCH US Aen PEO LOD APRONS PAGE S APPENDIX C SHARP LM 24003G DISPLAY GRAPHIC LCD AIRCRAFT DISPLAY PAGE 53 Description The Sharp LM 24003G 15 a graphic display unit of 240 x 128 full dots which combines a dot matrix LCD panel and driver C MOS LSI on a single printed wiring board i can display graphs diagrams and characters as bit mapped patterns It is suitable to various types of equipment such as compact OA equipment and measuring instruments which require needs of slim light weight and low power consumption li Features A Displaying graphs and diagrams in addition to characters Very easy to be mounted on other equipment due to compact slim body and low power consumption Stable display in wide range of temperature due to built in temperature compensation circuit Easy to read di
37. 06EH Sends carriage return and line feed to the console CRSEND Send characters until carriage return 0071H The contents of H L contain the address of the characters to be sent to the console sequentially until a carriage return character 45 found the string BSEND Send characters until B 0 00741 Register B contains the number of characters to be send to the console H L contains the beginning address of the string CSEND send character C reg B times 0077H Register B contains the number of times the character in register will be sent to the console ASCGET Input characters until B O 0074H Input characters from the console until content of B register is equal to zero Register H L contain address of where string will be stored The CARRY is set if routine terminated by carriage return before B 0 GETBYT Get two characters and form byte 007DH First character from input stream becomes lower hex digit second character becomes high hex digit of the byte returned in A GRAPHIC 1 AIRCRAFT DISPLAY PAGE 64 DOWNLOAD COMMANDS Read hex paper tape format R cr Accepts information in the hex paper tape format It starts out by looking for the colon leader then it picks out the record length and the address of the record After this parameters have been acquired incoming ASCII characters are stripped down to H bit HEX digit format It takes two incoming ASCII characters to form a byte
38. 078H 0AOH 070H 028H 020H OC8H O10H 020H 040H 098H 018H 040H OABH 090H 068H 020H 020H 020 O00H OOOH 020H 040H 080H O80H 040H 020H 020H 008H O08H 008H 010H 020H 020H OABH 070H 020H 070H 020H OOOH 020H 020H OF8H 020H 020H OOOH OOOH OOOH OOOH OOOH 020H 020H 040H OOOH OOOH OOOH OOOH OOOH OOOH OOOH OOOH OOOH OOOH OOOH 000H 020H 0068 008H 010H 020H 040H OOOH 070H 088H 098 OCBH 088H 070H 020H 060H 020H 020H 020H 020H 070H 070H 088 070H 080H OF8H OF8H 008H 010H 088H 070H 010H 030H 050H 090H 010H 010H 24 SP 20H D 4 Hi AV SIO L3vexoetv GIT 8 ODF7 F880F00808 ODFC 8870 ODFE 384080F088 0E03 8870 OEO5 808102020 OEOA 2020 OEOC 7088887088 11 8870 0 13 7088887808 OE18 1 1 0000200020 OELE 0000 OE21 0000200020 OE26 2040 OE28 1020408040 OE2D 2010 OE2F OE34 0000 OE36 4020100810 OE3B 2040 OE3D 7088083020 OEA2 0020 0E44 7088ABBBBO OE49 8078 OEAB 20508888F8 OE50 8888 52 FO8888F088 0 57 OE59 7088808080 5 8870 OE60 FOB8888888 OE65 0E67 F88080F080 6 6 0E73 8080 0 75 7888808098 OE7A 8878 OE7C 888888F888 OE81 8
39. 0B93 CDDOOC 08 4F 0B97 320Fll OB9A B7 OB9B FACDOB OB9E 77 OB9F 23 OBAO CDDOOC 320 11 OBAG 57 OBA7 3C OBAB 3C OBA9 EGEO OBAB C2CDOB OBAE 72 OBAF 23 ORA A SET FLAGS JZ FRET DONE IF SYMBOLS 0 MOV B A PUT IN B MOV A H GET IDENT LXI ADR OF SYMBOL TABLE LXI D 03H LENGTH OF TABLE ENTRY SYMO5 CMP M JZ SYM10 DAD D NEXT TABLE ENTRY DCR B DEC LOOP COUNT JNZ SYMOS JMP FRET 0 INX H GET ADDRESS MOV A M 0F SYMBOL INX H MOV MOV L A PUT IN H L JMP SRET E E e e He de e III Ae He de e He Fe de ISIS OO Fe Fe e KOK OK He e e He FUNCTION GET SYMBOL INPUTS A SYMBOL IDENT OUTPUTS H L STORAGE ADDRESS DESTROYS A B C D H L F DESCRIPTION ADDS SYMBOL IDENT AND STORAGE ADDRESS TO SYMBOL TABLE THE BYTES DEFINING THE SYMBOL ARE THEN PLUCKED FROM THE INPUT BUFFER AND STORED IN RAM 7 74 54 so 56 ss rn se se se se se GETSYM CALL ADDSYM LHLD NEWDAT MVI A OFFH MOV STORE X POS FF INX H MVI MOV M A STORE Y POS FF INX H CALL GET HEIGHT OF SYM MOV C A STA SYMYCT PUT IN Y COUNTER ORA A JM GTS15 ERROR TOO WIDE MOV MA STORE HEIGHT INX H CALL GETBYT GET WIDTH MOV DA INR A INR A ANI OEOH JNZ GTS15 ERROR TOO HIGH MOV M D STORE WIDTH 67605 INX H 16 AV SIC LAVINA GIT Olive 64 JOVI OBBO CDDOOC OBB3 77 OBB4 15 OBB5 C2AFOB OBB8 11 OBBB 57 OBBC
40. 128 D IS ADDED TO FIRST SCREEN ADDRESS GREATER THAN 477FH TO CORRECT FOR THE GAP IN DISPLAY RAM IN THIS AREA THE WORD SCRBYT IS THEN TOGGLED TO FF HEX TO STOP FURTHER CORRECTIONS IXADR PUSH PSW LDA SCRBYT ORA A SET FLAGS JM FIX10 LOWER HALF OF SCREEN YES PUSH D DONT KNOW LXI D 4780H LOWER CALL HILO HALF OF SCREEN JNC FIXOS LXI D O80H YES DAD D ADD OFFSET MVI i STA SCRBYT TOGGLE SCRBYT TO FF FIX05 POP D FIX10 PSW RET FRI dee deke de ke de de de de de kede TIT ke ITI I IAI de Fe he he e de ke ANAT AAT AAI de he kke k k k SYMBOL STORAGE LOOKUP ROUTINES kkk doke de ede ke de k dede k de eke dek de de de e he de h e de k de dede de de k de de de dedek ke KOK FUNCTION LOOKUP SYMBOL ADDRESS INPUTS A SYMBOL IDENT OUTPUTS H L ADDRESS OF SYMBOL CARRY CLEAR SYMBOL NOT FOUND DESTROYS A B D E H L F DESCRIPTION LOCATES SYMBOL IDENT IN SYMTAB AND RETURNS THE ADDRESS OF THE STORED SYMBOL CARRY IS SET IF FOUND lt lt Me 94 6 lt SYMADR MOV H A SAVE IDENT LDA NUMSYM OF SYMBOLS 15 0 65 B7 0 66 0869 47 OB6A 7C OB6B 211811 OB6E 110300 0B71 BE 0B72 CA7DOB 0B75 19 0B76 05 0B77 C2710B 0 7 OB7D 23 OB7E 7E OB7F 23 0880 66 OB8l 6F OB82 C3410B 0885 CDDBOB OB88 2 1411 OB8D 77 23 3EFF OB91 77 0B92 23
41. 18 19 20 021 22 U23 24 27 28 U25 26 U29 R1 GRAPHIC LCD AIRCRAFT DISPLAY 745 138 74452 741 504 741 590 7415163 747574 74 576 7415393 741500 7415 28 7415157 HM6116 7415243 7445165 7415241 001 uF 1K Q PAGE 43 CARD PINOUT BOARD A 1 GND 2 3 4 5 A 6 Al 7 82 8 A3 9 M 10 5 11 777 ADDRESS BUS 13 fe 14 Ag 15 ALO 16 All 17 12 18 15 19 14 20 RD 2 WR 22 0815 23 24 250956 26 2 2p eee 29 50 52 Nee 34 56 ies 38 MHZ Sege 40 CPl 4 4 CP2 2 5 2 OIL DISPLAY SIG 44 01 y 45 02 46 47 00 48 01 49 02 50 03 DATA BUS 5 04 53 06 54 D7 Boos 57 5v 58 EN S ene 60 GRAPHIC LCD AIRCRAFT DISPLAY BOARD B GND 2 GND 3 4 5 CPi 6 CP2 7 5 8 M 9 Di 10 02 11 CP1B 12 CP2B 4 15 88 DISPLAY 15 DIE y 16 D28 17 18 19 gt 20 00 21 01 22 02 25 er D 54 DATA BUS 25 D5 26 06 27 07 29 12V 30 12 31 LCD 32 33 ees 34 3MHZ 35 36 NES 37 5 5 38 1 0 39 RST 40 AG 41 Al
42. 30 CDEF 30 21B835 CDDB30 CDEF 30 3E37 326112 7 326212 3E08 30 CDOC32 CD0800 CDB331 FEOF 006930 FEO3 CA6A32 GETSW CALL NEWTIM UPDATE TIME CALL RDSW READ SWITCH REGISTER CPI OH RNZ RET IF SWITCH DEPRESSED JMP GETSW SSSSSSSSSSSESSSSSSSSSSSSSSSS FUNCT NOP ROUTINE TO BRANCH CORRECT FUNCTION NOT IMPLEMENTED YET kk k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k SIMULATION OF AN ILS TYPE AIRCRAFT INSTRUMENT e he k k k k k k k k k k k k k k k k k k k k k k k k k de k He de k k k k k ik ke ke k k k kk k me 99 so LXI H CMDS2 HOR BAR AND CENTER MARK CALL SNDCMD CALL DOCMD LXI H CMDS3 VERT BAR CALL SNDCMD CALL CD3 CALL DOCMD LXI H CMDS4 CORDS OF BARS TIME STRING CALL SNDCMD CALL DOCMD LXI H CMDS6 HOLLOW BOX CALL SNDCMD CALL DOCMD LXI H CMDS7 TRIANGLES CALL SNDCMD CALL DOCMD LXI H CMDS9 POINTERS CALL SNDCMD CALL DOCMD MVI A 037H STA XBAR INITIAL CORD MVI 037 STA YBAR INITIAL CORD OF YBAR MVI A OSH UNMASK INTERUPTS DB SIM CALL MOVBAR LET USER MOVE BARS CALL MONITOR kk he k k e k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k che k k fe k K k ok dee FUNCTION MOVE BARS DESCRIPTION WHEN SW2 THROUGH SW5 PRESSED THE CORRECT ROUTINE TO MOVE A BAR IS CALLED se 99 9 se e MOVBAR CALL GETSW CP
43. 888 OE83 7020202020 0E88 2070 OEBA 0808080808 0 91 0 96 OE98 OE9D OE9F 4 OEA6 OEAB OEAD 8870 8890A0COAO 9088 8080808080 80F8 88DB8ABABAB 8888 8888CBAB98 8888 7088888888 OEB2 8870 4 FO8888FO080 OF8H 080H 008H 008H 088H 070H 040H 080H 088H 088H 070H OF8H 008H 010H 020H 020H 020H 020H 070H 088H 088H 070H 088H 088H 070H 070H 088H 088H 078H 010H OEOH 000H 000H O20H 020H 000H OOOH OOOH OOOH 020H OOOH 020H 020H 040H 010H 020H 040H 080H 4 020H O10H 000H OF8H OF8H OOOH OOOH 040H 020H O10H 008H 010H 020H 040H 070H 088H 008H 030H 020H OOOH 020H 070H 088H OABH 080H 078H 020H 050H 088H 088H OF8H 088H 088H OFOH 088H 088H OFOH 088H 088H OFOH 070H 088H OBOH 080H 080H 088H 070H OFOH 088H 088H 088H 088H 088H OFOH OF8H O8CH 080H OF8H OF8H O80H OFOH 0788 0808 O98H 078H 088H 088H 088H OF8H 088H 088H 088H 070H 020H 020H 020H 020H 020H 070H 008H 008H O08H 088H 070H 088H 090H OAOH OCOH OACH 090H 088H 080H OF8H 088H OD8H
44. 920 0923 0924 23 CD220C El Fi CDO30C 035308 Fl CDF40B C35308 CDESOC CDE508 C35308 210040 110050 71 23 71 CD8000 D2EEO8 c9 E63F F680 F5 CD610B DA7DO8 30C Fl CD850B CDE50C 035308 AF 321611 CDE50C 035308 5 CDE50C Fl CD5030 INX H CALL GETSTR POP H SYM ADR POP PSW SYM d CALL PUTSTR JMP GETCMD AC15 POP PSW CALL ADDSTR JMP GETCMD D D 4 7 FORMAT C CR CLEAR SCREEN CMD CALL GETCR CALL CLR JMP GETCMD CLR MVI C OOH LXI H 04000H LXI D 05000H MOV M C CL5 INX H MOV M C CALL HILO JNC CL5 RET SS SSSSSSS9S9SSSSSSSSSSSSSSS FORMAT Di HWWBBBBBBBB CR lt DCMD CALL GETBYT SYMBOL IDENT ANI ASCMSK ORI SYMMSK PUSH PSW SAVE IDENT CALL SYMADR LOOK UP ADDRESS JC ERROR ERROR IF ALREADY DEFINED CALL GET COMMA POP PSW IDENT CALL GETSYM GET SYMBOL FROM INPUT BUFFER CALL GETCR JMP GETCMD 999999999999999SSSSSSSSSSSS FORMAT CR ECHO ON ECMD A ZERO STA EFLAG TURN ON ECHO CALL JMP GETCMD FORMAT F CR FCMD CALL GETBYT PUSH PSW CALL GETCR POP PSW CALL FUNCT 5 0927 C35308 092A CDESOC 092D CD1308 0930 C35308 0933 3EFF 0935 321611 0938 CDESOC 093B C35308 093E CDDOOC 0941 57 0942 CDDOOC 0945 4F 0946 42 0947 3EFF 0949 CDFOO9 094C CDDFOC 094 FEOD 0951 CASEO9 0954 4F 0955 CD6604 0958 D27D08 0
45. 95 C33E09 095 CD170D 0961 35308 0964 3E06 0966 321711 0969 CDESOC 096 35308 096 CDB609 0972 CDO60A 0975 C35308 0978 3E07 097A 321711 097D CDE50C 0980 C35308 JMP GETCMD 5555555555595555559555595559 FORMAT I lt CR gt ICMD CALL GETCR CALL INSTAB JMP GETCMD 5555555555555555555559595555 INIT SYMBOL TABLE FORMAT CR KILL ECHO KCMD MVI A OFFH STA EFLAG TURN OFF ECHO CALL GETCR JMP GETCMD 5555555555555555555555595559 FORMAT LXXYY XXYY XXYY lt gt se 9 te LCMD CALL GETBYT X CORD MOV D A CALL GETBYT GET Y CORD MOV C A MOV B D MVI A OFFH SET POINT CALL POINT CALL GETCHR CPI CR JZ LMDO5 END MOV C A NO CALL VALDL SEE IF COMMA JNC ERROR COMMA JMP LCMD GET NEXT POINT IMDOS CALL CRLF JMP GETCMD 5555595555555555555555555559 FORMAT N CR NARROW CHARACTER SPACING NCMD MI A O6H CHARACTER SPACING 6 PIXELS STA CSPACE CALL JMP GETCMD POSSESS SS SS SSS SS SSS SSS SSS SSS PUT SYMBOL AT X Y COORDINATES FORMAT P XX YY lt CR gt PCMD CALL GXYHL COORDINATES HEIGHT WIDTH CALL PUT JMP GETCMD 5555555555555555555555555559 FORMAT W CR WIDE CHARACTER SPACING WCMD MVI A O7H CHARACTER SPACING 7 PIXELS STA CSPACE CALL GETCR JMP GETCMD a 4 D D 4 4 AV SIC LARDA 7 CAR e z Dvd 0983 0986 0989 098 098F 0991 0993 0996 0999 099A 099
46. 99 TENCNT IDA DCR A SECOND STA TENCNT JMP GOBACK x SECOND MVI 0100 STA TENCNT PROGRAMS SCEDULES EVERY SECOND BELOW se gt e CALL ADDSEC SSSSSSSSSSSSSSSSSSSSSSSSSSS H GOBACK POP RESTORE ENVIRONMENT POP D POP B POP PSW EI ahe Ae he de de He He Fe Fe e e KARA He de de e He He de de e de de He He He He he Ae He He de He e de ke Ae He LES EE EE 99 FUNCTION NEWTIME DESCRIPTION UPDATES TIME STRING ON SCREEN NEWTIM LDA TDBYTE ORA A RZ TIME IS CURRENT IF 0 LXI H CMDS5 3 3007 3OCD 30D0 30D3 30D4 30D7 30DA 30DB 30DC 30DE 30 2 30E3 3OE6 30 9 30 30 2 30F3 30F4 30F5 30F8 30FB 30FC 30FF 3102 3104 3107 310A CDDB30 215312 CDDB30 CDEF 30 AF 326012 CD9331 c9 7E CD5008 23 C3DB30 CD5008 3E0D CD5008 c9 210000 39 2B 2B 220311 CD5308 C9 215D12 CD3531 FE60 CAOA31 C33F31 AF CALL SNDCMD LXI H TIMSTR CALL SNDCMD CALL DOCMD UPDATE TIME XRA A STA TDBYTE TIME IS NOW CURRENT CALL FLIP RET k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k kk k kk k k k k k k k k k k kok k k me FUNCTION SEND COMMAND INPUTS H L POINTER TO COMMAND STRING DESCRIPTION WRITES MESAGE TO INPUT BUFFER SNDCMD MOV A M GET CHR CPI OFFH END RZ CALL WRBUF INX H JMP SNDCMD 5555555555555559555555995559599 SSCMD CALL WRBUF SEND SINGLE LET
47. ARROW TEXT PUT SYMBOL w WIDE TEXT x XOR SYMBOL 12 JUMP TO MONITOR 14D OH COMMAND ADDRESS TABLE OOH DUMMY 23 USED BY GETMSK OD60 0062 8808 0064 0000000000CHRTAB OD69 0000 OD6B 2020202020 OD70 0020 0072 5050500000 OD77 0000 0079 5050F850F8 OD7E 5050 ODBO 2078A07028 OD85 FO20 0087 COC8102040 OD6C 9818 OD8E 40A0A040A8 0D93 9068 0D95 2020200000 OD9A 0000 OD9C 2040808080 ODAl 4020 ODA3 2010080808 ODA8 1020 ODAA 20A8702070 ODAF A820 0061 002020F820 ODB6 2000 ODB8 0000000020 ODBD 2040 ODBF ODC4 0000 ODC6 0000000000 ODCB 0020 ODCD 0608102040 0002 8000 0004 708598ABCB ODD9 8870 ODDB 2060202020 ODEO 2070 ODE2 7088087080 7 80F8 ODE9 F808103008 ODEE 8870 ODFO 10305090F8 ODF5 1010 DW 9 Se 99 CR ROC EEE CCMD ACMD CHARACTER GENERATOR TABLES 5 BY 7 DOT MATRIX ASCII VALUES 20H SP De he Ae k k k k k k k k k k k k k k Fe de He de He He He de ce Hehe e e e e Fe de he e bee He he he fe jefe fe e he Fe He fe He dee defe fe jede dede fe je de ke e de ke he ke ke k NUMBERS UPPER CASE LETTERS SYMBOLS OOOH OO0H OOOH OOOH 020H 0208 020H 020H 020H 000H 020H 050H 050H 050H OOOH OOOH OOOH OOOH 050H 050H OF8H 050H OF8H 050H 050H 020H
48. C A CALL VALDL JNC ERROR RET DESTROYS A C F LDA INHIBIT ECHO ORA A RNZ IF NOT 0 CALL INPUT REG MVI A CR CMP RNZ MVI C LF ECHO CR AS CRLF CALL MVI C CR RET RET WITH CHAR IN C ECHO SUPRESSED ORA A RNZ YES CALL MCRLF NO RET CALL MCI CHAR INPUT IN A PUSH B DESTROYS ONLY A F MOV C A 22 AV SIO 1 00 27 29 Vd 0028 79 0029 Cl OD2A C9 OD2B CD6800 OD2E C9 OD2F 00 0D30 80 0031 CO 0032 EO 0033 FO 0034 0035 FC 0036 0037 0038 0038 41 0039 43 OD3A 44 OD3B 45 OD3C 46 OD3D 49 OD3E 4B OD3F 4C OD40 4D 0 41 4E 0042 50 0043 57 OD44 58 0045 0 46 0 46 0000 0048 B009 004 8309 OD4C 7809 004 6F09 OD50 6409 0052 8 09 0054 9 0056 3309 0058 2A09 OD5A 1602 5 1209 ODSE 708 MOV A C POP B RET CALL MCO RET TABLES e so se 4 7 uuuuHEHHHHHHEHEEEEEHEEEEEEEEEUEEEEEHEEE E he he k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k Sh k de de k He k ik k kk Tk kk k k k Kk k kk k kk k K 00000000B 10000000B 11000000B 11100000B 11110000B 11111000B 11111100B 11111110B 11111111B OH COMMAND CHAR TABLE D CLEAR SCREEN D DEFINE SYMBOL E ECHO ON d A FUNCTION d INIT SYM TABLE K KILL ECHO d i LIST OF POINTS MOVE SYMBOL N N
49. CARRY OUT BITS PUT BACK ON SCREEN RESTORE LAST ADR TO H L RESTORE 0 DONE SET FLAGS DONE NO YES T kk k k k k k k k k k k k k de k k k k k k k k k k k k k k k k k k k k k k k k k k kk de k k k k k k k FUNCTION PUTX XOR SYMBOL WITH SCREEN AT X Y LOC INPUTS B w 99 o 9 o X POS Y POS SYM ADRESS 4 HEIGHT WIDTH LAST SYM ADDRESS OA3B OA3E 0A42 0A45 0A46 0A48 0A49 4 0A4D 4 51 0A52 0A53 0A54 0A55 56 0A59 OA5C OA5D OASE 5 62 0A63 0A64 0 65 0 66 0A67 OAGA OA6B OA6C OA6D D26BOA F5 E5 79 2A0511 AE 77 El Fl B7 C2460A c9 79 AE 77 C3460A SAVE SYMBOL ADDRESS GET SCREEN ADDRESS SET MASK CORRECTLY CALL SCADR CALL GETMSK x se ep e POP D SYM ADDRESS MVI C OOH CARRY IN NOT NEEDED PUTX02 XCHG MOV A M SYMBOL WORD CALL DROTR SHIFT IT RIGHT MOV B A IDA RMASK MASK UPPER N BITS ANA B XCHG XRA M MOV M A WRITE TO SCREEN INX D NEXT SYM ADDRESS CALL INCSAD JNC PUTXO3 NEXT SCR ADDRESS RIGHT EDGE OF SYM NO e 99 e 99 o PUSH PSW STORE DONE BYTE PUSH H SAVE HL MOV A C GET CARRY OUT LHLD SADRE YES XRA M MOV PSW RESTORE A 0 DONE ORA A SET FLAGS JNZ PUTXO1 DONE NO RET YES PUTXO3 MOV A C CARRY XRA M XOR IN NEXT SCREEN LOCATION MOV M A JMP PU
50. CORDS 09 O9D1 0902 0903 09 4 0907 O9DA O9DB O9DC O9DD O9DE O9DF O9EO O9El O9E2 09 09 6 09 7 09 8 09 9 O9EA 9 O9ED O9FO O9F1 O9F4 09F6 09 9 O9FA O9FB O9FD O9FE OAO0 0A03 0A04 5 C3DEO9 F5 CDAFOA 3EBO CD960A 47 2F A6 4F B7 79 CAO40A BO 77 c9 CALL GDL CALL GETBYT GET X POS MOV M A STORE IN SYMBOL INX H MOV D A SAVE X CALL GETDL DL CALL GETBYT Y POS MOV M A STORE IT INX H MOV Y POS MOV B D X POS PUSH B MOV D M GET HEIGHT INX H MOV E M WIDTH INX H SYM ADR A CALL GETCR CHECK FOR CR POP B X Y POS XCHG RET XY MOV B M X POS INX H MOV C M Y POS INX H JMP XYH Tk k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k kk k k k kk kk kk k MOVE GRAPHICS ROUTINES kk k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k ik k k k k k k k k k k k k k k k k k e x 99 99 lt Sp FUNCTION POINT INPUTS O RESET POINT ELSE SET POINT B X COORDINATE C Y COORDINATE DESCRIPTION SETS OR CLEARS SPECIFIED POINT ON SCREEN ep lt zg POINT PUSH PSW CALL SCADR ADDRESS B SBITS MVI MASK CALL ROTR ROTATE B TIMES MOV B A SAVE MASK CMA ANA M MASK OUT POINT MOV SAVE POP PSW ORA A SET FLAGS MOV A C DOESN T CHANGE FLAGS JZ PNTO5 LEAVE POINT RESET ORA B SET POINT 5
51. H 018H 018H 018H 018H OF8H OOOH OOOH 020 050 088H OOOH OOOH 000H OOOH OOOH OOOH OOOH OOOH OF8H 040H 020H 010H OOOH OOOH OOOH OOOH M 6 k ik k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k kk kk k k kk kk k kk k k k k k k k k k k k k k k k k kk k kk RRA KARA 100 5 ADR OF INPUT BUFFER OlH TOP OF BUFFER 01H BOT OF BUFFER FUNCTION RUNNING BYTE 02H SP SAVE LOCATION 02H SCREEN ADR END OF LINE 02 SCREEN ADR TEMP SAVE SCREEN BIT OFFSET 01H 8 N LSB S SET MSB S SET O1H SYM WIDTH 01H SYM HEIGHT 26 AW SIO LADA GIT 79 rd 110E 110F 1110 1111 1112 1114 1116 1117 1118 1119 111B 1158 11 1300 1300 1300 o 27 SCREEN FLAG O TOP FF BOT NUMBER OF SYMBOLS IN SYMTAB NEXT ADR IN SYMTAB NEXT DATA STORAGE ADR ECHO SUPRESSION FLAG CHAR SPACING 6H OR 7H SYMBOL IDENT STORAGE ADRESS ECT FOR ALL SYMBOLS SYMBOL DATA LARAI GO 7 DIHICIO 59 red 00C3 20 0 0030 0020 0000 0850 0853 0092 0098 05C8 0479 OOFF OOFF 0000 OOFF 3000 3000 3001 3002 3005 3008 300A 300D 3010 3012 3014 3016 3018 301A 301 3018 3021 3024 Won H H H H H HH H uo t uH Mw F3 315012 215020 3663 217630 22F120 3E00 D324 3EAC D325 1 D320
52. H LXI 016 INR L D8 STAX 8 DCR L INX MVI LD8 INR CMA DCR MVI MNEMONIC 57 MOV DA SIM LXI SPDI6 STA INX INR DCR MVI RPO XTHL CPO Agr PUSH H D8 RST 4 PCHL JPE XCHG CPE Adr o m gt Sr x zr x mO O e gt xr XRI D8 RST RP POP PSW JP Adr CP Adr PUSH PSW ORI 08 RST 6 RM SPHL CZ Ad CALL Adr 08 RST RNC POP INC OUT CNC Adr PUSH D SUI D8 LXI H D 6 SHLO Adr INX INR DCR MVI DAD H LHLO Adr gt gt r zmnooek gt 08 constant or expression that evaluates 016 constant or logical arithmetic expression that evaluates to an B bit data quantity to a 16 bit data quantity Adr 16 bit address ALL MNEMONICS 1974 1975 1976 1977 INTEL CORPORATION GRAPHIC LCD AIRCRAFT DISPLAY PAGE 67 parity bit always reset GRAPHIC OR CONTROL NUL ASCII HEXADECIMAL 00 SOH 01 STX 02 ETX 03 EOT 04 05 ACK 06 BEL 07 BS 08 HT 09 LF 0A 08 FF 0C CR 0D SO OE Si OLE 10 DC1 X ON 11 DC2 12 DC3 X OFF 13 14 NAK 15 SYN 16 17 CAN 18 EM 19 SUB 1 18 5 1
53. I OFH EXIT CZ DOFF CPI 03H JZ AUTOBAR 7 3219 1F 321A 5 321B DC3232 321E Fl 321F 1F 3220 F5 3221 DC4032 3224 Fl 3225 1F 3226 F5 3227 DC4E32 322A Fl 322B 1F 322C DC5C32 322F C30C32 3232 3A6112 3235 10 3237 C8 3238 3D 3239 326112 323C CDA632 323F C9 3240 3A6112 3243 FE60 3245 C8 3246 3C 3247 326112 324A CDA632 324D C9 324E 3A6212 3251 3253 C8 3254 3D 3255 326212 3258 CDC632 325B C9 325C 3A6212 325F FE60 3261 C8 3262 3C 3263 326212 3266 CDC632 3269 C9 326A 0610 326C C5 326D CD4E32 3270 03232 3273 C1 3274 05 3275 C26C32 3278 0610 327A C5 PUSH POP PUSH INR STA CALL RET PSW LEFT MOVE LEFT PSW PSW RIGHT MOVE RIGHT PSW UP MOVE UP DOWN MOVE DOWN 5555559595555555559555555959 AUTOBAR MVI ABI AB2 PUSH B 010H Bow 1 010H AV LAH GIT DIHIVIO 69 rd 327B 327E 327F 3280 3283 3285 3286 3289 328C 328D 328E 3291 3293 3294 3297 3298 3299 329 329F 32A0 32A3 32A6 32A9 32AC 32AF 32B2 32B5 32B8 32BB 32BE 32BF 32C2 32C5 32C6 32C9 320C 32CF 32D2 3204 3207 32DA 32DD 32 0 32E3 32 4 32 7 CD4032 cl 05 C27A32 0610 C5 CD5C32 CD3232 cl 05 C28532 0610 C5 CD4032 05 C29332 CD9D31 B7 C20C32 C36A32 21F032 CDDB30 3A6112 CDDD32 21F532 CDDB30 CDEF 30 210070 EB CD9BOO CDBF30 CH 21 832 CDDB30 3A6212 CDDD32 3EOD CD5008
54. MP DOWN TO NEXT LINE 1EH OAFO 6 ANI OEOH MASK CARRY OB2B 19 DAD D OAF2 4F MOV C A B C NOW 32Y OB2C CD430B CALL FIXADR CORRECT FOR GAP IN DISP RAM F1 POP PSW GET Y 2 220711 SHLD SADSV 4 07 RIC 2 Y 0 32 Dl POP D RESTORE DE OAF5 6F MOV 0B33 B7 SET FLAGS ZERO F CLR OAF6 E601 ANI GET CARRY 0 34 C3410B JMP SRET DONE 2F CMA sCOMPLEMEMT IT 0B37 23 INC10 H LAST ADD 1 OAF9 67 MOV H A OB38 220511 SHLD SADRE SAVE IT OAFA 7D MOV A L 0B3B C3410B JMP SRET ZERO SET OAFB E6FE ANI OFEH MASK CARRY OAFD 2F CMA OAFE 6F MOV L A OAFF 23 INX H H L NOW 2Y OB3E 37 FRET STC RETURN WITH CARRY CLEAR OBOO 09 DAD B H L 30 Y 0801 C9 RET 0840 C9 RET pop III KR KKK K H 0841 37 SRET STC RETURN WITH CARRY SET 42 C9 RET 13 14 AV 5 0 LISPM SY 7 e rd 0B43 F5 0B44 3A1011 0B47 B7 48 FASFOB OBAB D5 OBAC 118047 4 CD8000 0852 025 0855 118000 0858 19 0859 OB5B 321011 OB5E Dl 5 1 OB60 C9 OB6l 67 0 62 3A1111 vhe he he Fe de e e he de LT de he de e e e He k kekeke eke k kek FUNCTION FIX SCREEN ES NAT SCREEN BYTE 00 TOP FF BOT OUTPUTS H L SCREEN ADDRESS CORRECTED SCRBYT SCREEN BYTE CALLS NOTHING YS NOTHING DESCRIPTION FIXADR IS CALLED BETWEEN EACH INCREMENT OF THE SCREEN ADDRESS 80 HEX
55. NE OSAKA 106 621 1221 Electronic Components Division TELEX NO LABOMETA J63428 0SKPA PHONE 1040 23775 286 350 TELEX NO 21 61 867 HEEG D 83 SHARP CORP 01 16 Sept 83 1 000W Printed in Jepen O GA dp LOD ARCANT Casu PAGE 56 APPENDIX D MCG 8085 COMPUTER GRAPHIC LCD AIRCRAFT DISPLAY PAGE 57 gt eue Geen Y 15 Ai IR Y CMOS RAM 256 Byte RAM Included 4096 Byte of ROM Capacity On Board 2048 Byte of RAM Capacity Included Programmed 9 GENE LIN 5 52050060 KITURO RAL STANDARD UNIT FEATURES HARDWARE SOFTWARE se CPU EXPEDITOR 2K SYSTEM MONITOR 1 Serial RS232C Port Pro grammed 2716 EPROM Geelen 4 Gei SCH Automatic Baud Rate Detection 50 19 2K Baud ogrammable 6 Bit Paralle v CP M or ISIS Systems can be used for Program 5 Interrupts 3 with Maskable Priority Development 2304 Byte RAM Capacity On Board 2048 can be SYSTEM COMMANDS Substitute Memory Move Memory Display Memory with Expeditor System Monitor Execute 2048 Bytes of Selectable RAM or ROM Capacity Fill Memory with Constant On Board Kill Echo Programmable 14 Bit Counter Timer Examine Registers Power On Reset Insert External Push Button Reset Switch String Search and Replace 6 144 MHz Crystal Provided with Board Assemble Operates on any Crystal Frequency 1 MHz 10 MHz Data Bus
56. OFH MOV B C MOV A B CALL PRVAL RET FLIP LXI H CMDS8 CALL SNDCMD CALL DOCMD RET k k k k k k k k k k k k k k k kk k k k kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkhkik READ SOFT SWITCHES ROUTINES kk k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k kk k k k k k w 99 w x FUNCTION READ SWITCHES INPUTS PARALLEL PORT C OUTPUTS SW2 DOWN BIT 1 SW3 BIT 2 SW4 BIT 3 SW5 DESCRIPTION THIS PROGRAM READS AND DEBOUNCES THE FOUR SOFT SWITCHES ON THE PANEL w 99 lt 99 gt IN 023H READ SWITCHES ANI OFH MASK ALL BUT SW BITS PUSH PSW SAVE LXI D OFFH CALL DELAY DEBOUNCE DELAY IN 023H READ AGAIN ANI OFH MOV B A POP PSW CMP B SAME AS BEFORE DELAY RZ YES GOOD DATA JMP RDSW kk k k k k k k k k k k k k k k k k k k Kk k k k k k k k k k k k k k k k k k k k k k k k k k kkk FUNCTION GET SWITCH PRESS DESCRIPTION WAITS FOR SWITCH TO BE DEPRESSED THEN RETURNS WITH VALUE IN GO ITS 89 3d 31B3 31B6 31B9 31BB 31BC 31BF 31CO 31C3 31C6 31C9 31CC 31CF 31D2 31D5 3158 31DB 31DE 31 1 3184 3187 31EA 31ED 31F0 31F3 31F6 31F9 31FB 31FE 3200 3203 3205 3206 3209 320C 320F 3211 3214 3216 CDBF 39 CD9D31 CO C3B331 21C233 CDDB30 CDEF 30 210334 CDDB30 CD4936 CDEF 30 210C34 CDDB30 CDEF 30 217C34 CDDB30 CDEF 30 210C35 CDDB
57. PACE CHAR SPACING ADD B MOV PUSH B SAVE NEW X Y JMP PSTO5 PST10 POP B RET ede k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k kk k dede kekek k kkk k kkk FUNCTION GETSTR INPUTS H L STORAGE ADDRESS 99 9 18 GIT 09 39vd 00522 0023 0026 0728 OC2B OC2D OC2F 0C32 0C35 0C36 0C37 0C38 0C39 OC3A OC3B OC3C OC3D OC3E OC3F OC41 OC42 OC43 OC45 OC46 OC47 OC4B OC4E OC4F OC50 0 51 0 54 0857 CDDFOC FEOD CA4EOC D620 0607 7E 77 23 13 C2410C C3230C EB 77 23 221411 CD170D C9 DESCRIPTION ACCEPTS A STRING OF CHARACTERS UP TO THE FIRST CARRAGE RETURN AND STORES THE CHARACTER DATA STARTING AT THE LOCATION POINTED TO BY H L 99 x GETSTR XCHG STRO5 CALL GETCHR GET CHAR IN A CPI CR CHECK FOR END OF INPUT 92 STRLO 501 020H ASCII 20H FIRST CHAR IN TABLE MULT A BY 7 TO GET LOCATION IN TABLE e ANI O3FH 5 H CHRTAB MVI B OH PUSH PSW RIC RIC C A DAD B POP PSW MOV C A DAD B RIC MOV C A DAD B H L NOW POINTS TO CHAR MVI B O7H BYTE COUNTER 7 LOOP TO GET 7 LINES OF DATA FOR EACH CHARACTER e we STRO7 MOV A M GET BYTE FROM TABIE XCHG MOV M A STORE IT XCHG INX H NEXT TABLE LOCATION INX D NEXT MEMORY LOCATION DCR B DONE WITH CHAR YET JNZ STRO7 NO JMP STROS YES GET NEXT CHAR
58. PUTERS DIVISION OF ATLANTIS COMPUTERIZED SERVICES CORP 31 14 BROADWAY ASIORIA 11106 212 728 6700 GRAPHIC LCD A RCRAFT DISPLAY PAGE 62 A GENERAL COMMANDS Substitute command SXXXX SP The substitute command allows the user to modify memory locations individually The command works as follows a Type an S followed by a 4 hex digit address of the first memory location you wish to examine followed by a space b The contents of that memory location are displayed followed by a dash n c To change the contents of the location displayed type in the new data followed by a space The contents of the next higher memory location will automatically be displayed and be available for modification d Type a carriage return the S command wi11 automatically be terminated Move memory command 2227 cr The move memory command moves the contents of memory between hex locations XXXX and YYYY to destination field starting at address 2222 Display memory command DXXXX YYYY cr The display memory command will produce a formatted listing of the memory contents between XXXX and YYYY Each line of the listing begins with the address of the first memory location displayed on that line represented by four hex digits followed by up to sixteen memory locations each one represented by two hex digits Execute command GXXXX er Control is transferred from the monitor to the program starting at address
59. RALLEL OUT SHIFT REGISTER TOP EEE A UE UE REO REE DEE C LATOHANDLCDDRMERS AND LCD DRIVERS 20 0 5 0 6 X 6 mm dot pe ONC 7 x 7 mm spacing 7 Z 6 eg E LATCH AND LCD DRIVERS D2 i DATA 31 213313 1 Liiiiiiii BOT 240 BIT SERIAL IN PARALLEL OUT SHIFT REGISTER CP1 LINE S PAGE CLK lt LCD DRIVE ELECTRONICS ALT PAGE CLK drive polarity inversion every frame temperature compensation Fig 8 SHARP DISPLAY GRAPHIC LCD AIRCRAFT DISPLAY PAGE 26 TIMING GENERATOR ADDRESS COUNTER BLOCK DIAGRAM 600 KHz 11 BIT DISPLAY ADORESS COUNTER NR US MS wan ARS GUN UND GRE MP ADD ama O a eg e E DATA IN CP2 BIT CLOCK CP1 LINE CLOCK LCD AY S PAGE CLOCK U14 15 64 Ui0a 1 LINE DELAY USa 2 COUNTER LOGIC ES EXPANDED ELSEHWERE M ALT PAGE CLK EL EL EL LE EX EX EX CE EX EX ED D DD EE Fig 9 TIMING GENERATOR GRAPHIC LCD AIRCRAFT DISPLAY PAGE Z7 CONTROL LOGIC BLOCK DIAGRAM eum guess 11 15 B I 4 5 Hr H L H E Y 4800H 4FFFH write Buffer DATA Lp Buffer Direction CONTROL LINES amp Control DATA LINES amp CONTROL LOGIC S EXPANDED ELSEWHERE Fig 10 CONTROL LOGIC GRAPHIC LCD AIRCRAFT DISPLAY PAGE 28 LCD CONTROLLER BLOCK DIAGRAM
60. S FIG 1 GRAPHICS DISPLYAY UNIT GRAPHIC LCD AIRCRAFT DISPLAY PAGE 8 2 FUNCTIONAL DESCRIPTION 2 1 SETUP The graphics display unit GDU shown in Fig 2 is a complete system alloving the user to define graphic symbols of variable size and shape and move them around on the Screen Symbols may overlap one another and can be erased easily Individual points may also be accessed and text is easily displayed because of the internal character generator The software recognizes strings of ASCII characters as commands thus permitting debugging of command strings witha terminal demonstration program is also included on EPROM to demonstrate the functioning of the unit without the need for a terminal The GDU requires the following see Fig 2 POWER at 1 5 amp J1 12V at 0 1 amp 12V at 0 1 amp COMMUNICATION RS 232 Port J2 GRAPHIC LCD AIRCRAFT DISPLAY PAGE 9 AIRCRAFT LCD GRAPHICS DISPLAY BLOCK DIAGRAM LH 24003G 8085 Single Board Computer LCD Controller Address GRAPHICS DISPLAY HODULE ch Software definable keys Fig 2 Graphics display system GRAPHIC LCD AIRCRAFT DISPLAY PAGE IU 2 2 COMMAND FORMAT When power is applied and the reset button is pressed a sign on menu should appear on the LCD display The setting of the contrast control is critical and should be set fully counter clockwise if the display appears blank a symbol is missing The f
61. S9 S X01 10 37 CORDS OF BARS CR X02 37 10 CR IN CR AO1 TIMESTRI TIME STRING CR A01 00 79 LOCATION CR L1010 6010 1060 6060 2010 5010 2060 5060 1020 6020 1050 6050 CR ENDCMD A01 ENDCMD DO3 ODO3FFFFFFFFFFFF C00003800001800001 800001800001800001 800001800001 CR HOLLOW BOX PO3 2B OO CR P03 2B E4 4 CR 02 120 A03 300 CR A02 2E 03 CR A03 2E 67 CR ENDCMD 04 100204000 000 001 00 JF003F807FCOO0000000F9CO AA20222022202220222021C0 CR UP TRIANGLE TO DO6 1002FBC082208220F 3C0 828082408220000000007FCO 3FB01FOO1FOOOEO00E000400 CR DOWN TRIANGLE FR P04 61 26 CR X04 FLIP TO FR CR XO6 61 39 CR ENDCMD DO7 0401 10284482 POINTER UP 11 3568 3509 3509 35DA 35F0 35F1 3607 3608 3611 3612 361B 361C 3625 3626 362F 3630 363D 363E 3647 3648 3649 364B 364D 3050 3652 3655 3656 3659 365B 365E 1102 1102 1103 1200 1200 1250 1250 1251 1252 1253 125D 1260 1261 1262 1263 1265 CR DO8 040182442810 DOWN CR DO9 070120100804081020 RIGHT CR DOA 070104081020100804 LEFT CR POA 85 78 CR PO9 A6 78 CR PO7 C7 7A AO4 MOVE BARS CR A04 A6 6 CR ENDCMD dede Fe he de de Fe de de e RER Fe He he R e de He he ke he he e He e OOOO kkk
62. SIMPSON PERSORAL FILE DO NOT REMOVE FLIGHT TRANSPORTATION LABORATORY REPORT R84 2 A MICROPROCESSOR DRIVEN LIQUID CRYSTAL GRAPHICS DISPLAY FOR AIRCRAFT USE Lee Howard Marzke June 1984 GRAPHIC LCD AIRCRAFT DISPLAY PAGE 1 FTL REPORT R84 2 A MICROPROCESSOR DRIVEN LIQUID CRYSTAL GRAPHICS DISPLAY FOR AIRCRAFT USE Lee Howard Marzke A complete graphics system for use in modular avionics is built around a liquid crystal flat panel display Screen refresh is handled by display controller that provides a bit mapped representation of the display in RAM 8085 based single board computer is programmed to allow user defined graphics symbols to be moved about easily and a character generator is included to facilitate the display of ASCII strings The computer uses a RS 232 interface to receive commands A demonstration program is also included which demonstrates a simple instrument landing system ILS type display without the need for an external device GRAPHIC LCD AIRCRAFT DISPLAY PAGE 2 ACKNOWLEDGEMENTS I would like to thank the folloving people for their Special contributions Professor Antonio Elias for being my thesis advisor and for suggesting the general purpose display idea Carter Pfaelzer for day to day help when I vas defining my thesis and sugestions vhen ever I had problems SIRRUS FLOW TECHNOLOGY INC especially Carl Johnson for the use of his OSBORN computer to develop the softvare Spencer Webb
63. SIONS 4 5 x 6 5 inches PRINTED CIRCUIT BOARD MATERIAL Fire Retardant Glass Epoxy SOLDER MASK Both Sides TYPE OF CHIPS USED 1st Grade Commercial SUPPLIERS Only Franchised Distributors References on Request 2 ELECTRICAL CHARACTERISTICS CURRENT REQUIREMENTS FOR FULLY 5V at 1 CONFIGURED BOARD 12 at 20MA EUNCTIONAL CHARACTERISTICS STANDARD UNIT Completely functional computer card monitor software in ROM and illustrative User s Manual ADDITIONAL REQUIREMENTS 3 voltage power supply and RS232 terminal FOR OPERATION BAUD RATE 50 19 2K baud rate The baud rate of the terminal used is calculated automatically by the Expeditor System ware CRYSTAL 6 144 MHz crystal provided with the 85 can operate with crystai frequencies from 1 10MHz with no modifica tions PARALLEL Dip socket access for the two 8 bit and one 6 bit parallel ports SERIAL PORT RS232 port available at edge connector TIMER PORT Dip socket access to the 8155 timer EDGE CONNECTOR BUS ATLANTIS COMPUTERS 44 Pin MCG Bus CONNECTOR USED 44 pin edge connector 156 centers APPLICATIONS Industrial controls dedicated test and monitoring systems communication subsystems small scale data processing A to D D to A conversions and processing data logging data acquisition prototyping and ex perimentation SUPPORT CARDS AND The 85 is supported by a full line of cards all on RELATED PERIPHERALS the MCG Bus
64. TER COMMAND MVI A CR CALL WRBUF RET k dee k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k kk k THIS ROUTINE CALLS GETCMD TO PROCESS THE COMMANDS IN THE INPUT BUFFER WHEN THE BUFFER IS EMPTY A RETURN TO THIS ROUTINE WILL OCCUR ne 9 DOCMD LXI H OH DAD SP GET SP DCX H COMPENSATE SAVED STACK POINTR DCX H FOR RETURN ADR FROM GETCMD SHLD STKSAV SAVE STACK POINTER CALL GETCMD DO COMMANDS RET GETCMD RETURNS HERE IF FUNBYT FF Ae he he he de Fe he de de de Ae de e de Ae Ae e He de He He de de de de de de de ke ke ke ke de ke de k ke k keke kekek k kkk kkk kkk FUNCTION ADD SECOND DESCRIPTION UPDATES TIME REGISTER BY ONE SECOND w 99 9 ADDSEC LXI H TIME SECONDS CALL BCDADl ADD 1 SEC CPI 060H 60 SEC JZ ADDMIN JMP GETIME ADDMIN XRA A 0 At SIC LA AIM GIT OI IV ET 9 vd 3108 310 3111 3114 3116 3119 311C 3110 3120 3123 3126 3128 3128 312 312 3132 3135 3138 313A 313D 313E 313F 3142 3145 3148 3149 314C 314 3151 3154 3157 315A 315B 315E 3160 3163 3166 3169 316C 316D 3170 3172 3175 3177 325D12 215E12 CD3531 FE60 CA1C3l C33F31 AF 325E12 215F12 CD3531 FE24 CA2E31 C33F31 AF 325F12 C33F31 113E31 0601 CDC805 CH 01 3A5F12 CD7E31 325312 79 325412 3E3A 325512 3A5E12 CD7E31 325612 79 325712 3E3A 325812 3A5D12 CD7E31 325912 79
65. TX01 s 99 99 99 e 99 k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k koko k k k k k kkk FUNCTION DROTR DOUBLE WIDE SHIFT RIGHT INPUTS A SHIFT REGISTER OVERFLOW BITS IN LEFT JUSTIFIED SBITS OF BITS TO SHIFT N RMASK MASK 8 N OF THE LSB S SET RMASK l MASK N OF THE MSB S SET OUTPUIS A SHIFT REGESTER C OVERFLOW BITS QUT LEFT JUSTIFIED CALLS ROTR DESTROYS A C F DESCRIPTION THE BITS IN THE A REG ARE SHIFTED RIGHT N TIMES WITH INFLOW FROM REG C AND OVERFLOW TO REG C RMASK MUST BE SET BY EXECUTING GETMSK PRIOR TO 10 AV ASIC 1 SEDAN lt 9 OA71 F5 0 72 3AO911 0A75 47 0A76 0A78 27 F1 0 70 C9 OA7E F1 OA7F D5 5 1 5 2 2 11 5 CD960A 0A88 47 OABA 4 OABB 78 OABC A5 OABD Dl OABE 42 OABF 57 0 90 7B 0 91 4 0492 B2 0 93 1 0A94 D1 0A95 C9 0 96 05 0 97 F8 0 98 0 99 3960 9 C5 OA9D E5 OA9E 212 00 48 OAA2 0600 OAA4 09 OAA5 66 OAA6 7C 2F OAAB 6F OAA9 220A11 lt DROTO5 POP ANA ORA POP POP RET w ROTR DCR RM RRC JMP e 99 99 gt GEIMSK PUSH PUSH LXI MOV MVI DAD MOV MOV CMA MOV SHLD DESTROYS A F ENTRY PSW SAVE SBITS
66. USH H MOV 5 H BUFF ADR BUFFER IDA BUFBOT BUFTOP MOV L A H L NOW POINTS TO DATA INR A CMP B BUFFER OVERFLOW J2 BUFFUL YES DI STA BUFTOP HO INC BUFTOP M C CHAR TO TOP OF BUFF EI POP H POP B RET BUFFUL MVI 01 ERROR 1 CALL MGO JUMP TO MONITOR a k k k k k k k k k k k k k k k k k k k k k K k k k k k k k k k k k k k k k k k k k k k k k k k k k k k RETURNS WITH HEX BYTE IN REG A EQUAL TO THE VALUE OF THE FIRST TWO ASCII DIGITS IN THE INPUT BUFFER 99 e Se GETBYT CALL RDBUF ANI 7 MOV DESTROYS A B C F MASK PARITY BIT 21 OCD6 OCD9 OCDB OCDE OCF6 OCFB OCFF 0002 0503 0007 0008 ODOB ODOD ODOE ODOF ODI1 0014 0016 0017 ODIC ODLF OD20 0023 0024 0025 CD7DOC E67F CD2405 CD7DOC E67F c9 CDDFOC CDO30D 79 FEOD C27D08 c9 CDDFOC FEOD CA7D08 CD6604 D27D08 3A1611 B7 CO CD2BOD 3EOD B9 CD2BOD OEOD 3A1611 B7 9 06500 5 4 CDO30D RDBUF ANI 07FH MASK PARITY CALL CONV RET CALL RDBUF DESTROYS A F ANI 07FH MASK PARITY CALL GETCHR DESTROYS A C F MOV C A A C CPI CR JNZ ERROR RET GET NEXT CHARACTER ERROR IF NOT DELIMITER GETDL GDL 5 se e se Q CALL GETCHR DESTROYS A C F CPI CR JZ ERROR MOV
67. YM RIGHT EDGE 1 OADA OF 8 RRC CARRY SET CURRENTLY AT SYM RIGHT EDGE OADB OF RRC CALLS FIXADD OADC OF RRC DIVIDE BY 8 DESTROYS A F H L OADD 57 MOV D A SAVE DESCRIPTION HE NEXT SCREEN ADDRESS IS DETERMINED OADE E61F ANI 1 INT PART H AND PLACED IN SADSV RETURNS WITH CARRY OAEO 5F MOV PUT IN E SET IF AT RIGHT EDGE OF SYMBOL AND WITH OAEl 7A MOV A D GET ROT BITS ZERO FLAG SET IF AT END OF SYMBOL OAE2 ANI OEOH FRC PART ON INITIAL CALL SET SYMXCT SYMWD OAEA C9 RET SYMYCT SYMHT AND SADSV SCREEN ADR 0802 11 INCSAD LDA SYMXCT OBO5 3D DCR A DEC X COUNTER FUNCTION MULTPLY A BY 30 OBO6 320811 STA SYMXCT INPUT 8 BIT NUMBER OBO9 CA100B JZ INCO5 AT RIGHT EDGE OUTPUT H L 16 BIT NUMBER OBOC 23 INX H INC SAD DESTROYS A B C H L F OBOD C33EOB JMP FRET 10 11 5 IDA SYMWD SYMBOL WIDTH OAE5 F5 MULT30 PUSH PSW SAVE IT OB13 320 11 STA SYMXCT PUT IN X COUNTER OAE6 07 RIC OBl6 11 LDA SYMYCT GET Y COUNT OAE7 07 RLC OB19 3D DCR A DECREMENT IT 07 RIC 1 320F11 STA SYMYCT OAE9 07 RIC OB1D CA370B JZ INCIO ALL DONE 07 RLC 32 Y OB20 D5 PUSH SAVE DE OAEB 4F MOV C A 0821 23 INX H SCR ADR RIGHT EDGE 1 OAEC E61F ANI OlFH GET CARRY OB22 220511 SHLD SADRE STORE IT OAEE 47 MOV B A OB25 2A0711 LHLD SADSV GET ADD OF BEG OF LINE OAEF 79 MOV A C 0828 111 00 D OlEH JU
68. arrow character spacing Put graphic symbol at XX YY Wide character spacing graphic symbol with contents of screen at XX YY Erase graphic symbol from it s most recently used coordinate Jump to monitor FAGE 16 AV SIO LIANT GIT ZI Bra SILVNICEOOSO KE 0 DICH 4 MN ey lt l sp Te Po d AB BO ca 00 EO i Po EE 7 i 1 H ES SS Ln CUM E Lx SA s De Pg i i MN MM ss 1 I 4 4 epee pr 1 CRISE DET MN E Tei Le at de EE i E DES Gas i 1 Dh tip En EN 1 1 3 r 2 3 DEMONSTRATION ILS DISPLAY To enter the demonstration program the button under the DEMO prompt 594 is depressed from the menu screen simple Instrument Landing System ILS type display appears on the left side of the display vith prompts over each of the soft buttons The pointers of the ILS instrument move when the appropriate buttons pushed both moving at the same time if desired If the left and right gt b
69. auses a jump to the error routine which sends a to the console COMMAND IMPLEMENTING ROUTINES For each of the characters recognized by GETCMD a command routine exists to process the data in the command string and call the appropriate graphics subroutines MOVE GRAPHICS ROUTINES POINT allovs any pixel on the screen to be turned on or off PUT places a graphics symbol on the screen at the specified coordinates PUTX places graphics symbol on the screen by performing an exclusive or XOR vith the data currently on the screen This allows a symbol to overlap another andit GRAPHIC LCD AIRCRAFT DISPLAY PAGE 31 may easily be removed by doing a second XOR The subroutine DROTR shifts the accumulator right from one to seven places Carry in is from the C register and carry out is placed back in the C register The value in RMASK must be valid prior to calling DROTR by executing GETMSK This is done to avoid selecting the correct mask on every call of DROTR SCREEN ADDRESSING ROUTINES At a specified pixel SCADR calculates the address of display RAM and location of this pixel within the indicated word INCSAD computes the next address of display RAM vithin the window defined by the hieght width and coordinates of specified symbol SYMBOL STORAGE LOOKUP ROUTINES SYMADR determines the storage location of a symbol GETSYM accepts data defining a graphic symbol consisting of its height width location and
70. ay The address GRAPHIC LCD AIRCRAFT DISPLAY PAGE 24 lines of display RAM are svitched between the controller and computer by the MUX s 018 019 and U20 The data paths from the tvo RAM s are connected to seperate shift registers U25 and U26 but are also vire or ed together through data buffers U23 U24 U27 and U28 to the computer data bus The shift registers are loaded vith the a word from memory immediatly after each count of the display address counter by a lov level on SRLOAD CONTROL LOGIC This section Fig 10 controls the sharing of display RAM betveen the processor and display controller The amount of time for a memory access by the computer is so small lt ius that the display controller has almost unrestricted use of display RAM Thus the MUX s are normally selected to the counter the data buffers are off high impedance and the shift registers are sending data to the display Fig 11 When the computer accesses display RAM several things must occur When chip 01 detects an address in the range of 4000g to 4FFFy display RAM it deselects the correct RAM preventing access by the display controller The MUX s select the the computer address bus for input Finally the data buffers are enabled in the correct direction by 02 U3 and U8 depending on the status of the read and write lines Fig 12 GRAPHIC LCD AIRCRAF 7 DISPLAY PAGE 25 SHARP LM 24003G GRAPHICS DISPLAY Deag 240 BIT SERIAL IN PA
71. d a development system Subsequently at each stage of development the code can be downloaded into the MCG 85 by using the PIP CP M command and the R Read Hex Paper Tape Format command of the MCG 85 and tested without the need for an EPROM to be burned each time After each work session the programs developed for the General can be stored on the floppy disk of the CP M based system for safe keeping and recall for later use thus eliminating the need for retyping the code into the General from the beginning each time UPLOADING Using the W Write Hex Paper Tape Format command wit enable the user to save programs developed on the General on a system that supports a disk drive Through this method machine language programs can be saved and later retrieved through downloading thus eliminating the need for reentering code THE GENERAL IN DEDICATED SYSTEMS In the event that the MCG 85 is intended to be used as a Dedicated Controller and because it has a software UART not a hardware UART the UART part of our monitor may copied and incorporated into the Dedicated Controller pro gram It is about 100 bytes long and can very easily be in tegrated into the software This method of program development can also be used with an ISIS based er any other computer which will generate 8080 code in Hex Paper Tape Format PAGE 59 GENERAL AT A GLANCE NAME The Micro Computer General 85 MCG 85 PHYSICAL DIMEN
72. d symbols To display the string type AiHt XX YY lt CR gt where XX and YY define the x and y coordinate of the left edge of the string Thereafter if the same string is referenced with new coordinates the string vill be erased and redisplayed at the nev location The STRING may be changed by reentering A HE NEWSTRING lt CR gt however NEWSTRING must contain the exact number of characters as the original string by appending spaces where necessary The first definition of a String therfore must be long enough to reserve space for later changes EXAMPLE AO2 BEARING CR Defines string 2 to be BEARING A02 10 20 CR Puts string 02 on Screen at location 10 20 AO2 COURSE CR Redefines string 02 to be COURSE Note added space to make string 7 characters long A02 20 20 lt CR gt Moves string 02 to location 20 20 The spacing of characters may be changed from the GRAPHIC LCD AIRCRAFT DISPLAY PAGE 12 normal two pixels between characters wide to one pixel spacing narrov by the N and W commands respectively GRAPHIC SYMBOLS A graphic symbol is defined by entering HIWWBBBBB CR The height HH in pixels may be any hex number from iy to 127g The width WW is measured in words multiples of 8 pixels vide and may range from 1 to BBBB represents groups of 8 bits 2 hex dig defining the graphic symbol sequentially as if reading a book 8 pix
73. development and program storage is provided standard with each unit the Expeditor System Monitor The software features are listed on the front cover For the system s operation an RS232 type termina and a power supply are required When properly inter faced to the aforementioned hardware the Generat during bootup will automatically calculate the baud rate of the ter minat 50 19 2K baud and transfer the program to the com mand recognizing routine At this point the General will any valid command SOFTWARE DEVELOPMENT Knowledge of 8085 Machine language is required in order to program the General directly using the commands and utility routines on the Expeditor Monitor In our User s Manual we provide useful examples of sample programs parailel t6 serial serial to parallel conversions data acquisition interrupt driven A D remote control of the MCG 85 from host computer etc which will suggest program development methods and potential uses for the MCG 85 PROGRAM DEVELOPMENT UNDER The General through the downioad commands R amp W enable the user to develop programs on a CP M based com puter The majority if not all of the CP M disks existing contain 8080 assembler This assembler is 100 compatible with the 8085 instruction set By using this assembler and taking advantage of the more powerful editor of the CP M based com puter programs can be developed quickly without the nee
74. ectored interrupt inputs are available in addition to the standard 8080A type interrupt TRAP INT5 5 INT6 5 INT7 5 and INT There is also a serial input SID and serial out put pu data line pair that is used as the system s software vart 8155 The 8155 is a highly integrated chip designed for com patibility with the 8085A s bus structure It contains 256 bytes RAM 22 programmable parallel lines and a 14 bit counter timer 7418138 Address Decoder MCG 85 contains 74LS138 chip that decodes the 8085A s memory address bits to provide the chip enables for the 8155 2716 5516 2114s 6514s and the 2016 MCG 85 MEMORY ADDRESSING Each memory UO on the basic MCG 85 is enabled from the 741 5138 address decoder The memory map lists each chip Output enable accompanied by the address space over which it is active and the MCG 85 device that is selected Further more any areas marked open are free for expansion the 7415138 has 4 uncommitted chip select lines to allow for the addition of four 2048 byte memory blocks without additional decoding circuitry MEMORY CAPACITY AND DESCRIPTION The total on board capacity of the MCG 85 is 6K bytes in ad dition to the 256 bytes of Static RAM contained on the 8155 The General can accommodate the following memory chips 2716 24 2048 X8 DN 2K EPROM or equivalent 2016 24 2048 X8 2K Static RAM or equivalent 616 24 pin 2048X8 2K CMOS RAM or equivalent 2114 18pin
75. eee e He ee ee e fe e e e He e He SSE ST deje dede defe e e dex e se e MONITOR COLD START MONITER WARM START MUST BE CALLED MONITOR INPUT ROUTINE MRES EQU 0000H RETURNS ASCII CHAR IN A MGO EQU 0008H MI EQU 0065H MONITOR OUTPUT ROUTINE SENDS ASCIT CHAR IN C SENDS CR LF TO CONSOLE 16 BIT COMPARE OF DE HL MCO EQU 0068H MORE EQU HILO EQU 0080H 0524 0098 0479 z 0800 0800 AA 0801 AF 0802 321611 0805 320211 0808 3E07 080A 321711 080D CD1308 0810 C32D08 0813 AF 6814 321111 0817 211211 OBIA 111811 0810 73 81 23 O81F 72 0820 211411 0823 110013 0826 73 0827 23 0828 72 0829 CDE508 082 C9 0820 31A811 0830 AF 0831 320011 0834 320111 0837 CD170D 083A 3A0030 0830 FEBB CA0130 0842 CD7904 0845 C35308 CARRY SET IF HL gt DE CONVERTS TWO ASCII CHAR IN A B TO HEX DIGIT IN A RET WITH CARRY SET IF CHAR IN C IS A VALID DELIMITER DELAY PROPIONAL TO D E CALCULATE BAUD FROM SPACE CHR CONV EQU 0524H VALDL EQU 0466 DELAY EQU O09BH GETBAUD EQU 0479H e 99 se ORG 0800H DB OAAH AUTOSTART BYTE COLD START HERE INIT XRA A HEN STA EFLAG ECHO ON STA FUNBYT FUNCTION OFF MVI A 07H STA CSPACE CHARACTER SPACING CALL INSTAB SYM TABLE INSTAB A STA NUMSYM INIT SYMBOL TABLE LXI H NEWSYM LXI D SYMTAB MOV M E INX H MOV M D LXI H NEWDAT LXI D DATA MOV
76. ell cross section 22 7 LCD Twisted Nematic effect 22 8 SHARP Display Unit 26 9 Timing Generator w eee 6655 at 10 Control Logic Ad 28 11 Data Flow during display refresh 29 12 Data flow during computer access 30 TABLES 1 GDU Commands 16 2 Assignments in ILS Demonstration 20 GRAPHIC LCD AIRCRAFT DISPLAY PAGE 5 1 0 INTRODUCTION This thesis consisted of building a high resolution flat panel display for aircraft use Such displays can be used to emulate just about any of the current mechanical flight instruments in the cockpit Other applications would include collision avoidance displays electronic checklists or compleatly new forms of flight instruments Many cathode ray tube CRT based displays are currently in use in aircraft such as the Boeing 767 CRT displays are large bulky and consume large amounts of power they are however still the best for high resolution applications Of the flat panel technologies such as electrolumenescent plasma and liquid crystal LCD the LCD types have by far the lowest power consumption and have the best contrast in high ambient light environments The disadvantages of the LCD display are a limited viewing angle range and moderate resolution The display chosen consists of a dot matrix LCD unit of 128 by 240 pixels with onboard drive electronics As the techn
77. elsata time EXAMPLE DO2 0501 010204F8FF lt CR gt Defines the graphic symbol shown below having a height of and a width of 1 8 pixels HGFEDCBA HEX VALUE Fig 3 Symbol 402 Once the symbol is defined it may be written to the Screen by entering PiHt XX YY lt CR gt where the upper left corner of the symbol is placed at the indicated GRAPHIC LCD AIRCRAFT DISPLAY PAGE 13 coordinates Another P command vill place another copy of the symbol on the screen at a different location To move a symbol use XX YY lt CR gt which first erases the last location of the symbol then places amp copy amp t the new coordinates To have a transparent symbol in which underlying symbols can still be seen place the symbol on the screen with the X command This command exclusive or s the symbol with the current contents of screen memory To erase the symbol execute this command a second time this removes the symbol leaving the origional background intact POINTS To turn on a specific point the L command is used The format is LXXYY XXYY XXYY lt CR gt where XXYY are the x amp nd y coordinates of the points For example to turn on the points 10 10 and 10 11 the command would be 1 1010 1011 lt Any number of points may be entered this way Because these points are not stored they can not be moved or erased vithout clearing the screen or displayinga symbol on top of them
78. h s Shared with the 8085 single board computer SBC The display controller hardvare constantly refreshes the LCD Screen with the data in display RAM The SHARP display requires data for the top half and bottom half of the screen concurrently as vell as various clock signals see Fig 8 The data is sent in serial form at 600 Kbits sec over two lines with another four lines required for clock signals The data for the tvo sections of the display are stored in seperate RAM s The addresses for display RAM are shown in Fig X The hardware thus provides the following constant refresh of the screen display RAM shared vith the 8085 all the clocks necessary to run the display TIMING GENERATOR All timing and clocks are derived from the 3MHz 8085 processor clock input 3MH see Fig 9 This signal is divided by five by the decade counter U4 to generate the 600 KHz CP2 clock vhich is the serial data rate used by the controller 2 clocks the shift registers in the display RAM section is divided by eight by counter U5 to provide the address counter clock ADCLK and is used to derive the other clocks for the display Gate U13a resets US when BRES goes lov at the end of every page Counters U6 U7 divide 2 by 240 to provide a clock CPi that is high for the last pixel of every line U6 and U7 are wired as a divide by 30 counter that is enabled once GRAPHIC LCD AIRCRAFT DISPLAY PAGE 23 every eight cycles of 2
79. ignment layers forcing the liquid crystal to tvist 90 degrees from face to face Because of the large refractive index anisotropy in the liquid crystal the plane of polarized light is guided through the cell twisting vith the crystal The cell is sandwiched between two crossed polarizers Inits off state the incoming polarized light is rotated allowing the light to pass through the second polarizer The cell is turned on by applying an AC signal across the LCD cell forcing all the liquid crystal molecules to alignwith the electric field Now the incoming light is not rotated and is blocked from passing through the cell so the pixel element appears dark Insulating layers are added on top of each electrode to insure that no DC current flows through the cell since the resulting electrolisis of the liquid crystal would ruin it GRAPHIC LCD AIRCRAFT DISPLAY PAGE 21 LIQUID CRYSTAL CELL ROW ELECTRODES ESCENAS DEDECUS 3 S ALIGNMENT LAYER 8 P P cc MEN C NO Mo BA LIQUID CYRSTAL Drs pa Rie PEN Y C D y ALIGNMENT LAYER R INSULATOR COLUMN ELECTRODES REFLECTOR ust anida des sites UD red CH FIG 6 LCD CROSS SECTION CELL OFF CELL ON pe m POLARIZER 222 POLARIZER 2 POLARIZER 2 FIG 7 TWISTED NEMATIC EFFECT TRANSPARENT OPAQUE PAGE 22 GRAPHIC LCD AIRCRAFT DISPLAY 3 2 CIRCUIT DESCRIPTION The LCD screen is bit mapped into display RAM whic
80. ircuit is built in Typical value W interface Timing Chert T 400us s Contracted Connector used MOLEX 5046 10 Winterface Signals Compatible connector MOLEX 5051 10 Description Effective Level Hat Scan start up signal Input data latch signal Data input clock signal Display data signal Upper half of screen Drive waveform alternating signal Power supply for LCD drive Power supply for logic circuit Ground potential Display data signal Lower half of screen Power supply for LCD drive For the location of Pin No refer to outline dimensions H ON L OFF 8 Circuit Block Diagram Temperature ompensation Circuit LCD Graphic Display Panel Bias Voltage Generator Circuit 1C IC2 ICs Scan Electrode Driver IC3 ICg IC4 471C 6 Signal Electrode Driver Remarks This is tentative information and subject to be changed without notice For detail specifications contact our sales department NORTH SHARP ELECTRONICS AMERICA CORPORATION Distributed by 10 Sharp Plaza Paramus NJ 07652 USA Electronic Components Division SMARP CORPORATION osaka JAPAN PHONE 2011 265 5600 NATIONAL BUSINESS GROUP TELEX 426903 SHARPAM MTER Ul UROPE ELECTRONIC COMPONENTS SALES DEPT x NIS 22 22 NAGAIKE CHO ABENO KU OSAKA 545 JAPAN Sonninstrae 3 2000 Hamburg 1 F R Germany PHO
81. k k k kk k kk k k k FUNCTION SCADR POSITION Y POSITION START OF DISPLAY RAM ADDRESS OF SCREEN LOCATION SADSV BITS TO SHIFT RIGHT SBITS CALLS FIXADD DESTROYS A B C D E F H L FROM THE X AND Y COORDINATES THIS ROUTINE CALCULATES THE CORRESPONDING ADDRESS OF DISPLAY RAM AND THE BIT OFFSET SSAD 30 y INT X 8 SBITS 8 FRC X 8 H SSAD A B X LOCATION DIV8 PSW SAVE X 8 A ZERO SCRBYT INIT TO O D A D TO START SCREEN ADD SADSV 5 IT A C LOCATION 07FH MASK MULT30 SADSV GET SCR ADDRESS D ADD 30 Y FIXADR CORRECT FOR GAP IN DISP RAM SADSV FINAL SCR ADDRESS PSW GET X 8 NO OF SHIFTS o Se he He e Ae de de de Ae He He de de e de He he He de He de de de He He He de de de de de de he de e ke Ae He keke ke e ke e k k keke kek FUNCTION DIV8 12 AV 1 GIT Dire LL Red FUNCTION INCREMENT SCREEN ADDRESS OF SYMBOL INPUTS H L CURRENT SCREEN ADDRESS SYMXCT SYMBOL X COUNTER SYMXD SYMBOL WIDTH SYMHT SYMBOL HEIGHT SYMYCT SYMBOL Y COUNTER OUTPUTS A 0 DONE 0 FLAG SET 8 BIT INTEGER FRACTION PART D INTEGER PART CALLS NOTHING DESTROYS A D E F DESCRIPTION THE 8 BIT NUMBER IN A IS DIVIDED BY 8 WITH THE INTEGER PART AND FRACTION e e 4 PART STORED IN D AND A RESPECTIVELY H L NEXT SCREEN ADD SADSV 2 SADRE SCR ADR S
82. kkkkkkkk k K CR AOl AIRCRAFT LCD DISPLAY CR AO2 SELECT MODE CR AOL 30 00 CR A02 90 45 CR A05 S B THESIS LEE MARZKE 5 84 CR AOS 10 20 CR AO3 DEMO CR A03 7A 5F CR AOA DISPLAY CR A04 95 6A CR D01 0B011818181818181899DB7E18 CR DOWN ARROW SYMBOL 01 85 75 CR PO1 A6 75 CR ENDCMD I CR HOROZONTAL BAR DOL OlOAFFFFFFFFFFFFFFFFFEFF CR D05 07013E7F7F7F7F7F3E CR CENTER MARK POS 33 34 CR ENDCMD DO2 5001 VERTICAL BAR ENDCMD 10 Av LIAM GIT THAAD 06 39vd 340C 3415 3416 341F 3420 3421 3422 342 342 3438 3439 344E 3462 3475 3476 3477 347B 347C 3490 34 4 34 0 34D2 34D3 34DC OD 3400 34 6 34E7 34 34EF 34F6 34F7 3500 3501 350A 350B 350 3524 353 3554 3555 3560 3585 3590 359 35A7 35A8 35AC 35AD 35B6 3587 3588 5830312C31CMDS4 5830322033 4E OD 4130312 54 4130312 30 4 31303130 323031302 313032302 00 4130312F 065 4430332C30CMDS6 4330303030 3830303030 3830303030 4330303030 5030332 32 5030332 32 OD 4130322F31 OD 4130332 33 4130322C32 OD 4130332C32 OD FF 4430342 31 67 3146303033 4141323032 OD 4430362C31 3832383038 3346383031 OD 5030342C36 OD 5830342F CMDS8 OD 584F362C36 OD FF REUNEN PRI 443037 2C30CMD
83. mmand to the MCG 85 E CODE CHECK OR CONVERT YALDIG Check for valid hex digit 008FH Checks 1f register A contains a valid hex digit CARRY is set 1f A contains valid hex digit carry is cleared otherwise PRYAL Converts HEX to ASCII 0092H Converts the hexadecimal digit in register C to an ASCII character in register C Converts ASCII to HEX digit 0095H Converts the ASCII character in to a HEX digit in A CNYBYTE Convert ASCII to two HEX digits 0098H Assumes the contents of registers contain two ASCII characters From these characters it forms two HEX digits as a byte of data returned in the register GRAPHIC LOD AIRCRAFT DISPLAY PAGE 65 p TEST COMPARE ROUTINES HILO Compare 16 bit integers 0080H Compares the 16 bit integers in HL and DE The CARRY flag is set if the contents of HL are larger than than or equal to the contents of DE the CARRY is cleared if the contents of HL are less than the contents of DE STRING String compare 0083H Register pair DE contain the address of STRING1 HL contain the address of STRING2 Register B contains the length of the string The CARRY is set if the strings are equal otherwise the CARRY flag is cleared STRUE Set carry and return 0086H Strue is JUMPED to by routines wishing to indicate success Strue sets the CARRY flag to indicate success and then returns to the calling program
84. ollowing discussion will assume a terminal is connected to the RS 232 port for demonstration of the individual commands The switch under the DISPLAY prompt sw3 is depressed to use the RS 232 port for input space character must first be sent to allow computation of the BAUD rate the will respond witha prompt Two types of objects may be defined and stored in the GDU strings of ASCII characters and user defined graphic symbols of selectable height and width Each string or symbol is associated vith a two digit hex number hereafter shown as This number may range from OOH to the upper two bits being used internally to distinguish between strings and symbols Once a string or symbol is defined it may be moved on the screen by an instruction to move string or symbol to the specified coordinates Other commands allow individual points on the screen to be turned on one at time the screen to be cleared and functions to be called that define or move many symbols The folloving symbology is used below THE Two digit hex number that identifies a particular string or symbol OOH 3FH XX Two digit hex number OOH EFH GRAPHIC LCD AIRCRAFT DISPLAY PAGE 11 YY Two digit hex number OOH Carriage Return ASCII STRINGS A string is first defined by typing A4HE STRING CR STRING may contain ASCII characters from 20 to 60g numbers uppercase letters an
85. ology improves higher resolution and lower cost units vill make LCD the best choice for the future As currently configured the display system is driven from a RS 232 communication port Fast graphic display response is possable over such slow link because all symbols to be used are stored in the graphic display unit s GDU internal RAM Real time commands thus need only specify new coordinates for a symbol or new text Advantages of such displays in small airplanes would include the ability to multiplex different instruments on GRAPHIC LCD AIRCRAFT DISPLAY PAGE e the same screen saving weight and panel space The entire project consisted of the following Choosing a suitable display based on the above considerations design and construction of a display controller and finally assembly language programming to Store and move text strings and symbols I became interested in this project because of my love for flying as a hobby and my desire to do a project containing hardvare design real time software development and prototype construction GRAPHIC LCD AIRCRAFT DISPLAY PAGE 7 SHARP LM24003G DISPLAY ARR EEE HHH HE i 9888 HE CONTRAST 22 2 5 sw2 sw3 sw sw POWER Ji O O O O USER SWITCHES 22 31 1 0 CONNECTOR POWER CONNECTOR 1 2 3 OOO O 2 OOO O 4 R G G T G X N N X AS N D D D 2 2 MOLEX MOLEX FEMALE SHELL MALE SHELL MALE PINS FEMALE PIN
86. splay with wide viewing angle and high contrast The unit operates from 5 12 power supplies Applications OA system Word processor POS terminal Computer terminal etc Measuring instruments Panel meter Scaler Analogue digital tester etc Outline Drawing P Gurine Dimensions Unt mm RA xm Outline Dimensions Units mm de Pin 1 125 3 101 5 Pim NO 10 Dot Display Details Units mm GRAPHIC LOD AIRCRAFT DISPLAY PAGE 54 GIC LOD ABICRAFT DISPLAY M Mechanical Specifications Unit outline dimensions 241 W x 125 3 H x 14 D Effective viewing area 179 9 W x 101 5 H 240 W x 128 H full dots Display format Dot size 0 6 W x 0 6 H 225 Dot spacing _ 0 1 SE Dot color Dark blue E Background color White Weight Approx 300 Absolute Maximum Ratings Supply voltage Logic Supply voltage LCD driver Input voltage Storage temperature Operating temperature Wi Electro optical Characteristics Ta 25 C Hem symbol Supply voltage Logic 4 75 Min Supply voltage LCD driver Vee Vss we 0 7 Voo Voo Input signal voltage a 0 3 Vop High level Low level Input leakage current Power consumption Viewing angle Contrast ratio Temperature compensation c
87. uttons are depressed simultaneousely the two pointers vill move in repetitive pattern To exit this mode hold dovn one of the four soft buttons until the pattern stops Pressing all four buttons will cause a jump to the command mode vithout clearing any symbols so that experimentation vith the instrument is possible GRAPHIC LCD AIRCRAFT DISPLAY PAGE 18 ILS DEMONSTRATION MOVE BARS 00009 RESET SOFT SWITCHES Fig 5 ILS Demonstration Screen GRAPHIC LCD AIRCRAFT DISPLAY PAGE 19 TABLE 2 LIST OF ASSIGNMENTS IN ILS DEMONSTRATION PROGRAM SYMBOLS 01 Horizontal bar O2 Vertical bar 03 Hollow boxes 04 Up triangle TO 05 Center mark 06 Down triangle FR uparrov 08 down arrow 09 right arrow Left arrow STRINGS O1 Time 00 00 00 02 120 03 300 04 MOVE BARS GRAPHIC LCD AIRCRAFT DISPLAY COORDINATES 10 37 37 10 2B 00 2B EO 61 26 33 34 61 39 A6 78 85 78 00 79 2E 03 2E 67 AG GE PAGE 20 3 TECHNICAL DESCRIPTION 3 1 LIQUID CRYSTAL CELL The liquid crystal display used in this project depends upon the tvisted nematic effect The individual molecules of the liquid crystal are asymmetric and tend to align themselves with one another This alignment may extend over distances up to 1 mm The LCD cell contains a thin film of a liquid crystal vith al

Download Pdf Manuals

image

Related Search

Related Contents

Première rencontre nationale des orchestres à l`Ecole  取扱説明書 - M  Ergoguys Califone 3068-12  MANUAL DE INSTRUCCIONES PLAN 21/62  ASUS UX305FA User's Manual  Kempomat 2500, 3200, 4200  UNION HOSPITALIERE DE CORNOUAILLE : Mode d`emploi  Severin WL 0808  USER'S MANUAL - MSTronic Co. Ltd.  DL-100  

Copyright © All rights reserved.
Failed to retrieve file