Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

AOH-Z80 interface. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Telephony

Comments on the article Comments on the article

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

  1. Introduction
  2. Hardware
  3. Hardware setup
  4. Software and problems when using the software
  5. Conclusion

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
microchip IR23/27 pin 2 pin 5 pin 12 pin 15 pin 16
data resistors R1 R2 R3 R4 R5

Connect chips D1-D5 according to table 2

Table 2
m / s pin 1 pin 2 pin 3 pin 7 pin 8
D1
D2
D3
D4
D5
GND_AOH
GND_AOH
GND_AOH
GND_AOH
GND_AOH
R1
R2
R3
R4
R5
X1.0 pin 7
X1.0 pin 7
X1.0 pin 7
X1.0 pin 7
X1.0 pin 7
X1.0 pin 3
X1.0 pin 3
X1.0 pin 3
X1.0 pin 3
X1.0 pin 3
X1.0 pin 1
X1.0 pin 2
X1.0 pin 6
X1.0 pin 4
X1.0 pin 5

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
microcircuit D0 (IR23/27) pin 2 pin 5 pin 12 pin 15 pin 16
compensation resistors R6 R7 R8 R9 R10
indicator ALS 318 pin 6 pin 14 pin 8 pin 16 pin 12

Connect the cable according to table 4

Table 4
LPT port connector X1.1
pin 11
pin 10
pin 12
pin 15
pin 13
pin 20
X1.1 pin 1
X1.1 pin 2
X1.1 pin 6
X1.1 pin 4
X1.1 pin 5
X1.1 pin 3

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
LPT port pins pin 10 pin 11 pin 12 pin 13 pin 15
ALS 318 segments B A E G F
Conclusions of IR23/27 pin 5 pin 2 pin 12 pin 16 pin 15
Data bus Z-80 D1 D0 D4 D6 D5

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
1 - AOH does not display indicator blanking at the moment of switching segments - change AOH version.
2 - AOH produces something else instead of 1n at the beginning of the segment - you can try to correct the recoding in the source code (done for the version of ARCTUR-36 which produces Hd) or change the AOH version.

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.

<< Back

Latest news of science and technology, new electronics:

Artificial leather for touch emulation 15.04.2024

In a modern technology world where distance is becoming increasingly commonplace, maintaining connection and a sense of closeness is important. Recent developments in artificial skin by German scientists from Saarland University represent a new era in virtual interactions. German researchers from Saarland University have developed ultra-thin films that can transmit the sensation of touch over a distance. This cutting-edge technology provides new opportunities for virtual communication, especially for those who find themselves far from their loved ones. The ultra-thin films developed by the researchers, just 50 micrometers thick, can be integrated into textiles and worn like a second skin. These films act as sensors that recognize tactile signals from mom or dad, and as actuators that transmit these movements to the baby. Parents' touch to the fabric activates sensors that react to pressure and deform the ultra-thin film. This ... >>

Petgugu Global cat litter 15.04.2024

Taking care of pets can often be a challenge, especially when it comes to keeping your home clean. A new interesting solution from the Petgugu Global startup has been presented, which will make life easier for cat owners and help them keep their home perfectly clean and tidy. Startup Petgugu Global has unveiled a unique cat toilet that can automatically flush feces, keeping your home clean and fresh. This innovative device is equipped with various smart sensors that monitor your pet's toilet activity and activate to automatically clean after use. The device connects to the sewer system and ensures efficient waste removal without the need for intervention from the owner. Additionally, the toilet has a large flushable storage capacity, making it ideal for multi-cat households. The Petgugu cat litter bowl is designed for use with water-soluble litters and offers a range of additional ... >>

The attractiveness of caring men 14.04.2024

The stereotype that women prefer "bad boys" has long been widespread. However, recent research conducted by British scientists from Monash University offers a new perspective on this issue. They looked at how women responded to men's emotional responsibility and willingness to help others. The study's findings could change our understanding of what makes men attractive to women. A study conducted by scientists from Monash University leads to new findings about men's attractiveness to women. In the experiment, women were shown photographs of men with brief stories about their behavior in various situations, including their reaction to an encounter with a homeless person. Some of the men ignored the homeless man, while others helped him, such as buying him food. A study found that men who showed empathy and kindness were more attractive to women compared to men who showed empathy and kindness. ... >>

Random news from the Archive

Clothing self-healing technology 17.05.2023

Researchers from the UK drew attention to the unusual properties of materials created on the basis of mushroom mycelium. It turned out that it can be used as an alternative to conventional fabric. In addition, mycelia demonstrate the ability to self-repair sufficiently to reproduce the conditions in which they were grown.

Recent experiments have shown that the prototype mycelium-based material is able to plug holes and openings. After regeneration, the strength of the restored areas is not inferior to the strength of intact fragments, although visually they will differ. The process of mycelium recovery takes about two days, but scientists believe that this time can be reduced.

The new approach to growing mushrooms does not involve the destruction of chlamydospores (spores that help the fungus survive in adverse conditions - such as drought or low temperatures). Also, if necessary, chlamydospores can be "revived" in the laboratory.

Scientists are sure that thanks to this discovery, materials that can even replace skin may appear in the future. They will be used for tailoring, car seats or furniture decoration. Damage can be repaired relatively quickly - the fabric will do it itself.

Other interesting news:

▪ Sound card Creative Sound Blaster Z SE

▪ Fire blanket for car

▪ 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 Temperature indices of dielectric materials. Encyclopedia of radio electronics and electrical engineering

▪ article Turning two coins into one. Focus Secret

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024