Current location - Recipe Complete Network - Healthy recipes - Example of data acquisition system
Example of data acquisition system
Embedded operating system μ C/OS Ⅱ (microcontroller operating system) is a preemptive real-time multi-task operating system kernel with open source code, which is specially designed for microcontroller system and software development. It is the first background program executed after the microcontroller is started, and it runs through the whole system as a framework. The introduction of μ C/OS Ⅱ will undoubtedly greatly improve the performance of the data acquisition system which requires high real-time and stability.

The characteristics of μ C/OS ⅱ can be summarized as: open source code, clear code structure, detailed comments, clear organization, good portability, tailoring and solidification. The kernel is preemptive and can manage up to 60 tasks. μC/OS Ⅱ has been used hundreds of times since the first edition of 1992 (μ C/OS). Practice has proved that it is a useful, stable and reliable kernel. μ C/OS Ⅱ has many researches and applications. The system adopts S3C45 10B of Samsung as the communication bridge between the system and the upper computer. S3C45 10B is a cost-effective 16/32-bit RISC microcontroller based on Ethernet application system. It has the following main features:

Hardware includes 16/32-bit ARM7tdmi RISC processor core designed by arm company. ARM7TDMI is a low-power and high-performance 16/32 core, which is most suitable for applications sensitive to price and power consumption. S3C45 10B extends a series of complete general peripherals based on the contents of the ARM7TDMI kernel.

On-chip resources include two HDLC channels with bufferdescriptor; 2 UART channels; 2 GDMA channels; 2 32-bit timers; 18 programmable I/O ports. There is also an interrupt controller; DRAM/SDRAM controller; ROM/SRAM and flash controller; System manager; 1 internal 32-bit system bus arbiter; 1 external memory controller and other on-chip logic control circuits.

These provide good physical resources for the transplantation of μ C/OS Ⅱ.

In terms of software support, he has a supporting code editing and debugging environment ADS 12 and JTAG online debugging function, so that S3C45 10B chip software can be written directly in C, which makes it possible to implant μ C/OS II.

12-bit high-speed A/D conversion circuit adopts AD574 from AnalogDevices, and the output of this circuit has tri-state latch function. The preprocessing circuit includes current-voltage transformer, isolation circuit and synchronous sampling circuit, which can convert the signal into a value matching with AD574 for subsequent processing. The communication circuit is connected to the upper computer through the common Ethernet interface, and the 232 interface can be used as a backup, so that the device can be used as a portable system and can also monitor the equipment in real time through the network.