MZ·IE02 SHARP SERVICE MANUAL CODE: 00 ZMZl EO 2 / /-E GP I/O INTERFASE MODEL ~---------------------------- MZ-1 E02 CONTENTS ----------------------------~ 1. WHAT IS A GP I/O INTER FACE? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. SPECIFICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 DATA INPUT/OUTPUT FORMAT . . . . . . . . . . . . . . . . . . . . . . . . . .
MZ·IE02 1. WHAT IS A GP 110 INTERFACE? 3. DATA INPUT/OUTPUT FORMAT The General Purpose Input/Output Interface (GP liD) is designed for connecting general low-speed peripheral units (e.g. The input/output format for data and control signals including positive/negative logic, code length (8-bit/7-bit code), and parity mode (even parity/odd parity/no parity) shOUld be set up in accordance with the input/output format of the peripheral unit to be connected.
MZ-1E02 4. POSITIVE LOGIC AND NEGATIVE LOmC This I/O interlace "can be set for positive logic or negative "logic, independently f~r input data, output data, input can... ~r' ~ig!lal~, and output c9ntro] signals. The logical mode ,ot;QJltput,R()ntrol sigrais js set by,the DIP swjt~h on the int~rfac~ PC bo~rd and the logical mode of other signais is ,~et l!sing a command_word (GSET commanc;lJ. For further . details,' see Pllrt VU,. Prograrnmin~I'rp., 1-5 and Appendix 4~ Setup of the DIP switch; p. A-5.
MZ-IE02 6. CONNECTION OF PERIPHERAL DEVICES 1. PERIPHERAL DEVICES THAT CAN BE CONNECTED. General low-speed peripheral devices (e.g., measuring instruments, printers, X-V plotters, etc.) having parallel interfaces can be connected. The Model-3500 Series Business Computer Main Unit can also be connected to another computer having a parallel interface.
MZ-lE02 In actual operatio'n, -I ENTER I key must be pressed at the enci.---or-~ach- _pro-gram step. (For' m~ltiple statement :.en_try, statements must' be separated Note 1) 2. GSET This command specifies the logical polarity of Input/ _ output ~ata signals and input control signals. using a colon ( : ).} Note 2) th~ ,Enter the program with MZ-1E02 installed. This command is effective only-for channels and ports in the automatic handsha"king mode. 1.
MZ-lE02 Format 2) GIN 3. GIN This command enters data. manual mode input command. I I X, N, CC, DJ - D - . - GIN-.-~ch".r.c'.r ~ l...cD-J-=-~~ (SYNTAX) f,\ _ I Channel number (0, 1) Variable for inputting data End code 1 End code 2 X N C 11 E : Type of signals D ........ Data signals C ........ Control signals A: Numeric variable for inputting data The syntax differs in the automatic handshaking mode and manual mode.
MZ·IE02 Example) 10 GOUT 0, "ABC" :\ Format3) GOUT This program outputs literal s1:i-iri~j' (lifer'aT constanW" ASC" data followed by a CR code and LF code forchanriel O. Note) For output data in .rieQCitive logic as specified by the GSET comman~.~:· ·'~oinpl~~entarY. :d~tCl.: (having inverted poia'rity) will be outP~l"t.· (This r'ule also applies to Format 2.) Format2)·G.OUT " x·., USING ri'l· S I'(Y) I A$ I IMAGE X.,h"Gha~reL"~mb~\(q,J). ':'-'f;i.; .,;, L,if)~ mJwb~rva~ye_.
MZ·lE02 6. A SIMPLE PROGRAMMING EXAMPLE The GBIT command verifies the logical level of a pin designated by the numeric expression Y for an input signal designated by the character string C for a channel designated by the numeric expression X, and assigns "1" to numeric variable A if the state is ON (high level) or assigns "0" to numeric variable A if the state is OFF (Iow level). If (X, J is omitted, a signal on channel 0 is verified.
~xample Example 2 ) " 3) SampJI:! pr.ogram de~c;ribing. cfClt~_ transfer, with .00Cinual mode· l,Isjng.·a_. mail"") ljnit _MpQe_I-3500 seri.es and' printer [MZ'1 P02]" Sample program describing data transfer with manual mode using two sets of main unit Model~350n ~eries. 10 G81T-'o:;;aC",,3-.-0-:;.;, ... ;. _____ ..-_~._ Output controf_~ig;'-al"~12 OFF. ~g '~~~~i),:;~~i:-;:~ ,- GMOOE 0, "0". "8" ....... -----.---.----- Sets the .mQge ,(OjjtP~t portJ. GOUT O. "O".A .-.~---- ••.•• -.
MZ-lE02 2. 7·BIT ASCII CODE TABLE 8. ERROR CODE TABLE Error code number Meaning lE R NI (odd number) PariW error in data entry. 121 123 Improper input data in automatic handshaking mode. 125 The data entry variable overflows in automatic 127 handshaking mode. Improper output data in manual mode. Note) An erroneous program step indicated by an odd number error code (ERN) can be skipped using the ON ER ROR statement. Error code number Meaning lE R NI (even number) Hardware error.
'MZ-IE02 11_ SETUP OF THEiDIP'-SWITCHi' ., 5. The message as sti9YY~rf~~:~Frg. 7"a'~pJiih~~)wt)e'n3:tj'~ t~;i normally. __ _----------_. . _.,---The DIP switc~(t'h the interface PC boar'dls\ised to estaolish th~si~t~ ,of thErQutput -co'nir-QI~5igr::!al.s Jmmej:fiately after powe~ - ... · ! Fig. 2,-----------,::-.-,-,--,-:-:-:--, ~1{S-~Efef~~'-S~itc~-e-d dn.;:thlltlg!c~1 pol~rj~y "2f ,t~e;9~tPjjt;'cohtr6~ ~rgn~ls, ~tc. - ---_. - -- -"~i - ,, i -, L~.1tcf:t-:~ .
~ ~ ."v IREQ 0 R' )~1I-4 '" 2BB o ;oV ,co '"'''eo -15 , le i17 J :.tLsoo LS27 B ,,'" 1 _ 2'(12 lOOP 1R: ~ 3 LSIO .e ~6 ,- '" se WR , a ~'" m ~ e ~ LS3Z ~ LS3Z ~4B V '00 , D1 30 U4 D3 ~l 00 ~21l' l::::::J. 00 "--" '" PI I---l!' 'IJ [)7 •M -i" ~:i "wo '''' 100 cs ,\9 \10 B AO '00 ~IWE 100 ~O CS 20 OF. .....:=:J:S ~A9 q, R1~ BA6 P'AZ ~AI ~A3 P A4 ~AS 2\I1'E 100 20 DE I" 16 ,J1;= R ~ ~ .
MZ·1E0;2 14. MZ-1E02 COMPONENT LOCATION CPU Side B GNO Vcc RO DO 02 04 06 AD A2 A4 A6 No Cable Side A 1 2 3 GNO 4 Vcc 5 6 SYSRES 7 ijiffi 8I 01 03 9 05 10 07 11 A1 12 A3 13 A5 14 15 A7 A8 A10 A12 16 A9 17 An 18 19 20 TORQ 21 Ml 22 MREQ 23 24 2& 26 27. RoM x 28 29 GNO 30 SLOT GNO (PARTS SIDE) 12 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 0 0 0 o. 1 2 3 4 5 6 7 8 9 10 0 0 0 0 0 0 0 11 0 12 i 1 i .
MZ·IE02 15. PARTS LIST [I] Electronic parts NO..
,I"~ ,
SHARP SHARP CORPORATION Industrial Instruments Group Reliability & Quality Control Department Yamatokoriyama, Nara 639-11, Japan Y.F Jun.