CN104176046A - Automobile combination instrument based on MC9S12XHY256 - Google Patents

Automobile combination instrument based on MC9S12XHY256 Download PDF

Info

Publication number
CN104176046A
CN104176046A CN201410462996.8A CN201410462996A CN104176046A CN 104176046 A CN104176046 A CN 104176046A CN 201410462996 A CN201410462996 A CN 201410462996A CN 104176046 A CN104176046 A CN 104176046A
Authority
CN
China
Prior art keywords
module
microprocessor
initialization
motor control
bus
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.)
Pending
Application number
CN201410462996.8A
Other languages
Chinese (zh)
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.)
Harbin Hengyu Mingxiang Technology Co Ltd
Original Assignee
Harbin Hengyu Mingxiang Technology Co Ltd
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 Harbin Hengyu Mingxiang Technology Co Ltd filed Critical Harbin Hengyu Mingxiang Technology Co Ltd
Priority to CN201410462996.8A priority Critical patent/CN104176046A/en
Publication of CN104176046A publication Critical patent/CN104176046A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K35/00Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Instrument Panels (AREA)

Abstract

The invention discloses an automobile combination instrument based on MC9S12XHY256. The automobile combination instrument is mainly composed of a sensor, an A/D conversion module, a power circuit, a CAN bus module, a motor control module, a microprocessor MC9S12XHY256, a liquid crystal module and an alarm module. Signals such as the rotating speed signal, the automobile speed signal and the water temperature signal are detected by the sensor and transmitted to the microprocessor through a CAN bus. The A/D conversion module is connected with the microprocessor, and the fuel signal is transmitted to the microprocessor through the sensor and the A/D conversion module. The power circuit is connected with the microprocessor and the motor control module and supplies electricity to the microprocessor and the motor control module. The liquid crystal module is connected with the microprocessor and displays information of fuel, voltage, mileage and the like. The alarm module is connected with the microprocessor and gives an alarm when a fault occurs. On one hand, the motor control module is connected with the microprocessor so as to receive signals sent by the microprocessor; on the other hand, the motor control module is connected with a motor so as to control the automobile speed. Compared with a traditional pointer instrument, safety, performance and even appearance design of the automobile combination instrument are greatly improved.

Description

A kind of automobile combination meter based on MC9S12XHY256
Technical field
the present invention relates to a kind of auto meter, relate in particular to a kind of automobile combination meter based on MC9S12XHY256.
Background technology
auto meter, as the important component part of automobile, provides most of automobile real-time status information on automobile to chaufeur, becomes navigation and assistant that driver safety drives a car.At present, along with the development of computer technology, the communication technology and Eltec, obviously, want to only depend on traditional mechanical pointer instrument various information many and Fast transforms on automobile of indicating can not meet the demand of chaufeur already.Simultaneously, because each producer of company also grows with each passing hour and has produced micro controller system and stepping motor for advanced auto meter, and the widespread use of various fieldbuss, modern automobile combination instrument will certainly be towards the future development of intellectuality, digitalisation, multifunction.
can see, the intelligent vehicle instrument of a new generation is in outward appearance or is all that traditional mechanical type instrument cannot be mentioned in the same breath at aspect of performance.In new-generation digital auto meter, the application of CANBUS adopts and makes the communication of each electronics control of automotive interior and instrument become easy, pass through instrument, chaufeur can be grasped the real-time status message of automobile, guarantee safe driving, compared to conventional instrument, the safety of the driving ladder that risen again; In order to meet the observation of the intuitive that people are traditional, the auto meter of a new generation still adopts stepper motor drive finger to carry out the demonstration of the speed of a motor vehicle and engine speed, shows accurate, non-jitter and reliable; New-generation digital intelligent vehicle instrument can be used liquid crystal display, makes the information content of demonstration abundanter.Therefore the development of digital intelligent auto meter of new generation is had to great meaning to the development in auto meter field.
Summary of the invention
the object of this invention is to provide a kind of embedded combination instrument that shows most of automobile real-time status information, in secure context, aspect of performance or even improvement and raising in its appearance design.
the object of the invention is to be achieved through the following technical solutions:
an automobile combination meter based on MC9S12XHY256, is characterized in that: comprise sensor, A/D modular converter, power circuit, CAN bus module, motor control module, microprocessor MC9S12XHY256, Liquid Crystal Module, alarm module; Sensor detects the signals such as tach signal, vehicle speed signal, water temperature signal and passes to microprocessor by CAN bus; AD modular converter is connected with micro treatment module, and fuel oil signal is passed to micro-processing by sensor and AD modular converter; Power circuit is connected with motor control module with microprocessor module, is its power supply; Liquid Crystal Module is connected with microprocessor, shows the information such as fuel oil, voltage and mileage; Alarm module is connected with microprocessor module; Motor control module is connected with micro-processing on the one hand, accepts the signal that micro-processing is sent, and is connected on the other hand with motor.
its job procedure flow process is:
s1, system clock initialization; The MCU Bus Clock Rate being produced by PLL is calculated by following formula:
f vco =2×f osc ×(SYNDIV+1)/(REFDIV+1)(1)
f pll =f vco /(2×POSTDIV)(2)
f bus =f pll /2(3);
s2, the initialization of serial ports external interrupt; Carrying out serial ports initialized time, first to set baud rate, then transmitting-receiving enables, and data format is set; In the design, serial ports baud rate used is 9600bps;
s3, AD initialization, AD is configured to 12 for single conversion, carrying out initialized time, need to carry out these settings to the register of AD module: the resolution, result register data of AD are set to selection of its mode, conversion sequence length, clock etc., just can start afterwards the AD module of this function;
s4, PWM and motor module initialization; Being initialized as of PWM module: the alignment thereof of PWM ripple, the output mode that PWM output wave shape is set, PWM passage are set and enable, arrange dutycycle;
s5, real-time clock and timer initialization; Initialization need to be carried out these settings to the register of timer module: arrange timer module clock, by will with channel definition be OC function, comparative figure is set, allows OC to interrupt, and then opening timing device module;
s6, CAN module initialization; The groundwork of CAN initialization function comprises: the selection of the setting that No. ID, the setting of baud rate, the initialization that interrupt to arrange, checks and accepts filtering form, acceptance and transmission, setting, standard frame or the expansion frame of messaging byte length;
s7, tasks carrying.
advantage of the present invention and effect:
with respect to traditional pointer meters, auto meter of the present invention is at secure context, aspect of performance or even in its appearance design, had great improvement and raising; Meanwhile, also the commonality of instrument has been carried out to design planning, some parameters by modification circuits just can adapt to the automobile that different brands or range are wanted, and have simplified production technology and use cost.
Accompanying drawing explanation
fig. 1 is overall system block diagram;
fig. 2 is software flow figure.
The specific embodiment
below in conjunction with accompanying drawing, for example the present invention is described in more detail:
in conjunction with Fig. 1, Fig. 1 is overall system block diagram.Automobile combination meter based on MC9S12XHY256 is mainly by sensor, A/D modular converter, power circuit, CAN bus module, motor control module, microprocessor MC9S12XHY256, Liquid Crystal Module, alarm module.Sensor detects the signals such as tach signal, vehicle speed signal, water temperature signal and passes to microprocessor by CAN bus.AD modular converter is connected with micro treatment module, and fuel oil signal is passed to micro-processing by sensor and AD modular converter; Power circuit is connected with motor control module with microprocessor module, is its power supply; Liquid Crystal Module is connected with microprocessor, shows the information such as fuel oil, voltage and mileage.Alarm module is connected with microprocessor module, when running into fault, reports to the police.Motor control module is connected with micro-processing on the one hand, accepts the signal that micro-processing is sent, be connected with motor on the other hand, and regulation speed.
in conjunction with Fig. 2, Fig. 2 is software flow figure.The program circuit of the automobile combination meter based on MC9S12XHY256 is:
s1, system clock initialization.The MCU Bus Clock Rate being produced by PLL is calculated by following formula:
f vco =2×f osc ×(SYNDIV+1)/(REFDIV+1)(1)
f pll =f vco /(2×POSTDIV)(2)
f bus =f pll /2(3)
s2, the initialization of serial ports external interrupt.Carrying out serial ports initialized time, first to set baud rate, then transmitting-receiving enables, and data format is set.In the design, serial ports baud rate used is 9600bps.
s3, AD initialization.AD is configured to 12 for single conversion.Carrying out initialized time, need to carrying out these settings to the register of AD module: the resolution, result register data of AD are set to selection of its mode, conversion sequence length, clock etc., just can start afterwards the AD module of this function.
s4, PWM and motor module initialization.Being initialized as of PWM module: the alignment thereof of PWM ripple, the output mode that PWM output wave shape is set, PWM passage are set and enable, arrange dutycycle.
s5, real-time clock and timer initialization.Initialization need to be carried out these settings to the register of timer module: arrange timer module clock, by will with channel definition be OC(output relatively) function, comparative figure be set, allow OC to interrupt, and then opening timing device module.
s6, CAN module initialization.The groundwork of CAN initialization function comprises: the selection of the setting that No. ID, the setting of baud rate, the initialization that interrupt to arrange, checks and accepts filtering form, acceptance and transmission, setting, standard frame or the expansion frame of messaging byte length.
s7, tasks carrying.

Claims (2)

1. the automobile combination meter based on MC9S12XHY256, is characterized in that: comprise sensor, A/D modular converter, power circuit, CAN bus module, motor control module, microprocessor MC9S12XHY256, Liquid Crystal Module, alarm module; Sensor detects the signals such as tach signal, vehicle speed signal, water temperature signal and passes to microprocessor by CAN bus; AD modular converter is connected with micro treatment module, and fuel oil signal is passed to micro-processing by sensor and AD modular converter; Power circuit is connected with motor control module with microprocessor module, is its power supply; Liquid Crystal Module is connected with microprocessor, shows the information such as fuel oil, voltage and mileage; Alarm module is connected with microprocessor module; Motor control module is connected with micro-processing on the one hand, accepts the signal that micro-processing is sent, and is connected on the other hand with motor.
2. a kind of automobile combination meter based on MC9S12XHY256 according to claim 1, is characterized in that: job procedure flow process is:
S1, system clock initialization; The MCU Bus Clock Rate being produced by PLL is calculated by following formula:
f vco=2×f osc×(SYNDIV+1)/(REFDIV+1)(1)
f pll=f vco/(2×POSTDIV)(2)
f bus=f pll/2(3);
S2, the initialization of serial ports external interrupt; Carrying out serial ports initialized time, first to set baud rate, then transmitting-receiving enables, and data format is set; In the design, serial ports baud rate used is 9600bps;
S3, AD initialization, AD is configured to 12 for single conversion, carrying out initialized time, need to carry out these settings to the register of AD module: the resolution, result register data of AD are set to selection of its mode, conversion sequence length, clock etc., just can start afterwards the AD module of this function;
S4, PWM and motor module initialization; Being initialized as of PWM module: the alignment thereof of PWM ripple, the output mode that PWM output wave shape is set, PWM passage are set and enable, arrange dutycycle;
S5, real-time clock and timer initialization; Initialization need to be carried out these settings to the register of timer module: arrange timer module clock, by will with channel definition be OC function, comparative figure is set, allows OC to interrupt, and then opening timing device module;
S6, CAN module initialization; The groundwork of CAN initialization function comprises: the selection of the setting that No. ID, the setting of baud rate, the initialization that interrupt to arrange, checks and accepts filtering form, acceptance and transmission, setting, standard frame or the expansion frame of messaging byte length;
S7, tasks carrying.
CN201410462996.8A 2014-09-12 2014-09-12 Automobile combination instrument based on MC9S12XHY256 Pending CN104176046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410462996.8A CN104176046A (en) 2014-09-12 2014-09-12 Automobile combination instrument based on MC9S12XHY256

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410462996.8A CN104176046A (en) 2014-09-12 2014-09-12 Automobile combination instrument based on MC9S12XHY256

Publications (1)

Publication Number Publication Date
CN104176046A true CN104176046A (en) 2014-12-03

Family

ID=51957491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410462996.8A Pending CN104176046A (en) 2014-09-12 2014-09-12 Automobile combination instrument based on MC9S12XHY256

Country Status (1)

Country Link
CN (1) CN104176046A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1696615A (en) * 2005-03-23 2005-11-16 诸城市新东方汽车仪表有限责任公司 General singlechip controller of cluster gauge in motor vehicle, and method for adjusting parameters
CN2796259Y (en) * 2004-12-13 2006-07-12 南京恩瑞特实业有限公司 Automobile electronic combined instrument assembly of local area network bus
CN2913314Y (en) * 2006-03-30 2007-06-20 泰兴市华骋灯塑有限公司 Diesel fork-lift truck combination instrument
CN101704341A (en) * 2009-11-13 2010-05-12 重庆长安汽车股份有限公司 Combination meter for cars
CN102003978A (en) * 2010-10-22 2011-04-06 金华市金开电子技术有限公司 Automotive combined instrument and speed ratio adjusting method
CN202243023U (en) * 2011-08-20 2012-05-30 浙江汽车仪表有限公司 Double-shaft stepping motor type car combined instrument
CN204236460U (en) * 2014-09-12 2015-04-01 哈尔滨恒誉名翔科技有限公司 A kind of automobile combination meter based on MC9S12XHY256

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2796259Y (en) * 2004-12-13 2006-07-12 南京恩瑞特实业有限公司 Automobile electronic combined instrument assembly of local area network bus
CN1696615A (en) * 2005-03-23 2005-11-16 诸城市新东方汽车仪表有限责任公司 General singlechip controller of cluster gauge in motor vehicle, and method for adjusting parameters
CN2913314Y (en) * 2006-03-30 2007-06-20 泰兴市华骋灯塑有限公司 Diesel fork-lift truck combination instrument
CN101704341A (en) * 2009-11-13 2010-05-12 重庆长安汽车股份有限公司 Combination meter for cars
CN102003978A (en) * 2010-10-22 2011-04-06 金华市金开电子技术有限公司 Automotive combined instrument and speed ratio adjusting method
CN202243023U (en) * 2011-08-20 2012-05-30 浙江汽车仪表有限公司 Double-shaft stepping motor type car combined instrument
CN204236460U (en) * 2014-09-12 2015-04-01 哈尔滨恒誉名翔科技有限公司 A kind of automobile combination meter based on MC9S12XHY256

Similar Documents

Publication Publication Date Title
CN106200487B (en) A kind of automobile instrument control system
CN207141176U (en) A kind of steering position indicator and steering wheel
CN205469270U (en) Turn to wheel angle degree display instrument
CN107107948B (en) Steering system for automatic driving of motor vehicle
CN204236460U (en) A kind of automobile combination meter based on MC9S12XHY256
CN110658799A (en) Control method of digital instrument system, digital instrument system and vehicle
CN104460433A (en) Full-liquid-crystal automobile combination meter and system control method of full-liquid-crystal automobile combination meter
CN1162685C (en) Vehicle navigation device
CN201352125Y (en) Stepping motor automobile combined instrument
CN104176046A (en) Automobile combination instrument based on MC9S12XHY256
CN203698176U (en) Hybrid electric vehicle mounted display system
CN201628865U (en) Automobile combined instrument with automobile electric control diagnostic function
CN201152756Y (en) Complete digital intelligent automobile combined instrument based on CAN bus
CN202243022U (en) Miniature instrument system of vehicle
CN206235887U (en) A kind of new type auto tracking cart
CN204020590U (en) A kind of internal combustion car instrument
CN202518106U (en) System for controlling instruments of electric bicycle based on serial bus technology
CN202557305U (en) Car compass clock attached watch
CN201816465U (en) Motormeter based on high-speed eight-bit single-chip microcomputer
JP2008174096A (en) Display device for vehicle
CN201069445Y (en) A novel electronic rotation speed meter
CN202345410U (en) Automotive integrated instrument based on controller area network (CAN) bus
CN108181853A (en) A kind of yacht steering-engine control system and control method
CN202357887U (en) Automobile electronic combination instrument
CN201766545U (en) Stepper motor controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141203