The call information generated by the program-controlled exchange is output through the serial interface, and the telephone billing system can use the computer to receive the call information from the exchange output port. The output of the call information depends on the use status of the system extension telephone. To prevent information loss, the computer system must keep working continuously all day. Early systems mostly used static RAM as cache, so the data reliability was not high, the system power consumption was large, and the system flexibility was poor. This article introduces a program-controlled exchange call information buffer system with AT89C52 microcontroller as the core and In-telStrata series flash memory as cache. The system has many characteristics such as multi-tasking working characteristics, high data storage reliability, fast readout speed, and high system flexibility.
System hardware structure
The following figure shows the hardware structure of the switch call information cache system. Its main components are:
(1) Based on Atmel's AT89C52 microcontroller, the clock frequency is 18.432MHz.
(2) The Intelstrata series flash memory 28F320J5 and 28F640J5 are used to form a buffer memory array. The hardware supports 4MB, 8MB, 12MB, and 16MB cache space configurations and uses a jumper-free design.
(3) The UART interface chip uses TL16C550 and Maxim's MAX3225 to complete the CMOS and RS232C level conversion for interfacing with a computer or modem.
(4) The P1 and P3 interfaces of AT89C52 are used to form a serial interface, and the current loop drive circuit and the corresponding level conversion circuit are used to connect to the serial port of the switch. The communication distance can reach 1km.
(5) Backup battery management and DC-DC conversion circuit. The serial output A/D converter is used for external power supply and battery voltage and capacity monitoring TLC0838C chip, and the line output port 74HC374 chip is used for battery charge and discharge control and AMX3225 and current loop circuit switch control.
(6) The single-chip serial EEPROMX25045 is used for configuration and storage of system parameters, low power supply voltage monitoring, and programmable hardware watchdog circuit.
(7) Flash memory AT29C256 is used to execute system software outside the microcontroller chip. Users can use the reload module in the internal program memory of AT89C52 and AT29C256 to implement online upgrade of system software.
System software components
(1) Main process The main process of the system software is shown in the figure above. The initialization program completes the detection of the system main cache capacity and its read and write breakpoints, including support for the mixed configuration of 28F320J5 and 28F640J5 and jumper-free hardware design; reads system configuration parameters from the serial EEPROM, sets various alarm values, initializes the baud rate of the soft serial port and the TL16C550 hard serial port, etc.; initializes the microcontroller and TL16C550 interface hardware. In the main loop, the backup battery management includes the battery working mode and its working time, the management of the battery's system working time and battery capacity information, and the battery charge and discharge control; when the free cache capacity of the LED and buzzer reaches the threshold, the battery is powered, and the Tl timing interruption occurs, TO generates a buzzer drive waveform of about 2.4kHz.
(2) Information caching process As shown in the figure above, the reception and buffer storage of the switch call information is completed by embedding each functional module. Two 16KB programming buffers are opened in the RAM area of AT89C52. The data received by the soft serial port is compressed and filled into the buffers in sequence. Once a buffer is filled, the system is notified to implement buffer programming. Each functional module actively detects the corresponding notification flag in time to ensure the real-time caching of call information.
(3) The soft serial port is realized by using the NTO pin of AT89C52 as RXD, combining the design of INTO edge interrupt and post-timer interrupt service program, and controlling the sampling and reception of serial call information by software. At the same time, by monitoring and recording the characteristics of the serial frame start bit and LSB, the automatic identification and tracking of the serial port output baud rate is realized.
Conclusion
The system uses AT89C52 as the core, selects cost-effective main memory and peripheral interface chips, and cooperates with powerful and flexible software design to develop a programmable switch called information buffer system, which achieves low cost, large capacity, high real-time and multi-tasking characteristics.
Previous article:Design of intelligent system for automatically announcing bus stop names
Next article:Design of a controller for the waste rejection valve of a cigarette making machine based on the single-chip microcomputer 89C52
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
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