Public telephone meters are common in daily life. The current telephone meters cannot adapt to the discount time of the telecommunications system. This meter uses a manual meter to meet the change of the discount time at any time. At the same time, the meter records accurately and can store 200 call fee records; the time, area code, rate, etc. can be reset through the phone, and the half-price and full-price conversion can be realized manually; low power consumption, small size, and low cost.
System Design
The system consists of a W78E54B microcontroller, an off-hook detection circuit, a DTMF decoding circuit, a keyboard, and an LED display. The principle block diagram is shown in Figure 1.
Among them, the W78E54B microcontroller mainly completes the calculation and storage of telephone charges. The off-hook detection circuit completes the detection of the system's off-hook, ringing, talking, hanging up and other states. The DTMF dual-tone multi-frequency circuit uses CMD8870 to decode dual-tone multi-frequency signals. The system realizes the human-machine interface through three keys: query, reset, and billing. The LED display uses two identical 12-bit LED display screens, which are installed on both sides of the meter to display the telephone charges of users and customers. The interface circuit of the microcontroller and DTMF is shown in Figure 2.
When a phone dials, the phase-locked loop composed of LM567 detects and makes the output pin low. The signal is directly sent to the P2.0 port of the microcontroller. The microcontroller enables the CMD8870 chip decoding output through the P0.2 port, and Q1 to Q4 are output to P0.3 to P0.7 of the microcontroller respectively. At the same time, the microcontroller detects the arrival of the next dial through the STD port so that it can be received in time. The decoding output of the CMD8870 chip is shown in Table 1.
The software block diagram of this system is shown in Figure 3.
When the phone is picked up and there is a reverse polarity signal, the microcontroller starts the timer and starts automatic billing by seconds or minutes. If there is no reverse polarity signal, the billing will automatically start in 15 seconds or the automatic billing will start immediately by pressing the billing key.
When any of the meter buttons is pressed for more than 2 seconds, the system enters the setting state. When it is less than 2 seconds, the corresponding key action is entered, and the corresponding actions of each button are as follows.
Reset button: After a call is completed, the meter enters the voice prompt state, the charge is completed, press the reset button, stop the voice, and re-bill.
Query key: When the phone is on-hook, this key can be used to query the recent call records, including serial number, phone number, call time and amount, etc.
When the query and billing keys are pressed at the same time, the full-price and half-price billing conversion is realized. The system starts to bill at the full price, and pressing these two keys at the same time is half-price billing.
When any of the above keys is pressed for more than 2 seconds, the time, area code and rate can be set through the phone buttons.
The setting is mainly for users to set parameters such as call rate and time. When the phone is on-hook, you can set some rates and area codes through the phone buttons. For example, the local long-distance area code setting command format is *1+AAAA+#, where *1 is the command number, AAAA is the local area code, and if the local area code is less than 4 digits, use "*" to complete it, and # is the command end character.
In setting the rate, FFF refers to the set rate. For example, if the rate is 0.60 yuan/minute, FFF refers to the three digits 060. Similarly, other settings are shown in Table 2.
Conclusion
This meter can realize accurate billing and accurate dual-tone multi-frequency signal reception, and can be used for billing of dual-tone multi-frequency telephones in various public telephone stations and other places.
Previous article:Application of Serial Interface Keyboard Controller in Single Chip Microcomputer System
Next article:Application of single chip microcomputer in power control of electromagnetic cooker
- Popular Resources
- Popular amplifiers
- Power Engineering Design Manual 27 Engineering Hydrology and Meteorology
- Learn to repair variable frequency air conditioner easily with zero basic knowledge (Zhang Yunkun and Zhang Xinde)
- Debugging and application of Mitsubishi CNC system
- Digital Signal Processing Theory, Algorithms and Implementation (3rd Edition)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Summarizing the experience of the big guys, how to learn STM32? (Entry, Advanced)
- Summary of basic knowledge points of C language
- CC2640R2F Chinese data sheet download -TI Bluetooth MCU
- SHT31 evaluation + second proofing expansion board
- [Scientific Epidemic Prevention] How does the infrared body temperature rapid screening device build the first line of defense?
- The live broadcast with prizes will start at 10:00 this morning: "The use of SOI level conversion driver IC in LLC topology"
- [Blood Oximeter] Disassembly Part 3 Background Knowledge
- [Silicon Labs BG22-EK4108A Bluetooth Development Evaluation] Burn Bootloader + Debug Bluetooth Lighting
- Altium Designer 19.0.10 The shortcut key for aligning left is not available?
- The price of domestic chip substitutes is only 1/5 of imported ones. Will domestic companies have a great opportunity?