The Transplantation and Application of μC/OS-Ⅱ on HCU of Vohicle

Author
WangJingGang
Advisor
ZhaoHongWei
School
Jilin University
Major
Computer Software and Theory
Classification
TM571.6 Special controller
Degree
Master's thesis
Year
2004
Downloads
334
Citations
6

Request the full text

Abstract

Recently, along with the lack of petroleum in the world, serious pollution of atmosphere, and the advance of battery technology, electronic vehicles vehicle has been recognized the main way of alteration and development of automobile industry in 21 century. According with the target orientation and technology course of gravely specially electronic vehicles vehicle item in “fifteen” national 863 plan, combining the progress actuality of our electronic vehicles vehicle, the relational experts considered that the development of our electronic vehicles vehicle should catch hold of the historical opportunity that conventional vehicle transit for electronic vehicles vehicle, regard HEV (Hybrid Electronic Vehicle) as the development keystone and direction of our electronic vehicles vehicle nowadays, take the lead in finishing batch production, realize industrialization and have some breakthrough.In 2002, JiLin University HEV task group assumed the researching and developing task of electronic vehicles vehicle theme / gravely special item Multi-Energy Power Hybrid Control System of JieFang Hybrid Electronic City Bus in energy sources technology field of national 863 plan. HCU (Hybrid Control Unit) is an important part of HEV. HCU communicate with other ECUs (Electronic Control Unit) by peripheral ports. It receive input signal, then analyze and dispose the signal according to the special control strategy, at last output the control signal. This paper regarded HCU as hardware platform, regarded transplanted RTOS (Real-Time Operating System) as software platform, according to HEV power assembly control strategy, and designed multi-energy power hybrid control software.HCU’s EMPU (Embedded Micro Processor Unit) is Intel’s 16 bits SCMC (Single Chip MicroComputer) 80C196KC. HCU’s input and output signal is mainly analog or on-off quantity. HCU mainly comprises A/D transform circuit, D/A transform circuit, I/O transform circuit. For the sake of communicating with PC, HCU has serial communication circuit. For satisfying the design request of modern vehicle, HCU has CAN (Controller Area Network) communication circuit to communicate with other ECUs by CAN bus. For decreasing the interference of external electromagnetism, HCU has two sets of DC-DC direct segregate electrical source. The electrical source can supply reliable current, and ensure HCU’s natural work.If you develop embedded application, the cross developing environment <WP=82>is required. The cross developing environment is the environment in which we can implement, compile, link, and debug application codes. The holistic resolving scheme based on developing tool and technology consultation is urgently required. I used WeiFu E6000/L simulator to develop application. This simulator adopts the combination of host computer and POD. If replacing different POD, it can emulate all kinds of SCMC. WeiFu developing environment is an integrated environment that comprises editing, search, running, setting, etc. It is very convenient. I debugged HCU’s A/D port, D/A port, I/O port, serial port and CAN port in WeiFu developing environment. This paper illuminated the processes and methods of debug in detail. It also explained the CAN communication.For the sake of satisfying real time, predigesting the structure of application, improving system’s stability and credibility, it required RTOS. I implemented that the open source codes real time embedded operating system, μC/OS-II, was transplanted to 16 bits SCMC 80C196KC. The RTOS is an integrated, portable, ROMable, scalable, and preemptive multitask kernel. For convenient transplantation, μC/OS-II’s most codes are written with C language. But, We still need write some codes correlating with processor with C and assemble language. 80C196KC satisfies the requests by which μC/OS-II can normally run. If you transplant μC/OS-II, you should write OSTaskStkInit(), OSStartHighRdy(), OSCtxSw(), TimerInit(), OSTickISR(), OSIntCtxSw(), and so on. These functions are correlated with processor. Moreover, we need to define the data

Table of contents

Summary 2-7 Chapter 1 Introduction 7-14 1.1 research background 7 1.2 hybrid car About -8 1.3 Controller Area Network (CAN) About 8-9 1.4 embedded processor 9-10 1.5 Embedded System Overview 10-11 1.6 Real-Time Systems Overview 11-12 1.7 real-time operating system (an RTOS) 12-13 1.8 paper content and organization 13-14 Chapter 2 of embedded systems hardware platform 14-20 2.1 embedded microcontroller 14-16 2.2 memory expansion 16-17 2.3 A / D conversion circuit 17 2.4 D, / A conversion circuit 17 2.5 I / O circuit 17-18 2.6 serial communication circuit 18 2.7 CAN communication circuit 18-19 2.8 power supply circuit 19-20 3 Zhang hardware debugging 20-31 3.1 embedded systems development environment 20-22 3.2 Debugging A / D port 22-23 3.3 debug D / A port 23-24 3.4 debug I / O input 24-25 3.4.1 debug 7 Road I / O input 24 3.4.2 debug external interrupt 24-25 3.5 debug I / O output 25-26 3.6 debug serial 26-27 <br / > 3.6.1 serial send 26 3.6.2 serial receiver 26-27 3.7 debugging CAN port.; 27-30 3.7.1 installation CANdy 27 3.7.2 of the CAN controller is initialized 27-28 3.7.3 the CAN port to send 28-29 3.7.4 CAN port to receive 29-30 3.8 Other 30-31 Chapter 4 real-time operating system μC / OS-II transplantation 31-45 <br / 4.1 of μC / OS-II kernel structure 31-34 4.2 of μC / OS-II on 80C196KC transplant 34-41 4.2.1 OS_CPU.H 34-35 4.2.2 OS_CPU.C.; 35-41 4.2.3 Other 41 4.3 testing the migration code 41 - 45 4.3.1 ensure that the C compiler, assembler and linker work properly 41-42 4.3.2 verify OSTaskStkInit () and OSStartHighRdy () function 42 < br /> 4.3.3 verify OSCtxSw () function 42-43 4.3.4 verify OSIntCtxSw () and OSTickISR () function 43-45 Chapter 5 to create function library 45-54 5.1 I / O output interface functions 46 5.2 the I / O input interface function 46-47 5.3 D, / A interface functions 47 5.4 the A / D interface functions 47-48 5.5 serial communication interface functions 48-49 5.5.1 serial early initialization function 48 5.5.2 serial port to send function 48 5.5.3 serial receiver function 48-49 5.6 CAN interface function 49-52 5.6.1 CAN initialization function 50-51 5.6.2 CAN send function 51-52 5.6.3 the CAN receive function 52 5.7 function 52-54 5.7.1 Delay function 52-53 5.7.2 HCU initialization function 53-54 Chapter 6 test real-time operating system and libraries 54-60 6.1 simple structure test procedures 54-55 6.1.1 main 54-55 6.1.2 starting task TaskStart 55 6.2 add the application tasks 55-59 6.2.1 indicator flashes task 55-56 6.2.2 serial port to send the task 56 6.2.3 E-mail communication task 56 6.2.4 serial receiver task nbsp 57 6.2.7 the CAN port receiver; 56-57 6.2.5 I / O input and output tasks 57 6.2.6 CAN port to send the task task 57-58 6.2.8 the A / D conversion task 58 6.2.9 D / A conversion tasks 58-59 6.3 external interface functions 59-60 Chapter 7 application software design 60-72 7.1 needs analysis 60-61 7.2 The overall design 61 7.3 task design 61-66 7.4 task collaboration between 66-68 7.5 encoding 68-69 7.6 test 69-71 7.6.1 unit test 69-70 7.6.2 System Testing 70-71 7.7 software curing 71-72 Conclusion 72-74 References 74-77 thank 77-78 Abstract 78-81 ABSTRACT 81-85 Jilin University Master's degree thesis original statement 85

Related dissertations

  1. The Study on Hybrid Vehicle Control Unit Techology
    YangWenZuo ·Shanghai Jiaotong University ·2010 ·Master's thesis
  2. Design of Universal Embedded Board for Home Appliance and Research of Internet Control
  3. Porting μC/OS-II to the Microcontroller Based on ARM7 Core
    JieBing ·Harbin Institute of Technology ·2006 ·Master's thesis
  4. The Research and Development of Combat Vehicle Oriented Real-Time Operating System
    YangWei ·Hohai University ·2004 ·Master's thesis
  5. High-precision Temperature Monitoring Instrument with Many Ports Based on ARM and μ C/OS-Ⅱ
    ZhangLiang ·Hohai University ·2007 ·Master's thesis
  6. Research and Application of embedded monitoring system based on CAN bus
    ShenZuo ·Shanghai Maritime University ·2005 ·Master's thesis
  7. Research of a Remote Measuring & Controlling Terminal Based on Embedded RTOS
  8. The hard servo information embedded motor servo control system based self-written
    ZhaoZuo ·Guizhou University ·2006 ·Master's thesis
  9. Study of Standardized Vehicles Operating System Based on uC/OS-II
    XiaLingLin ·Jilin University ·2006 ·Master's thesis
  10. Porting and Application for Using μC/OS-II with the Digital Control System of Power Electronics
  11. Design and Implementation of the embedded pipeline monitoring system
  12. Design of Embedded Data Acquisition and Processing System of MEMS-INS
  13. Design and Application of Real-time Dam Deformation Monitoring Instrument
    ZuoShiBo ·Hunan University ·2013 ·Master's thesis
  14. Research and Implementation of Networked Data Acquisition System Based on Cortex-M3
    ShengQingPeng ·Qilu Industrial University ·2014 ·Master's thesis
  15. Design and Realization of CS-50Catalyst Production Control System Based on CAN Bus
    AiTianLun ·Dalian Jiaotong University ·2012 ·Master's thesis
  16. Design of DeviceNet-CANopen Integrated Slave Node
    LiuXueWei ·Tianjin University of Technology ·2013 ·Master's thesis
  17. The Research of Embeded Intelligent Household Based on ARM
    WangWenChuan ·Hefei University of Technology ·2013 ·Master's thesis
  18. Design of Industrial Controller Based on EPA
    ZuoShengChao ·Dalian Jiaotong University ·2013 ·Master's thesis
  19. The Design of the Rectification Recovery System Based on the CAN Bus
    LiuTianQi ·Dalian Jiaotong University ·2013 ·Master's thesis
  20. Design of CTD Sensor and Research of Data Processing Technology
    LvZhi ·Harbin Engineering University ·2013 ·Master's thesis