1 Introduction
With the rapid development of computer technology, people require more accurate measurement and control of analog physical quantities such as temperature in daily life and production. This not only meets the needs of real-time monitoring of industrial sites, remote observation, telemetry and remote control of host PCs, but also requires connection to the Internet to achieve remote monitoring and access to digital and intelligent sensor functions.
Here we propose a temperature control system with ARM microcontroller as the core and CPLD technology. The system converts the information collected by the temperature sensor into A/D and transmits it to the microprocessor for processing. The processed data is then remotely transmitted via the network interface 121. Or it communicates with the host PC through the RS232 serial interface to realize a distributed temperature monitoring system.
2 System Hardware Design
The system design is mainly developed for field instruments in the field of industrial control. Its hardware design block diagram is shown in Figure 1. The block diagram includes modules such as ARM microprocessor, power supply, monitoring reset, memory expansion (RAM, Flash and EEPROM), human-machine exchange interface (LED), network communication, temperature detection circuit, A/D conversion, D/A conversion output, RS232 communication and CPLD control circuit (decoding and configuration of peripheral devices to realize the hardware and software of the system).
The temperature sensor measures the external temperature information. Under the control of CPLD, the digital signal after A/D conversion is sent to the ARM microprocessor for processing. At the same time, the processing information is displayed through the LCD and remotely monitored by the network interface. Of course, the keyboard can also be used for real-time manual intervention on site. The data processed by the ARM microprocessor is transmitted to the host computer through the RS232 serial port for display and storage. Of course, if an error occurs during the working process, an audible and visual alarm will be generated. At the same time, the keyboard can also intervene in the setting on site and handle faults.
Here, the ARM microprocessor is the 32-bit AT91M40800 from ATMEL. In addition to the ARM7TDMI core, the AT91M40800 also integrates many peripherals, and a large number of internal registers can quickly complete interrupt processing. Since the AT91M40800 microprocessor is connected to the off-chip memory through the programmable EBI, it has a faster access speed; at the same time, it also has 8 priority vector interrupt controllers connected to the external data controller, thereby improving the interrupt response speed. Therefore, the AT91M40800 microprocessor is very suitable for the field of industrial real-time control and is the best choice for processors in embedded industrial controllers.
2.1 Network communication interface circuit design
AT91M40800 itself does not have an ETHERNET interface, and needs to use an external Ethernet controller to realize network functions. Considering the cost performance, the system uses the RTL8019AS Ethernet controller produced by ReaItek, which expands an ETHERNET interface. The RTL8019AS connection circuit is shown in Figure 2.
The JP pin of RTL8019AS is connected to VCC to make it work in jumper (configuration mode) mode, and read and write operations are performed in I/O mode. NETCS is the chip select signal of AT91M40800 to RTL8019AS, and the address is 0x03000300~0x0300031F. LED0 and LED1 are each connected to a light-emitting diode to indicate the communication status. [page]
The 10BASE-T wiring standard is used to achieve Ethernet communication through twisted pair cables. Since the RTL8019AS has a built-in 10BASE-T transceiver, the network interface circuit is relatively simple. Only an external isolation low-pass filter (LPF) 20F-01 is required to connect to the external network. TPIN± is the receiving line, and TPOUT± is the transmitting line. After isolation, they are connected to the RX± and TX± ends of the RJ-45 interface respectively.
RTL8019AS works in interrupt mode. When a data packet is received, NETINT (interrupt signal) outputs a low level and notifies the processor to read the data. The CPU starts the remote DMA, NETCS (chip select signal) and NETRD (read signal) are valid, and then reads data from the internal RAM of RTL8019AS. NETRST (reset signal) is generated by the control circuit CPLD, and the high level is valid to ensure the reliable reset of RTL8019AS.
2.2 CPLD control circuit
CPLD mainly decodes the RTL8019AS Ethernet controller, LCD display and MAX197 control circuit. Altera's CPLDEPM7032A is selected. The device has 600 available gates, 32 macro cells, 38 user I/O pins, uses 3.3 V CMOS technology, and has 5 V tolerant input. The MAX+PLUSII development platform is used to complete the required design in the graphical editor. The internal design of EPM7032A is shown in Figure 3.
The network interface module is also the focus of this design. Its main program is responsible for completing the initialization of system parameters and real-time calling tasks. The main program uses polling to continuously detect the status word and the return value of the function to determine whether an event has occurred. If it has occurred, it will process the event and return to the main program after processing to continue executing the following program. The main program flow of the network interface module is shown in Figure 5.
[page]
The program first initializes the system and allocates a memory buffer pool for processing the TCP/IP protocol; then the network parameters are initialized; then the serial port, timer, ARP buffer and RTL8019AS are initialized in turn; finally, a while infinite loop detects the status word, and each subroutine performs related processing.
4 System Debugging
System debugging mainly includes hardware debugging, software debugging and system simulation comprehensive debugging. First, the experimental board is powered on and connected to the computer parallel port through its corresponding ARM and CPLD JTAG interface, and then the corresponding compiled and simulated programs are downloaded and burned into ARM and CPLD respectively, and each module is debugged in turn, which basically meets the functions of temperature signal acquisition and processing. The parameter results after debugging meet the requirements and the operation status is good.
5 Conclusion
With embedded systems as the research direction, facing the industrial control field, and taking instruments as the application object, we built and developed a general platform for embedded industrial controllers based on ARM and CPLD, and completed the specific design of embedded industrial controllers based on ARM processors. The system test results are good, the performance is stable, and the expected design goals are achieved. The general platform for embedded industrial controllers based on ARM and CPLD has broad application prospects and can be widely used in control fields such as industrial and agricultural detection, intelligent control, etc., providing a useful reference for future system upgrades.
Previous article:Design and simulation of high-speed PID controller based on FPGA
Next article:An intelligent electrical control system for clamp-type crane based on PLC
Recommended ReadingLatest update time:2024-11-16 20:34
- Popular Resources
- Popular amplifiers
- Multithreaded computing in embedded real-time operating systems - based on ThreadX and ARM
- Learn CPLD and Verilog HDL programming technology from scratch_Let beginners easily learn CPLD system design technology through practical methods
- Single-chip microcomputer C language programming and simulation
- Practical Electronic Components and Circuit Basics (4th Edition)_Explanation of basic circuit principles, introduction to electronic components, design of various circuits and practical circuit analysis
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
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
- Share the disassembly of IPP-5002
- [Raspberry Pi Pico Review] --- Getting Started
- The 2019 STM32 National Tour Seminar is about to start. Register now to win three gifts
- Problems of overcurrent and overvoltage protection in voltage doubler rectifier circuit
- When installing 32-bit dependent libraries in 64-bit Ubuntu, "libc6:i386 (!= 2.19-0ubuntu6.6) but 2.19...
- Popular science information on the entire process of chip design and production
- [Rivet RVB2601 Creative Application Development] 1. Routine Experience - Music Player
- EEWORLD University Hall----Linux Kernel Analysis and Application Xi'an University of Posts and Telecommunications (Chen Lijun)
- DIY ImxRT1010 board, sharing hardware debugging experience
- Take a look at TI's solution to improve the performance of power tool designs through power modules