Intelligent sensor technology is a modern sensor technology that is booming. It is a comprehensive technology involving multiple disciplines such as micromechanical and microelectronic technology, computer technology, network and communication technology, signal processing technology, circuits and systems, sensing technology, neural network technology, information fusion technology, wavelet transform theory, genetic theory, fuzzy theory, etc.
Intelligent functions in smart sensors, such as digital signal output, information storage and memory, logical judgment, decision-making, self-test, self-calibration, and self-compensation, are all based on microprocessors. Microprocessor-based sensors have evolved from simple digitization and information processing to modern smart sensors that have gradually improved with new theories and technologies such as network communication functions, neural networks, fuzzy theory, genetic theory, wavelet transform theory, and multi-sensor information fusion. Its microprocessor hardware has also experienced a transition from a single CPU structure to a multi-CPU structure or even a hybrid structure of DSP, ASIC, and MCU. However, microprocessors have inherent and insurmountable shortcomings and deficiencies in reliability, power consumption, and functional reuse, which hinder the further development of smart sensors. The transition from system IC to SOC (System on ChIP) has become an inevitable trend of historical development. SOC uses hardware to implement functions that were previously implemented by software. Compared with general MCUs, it has a series of advantages such as high reliability, low price, fast speed, small size, functional reuse, and good confidentiality. Traditional SOC design is based on ultra-deep submicron IC design technology and has the complexity of integrated circuit ASIC design. With the development of SOC platform and EDA technology and the promotion of new IP economic model, more and more SOC application design has shifted from traditional silicon chip design to large-scale programmable FPGA chip design. FPGA-based SOC design has the characteristics of short development cycle, standardized development tools and languages, and design and device independence, making it as easy as using a single-chip microcomputer. A large number of reports on successful FPGA applications are in the fields of image processing, power systems, etc. Applications in the field of sensor intelligence are still in the development and research stage. A small number of applications in sensors are limited to using it as one or several independent functional modules, such as communication modules and self-compensation modules, which do not have the role and function of the system and cannot truly become a system on chip (SOC). This article will propose an intelligent sensor SOC/IP design that integrates functional modules such as acquisition system, compensation correction, data processing, data communication, task scheduling, human-machine interface, IP function reuse, and an implementation method based on FPGA and ARM7 microprocessor chips.
SOC/IP Concept and Smart Sensor SOC Design Method
SOC: System on Chip refers to a system built on a single chip. IP: Intellectual Property. The traditional design method of smart sensors is based on functional design. The SOC design method is based on functional reuse and construction, using several macro modules on the chip to build a complex system. These developed macro modules are universal IP cores. The reuse of IP cores can reduce the complexity of product design and shorten the time to market.
The SOC/IP chip can form a complete intelligent sensor system. The sensing parameters of intelligent sensors may be varied. But in terms of functional module composition, it mainly includes data acquisition module, compensation and correction module, data processing module, data network communication module, human-machine interface and task management and scheduling module. Therefore, the design process of the intelligent sensor SOC based on IP is: first correctly establish the general module model of the intelligent sensor; then reasonably divide the functional specifications of each module, formulate the interface protocols and standards between the modules; then design a series of general IP cores; finally, build and integrate the required general IP cores to form a complete intelligent sensor system.
Intelligent sensor IP core design and SOC construction
Smart sensors involve various functions such as data acquisition, signal processing (program-controlled amplification, linearization, signal filtering, signal compensation, artificial neural network, genetic theory, multi-sensor fusion, fuzzy theory, etc.), data communication, human-machine interface and task scheduling. In IP core design and SOC construction, in order to simplify the work and reduce complexity, we choose two SOC design methods: FPGA-based IP core and ARM7TDMI-SCPU-based IP core. The FPGA IP core mainly completes the data acquisition and signal processing modules, and the ARM7-based IP core completes data communication, human-machine interface and task scheduling.
data collection
Traditional sensor signal digitization mostly uses VFC, serial A/D, parallel A/D and other solutions. Each solution can be designed into a corresponding IP core. Although some people have used FPGA to complete data acquisition, they are all designed in a specific application way rather than a general IP core way. We introduce the parallel A/D interface IP core design completed by MAX125. MAX125 is an 8-channel 14-bit parallel A/D chip. In the FPGA A/D IP core design, the signals provided to MAX125 include the timing signals for starting the conversion and the timing signals after the conversion is completed, and the data signals for reading the conversion results and storing them in the RAM inside the FPGA chip. We have successfully developed this A/D IP core and have been well used.
Signal processing
is one of the main contents of intelligent sensors. It usually includes linearization, filtering, various compensations, artificial neural networks, fuzzy theory, genetic algorithms, multi-sensor fusion and other tasks. In filtering, in addition to conventional FFT and DFT, wavelet transform has also appeared in recent years. Due to the advantage of chip speed, how to achieve universal design of various signal processing IP cores has become the key to the design of related signal processing algorithm IP cores.
For example, in the linearization processing design, we design the linearization algorithms of various sensors into a universal linearization IP core. When calling the task, we configure and select the corresponding algorithm IP core according to the linearization algorithm requirements of different types of sensors for actual use.
data communication
The data communication interface is set up mainly because the chip can also form a more complex measurement and control system with an external CPU or network. In order to facilitate chip design and save chip resources, we choose the philIPs LPC2106 chip based on ARM7 for communication IP core design. It can implement a series of different communication interfaces (such as: CAN, Ethernet, TCP/IP, RS232/485, I2C, SPI) and different communication protocols with a general microprocessor. Through the connection with the host computer and various networks, remote telemetry, network remote intelligent measurement nodes and other functions can be realized. The main task of communication IP core design is the design of communication protocol algorithms. Since most interfaces can be provided by ARM7-based microprocessors, there is no need to do too much work.
Human-computer interface and task scheduling
The human-machine interface and task scheduling IP core are also designed with ARM7 microprocessor. The human-machine interface mainly designs keyboard interface and LCD/LED/CRT display interface. It is not difficult to implement it by using the powerful GPIO function of ARM7.
Task scheduling IP mainly includes data acquisition scheduling, signal processing scheduling, data communication scheduling and human-machine interface scheduling. We use the embedded operating system μC/OS-Ⅱ2.52 version with open source code as the basis and transplant it to the LPC2106 ARM microprocessor. Various application software is developed based on the μC/OS-Ⅱ embedded operating system to complete the various task scheduling and configuration work required by the intelligent sensor.
Application examples
With the basic IP core, we can configure the IP core (under the scheduling of the embedded operating system μC/OS-Ⅱ) to form various required intelligent sensor systems according to needs. Figure 1 shows an SOC design example of an intelligent sensor for thermocouple temperature measurement. All algorithm IP modules are loaded onto the APEX20K multi-chip FPGA of ALTERA to complete functions such as temperature signal acquisition, A/D conversion, low-end compensation, linearization, and program-controlled amplification. The overall external pins of the chip include the data line and control line of the A/D interface, the data line and control line of the microprocessor interface, and the control line of program-controlled amplification. The microprocessor uses the LPC2106 chip of Philips with an ARM IP core. It completes the communication function, real-time clock function, human-machine interface function and task scheduling function. The communication IP includes I2C bus, RS232/RS485 bus, CAN bus, TCP/IP protocol, Ethernet, etc. [page]
Figure 1. IP-based smart sensor SOC design
Figure 2 is a block diagram of the thermocouple smart sensor based on the above system chip. Its core is two SOCs, of which the FPGA SOC uses APEX20K and the MCU SOC uses the ARM7 TDMI-S microprocessor with ARM IP core. The prototype of the smart sensor has been completed. The FPGA chip has been tested by hardware simulation, and its A/D sampling, linearization algorithm, cold end temperature compensation, multi-sensor fusion and other functions and algorithms have been verified by experiments. Under the operation of the 48MHz system clock, the MCU SOC has passed the experiments of communication, human-machine interface, real-time calendar clock, task scheduling management and other functions, verifying the feasibility of the design.
Figure 2 Block diagram of thermocouple intelligent sensor based on SOC chip
Conclusion
This article introduces the method of intelligent sensor IP/SOC design through examples. Based on the design of a universal intelligent sensor IP core, through IP reuse, you can design a SOC system for other types of intelligent sensors by simply changing or resetting the data and task calling modules.
Due to the limitations of SOC development and EDA design tools, the SOC/IP design of smart sensors based on FPGA and MCU and taking actual system applications as the entry point is a research method that conforms to the current SOC design and the actual situation in my country. In order to improve the design capabilities of smart sensor SOC/IP, special attention must be paid to the summary work in the following aspects: ① EDA tools: including development tools, design tools, analysis tools and verification tools. ② HDL language tools: to make full use of the good characteristics of HDL language structure, adopt top-down modular design, and emphasize detailed configuration and interface standardization. ③ IP resources, on the one hand, refer to making full use of the resources and resource standards of existing general IP, such as interfaces, specifications, testability, etc., as well as the IP core resources of ARM, which has the largest market share in the world. On the other hand, it refers to the summary and improvement of the IP core of the smart sensor itself.
The field programmable feature of FPGA makes the design of intelligent sensors based on SOC/IP more flexible. The parallel processing feature of each IP module makes it possible to implement complex algorithms that could not be realized with a single CPU in the past, such as sensor correction algorithms, compensation algorithms, neural network sensing algorithms, fuzzy sensing algorithms, multi-sensor fusion, etc. that require high-speed data processing. It can further improve the measurement accuracy, measurement range and measurement content. At the same time, using hardware to implement the functions of previous software can solve the problem of program crashes caused by interference, greatly improving the reliability of the intelligent sensor system.
Previous article:Design of digital image system for auxiliary reverse parking based on S3C2410
Next article:Design of the lower computer of the environmental monitoring system based on multithreading
- Popular Resources
- Popular amplifiers
- MATLAB and FPGA implementation of wireless communication
- Single Chip Microcomputer and Embedded System (Edited by Guan Yongfeng and Yu Hongqi)
- Xilinx FPGA Advanced Applications - General IP Core Detailed Explanation and Design and Development (Huang Wanwei)
- Smart home control technology and applications
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
- 2018 EEWORLD technical live broadcast replay summary ~ 40+ sessions including multiple hot topics, stay at home to know the forefront of the industry
- If the length of Ethernet data packet exceeds 1500 bytes, does it need to be manually divided into packets?
- Qinheng benefits are here, evaluation boards are given away! Choose from three models: CH549, CH559, and CH554 for free!
- How should I find the development board schematics and PCBs of major manufacturers?
- EEWORLD University ---- Wireless Power 101
- TI mmWave Radar MIMO (2TX4RX) Setup
- [STM32MP157C-EV1] After the first unboxing and evaluation, I will run rtt on it and share other
- MSP430 Program Library---Button
- EEWORLD University ---- Live Replay: How Littelfuse Improves the Safety and Reliability of Electronic Equipment in Smart Buildings in the Internet of Things Era
- [NXP Rapid IoT Review] + Kit Modification-External Lithium Battery