CN1302347C - Microcomputer control system of internal combustion engine vehicle - Google Patents

Microcomputer control system of internal combustion engine vehicle Download PDF

Info

Publication number
CN1302347C
CN1302347C CNB031245315A CN03124531A CN1302347C CN 1302347 C CN1302347 C CN 1302347C CN B031245315 A CNB031245315 A CN B031245315A CN 03124531 A CN03124531 A CN 03124531A CN 1302347 C CN1302347 C CN 1302347C
Authority
CN
China
Prior art keywords
circuit
locomotive
download
switching value
control system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CNB031245315A
Other languages
Chinese (zh)
Other versions
CN1513713A (en
Inventor
姚晓阳
马文俊
吴正平
刘智聪
郭锐
雷满生
何良
任文毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRRC Zhuzhou Institute Co Ltd
Original Assignee
ZHUZHOU SHIDAI GROUP CORP
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHUZHOU SHIDAI GROUP CORP filed Critical ZHUZHOU SHIDAI GROUP CORP
Priority to CNB031245315A priority Critical patent/CN1302347C/en
Publication of CN1513713A publication Critical patent/CN1513713A/en
Application granted granted Critical
Publication of CN1302347C publication Critical patent/CN1302347C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • Y02T30/34

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to a novel microcomputer control system of an internal combustion locomotive. The microcomputer control system comprises a CPU circuit 1, a switching value input circuit 2, a switching value output circuit 3, an analogue quantity processing circuit 4 and a system interface circuit 5, wherein the switching value input circuit 2 completes the detection of 110V switching value signals of a locomotive; the switching value output circuit 3 completes the drive of a 110V electric appliance of the locomotive and the pulse control of an excitation circuit; the analogue quantity processing circuit 4 completes the sampling of analogue signals of a power source, voltage, etc. of the locomotive; the system interface circuit 5 samples speed signals of the locomotive and drives serial communication interfaces; a 32-bit microprocessor is used, and a procedure downloading function is additionally provided to make the running speed of the microcomputer control system greatly increased as compared with the past control system; procedure downloading can be conveniently carried out, the operation is flexible, and the operating efficiency and the reliability are increased.

Description

Control system of diesel locomotive
Technical field
The present invention relates to a kind of control system of diesel locomotive.
Technical background
The quasi high-speed diesel locomotive of present east wind 11 types adopts TWP5 type microcomputer control cabinet; used 16 digit microcomputer; can carry out permanent merit excitation and anti-idle running control by assembling suitable software; and diesel engine and electric equipments protected; can carry out fault diagnosis by being connected, show and record with display screen.Because be to adopt 16 digit microcomputer, its travelling speed is lower, the function upgrading possibility is little, and not in the sequence of threads download function.
Technology contents
Purpose of the present invention is providing a kind of control system of diesel locomotive, and it has higher travelling speed, and complete function has in the sequence of threads download function.
It comprises cpu circuit 1, finish switching value input circuit 2 to locomotive 110V switching value input, finish switching value output circuit 3 to the driving of locomotive 110V electrical equipment and energized circuit copped wave control, finish the analog quantity treatment circuit 4 of the sampling of simulating signals such as electrical locomotive power, voltage and system interface circuit 5 that the interface of the sampling of locomotive speed signal and serial communication is driven;
Described cpu circuit 1 links to each other by system bus respectively with switching value input circuit 2, switching value output circuit 3, analog quantity treatment circuit 4 and system interface circuit 5;
Described cpu circuit 1 comprises 32-bit microprocessor MC68332, providing links to each other with outer computer finishes program download interface circuit 6, storer 7 and the system bus interface 8 of online software download service, storer 7 comprises RAM and flash memory FLASH, and wherein RAM has the battery RAM10 and two kinds of the RAM of charged pool not.
Control Software in the storer of the 32-bit microprocessor MC68332 of described cpu circuit 1 comprises the bottom plate level support package (BSP) that driver is provided for hardware interface circuit, is responsible for operating system (VRTX RTOS) layer and the user application layer of application program module Real-Time Scheduling.
Described program download interface circuit 6 comprises the PROG of the 32-bit microprocessor MC68332 of an end and described cpu circuit 1 *, three ports of 332TXD, 332RXD link to each other, the other end links to each other with outer computer communication interface 9, battery RAM10 and the flash memory 11 that links to each other with microprocessor MC68332 by address wire and data line respectively, and (CSBOOT) port of described microprocessor MC68332 selectively links to each other with (FLASHCS) port of described flash memory 11 or (MEMCSI/MEMES2) port of battery RAM10 by electronic switch K1, K2 respectively with (CS0/CS1) port, and flash memory is FLASH.
Described program download interface circuit 6 is to finish the program down operation according to the following steps:
The first step: the program bit port (PROG that detects microprocessor MC68332 *), system normally moves if it is invalid, if effectively and battery RAM district download, just carry out RAM district and download, finish the program download, go on foot otherwise carry out second;
Second step: if download among the FLASH, just carry out FLASH and download, the program of finishing is downloaded, and automatic operation downloads from flash memory duplicating to battery RAM after system normally moves; Otherwise, finish because of carrying out the program download.
Because the present invention adopted 32-bit microprocessor, and set up the program download function, make its travelling speed more in the past control system greatly improve, and can carry out program easily and download, flexible operation has improved operational efficiency and reliability.
Description of drawings
Fig. 1 is a principle of the invention block diagram;
Fig. 2 is program download interface circuit theory diagrams;
Fig. 3 is the program process flow diagram that downloads.
Embodiment
As Figure 1-3, it comprises cpu circuit 1, finishes switching value input circuit 2 to locomotive 110V switching value input, finishes switching value output circuit 3 to the driving of locomotive 110V electrical equipment and energized circuit copped wave control, finishes the analog quantity treatment circuit 4 of the sampling of simulating signals such as electrical locomotive power, voltage and system interface circuit 5 that the interface of the sampling of locomotive speed signal and serial communication is driven;
Described cpu circuit 1 links to each other by system bus respectively with switching value input circuit 2, switching value output circuit 3, analog quantity treatment circuit 4 and system interface circuit 5;
Described cpu circuit 1 comprises 32-bit microprocessor MC68332, and providing links to each other with outer computer finishes program download interface circuit 6, storer 7 and the system bus interface 8 of online software download service.Storer 7 comprises RAM and flash memory FLASH, and wherein RAM has the battery RAM10 and two kinds of the RAM of charged pool not, and wherein program download interface circuit 6, storer 7 and system bus interface 8 all link to each other with MC68332.
MC68332 has adopted modular structural design, mainly comprises: CPU module CPU32, system integration module SIM, queued serial module QSM, on-chip memory module RAM, Timing Processing device module TPU etc.
Central processor CPU 32 is CPU of 32, is the nucleus module of system, the full-motion of management C68332 and external unit, and it is by each module communication of internal bus and MC68332.
Sim module comprises clock synthesizer, chip selection, external bus interface, system protection and system testing submodule etc., and each module is finished independently function.
Queued serial module QSM is respectively formation serial peripheral interface QSPI and formation communication interface SCI for MC68332 provides two independently serial communication interfaces.
TPU can be independent of outside the CPU, carries out the operations relevant with the time such as various timings, pulse generation, motor control, offloading the CPU greatly.
Used VRTX RTOS embedded real-time multi-task operating system in the novel Control System of Microcomputer software development.
The core of VRTX-high-performance real-time multi-task operating system is a kind of silicon software part that is applicable to embedded microprocessor, provides following true-time operation desired characteristic:
Multitask is supported
Driving incident (event-driven) is based on the scheduling of right of priority
Intertask communication and synchronous
Dynamic memory allocation
Real-time clock control has optional timeslice (time-slicing)
Character type I/O supports
Real-time responsiveness
Had these characteristics, VRTX just provides solid foundation for real-time, multitask application.
Task (Task) is a most important operand among the RTOS, and each task is carried out by the CPU timesharing under the calling of RTOS.Activate or current task is the task that CPU is carrying out, and the task of dormancy is the context that keeps its execution in storer, can continue the task of carrying out from the end that carried out last time in case switch to current task.The scheduling of task mainly contains time slicing formula (TimeSlicing), in turn query formulation (Round-Robin) and preferential three kinds of preemptive types (Preemptive) at present, different RTOS may support wherein one or more, and wherein preferential preemptive type is best to the support of real-time.
The system CPU under the RTOS management and the time of system resource are to distribute to different task simultaneously, seem to resemble many tasks like this and carry out at the same time, but in fact each has only a task carrying out constantly, just current task.The switching of task has two kinds of reasons.When a task normally during end operation, it just gives RTOS the CPU control, and RTOS then checks all tasks in the task queue, and the priority of that task is the highest below judging, needs to carry out earlier.Another kind of situation is that interruption has taken place the higher task of priority when a task is carried out, and at this moment RTOS just preserves the context of current task, switches to interrupt task.RTOS puts task queue in order regularly, and the task that deletion finishes increases new will executing the task, and it is got up according to priority series arrangement from big to small, so reasonably distributing system resource between each task.
Message (Message) and mailbox (Mailbox) are the carrier of data transfer and channels between the task among the RTOS, and a task can have a plurality of mailboxes.By mailbox, can transmit information asynchronously between each task, do not take the inquiry and the wait of CPU time.When RTOS comprised on-chip bus interface driving function, the communication between each single-chip microcomputer was also undertaken by the mode of mailbox, and the user does not need to understand the darker content about hardware.
Signal lamp (Semaphore) is equivalent to a kind of sign (Flag), and by presetting, the generation of an incident can change signal lamp.A task can decide its action by the variation of monitor signal lamp, does not consume CPU time when the monitor signal lamp changes, and signal lamp is finished by RTOS the triggering of task.By using signal lamp, a task just can constantly be inquired about when waiting event changes, and CPU time is sold to other task.
RTOS distributes unitedly the system memory block, and the mode of distribution can be dynamic or static, and each task all will be to the application of RTOS kernel when the needs memory block.RTOS can prevent scrappyization of memory block by using storage allocation class core Object Management group data-carrier store when dynamic assignment.
RTOS provides a kind of general interrupt management that is designed for, and is efficient and flexible, can realize minimum interruption latent time and maximum interrupt response degree like this.Resource object class in the RTOS kernel then realized the visit of the formula of monopolizing of system entity resource or virtual resource, and task can obtain the unique access right to resource, and other task can't be visited before resource discharges, and can avoid resource contention like this.Design perfect RTOS and have the resource transfer design that inspection may cause system deadlock.
Control system software divides three layers: application layer, VRTX RTOS (operating system) layer and BSP layer.
Bottom is a plate level support package (BSP), is the hardware interface circuit driver; Middle one deck is VRTX RTOS (operating system) layer, is responsible for the timer-triggered scheduler of application program module; Top layer is a user application.
Control Software in the storer of the 32-bit microprocessor MC68332 of described cpu circuit 1 comprises the bottom plate level support package (BSP) that driver is provided for hardware interface circuit, is responsible for the intermediary operation system (VRTX RTOS) and the user application layer of application program module Real-Time Scheduling.
Described program download interface circuit 6 comprises the PROG of the 32-bit microprocessor MC68332 of an end and described cpu circuit 1 *, three ports of 332TXD, 332RXD link to each other, the other end links to each other with outer computer communication interface 9, battery RAM10 and the flash memory 11 that links to each other with microprocessor MC68332 by address wire and data line respectively, and (CSBOOT) port of described microprocessor MC68332 and (CS0/CS1) port selectively link to each other respectively by electronic switch K1, K2 with (FLASHCS) port of described flash memory 11 or (MEMCS1/MEMES2) port of battery RAM10;
Described program download interface circuit 6 is to finish the program down operation according to the following steps:
The first step: the program bit port (PROG that detects microprocessor MC68332 *), system normally moves if it is invalid, if effectively and battery RAM district download, just carry out RAM district and download, finish the program download, go on foot otherwise carry out second;
Second step: if download among the FLASH, just carry out FLASH and download, the program of finishing is downloaded, and automatic operation downloads from flash memory duplicating to battery RAM after system normally moves; Otherwise, finish because of carrying out the program download.
The present invention is the Control System of Microcomputer of new generation for diesel locomotive (motor train unit) exploitation, it is the first Application 32-bit microprocessor in homemade locomotive computer control device, all adopt SMT technology, system has very strong modular construction and control function, is that the function of domestic existing control system of diesel locomotive expands and upgraded product.Because the present invention adopted 32-bit microprocessor, and set up the program download function, make its travelling speed more in the past control system greatly improve, and can carry out program easily and download, flexible operation has improved operational efficiency and reliability.

Claims (5)

1, a kind of control system of diesel locomotive is characterized in that it comprises cpu circuit (1), finishes switching value input circuit (2) to locomotive 110V switching value input, finishes switching value output circuit (3) to the driving of locomotive 110V electrical equipment and energized circuit copped wave control, finishes the analog quantity treatment circuit (4) of the sampling of electrical locomotive power, voltage analog signal and system interface circuit (5) that the interface of the sampling of locomotive speed signal and serial communication is driven;
Described cpu circuit (1) links to each other by system bus respectively with switching value input circuit (2), switching value output circuit (3), analog quantity treatment circuit (4) and system interface circuit (5);
Described cpu circuit (1) comprises 32-bit microprocessor MC68332, and providing links to each other with outer computer finishes program download interface circuit (6), storer (7) and the system bus interface (8) of online software download service.
2, a kind of control system of diesel locomotive as claimed in claim 1 is characterized in that described storer (7) comprises RAM and flash memory FLASH, and wherein RAM has the battery RAM (10) and two kinds of the RAM of charged pool not.
3, a kind of control system of diesel locomotive as claimed in claim 1, it is characterized in that the Control Software in the storer of 32-bit microprocessor MC68332 of described cpu circuit (1) comprises the bottom plate level support package BSP that driver is provided for hardware interface circuit, is responsible for the VRTX RTOS of intermediary operation system and the user application layer of application program module Real-Time Scheduling.
4, a kind of control system of diesel locomotive as claimed in claim 1 is characterized in that described program download interface circuit (6) comprises the PROG of the 32-bit microprocessor MC68332 of an end and described cpu circuit (1) *, three ports of 332TXD, 332RXD link to each other, the other end links to each other with outer computer communication interface (9), battery RAM (10) and the flash memory (11) that links to each other with microprocessor MC68332 by address wire and data line respectively, and the CSBOOT port of described microprocessor MC68332 and CS0/CS1 port by electronic switch K1, electronic switch K2, selectively link to each other with the FLASHCS port of described flash memory (11) or the MEMCS1/MEMES2 port of battery RAM (10) respectively.
5, a kind of control system of diesel locomotive as claimed in claim 1 is characterized in that described program download interface circuit (6) is to finish the program down operation according to the following steps:
The first step: the program bit port PROG that detects microprocessor MC68332 *If its invalid then system normally moves, if effectively and battery RAM district download, just carry out RAM district and download, finish the program download, go on foot otherwise carry out second;
Second step: if download among the FLASH, just carry out FLASH and download, the program of finishing is downloaded, and automatic operation downloads from flash memory duplicating to battery RAM after system normally moves; Otherwise, finish because of carrying out the program download.
CNB031245315A 2003-06-06 2003-06-06 Microcomputer control system of internal combustion engine vehicle Expired - Lifetime CN1302347C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031245315A CN1302347C (en) 2003-06-06 2003-06-06 Microcomputer control system of internal combustion engine vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031245315A CN1302347C (en) 2003-06-06 2003-06-06 Microcomputer control system of internal combustion engine vehicle

Publications (2)

Publication Number Publication Date
CN1513713A CN1513713A (en) 2004-07-21
CN1302347C true CN1302347C (en) 2007-02-28

Family

ID=34239539

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031245315A Expired - Lifetime CN1302347C (en) 2003-06-06 2003-06-06 Microcomputer control system of internal combustion engine vehicle

Country Status (1)

Country Link
CN (1) CN1302347C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1897623B (en) * 2006-06-26 2011-03-30 株洲南车时代电气股份有限公司 Method and apparatus for controlling, diagnosing and telecommunication managing locomotive and automobile
CN101832620B (en) * 2009-03-09 2013-01-02 北京天宇飞鹰微电子***技术有限公司 Air-conditioning controller for train environment
CN102303613B (en) * 2011-06-21 2013-09-18 株洲南车时代电气股份有限公司 Diesel engine and storage battery pack-based dual-power locomotive control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4891588A (en) * 1987-07-01 1990-01-02 Matsushita Electric Industrial Co., Ltd. Device for detecting rotation speed having feedback circuitry and improved frequency-response
US5029289A (en) * 1987-12-21 1991-07-02 Ncr Corporation Character display system
CN1108605A (en) * 1994-03-18 1995-09-20 成都铁路机车车辆厂 Micro computer monitoring and controlling apparatus for water-resistance dynamometering system of diesel locomotive and method thereof
CN2452802Y (en) * 2000-12-08 2001-10-10 武民利 Carried by locomotive-type route dynamic monitoring device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4891588A (en) * 1987-07-01 1990-01-02 Matsushita Electric Industrial Co., Ltd. Device for detecting rotation speed having feedback circuitry and improved frequency-response
US5029289A (en) * 1987-12-21 1991-07-02 Ncr Corporation Character display system
CN1108605A (en) * 1994-03-18 1995-09-20 成都铁路机车车辆厂 Micro computer monitoring and controlling apparatus for water-resistance dynamometering system of diesel locomotive and method thereof
CN2452802Y (en) * 2000-12-08 2001-10-10 武民利 Carried by locomotive-type route dynamic monitoring device

Also Published As

Publication number Publication date
CN1513713A (en) 2004-07-21

Similar Documents

Publication Publication Date Title
CN101160565B (en) Mechanism to schedule threads on os-sequestered without operating system intervention
CN1118760C (en) Dynamic processor performance and power management in computer system
US8972699B2 (en) Multicore interface with dynamic task management capability and task loading and offloading method thereof
Milojičić et al. Process migration
US8261284B2 (en) Fast context switching using virtual cpus
US7996593B2 (en) Interrupt handling using simultaneous multi-threading
EP0794492B1 (en) Distributed execution of mode mismatched commands in multiprocessor computer systems
CN101727351B (en) Multicore platform-orientated asymmetrical dispatcher for monitor of virtual machine and dispatching method thereof
CN1991768B (en) Instruction set architecture-based inter-sequencer communicating with a heterogeneous resource
CN110888743B (en) GPU resource using method, device and storage medium
US5257372A (en) Methods for efficient distribution of parallel tasks to slave processes in a multiprocessing system
US5390329A (en) Responding to service requests using minimal system-side context in a multiprocessor environment
US20050132363A1 (en) Method, apparatus and system for optimizing context switching between virtual machines
CN101038543A (en) Apparatus, system, and method for persistent user-level thread
EP2296089A2 (en) Operating systems
CN1906587A (en) Methods and apparatus for reducing power dissipation in a multi-processor system
CN88100704A (en) The method and apparatus of multiple processing
CN101013388A (en) Heterogeneous multi-core system-oriented process scheduling method
CN1916855A (en) System of virtual machine, and method for configuring hardware
CN1890634A (en) Optimization of SMI handling and initialization
CN1302347C (en) Microcomputer control system of internal combustion engine vehicle
Dales Managing a reconfigurable processor in a general purpose workstation environment
CN1596396A (en) Vliw architecture with power down instruction
CN100352199C (en) Remote power-on functionality in a partitioned environment
CA1162312A (en) Queueing of work requests to independent task

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: SOUTH ZHUZHOU ELECTRIC LOCOMOTIVE INSTITUTE CO., L

Free format text: FORMER NAME OR ADDRESS: ZHUZHOU SHIDAI GROUP CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: Changjiang Patent Office of Changjiang Road Science Building, Tianyuan District, Hunan, Zhuzhou

Patentee after: CSR ZHUZHOU ELECTRIC LOCOMOTIVE RESEARCH INSTITUTE Co.,Ltd.

Address before: Changjiang Patent Office of Changjiang Road Science Building, Tianyuan District, Hunan, Zhuzhou

Patentee before: ZHUZHOU TIMES ELECTRIC Group

CX01 Expiry of patent term

Granted publication date: 20070228

CX01 Expiry of patent term