Study on the design of intelligent sensors for SOC/IP

Publisher:vnerwb池塘边Latest update time:2014-10-17 Source: dzscKeywords:Smart sensor Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
    Introduction

  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]


 

SOC Design of Intelligent Sensor Based on IP

  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.

Composition diagram of thermocouple intelligent sensor based on SOC chip

   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.

Keywords:Smart sensor Reference address:Study on the design of intelligent sensors for SOC/IP

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

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号