With the development of society and the improvement of people's living standards, people pay more and more attention to health, but with the improvement of living standards, the incidence of cardiovascular diseases continues to rise.
Especially in recent years, with the increasing aging of society, cardiovascular disease has become a major disease threatening human life, and heart disease has become the disease with the highest mortality rate in the world. In view of the increasing number of patients with cardiovascular disease, it is imperative to improve the means of preventing and monitoring the disease. ECG signal detection is the most direct means of detecting heart disease, but the ECG monitors currently used in hospitals are almost all imported, expensive, and high maintenance costs, which increases the economic burden on hospitals and patients; therefore, it is of great significance to design a portable and economical ECG monitoring device. This paper designs an ECG monitoring system based on TI's TMS320LF2407A DSP. This system is small in size, low in cost, and highly practical.
TMS320LF2407A DSP Introduction
An important part of the ECG monitoring system is to process ECG signals, so it is very important to choose a suitable signal processor. The most successful DSP chips at present are the series of products from TI in the United States. Its three main DSP platforms, TMS320C2000, TMS320C5000 and TMS320C6000, have become the most influential DSP chips in the world today.
This system uses TMS320LF2407A as the signal processor and core controller. TMS320LF2407A is a new high-performance 16-bit fixed-point digital signal processor launched by TI and a new member of the TMS320C2000 series. It is specially designed for digital control, integrating the high-speed signal processing capability of DSP and the optimized peripheral circuit suitable for control. It is a true single-chip controller and has been widely used in digital control systems.
TMS320LF2407A DSP has the following features:
(1) The use of high-performance static CMOS technology reduces the power supply voltage to 3.3V, reducing the power consumption of the controller; the execution speed of 40MIPS shortens the instruction cycle to 25ns, thereby improving the real-time control capability of the controller.
(2) Based on the TMS320C2xx DSP CPU core, the TMS320LF2407A DSP code is guaranteed to be compatible with the TMS320 series DSP code.
(3) The chip has up to 32KB of FLASH program memory, up to 1.5KB of data/program RAM, 544 words of dual-port RAM (DARAM) and 2KB of single-port RAM (SARAM).
(4) Two event manager modules EVA and EVB, each including two 16-bit general-purpose timers and eight 16-bit pulse width modulation (PWM) channels.
(5) Expandable external memory with a total of 192K words of space: 64K words of program memory space, 4K words of data memory space and 64K words of I/O addressing space.
(6) Watchdog timer module (WDT).
(7) The minimum conversion time of the 10-bit A/D converter is 500ns. Two event managers can be selected to trigger two 8-channel input A/D converters or one 16-channel input A/D converter.
(8) Controller Area Network (CAN) 2.0B module.
(9)Serial communication interface (SCI) module.
(10) 16-bit serial peripheral (SPI) interface module.
(11) Phase-locked loop based clock generator.
(12) Up to 40 general-purpose input/output pins (GPIO) that can be individually programmed or multiplexed.
(13) Five external interrupts (two electrode drive protections, reset, and two maskable interrupts).
(14) Power management includes three low-power modes, which can independently switch peripheral devices into low-power mode.
(15) It has encryption function and the key length is 64 bits.
System hardware structure
The whole system can be divided into the ECG signal acquisition part and the signal processing part. The signal processing part uses TMS320LF2407A as the processor, and expands the external memory, LCD display, buttons and serial communication interface.
Power supply is the primary condition for the system to work. This system uses two voltages, 5V and 3.3V. The system input power voltage is 5V DC, so conversion is required. This system uses AMS1117-3.3 for 5V~3.3V voltage conversion, and the light-emitting diode D3 is the power indicator.
The electrocardiogram (ECG) acquisition circuit collects ECG signals through sensors and then sends the collected analog signals to the 10-bit A/D input terminal integrated in the TMS320LF2407A for A/D conversion. Two event managers are used to trigger a 16-channel input A/D converter to improve the conversion accuracy and accurately collect weak ECG signals.
TMS320LF2407A integrates 1.5K RAM and 32K FLASH. The capacity of 32K FLASH is basically enough, but the internal RAM storage space is too small. In order to save a large amount of sampled data, intermediate results of calculations and improve the operating speed of the system, the system adds external data memory (RAM) and external program memory (RAM), which are selected by PS and DS signals of TMS320LF2407A respectively. The RAM memory used in this system is two IS61LV6416-10T, which has a storage capacity of 64K 16 bits. The data access time is 10ns, which can meet the needs of high-speed operation. The operating voltage is 3.3V, which is consistent with the DSP operating voltage, and no level conversion circuit is required.
The LCD module is used to display the ECG, so that the user can observe the ECG intuitively without a PC. The ECG can also be displayed by the PC by connecting it to the serial port. When not used to display the ECG, the LCD can display the system status and other information. This LCD module contains a SED1335 controller with a resolution of 128 128. The module is characterized by low power consumption and strong anti-interference ability. The module integrates a LCD display controller, driver, RAM, ROM and LCD display. When using it, you only need to send the corresponding commands and data to the module to display the required information. The interface with the DSP is simple and convenient and flexible to use. The TMS320LF2407A is powered by 3.3V, and the LCD module is powered by 5V, so they must be connected through a level conversion circuit. This system uses SN74LV16345A to achieve level matching.
TMS320LF2407A integrates a full-duplex asynchronous serial port, which can realize the communication between the ECG module and the PC or other devices. However, RS232 level and TTL level are not compatible, so we use a level conversion chip MAX232, which uses a +5V single power supply, has a simple circuit and is easy to use.
In order to facilitate the setting, the system also adds a button module, through which users can control some functions of the system, such as start and stop.
Software Design
Understanding and analyzing the characteristics of ECG is the basis for studying ECG signal detection. Designing detection algorithms for corresponding frequency bands based on the characteristics of ECG in different frequency bands is an important task in software design.
The electrocardiogram is composed of a series of wave groups, each of which represents each cardiac cycle. A wave group includes P wave, QRS complex, T wave and U wave. Studies have shown that the main bands of the electrocardiogram are QRS wave, R wave and P wave. Heart rate variability (HVR) analysis has received widespread attention in clinical research and is the main method for analyzing electrocardiogram abnormalities. The object of heart rate variability analysis is the RR interval of the electrocardiogram waveform. When the system samples the data, it locates the R wave of the waveform, finds the position of the R wave, calculates the RR interval between adjacent R waves, and then stores it. The task of the system software is to filter the collected electrocardiogram signal, then perform heart rate variability analysis, calculate the RR interval, and finally display the final electrocardiogram on the LCD screen.
After all programs are debugged, use the emulator's FLASH programming program to download the target code to the FLASH of TMS320LF2407A through the JTAG port to achieve independent operation of the entire system.
Conclusion
This paper designs an ECG monitoring system with TMS320LF2407A DSP as the signal processor. The system integrates the acquisition, analysis and display of ECG signals. The system is small in size, low in cost, easy to carry and highly practical.
Previous article:Design and implementation of multi-parameter monitor based on TI OMAP3 platform
Next article:Design of portable medical automatic infusion device using MSP430 series single chip microcomputer
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- 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
- Who are the talented people who are leading the industry research in various fields of electrical engineering?
- Internals of the BME280 sensor
- Amplifier Circuit
- Static Timing Analysis and Logic
- I would like to ask if there is a PDF of the fourth edition of "The Definitive Guide to Operational Amplifiers"
- I need help from you guys, I need a chip that can boost 5V to 36V, thank you
- [Flower carving DIY] Interesting and fun music visualization series of small projects (15) - horizontal LED square tube lights
- TI - Improving the design of smart speakers
- Electromagnetic Compatibility Design and Testing (4th Edition)
- Newbies, please read here: Newbie Guide, Points System, Monthly Reward System, Contact Management, Must-Read Questions, Quick View of Posts