Design of trunking radio communication module based on ISD4004

Publisher:清新风华Latest update time:2014-03-13 Source: elecfansKeywords:ISD4004 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  This system uses a single-chip microcomputer as the main control chip, ISD4004 as a voice recording and playback chip, and cooperates with related peripheral circuits and control switches to achieve concealed communication in special occasions. The user only needs to record the required voice in advance, and press the corresponding button during work to send the voice from the trunking radio. All kinds of trunking radios can be used with this module as long as they can provide four wirings: voice input, voice output, PPT and grounding.

  1 Working Principle

  The system is mainly divided into two parts. One is the voice input part before use. That is, users can record on demand according to their actual needs. Through the system's peripheral buttons, after pressing the recording button, the microcontroller tells the ISD4004 chip to enter the recording mode and the starting address of the recording through the SPI serial input. The sound input by the microphone is filtered and amplified and input to the ISD4004 to achieve recording. The other part is that during use, when the staff needs to speak, they can press the corresponding button to play the voice. After the user takes action, the microcontroller tells the ISD4004 chip to enter the playback mode and the starting address of the playback through the SPI serial input. At the same time, the microcontroller triggers the PPT control pin of the cluster radio to realize the input and forwarding of voice from the ISD4004 chip to the cluster radio. Figure 1 Schematic diagram of working mode

  

Working mode diagram

 

  2 Circuit Design

  The circuit design of this system is shown in Figures 2, 3, and 4.

  

System circuit design

 

  

System circuit design

 

  When working in voice input mode, press the recording button 1, the sound is input from the microphone and input to the transistor for effective amplification. Then it is input to the ANA IN+ pin of ISD4004 after filtering. The voice signal of ISD4004 is input by the coupling capacitor, with the maximum amplitude of 32mV peak. The coupling capacitor and the input impedance of the resistor at this end determine the low-end cutoff frequency of the chip frequency band. At this time, the SS pin is connected to the P00 pin of the microcontroller and used as a chip select signal. The MOSI (serial input) pin is connected to the P01 pin of the microcontroller. The microcontroller writes 0xB0 through software, which commands ISD4004 to work in the "recording from the specified address" state to record. After the recording is completed, press button 1 again to stop recording.

  When working in the key forwarding mode, press button 2, the sound will be output through the AUD OUT port of ISD4004 and connected to the MIC input signal line of the trunking radio. Two capacitors of different sizes can be connected in parallel (2.2μf and 22μf are selected in the test) to filter the high-frequency and low-frequency noise in the line respectively. The MOSI (serial input) pin is connected to the P01 pin of the microcontroller. The microcontroller writes 0xE0 through software, which commands ISD4004 to work in the "play from the specified address" state. The system will send different playback start addresses according to the key. ISD4004 will automatically play until it encounters EOM. In the playback state, the P10 port of the microcontroller directly drives the PPT input signal of the trunking radio. P10 is set to a low level through software to realize the PPT function and sound forwarding of the trunking radio. It is worth noting that the MIC input impedance of different trunking handsets is different. If necessary, the output impedance of ISD4004 needs to be adjusted.

3 Software Design

  The program design is shown in Figure 5. After the ISD4004 chip is powered on, it will be initialized. At this time, the STC89C52 microcontroller will detect the keys of the 3×3 control matrix connected to the periphery and obtain the corresponding binary value. According to the value, the microcontroller control program will automatically determine whether to use the recording or playback function and generate the corresponding voice start address. According to the judgment, the microcontroller writes the SPI keyword to the MOSI pin bit by bit, which completes the microcontroller's notification of the function and start address of ISD4004. After completing the recording work, ISD4004 generates an EOM interrupt. Once the playback encounters EOM in the future, ISD4004 will generate an interrupt and input it to the microcontroller external interrupt INT0, returning to the starting point. [page]

Programming

 

  In order to ensure good readability and maintainability of the program, C language is used for programming. Several main subroutines are as follows:

  ISD4004 SPI write subroutine

  

ISD4004 SPI write subroutine

 

  

ISD4004 SPI write subroutine

 

  

ISD4004 SPI write subroutine
 
  4 Debugging Environment

  The hardware environment for debugging this system is a combination of a concealed communication module and a MOTOROLfA MTH850 handheld radio. The software environment uses the KEIL, C programming environment and the STC-ISP microcontroller burning program. The specific contents are as follows:

  In the hardware debugging environment, in addition to the general settings, you also need to pay attention to the following points:

  (1) Selection of the four wires for voice input, voice output, PPT and grounding in the cluster radio. Cluster radios are generally equipped with a dedicated data interface. The corresponding signal leads can be taken out according to the instructions. However, general cluster radios do not have obvious data input and output ports, and radios of different brands usually use different technical standards. However, whether it is an analog cluster radio or a digital cluster radio, it usually has a wired headphone microphone interface. By cutting off the wiring and studying it, we can know the definition of the four wires and then determine the specific locations of the four wires for voice input, voice output, PPT and grounding of the radio.

  (2) The MIC receiving sensitivity of the clustered radio needs to be adjusted. The so-called MIC receiving sensitivity of the radio refers to the sensitivity at which the built-in/external microphone of the radio can be turned on. If the sensitivity is too low, the PPT function of the clustered radio cannot be effectively triggered. Experiments have shown that if the PPT function of the radio needs to be triggered through the headphone interface of the radio, two conditions must be met at the same time. First, the external PPT line needs to be set to 0 (this function is realized through the play() function in C language programming). Second, there must be sound input on the external MIC line, that is, ISD4004 has sound output. Both conditions must be met at the same time to effectively trigger the PPT function of the radio. Therefore, in the radio burning software, the MIC receiving sensitivity can be appropriately increased to avoid the situation where the PPT cannot be triggered due to insufficient sensitivity.

  (3) Adjustment of output sound quality. In the voice output part, a single capacitor is usually used for noise filtering. After experiments, the noise filtering effect of a single small capacitor is average. Therefore, by connecting two capacitors, one large and one small, in parallel, the high-pitched noise and the low-pitched noise in the sound output process are filtered out respectively. In this project, the capacitors are selected as 2.2μf/50V and 22μf/35V respectively. Experiments have shown that after connecting two capacitors in parallel, the voice output quality of this product is effectively improved.

  (4) Implementation of working power supply. The system mainly involves the working voltage of the microcontroller and the working voltage of the ISD4004 chip, which are 5V and 3.3V respectively. The 5V working voltage can be obtained by connecting 4 1.3V rechargeable nickel-hydrogen batteries in series. After testing, its working voltage and working time meet daily requirements. The 3.3V voltage is dedicated to the ISD4004 voice recording and playback chip. Since the chip includes the interchange process of analog and digital signals, it has higher requirements for power supply. This system uses the HT7133 voltage-stabilized power supply chip to provide a stable 3.3V DC output. Of course, if conditions permit, you can also choose a microcontroller with a 3V working voltage to simplify the circuit.

  During software debugging, there are several key points:

  (1) By calling the at89x52.h function library, the external interface of the microcontroller and the internal actual address are effectively mapped. This greatly reduces the programming complexity of the main function and functional function, and improves the readability and maintainability of the program.

  (2) By effectively setting the microcontroller burning program, the software editing and burning work is completed. The software selected in this project is STC-ISP burning software, which is STC's microcontroller burning software. The interface is shown in Figure 6.

  After completing C programming in KEIL C and generating a valid HEX hexadecimal file, just select MCU Type in sequence: select the corresponding CPU type, here select STC89C52RC;

  COM port selection: Select the COM port corresponding to the computer;

  Baud rate: maximum 115200, minimum 1200;

  Double speed: Select 12T/single speed

  Other options can be left as default. After completing the option settings, select "Open Program File" to download the corresponding source program, and then click "Download" to complete all the MCU code burning work.

  5 Conclusion

  This system makes full use of the headphone and microphone integrated jacks of various trunking radios, combining the high-definition voice recording and playback of ISD4004 with the single-chip control function. It has low cost and good compatibility. It is suitable for covert communication applications of various analog/digital trunking equipment and can play a special role in specific occasions.

Keywords:ISD4004 Reference address:Design of trunking radio communication module based on ISD4004

Previous article:Multi-channel temperature automatic inspection system
Next article:How to achieve high-precision and high-stability DA output

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号