| 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 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... |