ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING Musical doorbell on AY8910 sound coprocessor. Encyclopedia of radio electronics and electrical engineering Encyclopedia of radio electronics and electrical engineering / Calls and audio simulators In recent years, many different musical calls have been described on the pages of "Radio". In most cases, they are quite simple and the result, of course, is not entirely satisfactory. The variant with the use of microprocessors offered to the attention of readers is more complex, but it has great potential. The device performs the function of a doorbell, however, after minimal refinement and selection of favorite melodies, other uses can be found for it. The musical bell is assembled from parts of SPECTRUM-compatible computers. This made it possible to achieve good results. The scheme of the device is shown in fig. 1. On the elements DD5.1 - DD5.3 made master generator. Elements DD6.1-DD6.3 form the port of the audio coprocessor, to control which only the signal A14 is analyzed. The choice of address is due to the desire of the authors to maintain compatibility with the ZX-SPECTRUM computer, which makes it possible to use a large number of existing programs and melodies. At the same time, the control of the sound coprocessor has not changed: LD BC,65533: OUT C, A - register selection; LD BC, 49149: OUT C, A - register entry; LD 60,65533: IN C, A - reading from the register. The purpose of the audio coprocessor registers is described in detail in [1, 2]. The contents of register C are not important here. It is used at will. On the elements DD7, DD5.4, DD5.5 and diodes VD2, VD3, a memory management unit is assembled. The RAM signal generated by it activates the RAM in case of memory access within addresses F800H-FFFFH (63488-65535). Otherwise, select ROM. If it is not intended to use a ROM with a capacity of more than 32 KB, the design can be simplified. To do this, remove the DD7 chip, apply the A2 signal from the processor to the VD15 diode cathode (leave the resistor R5), apply the MR signal to the CS input of the DD2 ROM (pin 20), and the A0 signal to the 22E input (pin 15). A diagram of a simplified memory management node is shown in fig. 2. It should be borne in mind that the memory field will now have 16 mappings of the same RAM. Thus, the addresses 8000H, 8800H, 9000H-F800H are equivalent. Any ZQ1 quartz resonator with a frequency of 2 MHz is applicable in the design. Chips are interchangeable with their many counterparts. Diodes - any series KD521, KD522. The resistance values of resistors and the capacitance of capacitors can be changed over a wide range. You may have to choose the resistance of resistors R1 - for stable operation of the generator and R18 - for the optimal volume level. Blocking capacitors C3-C9 are installed on the microcircuit power conductors, preferably closer to their cases. Switches: SB1 - call button; SF1 is mounted on the door frame, or any isolating switch is used (the circuit is open when the door is closed). It is best to install a three-prong reed switch controlled by a magnet, as is done in burglar alarms. A bell sounds when the door is opened and closed. It can be disabled by connecting the PA2 output (pin 19) of the audio coprocessor to a common wire. The effect is implemented in software (Table 1). The device is assembled on a ready-made board from a SPECTRUM-compatible computer or AON. It already has places for installing RAM, ROM and processors, as well as power conductors, information and address lines. The finished device, power supply and amplifier are conveniently placed in the case of a radio or tape recorder. Establishing a call begins with checking the installation. Connect the power supply and amplifier. Next, you need to write the TEST program (Table 2) to a ROM of any size (see [3]). If after sending the RESET command to the processor you hear a bell - everything is in order (perhaps, except for the RAM). Otherwise, either the generator does not start, or the parts are faulty or the installation is incorrectly performed. To check the RAM, write zero values at addresses 0001H, 0002H. If the bell rings, then the RAM is working properly, if not, try replacing the VD1 diode with two connected in series. Then you should program a musical call. To do this, perform the following steps. Using the SOUND TRACKER V3.0 music editor, you need to load any compiled melody at 63488 by selecting the "WITH PLAYER" command. In BASIC, execute the command CLEAR 4E4. From the TR-DOS operating system, execute the commands:
Merge the resulting files into one by placing in it:
If the free space of the ROM and the address tables are filled with FFH codes, without erasing the "firmware", you can add a new melody to the free space and write its address to the end of the table. The PROG program uses the following constants:
For rational use of ROM memory, it is advisable to pre-adjust the length of melodies in the SOUND TRACKER editor to the contents of cell 00F7H. If the melody is shorter, after one loss it will start over and play the required (00F7H) * 64 notes (of course, provided that the door remains closed); and if it is longer, the end of the melody will not sound. Instead of the SOUND TRACKER editor, you can use another version, adjusting, if necessary, some constants in the PROG program:
The call sometimes creates interference in the form of stripes on the TV screen. Their level can be reduced by galvanically decoupling the bell and the wires going to the button and the door sensor. This can be done using two AOT110 optocouplers, a galvanic cell from a wristwatch and several resistors. When the door is closed and the button is not pressed, the circuits are open and the battery is not discharged. You can also advise to improve the clock generator, the RAM sampling and power supply unit, the startup and reset unit. Literature
Authors: V. Ogleznev, V. Tolstukhin, Izhevsk See other articles Section Calls and audio simulators. 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: ▪ Six rules for artificial intelligence systems ▪ Huge atmospheric waves are to blame for weather disasters ▪ PIONEER Music Center with 40Gb HDD Coming at the End of May ▪ Biosensors to control skin wound healing News feed of science and technology, new electronics
Interesting materials of the Free Technical Library: ▪ section of the site Electrician's Handbook. Article selection ▪ article by Robert Louis Stevenson. Famous aphorisms ▪ article Why do our teeth decay? Detailed answer ▪ article Buckwheat. Legends, cultivation, methods of application ▪ article The Secret of the Sliding Pencil. physical experiment
Leave your comment on this article: All languages of this page Home page | Library | Articles | Website map | Site Reviews www.diagram.com.ua |