Design of voice broadcast recorder based on voice chip and AT89S52 single chip microcomputer

Publisher:fuehrd努力的Latest update time:2011-11-22 Keywords:ISD4004  AT89S52 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

introduction

This paper introduces a design of a voice recorder based on voice storage and automatic playback system. The design is centered on ISD4004 voice chip and AT89S52 microcontroller, which realizes voice storage and automatic playback well.

1 Hardware Design Principles

The main function of the voice broadcast recorder is to realize voice storage and timed playback. There are many ways to realize voice storage and timed playback, and there are many devices available for MTD2002. Due to the emergence of microcontrollers such as single-chip microcomputers and the development of digital circuit technology, voice storage and automatic playback have become easy to achieve. This design uses a single-chip microcomputer as a microcontroller. The word length of the single-chip microcomputer has developed from 4 bits, 8 bits, 16 bits to 32 bits. At present, these single-chip microcomputers with different word lengths exist in the market at the same time, and users can choose according to different needs. This system uses the AT89S52 single-chip microcomputer with a word length of 8 bits as the controller.

At present, there are many voice chips that can be used with single-chip microcomputers, and there are many voice chips with excellent performance. The ISD4004 voice chip produced by ISD Company in the United States is one of them. The ISD4004 chip adopts CMOS technology and contains oscillators, anti-aliasing filters, smoothing filters, audio amplifiers, automatic squelching and high-density multi-level flash storage arrays. The pins include power supply, clock, voice signal analog input/output terminals, and MCU interface (SPI interface). The chip adopts multi-level direct analog storage technology, and each sample value is directly stored in the on-chip flash memory, so it can reproduce the voice very realistically and naturally.

The recording and playback time of the ISD4004 series single chip is 8 to 16 minutes, and the sampling frequency can be 4.0/5.3/6.4/8.0 kHz. The lower the frequency, the longer the recording and playback time, but the sound quality will be reduced. The chip design is based on the fact that all operations must be controlled by the microcontroller, and the operation commands can be sent in through the serial communication interface (SPI or Microwire). Due to the many advantages of ISD4004, this design uses it as the recording and playback device.

The system is connected to an external clock chip PCF8563, a matrix keyboard LED display and an E2PROM AT24C01. In order to improve the voice quality during recording, the signal-to-noise ratio of the input end must be improved. Therefore, a single-ended input of a transistor (9014) amplifier circuit is used at the input end of the system, and the output end of the system is amplified by an audio power amplifier LM386 to drive the speaker. The system block diagram of the entire system is shown in Figure 1.

[page]

2 Hardware Design

2.1 Voice input and output circuit design

The voice signal converted into an electrical signal by the electret microphone is very weak and needs to be amplified before being sent to the voice chip. The purpose of this is to improve the signal-to-noise ratio of the signal to achieve better noise suppression. Since the acoustic-to-electric conversion device uses an electret microphone, the post-amplification circuit uses a triode as an amplifier device to meet the requirements. In this design, the voice signal output from the voice chip is very weak and cannot directly drive the speaker, so a power amplifier circuit is added between the voice chip and the speaker. The power amplifier circuit uses the audio power amplifier LM386 produced by National Semiconductor Corporation of the United States and is composed of a small number of capacitors and resistors. The power amplifier circuit has good amplification effect and low noise, which can meet the requirements of this design.

2.2 Display Circuit Design

The display part of this design uses LED digital tubes. In order to increase the brightness of the LED display, in this design, the a, b, c, d, e, f, and g pins are connected in series with 300 Ω resistors and then connected to 5 V voltage. This design uses software lookup table output. When the system is not recording or playing, it is necessary to display information such as year, month, day, hour, minute, second, and week; when the system is recording or playing, it is necessary to display information related to recording or playing. In this way, the entire system requires a total of 15 digital tubes. In order to save the I/O port of the microcontroller, the display part uses 74LS154, and the interface between the microcontroller and the LED uses a dynamic interface. The 74LS154 is a 4-wire 16-wire decoder, which is used to decode the output of the microcontroller and use it as the chip select signal of the LED.

2.3 PCF8563 interface circuit design

PCF8563 is a low-power CMOS real-time clock/calendar chip produced by Philips and is an I2C bus interface device. In the design, PCF8563 is used to provide time and calendar information. When there is no recording or playback operation, this design is equivalent to a perpetual calendar; when recording or playing, PCF8563 is used to time each recording or playback, and all time information is displayed through the LED digital tube. Since PCF8563 is an open drain, a 5.1 kΩ pull-up resistor must be added. The interface circuit design of PCF8563 and AT89S52 is shown in Figure 2.

[page]

2.4 ISD4004 interface circuit design

This design uses the ISD4004-16M voice chip. This voice chip can record for 16 minutes. It has a port called RAC, which is the row address clock. Each RAC cycle indicates that the ISD memory has been operated for 1 row (the memory in the ISD4004 series has a total of 2,400 rows). Therefore, the number of row addresses at the RAC end corresponds to the number of rows in the memory in the voice chip, that is, the initial and end addresses of each recording stored in the voice chip correspond to the unique number of RAC row addresses. Therefore, it is only necessary to connect the RAC end to the counting end of the microcontroller and record the number of RAC row addresses to realize the entire recording and playback operation, and the counter of the microcontroller does not need to be interrupted. Based on the above ideas, the interface circuit between ISD4004 and the microcontroller is designed as shown in Figure 3.

3 Software Design

The program design in this design includes the following parts, namely keyboard processing program, ISD4004 playback driver, ISD4004 recording driver, time correction program, recording subroutine, playback subroutine, playback time setting subroutine, playback selection program, and subroutine design. Figure 4 is the main program flow chart.

[page]

4 System Testing

After the system is powered on, all 15 digital tubes will light up for about 3 seconds to test the quality of the digital tubes. After that, the digital tubes will display information such as year, month, day, week, hour, minute, and second. When the record button is pressed, the system starts recording. During recording, the digital tube will display the word "SAVE" and the time information of the recording; when the confirm button is pressed, the recording of the voice segment ends, and the digital tube re-displays the time information. When the play button is pressed, the system starts playing, and the digital tube will display the word "PLAY" and the time information of the recording. After the playback ends, the digital tube will return to the time display interface. When the time correction button is pressed, the time can be corrected; when the confirm button is pressed, the time correction ends. This system can record for 15 minutes and can record 4 recordings. When the play setting button is pressed, the playback time of each recording can be set; when the play selection button is pressed, any of the 4 recordings can be played.

This system will produce a small amount of noise when playing recordings, which may be caused by the following reasons:

(1) The entire system is completely hand-welded, and there is interference between the lines;

(2) The digital ground and analog ground of ISD4004 are not routed separately, but are all connected together, causing interference;

(3) The amplification factor of the voice input amplifier circuit is not enough and the noise is not adequately suppressed.

The whole system is reasonably designed, with a simple peripheral circuit structure, which is convenient for debugging; the microcontroller has a remaining I/O port, which is convenient for system upgrade and expansion; all programs of the microcontroller are written in C-51, which is convenient for debugging and reading. The whole system works stably and is easy to operate. The design principle of this design can be used on buses as a voice station announcer, and can also be used in public places such as banks and hospitals that need to automatically broadcast voice information. A slight expansion on the basis of this design can meet the needs of practical applications.

Keywords:ISD4004  AT89S52 Reference address:Design of voice broadcast recorder based on voice chip and AT89S52 single chip microcomputer

Previous article:Design of LED display system based on 51 single chip microcomputer
Next article:Interface circuit and source code between AT89C52 microcontroller and DS18B20

Recommended ReadingLatest update time:2024-11-16 18:10

Serial communication control of LCM display based on AT89S52
1 Introduction The revolutionary progress brought by computers has penetrated into various industries, and the definition of computers in the traditional sense has also changed greatly. Single-chip microcomputers are referred to as Micro-Controller/Embedded-Controller. With its high cost performan
[Microcontroller]
Serial communication control of LCM display based on AT89S52
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号