The embedded system is brought to the notice of more and more people, and there are many cases in the automobile industry. Just as an attempt, this article introduce the way of designing the hardware and software of electronic speed governor using embedded system. The main content of this article is given as follows: The development and status quo of electronic speed governor system for diesel engines are summarized. And also give some introduction to the using of embedded system in automobile industry in the foreign companies. A embedded operating system which is widely used in the foreign companies is briefly described. To the hardware, the CPU used in this system is discussed, and the components including CAN bus, Ethernet and minimum system of developing board designed by myself, which is based on the LPC2129 microcontroller are carefully introduced. To every part, the schematic diagrams and the detailed introductions of the chips used in that part are given. To the software, after getting to grasp the embedded system μC/OSII's history, the software character, file organization and the method of transplanting the μC/OSII, transplant the μC/OSII to Philips 'LPC2129 microcontroller, using the developing tools, ARM ADS. The designing principle of the electronic speed governor based on embedded system is discussed. And also give introduction to the thoughts of the controlling algorithm, which is used in this system, including the realization of the PID control algorithm. The division of the tasks, and the relation between the tasks are analyzed. This article also compares this method with the traditional way of designing the software for control unit of the electronic speed governor, to see how it is more convenient than the traditional way. |