ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING AOH-Z80 interface. Encyclopedia of radio electronics and electrical engineering Encyclopedia of radio electronics and electrical engineering / Telephony Below is the original description of the AOH-Z80 interface developed in DGN LTD by Alexander Danilin (FIDO 2:5020/321) (c)DGN LTD 1993-1995 Software written in PSW SOFT by Vladimir Antonov (FIDO 2:5020/321.41) (c)PSW SOFT 1992-1995 Table of contents
Introduction The interface is designed to connect the Z-80 AOH product (hereinafter AOH) to an IBM PC/AT computer (hereinafter PC) in order to enter information about the caller into the PC. The interface uses the LPT1 port to enter information from the caller ID. The operating principle of the INTERFACE is to read information from the segment register to the ALS318 LED indicator, encode the data with a 5-bit code and then transfer it through decoupling elements for digitization in the PC port. Hardware For the manufacture of the INTERFACE you will need: Chips 262KP1B - 5 pcs Connector 25 pin for LPT port - 1 pc Connector 4 pin for PC power - 1 pc Connector 7 pin for AOHa - 2 pcs (direct and reciprocal) Resistors 120 ohm MLT 0.125 - 5 pcs Resistors 330 ohm MLT 0.125 - 5pcs Cable 7 core, braided, 2m - 1pc Install in the AOH housing on connector X1.0 (round 7 pin) Connect X1.0 pin 3 to the connector housing. Connect the resistors R1-R5(120 ohm) to the m/s segment register D0 (IR23/IR27) according to table 1. Table 1
Connect chips D1-D5 according to table 2 Table 2
The numbering of the outputs of the microcircuits goes clockwise, pin 1 is opposite the ledge (key). The remaining m / s terminals are not used and must be bitten off in order to reduce the likelihood of a short circuit. Connect resistors R6-R10 (330 ohm) to the segment register (IR23/IR27) and indicator ALS 318 according to table 3. Table 3
Connect the cable according to table 4 Table 4
Connect +5v from the 4-pin power connector to X1.1 pin 7 It is acceptable to use an external power supply 5v 0.1a with transformer isolation from the mains. ATTENTION!!! It is unacceptable to use a power supply unit used in AOH to power the INTERFACE circuits. Connect the cable sheath to the housings of the LPT and X1.1 connectors. Connect cable to connectors LPT,+5v,X1. The interface is ready for debugging. Hardware setup 1) Turn on the PC and run the program debug.exe no_aon.log, if the file is filled with code 87 go to step 2, otherwise check the cable, connectors and INTERFACE chips. Also check for +5V between pins 3 and 7 of D0-D5 ICs. Eliminate installation defects. 2) Turn on AOH, press button 5, dial the number 1234567 into the buffer, press button 1 to get the indicator reading 1n1234567, check the uniformity of the glow of the segments, if the lower right corner of the digit is lit too brightly - reduce the values of R6-R10 to 220 ohms, if it is too dim - increase R6 -R10 up to 510ohm. If the glow of any segment is completely absent, check the installation in the circuits R1-R10 and D0-D5. 3). Run the program debug.exe n1234567.log, the file must contain codes C7 77 57 DF 1F 3F 47 B7 87. If the file contains mostly codes 87 only, reduce the value of resistors R1-R5 to 51 ohm. If the file contains codes different from those given, check the installation, the serviceability of the elements and the correspondence - Z-80 data bus / IR23/27 outputs / / ALS 318 segments / LPT1 port outputs according to table 5. Table 5
After completing all the adjustment points, the device is ready for operation. Run in.exe phone.inf and you will see phone.inf number 123-4567 Software and problems when using the software Below is the source text of the INTERFACE driver ------------------------------------ Const Len = 50; Recode: Array[0..31] of Char= { 000 001 010 011 100 101 110 111 } {00}( '?','?','?','5', '?','?', '?','6', {01} '7','?','3','9', '?','0','2','8', {10} ' ',' ?','=','?', '?','?','n','?', {11} '1','?','?','4', '?', '?','?', '?'); VarBuf: Array[0..Len] of Char; I: word; { ResFile: File;} TxtFile: Text; Error: Boolean; Phone: String; {I+} Begin Write('Ready! ...'); Asm { mov di,Offset Buf mov ax,ds mov es,ax mov cx,60000 cli @@loop: mov dx,379h @@0: in al,dx stosb loop @@loop sti } mov di,Offset Buf mov ax ,ds mov es,ax mov bx,Len+1 cli @@loop: mov cx,$900 mov dx,$379 @@loop0: in al,dx cmp al,$87 loopz @@loop0 in al,dx in al,dx in al,dx in al,dx in al,dx in al,dx in al,dx in al,dx shr al,3 xor ah,ah mov si,ax mov al,byte ptr Recode[si] stosb mov cx,$900 @ @loop1: in al,dx cmp al,$87 loopnz @@loop1 or cx,cx jz @@end dec bx jnz @@loop @@end: sti mov Error,False or cx,cx jnz @@ok mov Error,True @@ok: End; If Error Then Writeln('not detected!') Else Begin Writeln('done.'); { Assign(ResFile,ParamStr(1)); Rewrite(ResFile,1); BlockWrite(ResFile,Buf,Len+1); Close(ResFile);} I:=0; Phone:='???-????'; While I<=Len do Begin If (Buf[i]='1') and (Buf[i+1]='n') Then Begin Asm mov si,Offset Buf mov di,Offset Phone add si,i add si ,2 mov ax,ds mov es,ax mov al,8 stosb movsb movsb movsb mov al,'-' stosb movsb movsb movsb movsb End; Writeln('Pnone: "',Phone,'"'); If Pos('=',Phone)=0 Then Begin Assign(TxtFile,ParamStr(1)); Rewrite(TxtFile); WriteIn(TxtFile, Phone); Close(TxtFile); end; break; end; Inc(I); end; end; end. The driver is written in TP 7.0. I must say that this is not quite a driver, or rather not a driver at all ;-) This program outputs to the file a number that is lit on the AOH indicator at the time of its launch. Possible incompatibilities and methods for their elimination. 1). The program hangs - IBM PC with a processor below 286. - the program does not work and will not work. 2). The number is entered incorrectly or incompletely in a PC - IBM PC with a slow processor or in multitasking. - you can try to raise the bus frequency and/or reduce the quantization time in a multitask. 3). INTERFACE does not work on a specific PC, on others it works - IBM PC with HGA display or with non-standard LPT addresses, as well as LPT2-3. - you can try to fix the LPT port addresses in the source code. four). The number is not read from the indicator Correspondence of codes received from the port with symbols on the indicator: - 87 1 - C7 2 - 77 3 - 57 4 - DF 5 - 1F 6 - 3F 7 - 47 8 - 7F 9 - 5F 0 - 6F - - 97 n - B7 d - F7 H - FF Conclusion DGN LTD wishes you successful production and use of the INTERFACE. We hope that you will connect our INTERFACE to your application programs and our complex life will become a little better thanks to this. We really want to see these programs and therefore we ask you to send them to us. We GUARANTEE that these programs will not be distributed if you specify it in the description for them. We will listen with attention to your comments on the improvement of the interface, as well as on inaccuracies and typos that may be made in this description. We will be sympathetic to your desire to embed the interface in commercial software or to release it serially in factory products. If you are interested in the interface, but you cannot make it yourself - we will be happy to help you. You can contact us on FIDO NET - 2:5020/321, call DGN LTD BBS - - (095) 582-4922 or call 582-49-21 from 19:23 to XNUMX:XNUMX to ask Alexander. Author: DGN LTD, Alexandr Danilin (2:5020/321), Mytishhi; Publication: N. Bolshakov, rf.atnn.ru See other articles Section Telephony. Read and write useful comments on this article. Latest news of science and technology, new electronics: Artificial leather for touch emulation
15.04.2024 Petgugu Global cat litter
15.04.2024 The attractiveness of caring men
14.04.2024
Other interesting news: ▪ Sound card Creative Sound Blaster Z SE ▪ Samsung 3,2TB NVMe SSDs with 3D V-NAND Technology ▪ Canon EOS R6 Mk II Full Frame Camera ▪ Anesthesia works the same way on plants as it does on people. News feed of science and technology, new electronics Interesting materials of the Free Technical Library: ▪ section of the site Children's scientific laboratory. Article selection ▪ article All deaths out of spite. Popular expression ▪ article Who and when went on strike while in space? Detailed answer ▪ article Operation of electric hoists. Standard instruction on labor protection ▪ article Turning two coins into one. Focus Secret
Leave your comment on this article: All languages of this page Home page | Library | Articles | Website map | Site Reviews www.diagram.com.ua |